bh.smali
.class public Lcom/xiaomi/push/service/bh;
.super Ljava/lang/Object;
# static fields
.field private static final a:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map",
"<",
"Ljava/lang/String;",
"[B>;"
}
.end annotation
.end field
.field private static b:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Landroid/util/Pair",
"<",
"Ljava/lang/String;",
"[B>;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
sput-object v0, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
return-void
.end method
.method public static a(Landroid/content/Context;ILjava/lang/String;)V
.registers 7
sget-object v2, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
monitor-enter v2
:try_start_3
sget-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_d
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_28
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
sget-object v1, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
invoke-static {p0, v0, v1, p1, p2}, Lcom/xiaomi/push/service/bh;->a(Landroid/content/Context;Ljava/lang/String;[BILjava/lang/String;)V
goto :goto_d
:catchall_25
move-exception v0
monitor-exit v2
:try_end_27
.catchall {:try_start_3 .. :try_end_27} :catchall_25
throw v0
:cond_28
:try_start_28
sget-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->clear()V
monitor-exit v2
:try_end_2e
.catchall {:try_start_28 .. :try_end_2e} :catchall_25
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;[BILjava/lang/String;)V
.registers 7
new-instance v0, Landroid/content/Intent;
const-string v1, "com.xiaomi.mipush.ERROR"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
const-string v1, "mipush_payload"
invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[B)Landroid/content/Intent;
const-string v1, "mipush_error_code"
invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;
const-string v1, "mipush_error_msg"
invoke-virtual {v0, v1, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
invoke-static {p1}, Lcom/xiaomi/push/service/bp;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;Ljava/lang/String;)V
return-void
.end method
.method public static a(Lcom/xiaomi/push/service/XMPushService;)V
.registers 5
:try_start_0
sget-object v2, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
monitor-enter v2
:try_end_3
.catch Lcom/xiaomi/push/hb; {:try_start_0 .. :try_end_3} :catch_28
:try_start_3
sget-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_d
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_32
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
sget-object v1, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
invoke-static {p0, v0, v1}, Lcom/xiaomi/push/service/bp;->a(Lcom/xiaomi/push/service/XMPushService;Ljava/lang/String;[B)V
goto :goto_d
:catchall_25
move-exception v0
monitor-exit v2
:try_end_27
.catchall {:try_start_3 .. :try_end_27} :catchall_25
:try_start_27
throw v0
:try_end_28
.catch Lcom/xiaomi/push/hb; {:try_start_27 .. :try_end_28} :catch_28
:catch_28
move-exception v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V
const/16 v1, 0xa
invoke-virtual {p0, v1, v0}, Lcom/xiaomi/push/service/XMPushService;->a(ILjava/lang/Exception;)V
:goto_31
return-void
:cond_32
:try_start_32
sget-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->clear()V
monitor-exit v2
:try_end_38
.catchall {:try_start_32 .. :try_end_38} :catchall_25
goto :goto_31
.end method
.method public static a(Ljava/lang/String;[B)V
.registers 4
sget-object v1, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/xiaomi/push/service/bh;->a:Ljava/util/Map;
invoke-interface {v0, p0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
monitor-exit v1
return-void
:catchall_a
move-exception v0
monitor-exit v1
:try_end_c
.catchall {:try_start_3 .. :try_end_c} :catchall_a
throw v0
.end method
.method public static b(Lcom/xiaomi/push/service/XMPushService;)V
.registers 4
:try_start_0
sget-object v1, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
monitor-enter v1
:try_end_3
.catch Lcom/xiaomi/push/hb; {:try_start_0 .. :try_end_3} :catch_29
:try_start_3
sget-object v0, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
sput-object v2, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_33
:try_start_d
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_11
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_32
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/util/Pair;
iget-object v1, v0, Landroid/util/Pair;->first:Ljava/lang/Object;
check-cast v1, Ljava/lang/String;
iget-object v0, v0, Landroid/util/Pair;->second:Ljava/lang/Object;
check-cast v0, [B
invoke-static {p0, v1, v0}, Lcom/xiaomi/push/service/bp;->a(Lcom/xiaomi/push/service/XMPushService;Ljava/lang/String;[B)V
:try_end_28
.catch Lcom/xiaomi/push/hb; {:try_start_d .. :try_end_28} :catch_29
goto :goto_11
:catch_29
move-exception v0
invoke-static {v0}, Lcom/xiaomi/a/a/a/c;->a(Ljava/lang/Throwable;)V
const/16 v1, 0xa
invoke-virtual {p0, v1, v0}, Lcom/xiaomi/push/service/XMPushService;->a(ILjava/lang/Exception;)V
:cond_32
return-void
:catchall_33
move-exception v0
:try_start_34
monitor-exit v1
:try_end_35
.catchall {:try_start_34 .. :try_end_35} :catchall_33
:try_start_35
throw v0
:try_end_36
.catch Lcom/xiaomi/push/hb; {:try_start_35 .. :try_end_36} :catch_29
.end method
.method public static b(Ljava/lang/String;[B)V
.registers 5
sget-object v1, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
new-instance v2, Landroid/util/Pair;
invoke-direct {v2, p0, p1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
sget-object v0, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
const/16 v2, 0x32
if-le v0, v2, :cond_1d
sget-object v0, Lcom/xiaomi/push/service/bh;->b:Ljava/util/ArrayList;
const/4 v2, 0x0
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
:cond_1d
monitor-exit v1
return-void
:catchall_1f
move-exception v0
monitor-exit v1
:try_end_21
.catchall {:try_start_3 .. :try_end_21} :catchall_1f
throw v0
.end method