c.smali
.class public Lw3/c;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lx3/c;
# instance fields
.field private final a:Landroid/content/Context;
.field private b:Lx3/d;
.field private c:Lx3/b;
.field private d:Lu3/d;
.field private e:I
.field private final f:I
.field private final g:La4/b;
.field private h:La4/b;
.field private i:La4/b;
.field private j:La4/b;
.field private final k:La4/b;
.field private final l:La4/b;
.field private final m:La4/b;
.field private n:La4/b;
.field private o:Lg4/b$a;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x7530
iput v0, p0, Lw3/c;->e:I
const v0, 0x927c0
iput v0, p0, Lw3/c;->f:I
new-instance v0, Lw3/c$a;
invoke-direct {v0, p0}, Lw3/c$a;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->g:La4/b;
new-instance v0, Lw3/c$b;
invoke-direct {v0, p0}, Lw3/c$b;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->h:La4/b;
new-instance v0, Lw3/c$c;
invoke-direct {v0, p0}, Lw3/c$c;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->i:La4/b;
new-instance v0, Lw3/c$d;
invoke-direct {v0, p0}, Lw3/c$d;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->j:La4/b;
new-instance v0, Lw3/c$e;
invoke-direct {v0, p0}, Lw3/c$e;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->k:La4/b;
new-instance v0, Lw3/c$f;
invoke-direct {v0, p0}, Lw3/c$f;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->l:La4/b;
new-instance v0, Lw3/c$g;
invoke-direct {v0, p0}, Lw3/c$g;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->m:La4/b;
new-instance v0, Lw3/c$h;
invoke-direct {v0, p0}, Lw3/c$h;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->n:La4/b;
new-instance v0, Lw3/c$i;
invoke-direct {v0, p0}, Lw3/c$i;-><init>(Lw3/c;)V
iput-object v0, p0, Lw3/c;->o:Lg4/b$a;
iput-object p1, p0, Lw3/c;->a:Landroid/content/Context;
new-instance p1, Lu3/d;
invoke-direct {p1, p0}, Lu3/d;-><init>(Lx3/c;)V
iput-object p1, p0, Lw3/c;->d:Lu3/d;
invoke-direct {p0}, Lw3/c;->x()V
return-void
.end method
.method private A()V
.registers 2
const-string v0, "SCHEDULE_PING_ALARM"
invoke-static {v0}, Lg4/b;->d(Ljava/lang/String;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->f(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->e(Landroid/content/Context;)V
return-void
.end method
.method private B(I)V
.registers 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "SCHEDULE_WAKE_CONNECT : "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lg4/b;->d(Ljava/lang/String;)V
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lg4/b;->c(Ljava/lang/String;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->b(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->a(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0, p1}, Lg4/a;->g(Landroid/content/Context;I)V
return-void
.end method
.method private C()V
.registers 3
invoke-static {}, Lg4/e;->b()Lz3/b;
move-result-object v0
iget-object v1, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v1, v0}, Lx3/b;->f(Lz3/b;)V
return-void
.end method
.method private D()V
.registers 3
invoke-static {}, Lg4/e;->f()Lz3/b;
move-result-object v0
iget-object v1, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v1, v0}, Lx3/b;->f(Lz3/b;)V
return-void
.end method
.method static bridge synthetic f(Lw3/c;)Landroid/content/Context;
.registers 1
iget-object p0, p0, Lw3/c;->a:Landroid/content/Context;
return-object p0
.end method
.method static bridge synthetic g(Lw3/c;)Lx3/b;
.registers 1
iget-object p0, p0, Lw3/c;->c:Lx3/b;
return-object p0
.end method
.method static bridge synthetic h(Lw3/c;)Lx3/d;
.registers 1
iget-object p0, p0, Lw3/c;->b:Lx3/d;
return-object p0
.end method
.method static bridge synthetic i(Lw3/c;)V
.registers 1
invoke-direct {p0}, Lw3/c;->q()V
return-void
.end method
.method static bridge synthetic j(Lw3/c;)V
.registers 1
invoke-direct {p0}, Lw3/c;->r()V
return-void
.end method
.method static bridge synthetic k(Lw3/c;)V
.registers 1
invoke-direct {p0}, Lw3/c;->s()V
return-void
.end method
.method static bridge synthetic l(Lw3/c;)I
.registers 1
invoke-direct {p0}, Lw3/c;->u()I
move-result p0
return p0
.end method
.method static bridge synthetic m(Lw3/c;)Z
.registers 1
invoke-direct {p0}, Lw3/c;->v()Z
move-result p0
return p0
.end method
.method static bridge synthetic n(Lw3/c;)V
.registers 1
invoke-direct {p0}, Lw3/c;->w()V
return-void
.end method
.method static bridge synthetic o(Lw3/c;I)V
.registers 2
invoke-direct {p0, p1}, Lw3/c;->B(I)V
return-void
.end method
.method private q()V
.registers 3
iget-object v0, p0, Lw3/c;->b:Lx3/d;
if-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z
move-result v0
if-nez v0, :cond_25
:cond_a
new-instance v0, Lx3/d;
iget-object v1, p0, Lw3/c;->d:Lu3/d;
invoke-direct {v0, v1}, Lx3/d;-><init>(Lx3/c;)V
iput-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
iget-object v1, p0, Lw3/c;->o:Lg4/b$a;
invoke-virtual {v0, v1}, Ljava/lang/Thread;->setUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Lx3/d;->j()Lx3/b;
move-result-object v0
iput-object v0, p0, Lw3/c;->c:Lx3/b;
:cond_25
iget-object v0, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v0}, Lx3/b;->a()V
return-void
.end method
.method private r()V
.registers 3
iget-object v0, p0, Lw3/c;->b:Lx3/d;
if-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z
move-result v0
if-nez v0, :cond_25
:cond_a
new-instance v0, Lx3/d;
iget-object v1, p0, Lw3/c;->d:Lu3/d;
invoke-direct {v0, v1}, Lx3/d;-><init>(Lx3/c;)V
iput-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
iget-object v1, p0, Lw3/c;->o:Lg4/b$a;
invoke-virtual {v0, v1}, Ljava/lang/Thread;->setUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Lx3/d;->j()Lx3/b;
move-result-object v0
iput-object v0, p0, Lw3/c;->c:Lx3/b;
:cond_25
iget-object v0, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v0}, Lx3/b;->g()V
return-void
.end method
.method private s()V
.registers 3
iget-object v0, p0, Lw3/c;->b:Lx3/d;
if-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z
move-result v0
if-nez v0, :cond_25
:cond_a
new-instance v0, Lx3/d;
iget-object v1, p0, Lw3/c;->d:Lu3/d;
invoke-direct {v0, v1}, Lx3/d;-><init>(Lx3/c;)V
iput-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
iget-object v1, p0, Lw3/c;->o:Lg4/b$a;
invoke-virtual {v0, v1}, Ljava/lang/Thread;->setUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
iget-object v0, p0, Lw3/c;->b:Lx3/d;
invoke-virtual {v0}, Lx3/d;->j()Lx3/b;
move-result-object v0
iput-object v0, p0, Lw3/c;->c:Lx3/b;
:cond_25
iget-object v0, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v0}, Lx3/b;->c()V
return-void
.end method
.method private u()I
.registers 3
iget v0, p0, Lw3/c;->e:I
const v1, 0x927c0
if-le v0, v1, :cond_8
goto :goto_9
:cond_8
move v1, v0
:goto_9
mul-int/lit8 v0, v0, 0x2
iput v0, p0, Lw3/c;->e:I
return v1
.end method
.method private v()Z
.registers 2
iget-object v0, p0, Lw3/c;->b:Lx3/d;
if-eqz v0, :cond_a
iget-object v0, p0, Lw3/c;->c:Lx3/b;
if-eqz v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method private w()V
.registers 2
const-string v0, "NOTIFY_INTERNET_DISCONNECTED"
invoke-static {v0}, Lg4/b;->d(Ljava/lang/String;)V
invoke-static {v0}, Lg4/b;->c(Ljava/lang/String;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->b(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->a(Landroid/content/Context;)V
invoke-static {}, Lu3/b;->a()Lw3/a;
move-result-object v0
invoke-virtual {v0}, Lw3/a;->b()V
return-void
.end method
.method private x()V
.registers 4
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "WAKE_CONNECT"
iget-object v2, p0, Lw3/c;->h:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "SHORT_PING"
iget-object v2, p0, Lw3/c;->i:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "LONG_PING"
iget-object v2, p0, Lw3/c;->j:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "CONNECT_NOTIFICATION_SERVER"
iget-object v2, p0, Lw3/c;->l:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "ACK_PUSH_MSG"
iget-object v2, p0, Lw3/c;->m:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "PERFORM_PING"
iget-object v2, p0, Lw3/c;->n:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "CONNECT_AUTHENTICATION_SERVER"
iget-object v2, p0, Lw3/c;->k:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
const-string v1, "RECONNECT_WHEN_INVALID_GIP_RECEIVED"
iget-object v2, p0, Lw3/c;->g:La4/b;
invoke-virtual {v0, v1, v2}, La4/a;->c(Ljava/lang/String;La4/b;)V
return-void
.end method
.method private y()V
.registers 3
invoke-static {}, Ld4/a;->d()J
move-result-wide v0
invoke-static {v0, v1}, Lg4/e;->c(J)Lz3/b;
move-result-object v0
iget-object v1, p0, Lw3/c;->c:Lx3/b;
invoke-interface {v1, v0}, Lx3/b;->f(Lz3/b;)V
return-void
.end method
.method private z()V
.registers 2
const/16 v0, 0x7530
iput v0, p0, Lw3/c;->e:I
return-void
.end method
# virtual methods
.method public E()V
.registers 2
const/16 v0, 0x2710
invoke-direct {p0, v0}, Lw3/c;->B(I)V
return-void
.end method
.method public a(I)V
.registers 3
if-eqz p1, :cond_21
const/4 v0, 0x1
if-eq p1, v0, :cond_12
const/4 v0, 0x2
if-eq p1, v0, :cond_9
goto :goto_29
:cond_9
const-string p1, "onConnectionOK, sendRegionPacket()"
invoke-static {p1}, Lg4/b;->a(Ljava/lang/String;)V
invoke-direct {p0}, Lw3/c;->D()V
goto :goto_29
:cond_12
const-string p1, "onConnectionOK, requestNotification()"
invoke-static {p1}, Lg4/b;->a(Ljava/lang/String;)V
invoke-direct {p0}, Lw3/c;->y()V
invoke-direct {p0}, Lw3/c;->A()V
invoke-direct {p0}, Lw3/c;->z()V
goto :goto_29
:cond_21
const-string p1, "onConnectionOK, sendAuthPacket()"
invoke-static {p1}, Lg4/b;->a(Ljava/lang/String;)V
invoke-direct {p0}, Lw3/c;->C()V
:goto_29
return-void
.end method
.method public b(Lz3/b;)V
.registers 2
invoke-static {p1}, Lx3/f;->c(Lz3/b;)V
return-void
.end method
.method public c(I)V
.registers 3
if-eqz p1, :cond_9
const/4 v0, 0x1
if-eq p1, v0, :cond_9
const/4 v0, 0x2
if-eq p1, v0, :cond_9
goto :goto_1c
:cond_9
iget-object p1, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {p1}, Lg4/c;->d(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_19
invoke-direct {p0}, Lw3/c;->u()I
move-result p1
invoke-direct {p0, p1}, Lw3/c;->B(I)V
goto :goto_1c
:cond_19
invoke-direct {p0}, Lw3/c;->w()V
:goto_1c
return-void
.end method
.method public d(Lz3/b;)V
.registers 2
iget-object p1, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {p1}, Lg4/c;->d(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_10
invoke-direct {p0}, Lw3/c;->u()I
move-result p1
invoke-direct {p0, p1}, Lw3/c;->B(I)V
goto :goto_13
:cond_10
invoke-direct {p0}, Lw3/c;->w()V
:goto_13
return-void
.end method
.method public e(I)V
.registers 3
if-eqz p1, :cond_9
const/4 v0, 0x1
if-eq p1, v0, :cond_9
const/4 v0, 0x2
if-eq p1, v0, :cond_9
goto :goto_1c
:cond_9
iget-object p1, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {p1}, Lg4/c;->d(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_19
invoke-direct {p0}, Lw3/c;->u()I
move-result p1
invoke-direct {p0, p1}, Lw3/c;->B(I)V
goto :goto_1c
:cond_19
invoke-direct {p0}, Lw3/c;->w()V
:goto_1c
return-void
.end method
.method public p()V
.registers 2
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->a(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->b(Landroid/content/Context;)V
iget-object v0, p0, Lw3/c;->a:Landroid/content/Context;
invoke-static {v0}, Lg4/a;->c(Landroid/content/Context;)V
return-void
.end method
.method public t()V
.registers 2
invoke-static {}, Lu3/b;->b()La4/a;
move-result-object v0
invoke-virtual {v0}, La4/a;->a()V
const/4 v0, 0x0
iput-object v0, p0, Lw3/c;->d:Lu3/d;
iget-object v0, p0, Lw3/c;->b:Lx3/d;
if-eqz v0, :cond_11
invoke-virtual {v0}, Lx3/d;->quit()Z
:cond_11
return-void
.end method