b.smali
.class public final Lcom/masala/share/b/b;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/masala/share/b/b$b;,
Lcom/masala/share/b/b$a;
}
.end annotation
# static fields
.field private static a:I
.field private static b:Ljava/util/HashSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashSet<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.end field
.field private static c:Ljava/util/LinkedList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/LinkedList<",
"Ljava/lang/Long;",
">;"
}
.end annotation
.end field
.field private static d:Z
.field private static e:Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
.field private static final f:Lcom/masala/share/b/b$a;
.field private static g:Lcom/masala/share/eventbus/c$a;
# direct methods
.method static constructor <clinit>()V
.registers 4
.line 72
new-instance v0, Lcom/masala/share/b/b$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/masala/share/b/b$a;-><init>(B)V
sput-object v0, Lcom/masala/share/b/b;->f:Lcom/masala/share/b/b$a;
.line 74
new-instance v0, Lcom/masala/share/b/b$1;
invoke-direct {v0}, Lcom/masala/share/b/b$1;-><init>()V
sput-object v0, Lcom/masala/share/b/b;->g:Lcom/masala/share/eventbus/c$a;
.line 98
invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;
move-result-object v0
sget-object v1, Lcom/masala/share/b/b;->g:Lcom/masala/share/eventbus/c$a;
const-string v2, "local_event_login_success"
const-string v3, "local_event_kickoff"
filled-new-array {v2, v3}, [Ljava/lang/String;
move-result-object v2
invoke-interface {v0, v1, v2}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;[Ljava/lang/String;)V
.line 3375
sget-object v0, Lcom/imo/android/imoim/IMO;->R:Lcom/imo/android/imoim/managers/g;
new-instance v1, Lcom/masala/share/b/b$9;
invoke-direct {v1}, Lcom/masala/share/b/b$9;-><init>()V
invoke-virtual {v0, v1}, Lcom/imo/android/imoim/managers/g;->a(Lb/a;)V
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 56
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a()Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
.registers 1
.line 56
sget-object v0, Lcom/masala/share/b/b;->e:Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
return-object v0
.end method
.method static synthetic a(Ljava/util/List;)V
.registers 5
.line 2298
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_4
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1a
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Long;
.line 2299
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
const/4 v2, 0x1
const/4 v3, 0x0
invoke-static {v0, v1, v2, v3}, Lcom/masala/share/b/b;->a(JZZ)Z
goto :goto_4
:cond_1a
return-void
.end method
.method public static a(Z)V
.registers 2
.line 108
new-instance v0, Lcom/masala/share/b/b$2;
invoke-direct {v0, p0}, Lcom/masala/share/b/b$2;-><init>(Z)V
invoke-static {v0}, Lcom/masala/share/proto/u;->a(Ljava/lang/Runnable;)Z
return-void
.end method
.method public static a(J)Z
.registers 4
.line 290
invoke-static {}, Lcom/masala/share/utils/e/b;->c()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_8
return v1
.line 293
:cond_8
invoke-static {}, Lcom/masala/share/b/b;->l()Z
move-result v0
if-nez v0, :cond_1e
sget-object v0, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
if-eqz v0, :cond_1e
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1e
const/4 p0, 0x1
return p0
:cond_1e
return v1
.end method
.method public static a(JZ)Z
.registers 4
const/4 v0, 0x1
.line 311
invoke-static {p0, p1, p2, v0}, Lcom/masala/share/b/b;->a(JZZ)Z
move-result p0
return p0
.end method
.method private static a(JZZ)Z
.registers 7
.line 317
invoke-static {}, Lcom/masala/share/b/b;->n()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_4e
const/4 v0, 0x1
if-eqz p2, :cond_35
.line 319
sget-object p2, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-virtual {p2, v2}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_4b
.line 320
sget-object p2, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-virtual {p2, v1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
if-eqz p3, :cond_2b
.line 322
sget-object p2, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-virtual {p2, p0}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V
goto :goto_4a
.line 324
:cond_2b
sget-object p2, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-virtual {p2, p0}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V
goto :goto_4a
.line 329
:cond_35
sget-object p2, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p3
invoke-virtual {p2, p3}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_4b
.line 330
sget-object p2, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
invoke-virtual {p2, p0}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z
:goto_4a
const/4 v1, 0x1
.line 334
:cond_4b
invoke-static {}, Lcom/masala/share/b/b;->m()V
:cond_4e
return v1
.end method
.method static synthetic b()Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
.registers 1
const/4 v0, 0x0
.line 56
sput-object v0, Lcom/masala/share/b/b;->e:Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
return-object v0
.end method
.method static synthetic b(J)V
.registers 2
.line 56
invoke-static {p0, p1}, Lcom/masala/share/b/b;->c(J)V
return-void
.end method
.method static synthetic b(Z)V
.registers 4
.line 1146
invoke-static {}, Lcom/masala/share/b/b;->l()Z
move-result v0
const-string v1, "UserVideoLikedCache"
if-eqz v0, :cond_e
const-string p0, "init but isCurrentUidInvalid()"
.line 1147
invoke-static {v1, p0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 1150
:cond_e
invoke-static {p0}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
move-result-object v0
const-string v2, "init with forceFromNetwork "
invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
const/4 v0, 0x0
.line 1151
sput v0, Lcom/masala/share/b/b;->a:I
.line 1152
new-instance v1, Ljava/util/HashSet;
invoke-direct {v1}, Ljava/util/HashSet;-><init>()V
sput-object v1, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
.line 1153
new-instance v1, Ljava/util/LinkedList;
invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V
sput-object v1, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
.line 1154
sput-boolean v0, Lcom/masala/share/b/b;->d:Z
.line 2051
invoke-static {}, Lsg/bigo/core/task/a$a;->a()Lsg/bigo/core/task/a;
move-result-object v0
.line 1155
sget-object v1, Lsg/bigo/core/task/b;->BACKGROUND:Lsg/bigo/core/task/b;
sget-object v2, Lcom/masala/share/b/b;->f:Lcom/masala/share/b/b$a;
.line 1157
invoke-static {v2, p0}, Lcom/masala/share/b/b$a;->a(Lcom/masala/share/b/b$a;Z)Lcom/masala/share/b/b$a;
move-result-object p0
new-instance v2, Lcom/imo/android/imoim/feeds/g/a;
invoke-direct {v2}, Lcom/imo/android/imoim/feeds/g/a;-><init>()V
.line 1155
invoke-virtual {v0, v1, p0, v2}, Lsg/bigo/core/task/a;->a(Lsg/bigo/core/task/b;Ljava/lang/Runnable;Lsg/bigo/common/d/a;)Lbolts/e;
return-void
.end method
.method private static c(J)V
.registers 4
.line 226
invoke-static {}, Lcom/masala/share/b/b;->l()Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 229
:cond_7
invoke-static {}, Lsg/bigo/common/ac;->a()Z
move-result v0
if-nez v0, :cond_16
.line 230
new-instance v0, Lcom/masala/share/b/b$5;
invoke-direct {v0, p0, p1}, Lcom/masala/share/b/b$5;-><init>(J)V
invoke-static {v0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V
return-void
.line 238
:cond_16
new-instance v0, Lcom/masala/share/proto/protocol/ca;
invoke-direct {v0}, Lcom/masala/share/proto/protocol/ca;-><init>()V
.line 239
iput-wide p0, v0, Lcom/masala/share/proto/protocol/ca;->d:J
const/16 p0, 0xc8
.line 240
iput p0, v0, Lcom/masala/share/proto/protocol/ca;->e:I
.line 241
invoke-static {}, Lsg/bigo/sdk/network/ipc/c;->a()Lsg/bigo/sdk/network/ipc/c;
new-instance p0, Lcom/masala/share/b/b$6;
invoke-direct {p0}, Lcom/masala/share/b/b$6;-><init>()V
const/4 p1, 0x0
.line 272
invoke-static {p1}, Lsg/bigo/svcapi/YYTimeouts;->bestReadTimeout(Z)I
move-result p1
const/4 v1, 0x1
.line 1127
invoke-static {v0, p0, p1, v1}, Lsg/bigo/sdk/network/ipc/c;->a(Lsg/bigo/svcapi/IProtocol;Lsg/bigo/svcapi/RequestCallback;IZ)Z
return-void
.end method
.method static synthetic c(Z)V
.registers 2
.line 2126
sget-object v0, Lcom/masala/share/b/b;->e:Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
if-nez v0, :cond_b
.line 2127
new-instance v0, Lcom/masala/share/b/b$3;
invoke-direct {v0, p0}, Lcom/masala/share/b/b$3;-><init>(Z)V
sput-object v0, Lcom/masala/share/b/b;->e:Lsg/bigo/svcapi/linkd/ILinkdConnStatListener;
:cond_b
return-void
.end method
.method static synthetic c()Z
.registers 1
.line 56
sget-boolean v0, Lcom/masala/share/b/b;->d:Z
return v0
.end method
.method static synthetic d()I
.registers 1
const/4 v0, 0x4
.line 56
sput v0, Lcom/masala/share/b/b;->a:I
return v0
.end method
.method static synthetic d(Z)V
.registers 9
.line 3164
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 3165
invoke-static {}, Lcom/masala/share/b/b;->k()Lsg/bigo/b/d/a/a;
move-result-object v1
const-string v2, "UserVideoLikedKey"
invoke-interface {v1, v2}, Lsg/bigo/b/d/a/a;->a(Ljava/lang/String;)Ljava/io/File;
move-result-object v1
const-wide/16 v2, 0x0
const/4 v4, 0x0
if-eqz v1, :cond_85
if-eqz p0, :cond_18
goto/16 :goto_85
.line 3173
:cond_18
:try_start_18
invoke-static {v1}, Lsg/bigo/common/l;->a(Ljava/io/File;)Ljava/lang/String;
move-result-object p0
const/4 v1, 0x1
if-eqz p0, :cond_61
.line 3174
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
move-result v5
if-nez v5, :cond_61
const-string v5, ","
.line 3175
invoke-virtual {p0, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p0
.line 3176
array-length v5, p0
if-lez v5, :cond_36
.line 3177
aget-object v5, p0, v4
invoke-static {v5}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z
move-result v5
sput-boolean v5, Lcom/masala/share/b/b;->d:Z
.line 3179
:cond_36
array-length v5, p0
if-le v5, v1, :cond_49
.line 3180
invoke-static {}, Lcom/masala/share/utils/e/b;->a()I
move-result v5
:try_end_3d
.catchall {:try_start_18 .. :try_end_3d} :catchall_72
.line 3182
:try_start_3d
aget-object v6, p0, v1
invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v6
:try_end_43
.catch Ljava/lang/NumberFormatException; {:try_start_3d .. :try_end_43} :catch_48
.catchall {:try_start_3d .. :try_end_43} :catchall_72
if-eq v5, v6, :cond_46
goto :goto_49
:cond_46
const/4 v1, 0x0
goto :goto_49
:catch_48
nop
:cond_49
:goto_49
if-nez v1, :cond_61
const/4 v5, 0x2
.line 3191
:goto_4c
:try_start_4c
array-length v6, p0
:try_end_4d
.catchall {:try_start_4c .. :try_end_4d} :catchall_5f
if-ge v5, v6, :cond_61
.line 3193
:try_start_4f
aget-object v6, p0, v5
invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v6
.line 3194
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v6
invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_5c
.catch Ljava/lang/NumberFormatException; {:try_start_4f .. :try_end_5c} :catch_5c
.catchall {:try_start_4f .. :try_end_5c} :catchall_5f
:catch_5c
add-int/lit8 v5, v5, 0x1
goto :goto_4c
:catchall_5f
move-exception p0
goto :goto_74
:cond_61
if-eqz v1, :cond_69
.line 3204
sput-boolean v4, Lcom/masala/share/b/b;->d:Z
.line 3205
invoke-static {v2, v3}, Lcom/masala/share/b/b;->c(J)V
return-void
.line 3207
:cond_69
new-instance p0, Lcom/masala/share/b/b$4;
invoke-direct {p0, v0}, Lcom/masala/share/b/b$4;-><init>(Ljava/util/List;)V
invoke-static {p0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V
return-void
:catchall_72
move-exception p0
const/4 v1, 0x0
:goto_74
if-eqz v1, :cond_7c
.line 3204
sput-boolean v4, Lcom/masala/share/b/b;->d:Z
.line 3205
invoke-static {v2, v3}, Lcom/masala/share/b/b;->c(J)V
goto :goto_84
.line 3207
:cond_7c
new-instance v1, Lcom/masala/share/b/b$4;
invoke-direct {v1, v0}, Lcom/masala/share/b/b$4;-><init>(Ljava/util/List;)V
invoke-static {v1}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V
:goto_84
throw p0
.line 3167
:cond_85
:goto_85
sput-boolean v4, Lcom/masala/share/b/b;->d:Z
.line 3168
invoke-static {v2, v3}, Lcom/masala/share/b/b;->c(J)V
return-void
.end method
.method static synthetic e()I
.registers 2
.line 56
sget v0, Lcom/masala/share/b/b;->a:I
add-int/lit8 v1, v0, 0x1
sput v1, Lcom/masala/share/b/b;->a:I
return v0
.end method
.method static synthetic f()I
.registers 1
.line 56
sget v0, Lcom/masala/share/b/b;->a:I
return v0
.end method
.method static synthetic g()Ljava/util/HashSet;
.registers 1
.line 56
sget-object v0, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
return-object v0
.end method
.method static synthetic h()Z
.registers 1
const/4 v0, 0x1
.line 56
sput-boolean v0, Lcom/masala/share/b/b;->d:Z
return v0
.end method
.method static synthetic i()Lsg/bigo/b/d/a/a;
.registers 1
.line 56
invoke-static {}, Lcom/masala/share/b/b;->k()Lsg/bigo/b/d/a/a;
move-result-object v0
return-object v0
.end method
.method static synthetic j()V
.registers 4
.line 2347
invoke-static {}, Lcom/masala/share/b/b;->l()Z
move-result v0
if-nez v0, :cond_58
invoke-static {}, Lcom/masala/share/b/b;->n()Z
move-result v0
if-eqz v0, :cond_d
goto :goto_58
.line 2350
:cond_d
new-instance v0, Ljava/lang/StringBuilder;
sget-boolean v1, Lcom/masala/share/b/b;->d:Z
invoke-static {v1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const-string v1, ","
.line 2351
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 2352
invoke-static {}, Lcom/masala/share/utils/e/b;->a()I
move-result v2
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 2353
sget-object v2, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-virtual {v2}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_2e
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_45
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Long;
.line 2354
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 2355
invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2e
.line 3051
:cond_45
invoke-static {}, Lsg/bigo/core/task/a$a;->a()Lsg/bigo/core/task/a;
move-result-object v1
.line 2357
sget-object v2, Lsg/bigo/core/task/b;->IO:Lsg/bigo/core/task/b;
new-instance v3, Lcom/masala/share/b/b$7;
invoke-direct {v3, v0}, Lcom/masala/share/b/b$7;-><init>(Ljava/lang/StringBuilder;)V
new-instance v0, Lcom/masala/share/b/b$8;
invoke-direct {v0}, Lcom/masala/share/b/b$8;-><init>()V
invoke-virtual {v1, v2, v3, v0}, Lsg/bigo/core/task/a;->a(Lsg/bigo/core/task/b;Ljava/lang/Runnable;Lsg/bigo/common/d/a;)Lbolts/e;
:cond_58
:goto_58
return-void
.end method
.method private static k()Lsg/bigo/b/d/a/a;
.registers 2
.line 221
const-class v0, Lsg/bigo/b/d/a/b;
invoke-static {v0}, Lsg/bigo/core/a/c;->a(Ljava/lang/Class;)Lsg/bigo/core/a/b;
move-result-object v0
check-cast v0, Lsg/bigo/b/d/a/b;
const-string v1, "UserVideoLikedCategory"
.line 222
invoke-interface {v0, v1}, Lsg/bigo/b/d/a/b;->b(Ljava/lang/String;)Lsg/bigo/b/d/a/a;
move-result-object v0
return-object v0
.end method
.method private static l()Z
.registers 4
const/4 v0, 0x0
.line 277
:try_start_1
invoke-static {}, Lcom/masala/share/proto/b/c;->b()I
move-result v1
:try_end_5
.catch Lcom/masala/share/proto/YYServiceUnboundException; {:try_start_1 .. :try_end_5} :catch_9
if-nez v1, :cond_8
const/4 v0, 0x1
:cond_8
return v0
:catch_9
move-exception v1
const-string v2, "UserVideoLikedCache"
const-string v3, "isCurrentUidInvalid ERROR "
.line 279
invoke-static {v2, v3, v1}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
return v0
.end method
.method private static m()V
.registers 3
.line 340
:goto_0
sget-object v0, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->size()I
move-result v0
const/16 v1, 0x320
if-le v0, v1, :cond_20
.line 341
sget-object v0, Lcom/masala/share/b/b;->c:Ljava/util/LinkedList;
invoke-virtual {v0}, Ljava/util/LinkedList;->removeLast()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Long;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
.line 342
sget-object v2, Lcom/masala/share/b/b;->b:Ljava/util/HashSet;
invoke-static