a.smali
.class public final Lcom/tencent/bugly/crashreport/biz/a;
.super Ljava/lang/Object;
.source "BUGLY"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/bugly/crashreport/biz/a$c;,
Lcom/tencent/bugly/crashreport/biz/a$b;,
Lcom/tencent/bugly/crashreport/biz/a$a;
}
.end annotation
# instance fields
.field private a:Landroid/content/Context;
.field private b:J
.field private c:I
.field private d:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
.registers 4
.prologue
.line 45
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 43
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->d:Z
.line 46
iput-object p1, p0, Lcom/tencent/bugly/crashreport/biz/a;->a:Landroid/content/Context;
.line 47
iput-boolean p2, p0, Lcom/tencent/bugly/crashreport/biz/a;->d:Z
.line 48
return-void
.end method
.method private static a(Lcom/tencent/bugly/crashreport/biz/UserInfoBean;)Landroid/content/ContentValues;
.registers 7
.prologue
const/4 v0, 0x0
.line 487
if-nez p0, :cond_4
.line 507
:cond_3
:goto_3
return-object v0
.line 492
:cond_4
:try_start_4
new-instance v1, Landroid/content/ContentValues;
invoke-direct {v1}, Landroid/content/ContentValues;-><init>()V
.line 493
iget-wide v2, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->a:J
const-wide/16 v4, 0x0
cmp-long v2, v2, v4
if-lez v2, :cond_1c
.line 494
const-string v2, "_id"
iget-wide v4, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->a:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
.line 496
:cond_1c
const-string v2, "_tm"
iget-wide v4, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
.line 497
const-string v2, "_ut"
iget-wide v4, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->f:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
.line 498
const-string v2, "_tp"
iget v3, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V
.line 499
const-string v2, "_pc"
iget-object v3, p0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->c:Ljava/lang/String;
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V
.line 500
const-string v2, "_dt"
invoke-static {p0}, Lcom/tencent/bugly/proguard/z;->a(Landroid/os/Parcelable;)[B
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;[B)V
:try_end_4d
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4d} :catch_4f
move-object v0, v1
.line 501
goto :goto_3
.line 502
:catch_4f
move-exception v1
.line 503
invoke-static {v1}, Lcom/tencent/bugly/proguard/x;->a(Ljava/lang/Throwable;)Z
move-result v2
if-nez v2, :cond_3
.line 504
invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_3
.end method
.method private static a(Landroid/database/Cursor;)Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
.registers 6
.prologue
const/4 v1, 0x0
.line 514
if-nez p0, :cond_5
move-object v0, v1
.line 533
:cond_4
:goto_4
return-object v0
.line 518
:cond_5
:try_start_5
const-string v0, "_dt"
invoke-interface {p0, v0}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
move-result v0
invoke-interface {p0, v0}, Landroid/database/Cursor;->getBlob(I)[B
move-result-object v0
.line 519
if-nez v0, :cond_13
move-object v0, v1
.line 520
goto :goto_4
.line 522
:cond_13
const-string v2, "_id"
invoke-interface {p0, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
move-result v2
invoke-interface {p0, v2}, Landroid/database/Cursor;->getLong(I)J
move-result-wide v2
.line 523
sget-object v4, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->CREATOR:Landroid/os/Parcelable$Creator;
invoke-static {v0, v4}, Lcom/tencent/bugly/proguard/z;->a([BLandroid/os/Parcelable$Creator;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
.line 524
if-eqz v0, :cond_4
.line 525
iput-wide v2, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->a:J
:try_end_29
.catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_29} :catch_2a
goto :goto_4
.line 528
:catch_2a
move-exception v0
.line 529
invoke-static {v0}, Lcom/tencent/bugly/proguard/x;->a(Ljava/lang/Throwable;)Z
move-result v2
if-nez v2, :cond_34
.line 530
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
:cond_34
move-object v0, v1
.line 533
goto :goto_4
.end method
.method static synthetic a(Lcom/tencent/bugly/crashreport/biz/a;)V
.registers 1
.prologue
.line 35
invoke-direct {p0}, Lcom/tencent/bugly/crashreport/biz/a;->c()V
return-void
.end method
.method static synthetic a(Lcom/tencent/bugly/crashreport/biz/a;Lcom/tencent/bugly/crashreport/biz/UserInfoBean;Z)V
.registers 10
.prologue
const/4 v6, 0x0
const/4 v5, 0x1
.line 35
if-eqz p1, :cond_31
if-nez p2, :cond_32
iget v0, p1, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
if-eq v0, v5, :cond_32
iget-object v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/tencent/bugly/crashreport/common/info/a;->a(Landroid/content/Context;)Lcom/tencent/bugly/crashreport/common/info/a;
move-result-object v0
iget-object v0, v0, Lcom/tencent/bugly/crashreport/common/info/a;->d:Ljava/lang/String;
invoke-virtual {p0, v0}, Lcom/tencent/bugly/crashreport/biz/a;->a(Ljava/lang/String;)Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_32
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v1
const/16 v2, 0x14
if-lt v1, v2, :cond_32
const-string v1, "[UserInfo] There are too many user info in local: %d"
new-array v2, v5, [Ljava/lang/Object;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v6
invoke-static {v1, v2}, Lcom/tencent/bugly/proguard/x;->a(Ljava/lang/String;[Ljava/lang/Object;)Z
:cond_31
:goto_31
return-void
:cond_32
invoke-static {p1}, Lcom/tencent/bugly/crashreport/biz/a;->a(Lcom/tencent/bugly/crashreport/biz/UserInfoBean;)Landroid/content/ContentValues;
move-result-object v0
invoke-static {}, Lcom/tencent/bugly/proguard/p;->a()Lcom/tencent/bugly/proguard/p;
move-result-object v1
const-string/jumbo v2, "t_ui"
const/4 v3, 0x0
invoke-virtual {v1, v2, v0, v3, v5}, Lcom/tencent/bugly/proguard/p;->a(Ljava/lang/String;Landroid/content/ContentValues;Lcom/tencent/bugly/proguard/o;Z)J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-ltz v2, :cond_31
const-string v2, "[Database] insert %s success with ID: %d"
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Object;
const-string/jumbo v4, "t_ui"
aput-object v4, v3, v6
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v4
aput-object v4, v3, v5
invoke-static {v2, v3}, Lcom/tencent/bugly/proguard/x;->c(Ljava/lang/String;[Ljava/lang/Object;)Z
iput-wide v0, p1, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->a:J
goto :goto_31
.end method
.method private static a(Ljava/util/List;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lcom/tencent/bugly/crashreport/biz/UserInfoBean;",
">;)V"
}
.end annotation
.prologue
const/4 v3, 0x0
.line 458
if-eqz p0, :cond_9
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_a
.line 481
:cond_9
:goto_9
return-void
.line 461
:cond_a
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
move v1, v3
.line 462
:goto_10
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v0
if-ge v1, v0, :cond_35
const/16 v0, 0x32
if-ge v1, v0, :cond_35
.line 463
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
.line 464
const-string v2, " or _id"
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
const-string v5, " = "
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
iget-wide v6, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->a:J
invoke-virtual {v2, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
.line 462
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_10
.line 467
:cond_35
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
.line 468
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_44
.line 469
const/4 v0, 0x4
invoke-virtual {v2, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v2
.line 471
:cond_44
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->setLength(I)V
.line 473
:try_start_47
invoke-static {}, Lcom/tencent/bugly/proguard/p;->a()Lcom/tencent/bugly/proguard/p;
move-result-object v0
const-string/jumbo v1, "t_ui"
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x1
invoke-virtual/range {v0 .. v5}, Lcom/tencent/bugly/proguard/p;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/tencent/bugly/proguard/o;Z)I
move-result v0
.line 475
const-string v1, "[Database] deleted %s data %d"
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
const-string/jumbo v4, "t_ui"
aput-object v4, v2, v3
const/4 v3, 0x1
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v3
invoke-static {v1, v2}, Lcom/tencent/bugly/proguard/x;->c(Ljava/lang/String;[Ljava/lang/Object;)Z
:try_end_6a
.catch Ljava/lang/Throwable; {:try_start_47 .. :try_end_6a} :catch_6b
goto :goto_9
.line 476
:catch_6b
move-exception v0
.line 477
invoke-static {v0}, Lcom/tencent/bugly/proguard/x;->a(Ljava/lang/Throwable;)Z
move-result v1
if-nez v1, :cond_9
.line 478
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
goto :goto_9
.end method
.method static synthetic b(Lcom/tencent/bugly/crashreport/biz/a;)J
.registers 3
.prologue
.line 35
iget-wide v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->b:J
return-wide v0
.end method
.method private declared-synchronized c()V
.registers 15
.prologue
const/4 v7, 0x1
const/4 v6, 0x0
.line 170
monitor-enter p0
:try_start_3
iget-boolean v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->d:Z
:try_end_5
.catchall {:try_start_3 .. :try_end_5} :catchall_102
if-nez v0, :cond_9
.line 323
:cond_7
:goto_7
monitor-exit p0
return-void
.line 174
:cond_9
:try_start_9
invoke-static {}, Lcom/tencent/bugly/proguard/u;->a()Lcom/tencent/bugly/proguard/u;
move-result-object v4
.line 175
if-eqz v4, :cond_7
.line 180
invoke-static {}, Lcom/tencent/bugly/crashreport/common/strategy/a;->a()Lcom/tencent/bugly/crashreport/common/strategy/a;
move-result-object v0
.line 181
if-eqz v0, :cond_7
.line 185
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/common/strategy/a;->b()Z
move-result v0
if-eqz v0, :cond_23
const/16 v0, 0x3e9
invoke-virtual {v4, v0}, Lcom/tencent/bugly/proguard/u;->b(I)Z
move-result v0
if-eqz v0, :cond_7
.line 192
:cond_23
iget-object v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/tencent/bugly/crashreport/common/info/a;->a(Landroid/content/Context;)Lcom/tencent/bugly/crashreport/common/info/a;
move-result-object v0
iget-object v0, v0, Lcom/tencent/bugly/crashreport/common/info/a;->d:Ljava/lang/String;
.line 194
new-instance v5, Ljava/util/ArrayList;
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
.line 197
invoke-virtual {p0, v0}, Lcom/tencent/bugly/crashreport/biz/a;->a(Ljava/lang/String;)Ljava/util/List;
move-result-object v2
.line 199
if-eqz v2, :cond_105
.line 201
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v0
add-int/lit8 v8, v0, -0x14
.line 203
if-lez v8, :cond_89
move v3, v6
.line 205
:goto_3f
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
if-ge v3, v0, :cond_7c
.line 206
add-int/lit8 v0, v3, 0x1
move v1, v0
:goto_4a
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v0
if-ge v1, v0, :cond_78
.line 207
invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
iget-wide v10, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
iget-wide v12, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
cmp-long v0, v10, v12
if-lez v0, :cond_74
.line 209
invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
.line 210
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v9
invoke-interface {v2, v3, v9}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
.line 211
invoke-interface {v2, v1, v0}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
.line 206
:cond_74
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_4a
.line 205
:cond_78
add-int/lit8 v0, v3, 0x1
move v3, v0
goto :goto_3f
:cond_7c
move v0, v6
.line 217
:goto_7d
if-ge v0, v8, :cond_89
.line 218
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
invoke-interface {v5, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 217
add-int/lit8 v0, v0, 0x1
goto :goto_7d
.line 224
:cond_89
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v3
move v1, v6
.line 225
:goto_8e
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_d2
.line 226
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
.line 227
iget-wide v8, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->f:J
const-wide/16 v10, -0x1
cmp-long v8, v8, v10
if-eqz v8, :cond_b2
.line 229
invoke-interface {v3}, Ljava/util/Iterator;->remove()V
.line 232
iget-wide v8, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
invoke-static {}, Lcom/tencent/bugly/proguard/z;->b()J
move-result-wide v10
cmp-long v8, v8, v10
if-gez v8, :cond_b2
.line 233
invoke-interface {v5, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 238
:cond_b2
iget-wide v8, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
const-wide/32 v12, 0x927c0
sub-long/2addr v10, v12
cmp-long v8, v8, v10
if-lez v8, :cond_194
.line 239
iget v8, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
if-eq v8, v7, :cond_ce
iget v8, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
const/4 v9, 0x4
if-eq v8, v9, :cond_ce
iget v0, v0, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
const/4 v8, 0x3
if-ne v0, v8, :cond_194
.line 242
:cond_ce
add-int/lit8 v0, v1, 0x1
:goto_d0
move v1, v0
.line 245
goto :goto_8e
.line 247
:cond_d2
const/16 v0, 0xf
if-le v1, v0, :cond_191
.line 249
const-string v0, "[UserInfo] Upload user info too many times in 10 min: %d"
const/4 v3, 0x1
new-array v3, v3, [Ljava/lang/Object;
const/4 v8, 0x0
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v3, v8
invoke-static {v0, v3}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
move v0, v6
:goto_e6
move-object v1, v2
.line 256
:goto_e7
invoke-interface {v5}, Ljava/util/List;->size()I
move-result v2
if-lez v2, :cond_f0
.line 257
invoke-static {v5}, Lcom/tencent/bugly/crashreport/biz/a;->a(Ljava/util/List;)V
.line 260
:cond_f0
if-eqz v0, :cond_f8
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_10d
.line 261
:cond_f8
const-string v0, "[UserInfo] There is no user info in local database."
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/proguard/x;->c(Ljava/lang/String;[Ljava/lang/Object;)Z
:try_end_100
.catchall {:try_start_9 .. :try_end_100} :catchall_102
goto/16 :goto_7
.line 170
:catchall_102
move-exception v0
monitor-exit p0
throw v0
.line 252
:cond_105
:try_start_105
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
move-object v1, v0
move v0, v7
goto :goto_e7
.line 266
:cond_10d
const-string v0, "[UserInfo] Upload user info(size: %d)"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v5
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
aput-object v5, v2, v3
invoke-static {v0, v2}, Lcom/tencent/bugly/proguard/x;->c(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 269
iget v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->c:I
if-ne v0, v7, :cond_135
move v0, v7
.line 271
:goto_125
invoke-static {v1, v0}, Lcom/tencent/bugly/proguard/a;->a(Ljava/util/List;I)Lcom/tencent/bugly/proguard/au;
move-result-object v0
.line 272
if-nez v0, :cond_137
.line 273
const-string v0, "[UserInfo] Failed to create UserInfoPackage."
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
goto/16 :goto_7
.line 269
:cond_135
const/4 v0, 0x2
goto :goto_125
.line 277
:cond_137
invoke-static {v0}, Lcom/tencent/bugly/proguard/a;->a(Lcom/tencent/bugly/proguard/k;)[B
move-result-object v2
.line 278
if-nez v2, :cond_147
.line 279
const-string v0, "[UserInfo] Failed to encode data."
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
goto/16 :goto_7
.line 283
:cond_147
iget-boolean v0, v4, Lcom/tencent/bugly/proguard/u;->a:Z
if-eqz v0, :cond_15f
const/16 v0, 0x348
.line 286
:goto_14d
iget-object v3, p0, Lcom/tencent/bugly/crashreport/biz/a;->a:Landroid/content/Context;
invoke-static {v3, v0, v2}, Lcom/tencent/bugly/proguard/a;->a(Landroid/content/Context;I[B)Lcom/tencent/bugly/proguard/ap;
move-result-object v2
.line 288
if-nez v2, :cond_162
.line 289
const-string v0, "[UserInfo] Request package is null."
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
goto/16 :goto_7
.line 283
:cond_15f
const/16 v0, 0x280
goto :goto_14d
.line 296
:cond_162
new-instance v5, Lcom/tencent/bugly/crashreport/biz/a$1;
invoke-direct {v5, p0, v1}, Lcom/tencent/bugly/crashreport/biz/a$1;-><init>(Lcom/tencent/bugly/crashreport/biz/a;Ljava/util/List;)V
.line 316
invoke-static {}, Lcom/tencent/bugly/crashreport/common/strategy/a;->a()Lcom/tencent/bugly/crashreport/common/strategy/a;
move-result-object v0
invoke-virtual {v0}, Lcom/tencent/bugly/crashreport/common/strategy/a;->c()Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;
move-result-object v0
.line 317
iget-boolean v1, v4, Lcom/tencent/bugly/proguard/u;->a:Z
if-eqz v1, :cond_18b
iget-object v3, v0, Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;->r:Ljava/lang/String;
.line 318
:goto_175
iget-boolean v0, v4, Lcom/tencent/bugly/proguard/u;->a:Z
if-eqz v0, :cond_18e
sget-object v4, Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;->b:Ljava/lang/String;
.line 321
:goto_17b
invoke-static {}, Lcom/tencent/bugly/proguard/u;->a()Lcom/tencent/bugly/proguard/u;
move-result-object v0
const/16 v1, 0x3e9
iget v8, p0, Lcom/tencent/bugly/crashreport/biz/a;->c:I
if-ne v8, v7, :cond_186
move v6, v7
:cond_186
invoke-virtual/range {v0 .. v6}, Lcom/tencent/bugly/proguard/u;->a(ILcom/tencent/bugly/proguard/ap;Ljava/lang/String;Ljava/lang/String;Lcom/tencent/bugly/proguard/t;Z)V
goto/16 :goto_7
.line 317
:cond_18b
iget-object v3, v0, Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;->t:Ljava/lang/String;
goto :goto_175
.line 318
:cond_18e
sget-object v4, Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;->a:Ljava/lang/String;
:try_end_190
.catchall {:try_start_105 .. :try_end_190} :catchall_102
goto :goto_17b
:cond_191
move v0, v7
goto/16 :goto_e6
:cond_194
move v0, v1
goto/16 :goto_d0
.end method
# virtual methods
.method public final a(Ljava/lang/String;)Ljava/util/List;
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List",
"<",
"Lcom/tencent/bugly/crashreport/biz/UserInfoBean;",
">;"
}
.end annotation
.prologue
const/4 v7, 0x0
.line 406
.line 408
:try_start_1
invoke-static {p1}, Lcom/tencent/bugly/proguard/z;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_20
move-object v3, v7
.line 410
:goto_8
invoke-static {}, Lcom/tencent/bugly/proguard/p;->a()Lcom/tencent/bugly/proguard/p;
move-result-object v0
const-string/jumbo v1, "t_ui"
const/4 v2, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x1
invoke-virtual/range {v0 .. v6}, Lcom/tencent/bugly/proguard/p;->a(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/tencent/bugly/proguard/o;Z)Landroid/database/Cursor;
:try_end_16
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_16} :catch_cd
.catchall {:try_start_1 .. :try_end_16} :catchall_c7
move-result-object v8
.line 412
if-nez v8, :cond_36
.line 413
if-eqz v8, :cond_1e
.line 448
invoke-interface {v8}, Landroid/database/Cursor;->close()V
:cond_1e
move-object v0, v7
.line 451
:goto_1f
return-object v0
.line 408
:cond_20
:try_start_20
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "_pc = \'"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\'"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_34
.catch Ljava/lang/Throwable; {:try_start_20 .. :try_end_34} :catch_cd
.catchall {:try_start_20 .. :try_end_34} :catchall_c7
move-result-object v3
goto :goto_8
.line 415
:cond_36
:try_start_36
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 416
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
.line 417
:goto_40
invoke-interface {v8}, Landroid/database/Cursor;->moveToNext()Z
move-result v1
if-eqz v1, :cond_8d
.line 418
invoke-static {v8}, Lcom/tencent/bugly/crashreport/biz/a;->a(Landroid/database/Cursor;)Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
move-result-object v1
.line 419
if-eqz v1, :cond_62
.line 420
invoke-interface {v6, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_4f
.catch Ljava/lang/Throwable; {:try_start_36 .. :try_end_4f} :catch_50
.catchall {:try_start_36 .. :try_end_4f} :catchall_86
goto :goto_40
.line 442
:catch_50
move-exception v0
move-object v1, v8
.line 443
:goto_52
:try_start_52
invoke-static {v0}, Lcom/tencent/bugly/proguard/x;->a(Ljava/lang/Throwable;)Z
move-result v2
if-nez v2, :cond_5b
.line 444
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
:try_end_5b
.catchall {:try_start_52 .. :try_end_5b} :catchall_ca
.line 447
:cond_5b
if-eqz v1, :cond_60
.line 448
invoke-interface {v1}, Landroid/database/Cursor;->close()V
:cond_60
move-object v0, v7
.line 451
goto :goto_1f
.line 424
:cond_62
:try_start_62
const-string v1, "_id"
invoke-interface {v8, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
move-result v1
invoke-interface {v8, v1}, Landroid/database/Cursor;->getLong(I)J
move-result-wide v2
.line 425
const-string v1, " or _id"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v4, " = "
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
:try_end_7b
.catch Ljava/lang/Throwable; {:try_start_62 .. :try_end_7b} :catch_7c
.catchall {:try_start_62 .. :try_end_7b} :catchall_86
goto :goto_40
.line 427
:catch_7c
move-exception v1
:try_start_7d
const-string v1, "[Database] unknown id."
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v1, v2}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
:try_end_85
.catch Ljava/lang/Throwable; {:try_start_7d .. :try_end_85} :catch_50
.catchall {:try_start_7d .. :try_end_85} :catchall_86
goto :goto_40
.line 447
:catchall_86
move-exception v0
:goto_87
if-eqz v8, :cond_8c
.line 448
invoke-interface {v8}, Landroid/database/Cursor;->close()V
:cond_8c
throw v0
.line 433
:cond_8d
:try_start_8d
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 434
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v1
if-lez v1, :cond_bf
.line 435
const/4 v1, 0x4
invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v2
.line 436
invoke-static {}, Lcom/tencent/bugly/proguard/p;->a()Lcom/tencent/bugly/proguard/p;
move-result-object v0
const-string/jumbo v1, "t_ui"
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x1
invoke-virtual/range {v0 .. v5}, Lcom/tencent/bugly/proguard/p;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/tencent/bugly/proguard/o;Z)I
move-result v0
.line 438
const-string v1, "[Database] deleted %s error data %d"
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
const-string/jumbo v4, "t_ui"
aput-object v4, v2, v3
const/4 v3, 0x1
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v3
invoke-static {v1, v2}, Lcom/tencent/bugly/proguard/x;->d(Ljava/lang/String;[Ljava/lang/Object;)Z
:try_end_bf
.catch Ljava/lang/Throwable; {:try_start_8d .. :try_end_bf} :catch_50
.catchall {:try_start_8d .. :try_end_bf} :catchall_86
.line 447
:cond_bf
if-eqz v8, :cond_c4
.line 448
invoke-interface {v8}, Landroid/database/Cursor;->close()V
:cond_c4
move-object v0, v6
goto/16 :goto_1f
.line 447
:catchall_c7
move-exception v0
move-object v8, v7
goto :goto_87
:catchall_ca
move-exception v0
move-object v8, v1
goto :goto_87
.line 442
:catch_cd
move-exception v0
move-object v1, v7
goto :goto_52
.end method
.method public final a()V
.registers 7
.prologue
.line 117
invoke-static {}, Lcom/tencent/bugly/proguard/z;->b()J
move-result-wide v0
const-wide/32 v2, 0x5265c00
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/tencent/bugly/crashreport/biz/a;->b:J
.line 118
invoke-static {}, Lcom/tencent/bugly/proguard/w;->a()Lcom/tencent/bugly/proguard/w;
move-result-object v0
new-instance v1, Lcom/tencent/bugly/crashreport/biz/a$b;
invoke-direct {v1, p0}, Lcom/tencent/bugly/crashreport/biz/a$b;-><init>(Lcom/tencent/bugly/crashreport/biz/a;)V
iget-wide v2, p0, Lcom/tencent/bugly/crashreport/biz/a;->b:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
sub-long/2addr v2, v4
const-wide/16 v4, 0x1388
add-long/2addr v2, v4
invoke-virtual {v0, v1, v2, v3}, Lcom/tencent/bugly/proguard/w;->a(Ljava/lang/Runnable;J)Z
.line 120
return-void
.end method
.method public final a(IZJ)V
.registers 11
.prologue
const/4 v3, 0x3
const/4 v1, 0x0
const/4 v0, 0x1
.line 84
invoke-static {}, Lcom/tencent/bugly/crashreport/common/strategy/a;->a()Lcom/tencent/bugly/crashreport/common/strategy/a;
move-result-object v2
.line 89
if-eqz v2, :cond_1d
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/strategy/a;->c()Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;
move-result-object v2
iget-boolean v2, v2, Lcom/tencent/bugly/crashreport/common/strategy/StrategyBean;->h:Z
if-nez v2, :cond_1d
.line 90
if-eq p1, v0, :cond_1d
if-eq p1, v3, :cond_1d
.line 91
const-string v0, "UserInfo is disable"
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/tencent/bugly/proguard/x;->e(Ljava/lang/String;[Ljava/lang/Object;)Z
.line 102
:goto_1c
return-void
.line 95
:cond_1d
if-eq p1, v0, :cond_21
if-ne p1, v3, :cond_27
.line 96
:cond_21
iget v2, p0, Lcom/tencent/bugly/crashreport/biz/a;->c:I
add-int/lit8 v2, v2, 0x1
iput v2, p0, Lcom/tencent/bugly/crashreport/biz/a;->c:I
.line 99
:cond_27
iget-object v2, p0, Lcom/tencent/bugly/crashreport/biz/a;->a:Landroid/content/Context;
invoke-static {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->a(Landroid/content/Context;)Lcom/tencent/bugly/crashreport/common/info/a;
move-result-object v2
new-instance v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;
invoke-direct {v3}, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;-><init>()V
iput p1, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->b:I
iget-object v4, v2, Lcom/tencent/bugly/crashreport/common/info/a;->d:Ljava/lang/String;
iput-object v4, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->c:Ljava/lang/String;
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->g()Ljava/lang/String;
move-result-object v4
iput-object v4, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->d:Ljava/lang/String;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
iput-wide v4, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->e:J
const-wide/16 v4, -0x1
iput-wide v4, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->f:J
iget-object v4, v2, Lcom/tencent/bugly/crashreport/common/info/a;->k:Ljava/lang/String;
iput-object v4, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->n:Ljava/lang/String;
if-ne p1, v0, :cond_91
:goto_4e
iput v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->o:I
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->a()Z
move-result v0
iput-boolean v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->l:Z
iget-object v0, v2, Lcom/tencent/bugly/crashreport/common/info/a;->q:Ljava/lang/String;
iput-object v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->m:Ljava/lang/String;
iget-wide v0, v2, Lcom/tencent/bugly/crashreport/common/info/a;->r:J
iput-wide v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->g:J
iget-wide v0, v2, Lcom/tencent/bugly/crashreport/common/info/a;->s:J
iput-wide v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->h:J
iget-wide v0, v2, Lcom/tencent/bugly/crashreport/common/info/a;->t:J
iput-wide v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->i:J
iget-wide v0, v2, Lcom/tencent/bugly/crashreport/common/info/a;->u:J
iput-wide v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->k:J
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->B()Ljava/util/Map;
move-result-object v0
iput-object v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->r:Ljava/util/Map;
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->G()Ljava/util/Map;
move-result-object v0
iput-object v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->s:Ljava/util/Map;
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->H()I
move-result v0
iput v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->p:I
invoke-virtual {v2}, Lcom/tencent/bugly/crashreport/common/info/a;->I()I
move-result v0
iput v0, v3, Lcom/tencent/bugly/crashreport/biz/UserInfoBean;->q:I
.line 100
invoke-static {}, Lcom/tencent/bugly/proguard/w;->a()Lcom/tencent/bugly/proguard/w;
move-result-object v0
new-instance v1, Lcom/tencent/bugly/crashreport/biz/a$a;
invoke-direct {v1, p0, v3, p2}, Lcom/tencent/bugly/crashreport/biz/a$a;-><init>(Lcom/tencent/bugly/crashreport/biz/a;Lcom/tencent/bugly/crashreport/biz/UserInfoBean;Z)V
const-wide/16 v2, 0x0
invoke-virtual {v0, v1, v2, v3}, Lcom/tencent/bugly/proguard/w;->a(Ljava/lang/Runnable;J)Z
goto :goto_1c
:cond_91
move v0, v1
.line 99
goto :goto_4e
.end method
.method public final b()V
.registers 3
.prologue
.line 329
invoke-static {}, Lcom/tencent/bugly/proguard/w;->a()Lcom/tencent/bugly/proguard/w;
move-result-object v0
.line 330
if-eqz v0, :cond_e
.line 331
new-instance v1, Lcom/tencent/bugly/crashreport/biz/a$2;
invoke-direct {v1, p0}, Lcom/tencent/bugly/crashreport/biz/a$2;-><init>(Lcom/tencent/bugly/crashreport/biz/a;)V
invoke-virtual {v0, v1}, Lcom/tencent/bugly/proguard/w;->a(Ljava/lang/Runnable;)Z
.line 342
:cond_e
return-void
.end method