c$1.smali
.class final Lcom/huawei/updatesdk/support/d/c$1;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/huawei/updatesdk/support/d/a;
# instance fields
.field private final a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/huawei/updatesdk/support/d/b;",
">;"
}
.end annotation
.end field
# direct methods
.method constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
return-void
.end method
# virtual methods
.method public a(ILcom/huawei/updatesdk/sdk/service/secure/a;)V
.registers 6
iget-object v1, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_9
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1c
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/huawei/updatesdk/support/d/b;
invoke-interface {v0, p1, p2}, Lcom/huawei/updatesdk/support/d/b;->a(ILcom/huawei/updatesdk/sdk/service/secure/a;)V
goto :goto_9
:catchall_19
move-exception v0
monitor-exit v1
:try_end_1b
.catchall {:try_start_3 .. :try_end_1b} :catchall_19
throw v0
:cond_1c
:try_start_1c
monitor-exit v1
:try_end_1d
.catchall {:try_start_1c .. :try_end_1d} :catchall_19
return-void
.end method
.method public a(Lcom/huawei/updatesdk/support/d/b;)V
.registers 5
iget-object v1, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
monitor-enter v1
if-nez p1, :cond_7
:try_start_5
monitor-exit v1
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
:try_end_c
.catchall {:try_start_5 .. :try_end_c} :catchall_16
move-result v0
if-nez v0, :cond_14
:try_start_f
iget-object v0, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_14
.catch Ljava/lang/UnsupportedOperationException; {:try_start_f .. :try_end_14} :catch_19
.catch Ljava/lang/ClassCastException; {:try_start_f .. :try_end_14} :catch_22
.catch Ljava/lang/IllegalArgumentException; {:try_start_f .. :try_end_14} :catch_2b
.catchall {:try_start_f .. :try_end_14} :catchall_16
:cond_14
:goto_14
:try_start_14
monitor-exit v1
goto :goto_6
:catchall_16
move-exception v0
monitor-exit v1
:try_end_18
.catchall {:try_start_14 .. :try_end_18} :catchall_16
throw v0
:catch_19
move-exception v0
:try_start_1a
const-string v0, "InstallObserverManager"
const-string v2, "registerObserver UnsupportedOperationException"
invoke-static {v0, v2}, Lcom/huawei/updatesdk/sdk/a/b/a/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_14
:catch_22
move-exception v0
const-string v0, "InstallObserverManager"
const-string v2, "registerObserver ClassCastException"
invoke-static {v0, v2}, Lcom/huawei/updatesdk/sdk/a/b/a/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_14
:catch_2b
move-exception v0
const-string v0, "InstallObserverManager"
const-string v2, "registerObserver IllegalArgumentException"
invoke-static {v0, v2}, Lcom/huawei/updatesdk/sdk/a/b/a/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
:try_end_33
.catchall {:try_start_1a .. :try_end_33} :catchall_16
goto :goto_14
.end method
.method public b(Lcom/huawei/updatesdk/support/d/b;)V
.registers 5
iget-object v1, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/huawei/updatesdk/support/d/c$1;->a:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
:try_end_8
.catch Ljava/lang/UnsupportedOperationException; {:try_start_3 .. :try_end_8} :catch_a
.catchall {:try_start_3 .. :try_end_8} :catchall_13
:goto_8
:try_start_8
monitor-exit v1
return-void
:catch_a
move-exception v0
const-string v0, "InstallObserverManager"
const-string v2, "unRegisterObserver UnsupportedOperationException"
invoke-static {v0, v2}, Lcom/huawei/updatesdk/sdk/a/b/a/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_8
:catchall_13
move-exception v0
monitor-exit v1
:try_end_15
.catchall {:try_start_8 .. :try_end_15} :catchall_13
throw v0
.end method