e.smali
.class public final Lf/b/b/b/o1/e;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/b/b/b/o1/e$d;,
Lf/b/b/b/o1/e$b;,
Lf/b/b/b/o1/e$c;
}
.end annotation
# instance fields
.field private final a:Landroid/content/Context;
.field private final b:Lf/b/b/b/o1/e$c;
.field private final c:Lf/b/b/b/o1/d;
.field private final d:Landroid/os/Handler;
.field private e:Lf/b/b/b/o1/e$b;
.field private f:I
.field private g:Lf/b/b/b/o1/e$d;
# direct methods
.method public constructor <init>(Landroid/content/Context;Lf/b/b/b/o1/e$c;Lf/b/b/b/o1/d;)V
.registers 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
iput-object p2, p0, Lf/b/b/b/o1/e;->b:Lf/b/b/b/o1/e$c;
iput-object p3, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
new-instance p1, Landroid/os/Handler;
invoke-static {}, Lf/b/b/b/s1/m0;->O()Landroid/os/Looper;
move-result-object p2
invoke-direct {p1, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lf/b/b/b/o1/e;->d:Landroid/os/Handler;
return-void
.end method
.method static synthetic a(Lf/b/b/b/o1/e;)V
.registers 1
invoke-direct {p0}, Lf/b/b/b/o1/e;->e()V
return-void
.end method
.method static synthetic b(Lf/b/b/b/o1/e;)Landroid/os/Handler;
.registers 1
iget-object p0, p0, Lf/b/b/b/o1/e;->d:Landroid/os/Handler;
return-object p0
.end method
.method static synthetic c(Lf/b/b/b/o1/e;)Lf/b/b/b/o1/e$d;
.registers 1
iget-object p0, p0, Lf/b/b/b/o1/e;->g:Lf/b/b/b/o1/e$d;
return-object p0
.end method
.method static synthetic d(Lf/b/b/b/o1/e;)V
.registers 1
invoke-direct {p0}, Lf/b/b/b/o1/e;->g()V
return-void
.end method
.method private e()V
.registers 3
iget-object v0, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
iget-object v1, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
invoke-virtual {v0, v1}, Lf/b/b/b/o1/d;->c(Landroid/content/Context;)I
move-result v0
iget v1, p0, Lf/b/b/b/o1/e;->f:I
if-eq v1, v0, :cond_13
iput v0, p0, Lf/b/b/b/o1/e;->f:I
iget-object v1, p0, Lf/b/b/b/o1/e;->b:Lf/b/b/b/o1/e$c;
invoke-interface {v1, p0, v0}, Lf/b/b/b/o1/e$c;->a(Lf/b/b/b/o1/e;I)V
:cond_13
return-void
.end method
.method private g()V
.registers 2
iget v0, p0, Lf/b/b/b/o1/e;->f:I
and-int/lit8 v0, v0, 0x3
if-nez v0, :cond_7
return-void
:cond_7
invoke-direct {p0}, Lf/b/b/b/o1/e;->e()V
return-void
.end method
.method private h()V
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x18
.end annotation
iget-object v0, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
const-string v1, "connectivity"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
invoke-static {v0}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Landroid/net/ConnectivityManager;
new-instance v1, Lf/b/b/b/o1/e$d;
const/4 v2, 0x0
invoke-direct {v1, p0, v2}, Lf/b/b/b/o1/e$d;-><init>(Lf/b/b/b/o1/e;Lf/b/b/b/o1/e$a;)V
iput-object v1, p0, Lf/b/b/b/o1/e;->g:Lf/b/b/b/o1/e$d;
invoke-virtual {v0, v1}, Landroid/net/ConnectivityManager;->registerDefaultNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;)V
return-void
.end method
.method private k()V
.registers 3
.annotation build Landroid/annotation/TargetApi;
value = 0x18
.end annotation
iget-object v0, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
const-string v1, "connectivity"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
iget-object v1, p0, Lf/b/b/b/o1/e;->g:Lf/b/b/b/o1/e$d;
invoke-static {v1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v1, Landroid/net/ConnectivityManager$NetworkCallback;
invoke-virtual {v0, v1}, Landroid/net/ConnectivityManager;->unregisterNetworkCallback(Landroid/net/ConnectivityManager$NetworkCallback;)V
const/4 v0, 0x0
iput-object v0, p0, Lf/b/b/b/o1/e;->g:Lf/b/b/b/o1/e$d;
return-void
.end method
# virtual methods
.method public f()Lf/b/b/b/o1/d;
.registers 2
iget-object v0, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
return-object v0
.end method
.method public i()I
.registers 6
iget-object v0, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
iget-object v1, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
invoke-virtual {v0, v1}, Lf/b/b/b/o1/d;->c(Landroid/content/Context;)I
move-result v0
iput v0, p0, Lf/b/b/b/o1/e;->f:I
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
iget-object v1, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
invoke-virtual {v1}, Lf/b/b/b/o1/d;->j()Z
move-result v1
if-eqz v1, :cond_26
sget v1, Lf/b/b/b/s1/m0;->a:I
const/16 v2, 0x18
if-lt v1, v2, :cond_21
invoke-direct {p0}, Lf/b/b/b/o1/e;->h()V
goto :goto_26
:cond_21
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
:cond_26
:goto_26
iget-object v1, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
invoke-virtual {v1}, Lf/b/b/b/o1/d;->e()Z
move-result v1
if-eqz v1, :cond_38
const-string v1, "android.intent.action.ACTION_POWER_CONNECTED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v1, "android.intent.action.ACTION_POWER_DISCONNECTED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
:cond_38
iget-object v1, p0, Lf/b/b/b/o1/e;->c:Lf/b/b/b/o1/d;
invoke-virtual {v1}, Lf/b/b/b/o1/d;->h()Z
move-result v1
if-eqz v1, :cond_53
sget v1, Lf/b/b/b/s1/m0;->a:I
const/16 v2, 0x17
if-lt v1, v2, :cond_49
const-string v1, "android.os.action.DEVICE_IDLE_MODE_CHANGED"
goto :goto_50
:cond_49
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
const-string v1, "android.intent.action.SCREEN_OFF"
:goto_50
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
:cond_53
new-instance v1, Lf/b/b/b/o1/e$b;
const/4 v2, 0x0
invoke-direct {v1, p0, v2}, Lf/b/b/b/o1/e$b;-><init>(Lf/b/b/b/o1/e;Lf/b/b/b/o1/e$a;)V
iput-object v1, p0, Lf/b/b/b/o1/e;->e:Lf/b/b/b/o1/e$b;
iget-object v3, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
iget-object v4, p0, Lf/b/b/b/o1/e;->d:Landroid/os/Handler;
invoke-virtual {v3, v1, v0, v2, v4}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;)Landroid/content/Intent;
iget v0, p0, Lf/b/b/b/o1/e;->f:I
return v0
.end method
.method public j()V
.registers 3
iget-object v0, p0, Lf/b/b/b/o1/e;->a:Landroid/content/Context;
iget-object v1, p0, Lf/b/b/b/o1/e;->e:Lf/b/b/b/o1/e$b;
invoke-static {v1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v1, Landroid/content/BroadcastReceiver;
invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
const/4 v0, 0x0
iput-object v0, p0, Lf/b/b/b/o1/e;->e:Lf/b/b/b/o1/e$b;
sget v0, Lf/b/b/b/s1/m0;->a:I
const/16 v1, 0x18
if-lt v0, v1, :cond_1c
iget-object v0, p0, Lf/b/b/b/o1/e;->g:Lf/b/b/b/o1/e$d;
if-eqz v0, :cond_1c
invoke-direct {p0}, Lf/b/b/b/o1/e;->k()V
:cond_1c
return-void
.end method