今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

429 lines
8.7 KiB

.class public Lcom/tencent/bugly/b;
.super Lcom/tencent/bugly/c;
.source "BUGLY"
# static fields
.field private static f:I
.field private static g:Z
.field private static h:Lcom/tencent/bugly/b;
# instance fields
.field private d:J
.field private e:Lcom/tencent/bugly/a$a;
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
const/4 v0, 0x0
.line 27
sput v0, Lcom/tencent/bugly/b;->f:I
.line 28
sput-boolean v0, Lcom/tencent/bugly/b;->g:Z
.line 30
new-instance v0, Lcom/tencent/bugly/b;
invoke-direct {v0}, Lcom/tencent/bugly/b;-><init>()V
sput-object v0, Lcom/tencent/bugly/b;->h:Lcom/tencent/bugly/b;
return-void
.end method
.method public constructor <init>()V
.locals 0
.prologue
.line 22
invoke-direct {p0}, Lcom/tencent/bugly/c;-><init>()V
return-void
.end method
.method public static a()Lcom/tencent/bugly/b;
.locals 2
.prologue
.line 33
sget-object v0, Lcom/tencent/bugly/b;->h:Lcom/tencent/bugly/b;
const/16 v1, 0x3ec
iput v1, v0, Lcom/tencent/bugly/b;->a:I
.line 34
sget-object v0, Lcom/tencent/bugly/b;->h:Lcom/tencent/bugly/b;
return-object v0
.end method
.method private declared-synchronized a(Landroid/content/Context;Lcom/tencent/bugly/a;)V
.locals 6
.prologue
.line 86
monitor-enter p0
if-nez p2, :cond_1
.line 105
:cond_0
:goto_0
monitor-exit p0
return-void
.line 90
:cond_1
:try_start_0
invoke-virtual {p2}, Lcom/tencent/bugly/a;->j()Ljava/lang/String;
move-result-object v0
.line 91
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_2
.line 92
invoke-static {p1}, Lcom/tencent/bugly/crashreport/common/info/b;->a(Landroid/content/Context;)Lcom/tencent/bugly/crashreport/common/info/b;
move-result-object v1
iput-object v0, v1, Lcom/tencent/bugly/crashreport/common/info/b;->m:Ljava/lang/String;
.line 93
const-string v1, "setted libBugly.so file path :%s"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object v0, v2, v3
invoke-static {v1, v2}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 96
:cond_2
invoke-virtual {p2}, Lcom/tencent/bugly/a;->o()Lcom/tencent/bugly/a$a;
move-result-object v0
if-eqz v0, :cond_3
.line 97
invoke-virtual {p2}, Lcom/tencent/bugly/a;->o()Lcom/tencent/bugly/a$a;
move-result-object v0
iput-object v0, p0, Lcom/tencent/bugly/b;->e:Lcom/tencent/bugly/a$a;
.line 98
const-string v0, "setted CrashHanldeCallback"
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 101
:cond_3
invoke-virtual {p2}, Lcom/tencent/bugly/a;->i()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_0
.line 102
invoke-virtual {p2}, Lcom/tencent/bugly/a;->i()J
move-result-wide v0
iput-wide v0, p0, Lcom/tencent/bugly/b;->d:J
.line 103
const-string v0, "setted delay: %d"
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget-wide v4, p0, Lcom/tencent/bugly/b;->d:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v1, v2
invoke-static {v0, v1}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
.line 86
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
# virtual methods
.method public declared-synchronized a(Landroid/content/Context;ZLcom/tencent/bugly/a;)V
.locals 6
.prologue
.line 48
monitor-enter p0
if-eqz p1, :cond_0
:try_start_0
sget-boolean v0, Lcom/tencent/bugly/b;->g:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
.line 83
:cond_0
:goto_0
monitor-exit p0
return-void
.line 51
:cond_1
:try_start_1
const-string v0, "Initializing crash module."
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 52
invoke-static {}, Lcom/tencent/bugly/a/ad;->a()Lcom/tencent/bugly/a/ad;
move-result-object v0
const/16 v1, 0x3ec
sget v2, Lcom/tencent/bugly/b;->f:I
add-int/lit8 v2, v2, 0x1
sput v2, Lcom/tencent/bugly/b;->f:I
invoke-virtual {v0, v1, v2}, Lcom/tencent/bugly/a/ad;->a(II)V
.line 53
const/4 v0, 0x1
sput-boolean v0, Lcom/tencent/bugly/b;->g:Z
.line 54
invoke-static {p1}, Lcom/tencent/bugly/crashreport/a;->a(Landroid/content/Context;)V
.line 55
invoke-direct {p0, p1, p3}, Lcom/tencent/bugly/b;->a(Landroid/content/Context;Lcom/tencent/bugly/a;)V
.line 56
const/16 v0, 0x3ec
iget-object v3, p0, Lcom/tencent/bugly/b;->e:Lcom/tencent/bugly/a$a;
const/4 v4, 0x0
const/4 v5, 0x0
move-object v1, p1
move v2, p2
invoke-static/range {v0 .. v5}, Lcom/tencent/bugly/crashreport/crash/d;->a(ILandroid/content/Context;ZLcom/tencent/bugly/a$a;Lcom/tencent/bugly/a/ae;Ljava/lang/String;)V
.line 57
invoke-static {}, Lcom/tencent/bugly/crashreport/crash/d;->a()Lcom/tencent/bugly/crashreport/crash/d;
move-result-object v0
.line 59
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/crash/d;->b()V
.line 61
if-eqz p3, :cond_2
invoke-virtual {p3}, Lcom/tencent/bugly/a;->l()Z
move-result v1
if-eqz v1, :cond_4
.line 62
:cond_2
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/crash/d;->d()V
.line 67
:goto_1
if-eqz p3, :cond_3
invoke-virtual {p3}, Lcom/tencent/bugly/a;->n()Z
move-result v1
if-eqz v1, :cond_5
.line 68
:cond_3
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/crash/d;->e()V
.line 75
:goto_2
invoke-static {p1}, Lcom/tencent/bugly/crashreport/crash/e;->a(Landroid/content/Context;)Lcom/tencent/bugly/crashreport/crash/e;
.line 78
invoke-static {}, Lcom/tencent/bugly/crashreport/crash/a;->a()Lcom/tencent/bugly/crashreport/crash/a;
move-result-object v0
.line 79
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-virtual {v0, v1}, Lcom/tencent/bugly/crashreport/crash/a;->a(Ljava/lang/String;)V
.line 80
invoke-virtual {v0, p1}, Lcom/tencent/bugly/crashreport/crash/a;->a(Landroid/content/Context;)V
.line 82
invoke-static {}, Lcom/tencent/bugly/a/ad;->a()Lcom/tencent/bugly/a/ad;
move-result-object v0
const/16 v1, 0x3ec
sget v2, Lcom/tencent/bugly/b;->f:I
add-int/lit8 v2, v2, -0x1
sput v2, Lcom/tencent/bugly/b;->f:I
invoke-virtual {v0, v1, v2}, Lcom/tencent/bugly/a/ad;->a(II)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
.line 48
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.line 64
:cond_4
:try_start_2
const-string v1, "[crash] Closed native crash monitor!"
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v1, v2}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 65
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/crash/d;->c()V
goto :goto_1
.line 70
:cond_5
const-string v1, "[crash] Closed ANR monitor!"
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v1, v2}, Lcom/tencent/bugly/a/an;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 71
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/crash/d;->f()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_2
.end method
.method public a(Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;)V
.locals 1
.prologue
.line 109
if-nez p1, :cond_1
.line 116
:cond_0
:goto_0
return-void
.line 112
:cond_1
invoke-static {}, Lcom/tencent/bugly/crashreport/crash/d;->a()Lcom/tencent/bugly/crashreport/crash/d;
move-result-object v0
.line 113
if-eqz v0, :cond_0
.line 114
invoke-virtual {v0, p1}, Lcom/tencent/bugly/crashreport/crash/d;->a(Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;)V
goto :goto_0
.end method
.method public b()[Ljava/lang/String;
.locals 3
.prologue
.line 122
const/4 v0, 0x1
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "t_cr"
aput-object v2, v0, v1
return-object v0
.end method