cfb.smali
.class public Ldxoptimizer/cfb;
.super Ljava/lang/Object;
.source "SysManagerUtils.java"
# direct methods
.method public static a(Landroid/content/Context;)Landroid/content/pm/PackageManager;
.registers 2
.prologue
.line 70
.line 72
:try_start_0
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
:try_end_3
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3} :catch_5
move-result-object v0
.line 80
:goto_4
return-object v0
.line 76
:catch_5
move-exception v0
.line 78
const/4 v0, 0x0
goto :goto_4
.end method
.method public static a(Landroid/app/ActivityManager;)Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/app/ActivityManager;",
")",
"Ljava/util/List",
"<",
"Landroid/app/ActivityManager$RunningAppProcessInfo;",
">;"
}
.end annotation
.prologue
.line 36
const/4 v0, 0x0
.line 38
if-eqz p0, :cond_7
.line 39
:try_start_3
invoke-virtual {p0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;
:try_end_6
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_6} :catch_f
move-result-object v0
.line 45
:cond_7
:goto_7
if-nez v0, :cond_e
.line 46
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 48
:cond_e
return-object v0
.line 41
:catch_f
move-exception v1
goto :goto_7
.end method
.method public static a(Landroid/app/ActivityManager;I)Ljava/util/List;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/app/ActivityManager;",
"I)",
"Ljava/util/List",
"<",
"Landroid/app/ActivityManager$RunningServiceInfo;",
">;"
}
.end annotation
.prologue
.line 18
const/4 v0, 0x0
.line 20
if-eqz p0, :cond_7
.line 21
:try_start_3
invoke-virtual {p0, p1}, Landroid/app/ActivityManager;->getRunningServices(I)Ljava/util/List;
:try_end_6
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_6} :catch_f
move-result-object v0
.line 27
:cond_7
:goto_7
if-nez v0, :cond_e
.line 28
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 30
:cond_e
return-object v0
.line 23
:catch_f
move-exception v1
goto :goto_7
.end method
.method public static a(Landroid/content/pm/PackageManager;I)Ljava/util/List;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/pm/PackageManager;",
"I)",
"Ljava/util/List",
"<",
"Landroid/content/pm/PackageInfo;",
">;"
}
.end annotation
.prologue
.line 53
const/4 v0, 0x0
.line 55
if-eqz p0, :cond_7
.line 56
:try_start_3
invoke-virtual {p0, p1}, Landroid/content/pm/PackageManager;->getInstalledPackages(I)Ljava/util/List;
:try_end_6
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_6} :catch_f
move-result-object v0
.line 62
:cond_7
:goto_7
if-nez v0, :cond_e
.line 63
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 65
:cond_e
return-object v0
.line 58
:catch_f
move-exception v1
goto :goto_7
.end method
.method public static b(Landroid/content/Context;)Landroid/app/ActivityManager;
.registers 3
.prologue
.line 85
const/4 v1, 0x0
.line 87
:try_start_1
const-string v0, "activity"
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/ActivityManager;
:try_end_9
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_9} :catch_a
.line 91
:goto_9
return-object v0
.line 88
:catch_a
move-exception v0
move-object v0, v1
goto :goto_9
.end method