XMPushService$a.smali
.class Lcom/xiaomi/push/service/XMPushService$a;
.super Lcom/xiaomi/push/service/XMPushService$h;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/xiaomi/push/service/XMPushService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = "a"
.end annotation
# instance fields
.field a:Lcom/xiaomi/push/service/ap$b;
.field final synthetic b:Lcom/xiaomi/push/service/XMPushService;
# direct methods
.method public constructor <init>(Lcom/xiaomi/push/service/XMPushService;Lcom/xiaomi/push/service/ap$b;)V
.registers 4
iput-object p1, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
const/16 v0, 0x9
invoke-direct {p0, v0}, Lcom/xiaomi/push/service/XMPushService$h;-><init>(I)V
const/4 v0, 0x0
iput-object v0, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
iput-object p2, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
return-void
.end method
# virtual methods
.method public a()V
.registers 7
:try_start_0
iget-object v0, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
invoke-virtual {v0}, Lcom/xiaomi/push/service/XMPushService;->f()Z
move-result v0
if-nez v0, :cond_f
const-string/jumbo v0, "trying bind while the connection is not created, quit!"
invoke-static {v0}, Lcom/xiaomi/channel/commonutils/b/c;->d(Ljava/lang/String;)V
:goto_e
return-void
:cond_f
invoke-static {}, Lcom/xiaomi/push/service/ap;->a()Lcom/xiaomi/push/service/ap;
move-result-object v0
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
iget-object v1, v1, Lcom/xiaomi/push/service/ap$b;->h:Ljava/lang/String;
iget-object v2, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
iget-object v2, v2, Lcom/xiaomi/push/service/ap$b;->b:Ljava/lang/String;
invoke-virtual {v0, v1, v2}, Lcom/xiaomi/push/service/ap;->b(Ljava/lang/String;Ljava/lang/String;)Lcom/xiaomi/push/service/ap$b;
move-result-object v0
if-nez v0, :cond_50
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v1, "ignore bind because the channel "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
iget-object v1, v1, Lcom/xiaomi/push/service/ap$b;->h:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string/jumbo v1, " is removed "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/channel/commonutils/b/c;->a(Ljava/lang/String;)V
:try_end_43
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_43} :catch_44
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_43} :catch_6e
goto :goto_e
:catch_44
move-exception v0
invoke-static {v0}, Lcom/xiaomi/channel/commonutils/b/c;->a(Ljava/lang/Throwable;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
const/16 v2, 0xa
invoke-virtual {v1, v2, v0}, Lcom/xiaomi/push/service/XMPushService;->a(ILjava/lang/Exception;)V
goto :goto_e
:cond_50
:try_start_50
iget-object v1, v0, Lcom/xiaomi/push/service/ap$b;->m:Lcom/xiaomi/push/service/ap$c;
sget-object v2, Lcom/xiaomi/push/service/ap$c;->a:Lcom/xiaomi/push/service/ap$c;
if-ne v1, v2, :cond_70
sget-object v1, Lcom/xiaomi/push/service/ap$c;->b:Lcom/xiaomi/push/service/ap$c;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
invoke-virtual/range {v0 .. v5}, Lcom/xiaomi/push/service/ap$b;->a(Lcom/xiaomi/push/service/ap$c;IILjava/lang/String;Ljava/lang/String;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
invoke-static {v1}, Lcom/xiaomi/push/service/XMPushService;->d(Lcom/xiaomi/push/service/XMPushService;)Lcom/xiaomi/smack/a;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/xiaomi/smack/a;->a(Lcom/xiaomi/push/service/ap$b;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
invoke-static {v1, v0}, Lcom/xiaomi/d/h;->a(Lcom/xiaomi/push/service/XMPushService;Lcom/xiaomi/push/service/ap$b;)V
goto :goto_e
:catch_6e
move-exception v0
goto :goto_e
:cond_70
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v2, "trying duplicate bind, ingore! "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v0, v0, Lcom/xiaomi/push/service/ap$b;->m:Lcom/xiaomi/push/service/ap$c;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/xiaomi/channel/commonutils/b/c;->a(Ljava/lang/String;)V
:try_end_89
.catch Ljava/lang/Exception; {:try_start_50 .. :try_end_89} :catch_44
.catch Ljava/lang/Throwable; {:try_start_50 .. :try_end_89} :catch_6e
goto :goto_e
.end method
.method public b()Ljava/lang/String;
.registers 3
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v1, "bind the client. "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/ap$b;
iget-object v1, v1, Lcom/xiaomi/push/service/ap$b;->h:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method