bo$a.smali
.class final Lcom/tendcloud/tenddata/bo$a;
.super Landroid/content/BroadcastReceiver;
.source "td"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tendcloud/tenddata/bo;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "a"
.end annotation
# instance fields
.field private action:Ljava/lang/String;
.field final synthetic this$0:Lcom/tendcloud/tenddata/bo;
# direct methods
.method constructor <init>(Lcom/tendcloud/tenddata/bo;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/tendcloud/tenddata/bo$a;->this$0:Lcom/tendcloud/tenddata/bo;
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
const/4 p1, 0x0
.line 2
iput-object p1, p0, Lcom/tendcloud/tenddata/bo$a;->action:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.registers 3
if-nez p2, :cond_3
return-void
.line 1
:cond_3
:try_start_3
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p1
iput-object p1, p0, Lcom/tendcloud/tenddata/bo$a;->action:Ljava/lang/String;
const-string p1, "android.intent.action.SCREEN_ON"
.line 2
iget-object p2, p0, Lcom/tendcloud/tenddata/bo$a;->action:Ljava/lang/String;
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_20
.line 3
invoke-static {}, Lcom/tendcloud/tenddata/bo;->a()Lcom/tendcloud/tenddata/bo;
move-result-object p1
invoke-static {p1}, Lcom/tendcloud/tenddata/bo;->d(Lcom/tendcloud/tenddata/bo;)Landroid/os/Handler;
move-result-object p1
const/4 p2, 0x1
invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z
goto :goto_52
:cond_20
const-string p1, "android.intent.action.SCREEN_OFF"
.line 4
iget-object p2, p0, Lcom/tendcloud/tenddata/bo$a;->action:Ljava/lang/String;
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_37
.line 5
invoke-static {}, Lcom/tendcloud/tenddata/bo;->a()Lcom/tendcloud/tenddata/bo;
move-result-object p1
invoke-static {p1}, Lcom/tendcloud/tenddata/bo;->d(Lcom/tendcloud/tenddata/bo;)Landroid/os/Handler;
move-result-object p1
const/4 p2, 0x2
invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z
goto :goto_52
:cond_37
const-string p1, "android.intent.action.USER_PRESENT"
.line 6
iget-object p2, p0, Lcom/tendcloud/tenddata/bo$a;->action:Ljava/lang/String;
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_52
.line 7
invoke-static {}, Lcom/tendcloud/tenddata/bo;->a()Lcom/tendcloud/tenddata/bo;
move-result-object p1
invoke-static {p1}, Lcom/tendcloud/tenddata/bo;->d(Lcom/tendcloud/tenddata/bo;)Landroid/os/Handler;
move-result-object p1
const/4 p2, 0x3
invoke-virtual {p1, p2}, Landroid/os/Handler;->sendEmptyMessage(I)Z
:try_end_4d
.catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_4d} :catch_4e
goto :goto_52
:catch_4e
move-exception p1
.line 8
invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V
:cond_52
:goto_52
return-void
.end method