94 lines
2.7 KiB
Smali
94 lines
2.7 KiB
Smali
.class final Lcom/crashlytics/android/core/y;
|
|
.super Ljava/lang/Object;
|
|
.source "DevicePowerStateListener.java"
|
|
|
|
|
|
# static fields
|
|
.field static final rh:Landroid/content/IntentFilter;
|
|
|
|
.field static final ri:Landroid/content/IntentFilter;
|
|
|
|
.field static final rj:Landroid/content/IntentFilter;
|
|
|
|
|
|
# instance fields
|
|
.field final context:Landroid/content/Context;
|
|
|
|
.field final rk:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field final rl:Landroid/content/BroadcastReceiver;
|
|
|
|
.field final rm:Landroid/content/BroadcastReceiver;
|
|
|
|
.field rn:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.BATTERY_CHANGED"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lcom/crashlytics/android/core/y;->rh:Landroid/content/IntentFilter;
|
|
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.ACTION_POWER_CONNECTED"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lcom/crashlytics/android/core/y;->ri:Landroid/content/IntentFilter;
|
|
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.ACTION_POWER_DISCONNECTED"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lcom/crashlytics/android/core/y;->rj:Landroid/content/IntentFilter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/y;->context:Landroid/content/Context;
|
|
|
|
new-instance p1, Lcom/crashlytics/android/core/y$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/crashlytics/android/core/y$1;-><init>(Lcom/crashlytics/android/core/y;)V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/y;->rm:Landroid/content/BroadcastReceiver;
|
|
|
|
new-instance p1, Lcom/crashlytics/android/core/y$2;
|
|
|
|
invoke-direct {p1, p0}, Lcom/crashlytics/android/core/y$2;-><init>(Lcom/crashlytics/android/core/y;)V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/y;->rl:Landroid/content/BroadcastReceiver;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/y;->rk:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/crashlytics/android/core/y;Z)Z
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/crashlytics/android/core/y;->rn:Z
|
|
|
|
return p1
|
|
.end method
|