XMPushService$a.smali
.class public final Lcom/xiaomi/push/service/XMPushService$a;
.super Lcom/xiaomi/push/service/XMPushService$i;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/xiaomi/push/service/XMPushService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "a"
.end annotation
# instance fields
.field a:Lcom/xiaomi/push/service/m$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/m$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$i;-><init>(I)V
const/4 v0, 0x0
iput-object v0, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
iput-object p2, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
return-void
.end method
# virtual methods
.method public final 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;->b()Z
move-result v0
if-nez v0, :cond_e
const-string v0, "trying bind while the connection is not created, quit!"
invoke-static {v0}, Lcom/baidu/techain/aa/c;->d(Ljava/lang/String;)V
:goto_d
return-void
:cond_e
invoke-static {}, Lcom/xiaomi/push/service/m;->a()Lcom/xiaomi/push/service/m;
move-result-object v0
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
iget-object v1, v1, Lcom/xiaomi/push/service/m$b;->h:Ljava/lang/String;
iget-object v2, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
iget-object v2, v2, Lcom/xiaomi/push/service/m$b;->b:Ljava/lang/String;
invoke-virtual {v0, v1, v2}, Lcom/xiaomi/push/service/m;->b(Ljava/lang/String;Ljava/lang/String;)Lcom/xiaomi/push/service/m$b;
move-result-object v0
if-nez v0, :cond_49
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "ignore bind because the channel "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
iget-object v1, v1, Lcom/xiaomi/push/service/m$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 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/baidu/techain/aa/c;->a(Ljava/lang/String;)V
:try_end_3c
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3c} :catch_3d
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3c} :catch_67
goto :goto_d
:catch_3d
move-exception v0
invoke-static {v0}, Lcom/baidu/techain/aa/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_d
:cond_49
:try_start_49
iget-object v1, v0, Lcom/xiaomi/push/service/m$b;->m:Lcom/xiaomi/push/service/m$c;
sget-object v2, Lcom/xiaomi/push/service/m$c;->a:Lcom/xiaomi/push/service/m$c;
if-ne v1, v2, :cond_69
sget-object v1, Lcom/xiaomi/push/service/m$c;->b:Lcom/xiaomi/push/service/m$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/m$b;->a(Lcom/xiaomi/push/service/m$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;->e(Lcom/xiaomi/push/service/XMPushService;)Lcom/baidu/techain/af/fo;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/baidu/techain/af/fo;->a(Lcom/xiaomi/push/service/m$b;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->b:Lcom/xiaomi/push/service/XMPushService;
invoke-static {v1, v0}, Lcom/baidu/techain/af/he;->a(Lcom/xiaomi/push/service/XMPushService;Lcom/xiaomi/push/service/m$b;)V
goto :goto_d
:catch_67
move-exception v0
goto :goto_d
:cond_69
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "trying duplicate bind, ingore! "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v0, v0, Lcom/xiaomi/push/service/m$b;->m:Lcom/xiaomi/push/service/m$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/baidu/techain/aa/c;->a(Ljava/lang/String;)V
:try_end_7d
.catch Ljava/lang/Exception; {:try_start_49 .. :try_end_7d} :catch_3d
.catch Ljava/lang/Throwable; {:try_start_49 .. :try_end_7d} :catch_67
goto :goto_d
.end method
.method public final b()Ljava/lang/String;
.registers 3
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "bind the client. "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/xiaomi/push/service/XMPushService$a;->a:Lcom/xiaomi/push/service/m$b;
iget-object v1, v1, Lcom/xiaomi/push/service/m$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