103 lines
2.4 KiB
Smali
103 lines
2.4 KiB
Smali
.class public final Lcom/google/android/gms/internal/ads/zzem;
|
|
.super Landroid/content/BroadcastReceiver;
|
|
.source "com.google.android.gms:play-services-ads@@19.1.0"
|
|
|
|
|
|
# instance fields
|
|
.field private zzyg:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 2
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lcom/google/android/gms/internal/ads/zzem;->zzyg:Z
|
|
|
|
.line 3
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
|
|
|
|
const-string v1, "android.intent.action.USER_PRESENT"
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
|
|
|
|
const-string v1, "android.intent.action.SCREEN_OFF"
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "android.intent.action.USER_PRESENT"
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/zzem;->zzyg:Z
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "android.intent.action.SCREEN_OFF"
|
|
|
|
invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/zzem;->zzyg:Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final zzcg()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/zzem;->zzyg:Z
|
|
|
|
return v0
|
|
.end method
|