d.smali

.class public final Lcom/live/share64/proto/b/d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Llive/sg/bigo/svcapi/f;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/live/share64/proto/b/h;

.field private final c:Lcom/live/share64/proto/b/a;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/live/share64/proto/b/h;)V
    .registers 3

    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 28
    iput-object p1, p0, Lcom/live/share64/proto/b/d;->a:Landroid/content/Context;

    .line 29
    iput-object p2, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 30
    new-instance p1, Lcom/live/share64/proto/b/a;

    invoke-direct {p1}, Lcom/live/share64/proto/b/a;-><init>()V

    iput-object p1, p0, Lcom/live/share64/proto/b/d;->c:Lcom/live/share64/proto/b/a;

    return-void
.end method


# virtual methods
.method public final a()J
    .registers 3

    .line 45
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    invoke-virtual {v0}, Lcom/live/share64/proto/b/h;->a()J

    move-result-wide v0

    return-wide v0
.end method

.method public final a(I)V
    .registers 3

    .line 40
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 1301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 40
    iput p1, v0, Lcom/live/share64/proto/b/f;->i:I

    return-void
.end method

.method public final a(IJ)V
    .registers 5

    .line 206
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 15301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 206
    iput p1, v0, Lcom/live/share64/proto/b/f;->m:I

    .line 207
    iget-object p1, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 16301
    iget-object p1, p1, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 207
    iput-wide p2, p1, Lcom/live/share64/proto/b/f;->n:J

    return-void
.end method

.method public final a(J)V
    .registers 6

    .line 55
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 2301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 55
    iput-wide p1, v0, Lcom/live/share64/proto/b/f;->b:J

    .line 57
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->a:Landroid/content/Context;

    const-string v1, "pref_config_wrapper"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "pref_key_uid"

    invoke-interface {v0, v1, p1, p2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .registers 3

    .line 137
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 10301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 137
    iput-object p1, v0, Lcom/live/share64/proto/b/f;->d:Ljava/lang/String;

    return-void
.end method

.method public final a(Z)V
    .registers 4

    .line 256
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 23357
    iget-object v1, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iget-boolean v1, v1, Lcom/live/share64/proto/b/f;->o:Z

    if-eq v1, p1, :cond_11

    .line 23358
    iget-object v1, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iput-boolean p1, v1, Lcom/live/share64/proto/b/f;->o:Z

    .line 23359
    iget-object p1, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    invoke-virtual {p1}, Lcom/live/share64/proto/b/f;->a()V

    :cond_11
    return-void
.end method

.method public final a([B)V
    .registers 4

    .line 94
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 5301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 94
    iput-object p1, v0, Lcom/live/share64/proto/b/f;->f:[B

    .line 6107
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    invoke-virtual {v0}, Lcom/live/share64/proto/b/h;->d()Z

    move-result v0

    .line 95
    invoke-static {v0}, Lcom/live/share64/utils/b/a;->a(Z)V

    .line 96
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "ConfigWrapper.setCookie:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-nez p1, :cond_1b

    const-string p1, "null"

    goto :goto_20

    :cond_1b
    array-length p1, p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    :goto_20
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "yysdk-cookie"

    invoke-static {v0, p1}, Lsg/bigo/log/TraceLog;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public final b(I)V
    .registers 3

    .line 186
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 12301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 186
    iput p1, v0, Lcom/live/share64/proto/b/f;->j:I

    return-void
.end method

.method public final b(J)V
    .registers 6

    .line 62
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 3301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 62
    iput-wide p1, v0, Lcom/live/share64/proto/b/f;->c:J

    .line 64
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->a:Landroid/content/Context;

    const-string v1, "pref_config_wrapper"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "pref_key_uid"

    invoke-interface {v0, v1, p1, p2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    return-void
.end method

.method public final b([B)V
    .registers 3

    .line 101
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 6301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 101
    iput-object p1, v0, Lcom/live/share64/proto/b/f;->g:[B

    .line 7107
    iget-object p1, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    invoke-virtual {p1}, Lcom/live/share64/proto/b/h;->d()Z

    move-result p1

    .line 102
    invoke-static {p1}, Lcom/live/share64/utils/b/a;->a(Z)V

    return-void
.end method

.method public final b()[B
    .registers 2

    .line 89
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    invoke-virtual {v0}, Lcom/live/share64/proto/b/h;->b()[B

    move-result-object v0

    return-object v0
.end method

.method public final c(I)V
    .registers 3

    .line 196
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 13301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 196
    iput p1, v0, Lcom/live/share64/proto/b/f;->h:I

    return-void
.end method

.method public final c(J)V
    .registers 4

    .line 74
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 4301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 74
    iput-wide p1, v0, Lcom/live/share64/proto/b/f;->k:J

    return-void
.end method

.method public final c([B)V
    .registers 3

    .line 127
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 9301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 127
    iput-object p1, v0, Lcom/live/share64/proto/b/f;->p:[B

    return-void
.end method

.method public final c()Z
    .registers 2

    .line 107
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    invoke-virtual {v0}, Lcom/live/share64/proto/b/h;->d()Z

    move-result v0

    return v0
.end method

.method public final d()V
    .registers 3

    .line 112
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 7301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    const/4 v1, 0x0

    .line 112
    iput-boolean v1, v0, Lcom/live/share64/proto/b/f;->q:Z

    return-void
.end method

.method public final e()Z
    .registers 2

    .line 117
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 8301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 117
    iget-boolean v0, v0, Lcom/live/share64/proto/b/f;->q:Z

    return v0
.end method

.method public final f()Ljava/lang/String;
    .registers 2

    .line 132
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 10188
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iget-object v0, v0, Lcom/live/share64/proto/b/f;->d:Ljava/lang/String;

    return-object v0
.end method

.method public final g()Ljava/lang/String;
    .registers 2

    .line 171
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 11269
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->b:Landroid/content/Context;

    invoke-static {v0}, Llive/sg/bigo/sdk/network/j/b;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final h()I
    .registers 2

    .line 181
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 12264
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iget v0, v0, Lcom/live/share64/proto/b/f;->j:I

    return v0
.end method

.method public final i()I
    .registers 2

    .line 191
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 13274
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iget v0, v0, Lcom/live/share64/proto/b/f;->h:I

    return v0
.end method

.method public final j()I
    .registers 2

    .line 201
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 14301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 201
    iget v0, v0, Lcom/live/share64/proto/b/f;->m:I

    return v0
.end method

.method public final k()J
    .registers 6

    .line 212
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 17301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 212
    iget v0, v0, Lcom/live/share64/proto/b/f;->h:I

    if-lez v0, :cond_2c

    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 18301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 212
    iget-wide v0, v0, Lcom/live/share64/proto/b/f;->n:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_2c

    .line 213
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 19301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 213
    iget v0, v0, Lcom/live/share64/proto/b/f;->h:I

    int-to-long v0, v0

    const-wide/16 v2, 0x3e8

    mul-long v0, v0, v2

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    add-long/2addr v0, v2

    iget-object v2, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 20301
    iget-object v2, v2, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 213
    iget-wide v2, v2, Lcom/live/share64/proto/b/f;->n:J

    sub-long/2addr v0, v2

    return-wide v0

    .line 215
    :cond_2c
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    return-wide v0
.end method

.method public final l()V
    .registers 2

    .line 230
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 21301
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    .line 230
    invoke-virtual {v0}, Lcom/live/share64/proto/b/f;->a()V

    return-void
.end method

.method public final m()Llive/sg/bigo/svcapi/d/c;
    .registers 2

    .line 240
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 21330
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->e:Lcom/live/share64/proto/b/e;

    return-object v0
.end method

.method public final n()Llive/sg/bigo/svcapi/c;
    .registers 2

    .line 245
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->c:Lcom/live/share64/proto/b/a;

    return-object v0
.end method

.method public final o()V
    .registers 5

    const-string v0, "yysdk-app"

    const-string v1, "onAccountChanged"

    .line 250
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 251
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 22283
    iget-object v1, v0, Lcom/live/share64/proto/b/h;->d:Lcom/live/share64/proto/b/b;

    invoke-virtual {v1}, Lcom/live/share64/proto/b/b;->a()V

    .line 23254
    iget-object v1, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    invoke-virtual {v1}, Lcom/live/share64/proto/b/f;->b()V

    .line 23350
    iget-object v1, v0, Lcom/live/share64/proto/b/h;->b:Landroid/content/Context;

    const-string v2, "setting_save2srv_pref"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 23351
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 23352
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    .line 23353
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->apply()V

    .line 21344
    new-instance v1, Landroid/content/Intent;

    sget-object v2, Lcom/live/share64/utils/k;->a:Ljava/lang/String;

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 21345
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 21346
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->b:Landroid/content/Context;

    invoke-virtual {v0, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    return-void
.end method

.method public final p()Z
    .registers 2

    .line 261
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 23364
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->c:Lcom/live/share64/proto/b/f;

    iget-boolean v0, v0, Lcom/live/share64/proto/b/f;->o:Z

    return v0
.end method

.method public final q()Ljava/lang/String;
    .registers 2

    .line 284
    iget-object v0, p0, Lcom/live/share64/proto/b/d;->b:Lcom/live/share64/proto/b/h;

    .line 24288
    iget-object v0, v0, Lcom/live/share64/proto/b/h;->a:Ljava/lang/String;

    return-object v0
.end method