b.smali
.class public Llive/sg/bigo/sdk/network/ipc/b;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Llive/sg/bigo/sdk/network/ipc/b$a;
}
.end annotation
# static fields
.field private static volatile a:Llive/sg/bigo/sdk/network/ipc/b; = null
.field private static b:Llive/sg/bigo/sdk/network/ipc/bridge/a; = null
.field private static c:Llive/sg/bigo/sdk/network/ipc/a; = null
.field private static d:I = 0x64
# instance fields
.field private e:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Llive/sg/bigo/sdk/network/ipc/b$a;",
">;"
}
.end annotation
.end field
.field private f:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Llive/sg/bigo/svcapi/p;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 0
return-void
.end method
.method private constructor <init>()V
.registers 2
.line 43
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 85
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
iput-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->e:Ljava/util/Map;
.line 86
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
iput-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
return-void
.end method
.method public static a()Llive/sg/bigo/sdk/network/ipc/b;
.registers 2
.line 64
sget-object v0, Llive/sg/bigo/sdk/network/ipc/b;->a:Llive/sg/bigo/sdk/network/ipc/b;
if-nez v0, :cond_17
.line 65
const-class v0, Llive/sg/bigo/sdk/network/ipc/b;
monitor-enter v0
.line 66
:try_start_7
sget-object v1, Llive/sg/bigo/sdk/network/ipc/b;->a:Llive/sg/bigo/sdk/network/ipc/b;
if-nez v1, :cond_12
.line 67
new-instance v1, Llive/sg/bigo/sdk/network/ipc/b;
invoke-direct {v1}, Llive/sg/bigo/sdk/network/ipc/b;-><init>()V
sput-object v1, Llive/sg/bigo/sdk/network/ipc/b;->a:Llive/sg/bigo/sdk/network/ipc/b;
.line 69
:cond_12
monitor-exit v0
goto :goto_17
:catchall_14
move-exception v1
monitor-exit v0
:try_end_16
.catchall {:try_start_7 .. :try_end_16} :catchall_14
throw v1
.line 72
:cond_17
:goto_17
sget-object v0, Llive/sg/bigo/sdk/network/ipc/b;->a:Llive/sg/bigo/sdk/network/ipc/b;
return-object v0
.end method
.method public static b()I
.registers 3
const-string v0, "IPCClient"
.line 90
:try_start_2
sget-object v1, Llive/sg/bigo/sdk/network/ipc/b;->c:Llive/sg/bigo/sdk/network/ipc/a;
if-eqz v1, :cond_d
.line 91
sget-object v1, Llive/sg/bigo/sdk/network/ipc/b;->c:Llive/sg/bigo/sdk/network/ipc/a;
invoke-interface {v1}, Llive/sg/bigo/sdk/network/ipc/a;->a()I
move-result v0
return v0
:cond_d
const-string v1, "getNextSeqId but has null sSeqGenerator"
.line 93
invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;)I
:try_end_12
.catch Landroid/os/RemoteException; {:try_start_2 .. :try_end_12} :catch_13
goto :goto_19
:catch_13
move-exception v1
const-string v2, "getNextSeqId got remote exception"
.line 96
invoke-static {v0, v2, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_19
const/4 v0, 0x0
return v0
.end method
.method public static c()Z
.registers 1
.line 240
sget-object v0, Llive/sg/bigo/sdk/network/ipc/b;->b:Llive/sg/bigo/sdk/network/ipc/bridge/a;
invoke-interface {v0}, Llive/sg/bigo/sdk/network/ipc/bridge/a;->d()Z
move-result v0
return v0
.end method
# virtual methods
.method public final a(Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCRequestEntity;Llive/sg/bigo/svcapi/q;)Z
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"<E::",
"Lsg/bigo/svcapi/IProtocol;",
">(",
"Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCRequestEntity;",
"Llive/sg/bigo/svcapi/q<",
"TE;>;)Z"
}
.end annotation
.line 1067
iget-object v0, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCProtocolBaseEntity;->c:Lsg/bigo/svcapi/IProtocol;
.line 103
invoke-interface {v0}, Lsg/bigo/svcapi/IProtocol;->seq()I
move-result v0
if-nez v0, :cond_11
.line 105
invoke-static {}, Llive/sg/bigo/sdk/network/ipc/b;->b()I
move-result v0
.line 2067
iget-object v1, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCProtocolBaseEntity;->c:Lsg/bigo/svcapi/IProtocol;
.line 106
invoke-interface {v1, v0}, Lsg/bigo/svcapi/IProtocol;->setSeq(I)V
:cond_11
if-eqz p2, :cond_27
.line 112
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->e:Ljava/util/Map;
invoke-virtual {p1}, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCRequestEntity;->a()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
new-instance v2, Llive/sg/bigo/sdk/network/ipc/b$a;
iget-boolean v3, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCRequestEntity;->g:Z
invoke-direct {v2, p0, p2, v3}, Llive/sg/bigo/sdk/network/ipc/b$a;-><init>(Llive/sg/bigo/sdk/network/ipc/b;Llive/sg/bigo/svcapi/q;Z)V
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 115
:cond_27
sget-object p2, Llive/sg/bigo/sdk/network/ipc/b;->b:Llive/sg/bigo/sdk/network/ipc/bridge/a;
invoke-interface {p2}, Llive/sg/bigo/sdk/network/ipc/bridge/a;->a()Z
move-result p2
if-nez p2, :cond_3c
.line 117
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->e:Ljava/util/Map;
invoke-virtual {p1}, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCRequestEntity;->a()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
:cond_3c
return p2
.end method
.method public final a(Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCUnRegPushEntity;)Z
.registers 4
.line 223
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
iget v1, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCUnRegPushEntity;->c:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_24
.line 225
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
iget p1, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCUnRegPushEntity;->c:I
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 227
sget-object p1, Llive/sg/bigo/sdk/network/ipc/b;->b:Llive/sg/bigo/sdk/network/ipc/bridge/a;
if-nez p1, :cond_1f
const/4 p1, 0x1
return p1
.line 231
:cond_1f
invoke-interface {p1}, Llive/sg/bigo/sdk/network/ipc/bridge/a;->c()Z
move-result p1
return p1
.line 233
:cond_24
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "unRegPush remove callback failed, callbackCode is "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget p1, p1, Llive/sg/bigo/sdk/network/ipc/bridge/entity/IPCUnRegPushEntity;->c:I
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "IPCClient"
invoke-static {v0, p1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const/4 p1, 0x0
return p1
.end method
.method public final a(Llive/sg/bigo/svcapi/p;)Z
.registers 5
.line 203
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
invoke-virtual {p1}, Llive/sg/bigo/svcapi/p;->hashCode()I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const/4 v1, 0x1
if-eqz v0, :cond_12
return v1
.line 207
:cond_12
iget-object v0, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
invoke-virtual {p1}, Llive/sg/bigo/svcapi/p;->hashCode()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v0, v2, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 209
sget-object v0, Llive/sg/bigo/sdk/network/ipc/b;->b:Llive/sg/bigo/sdk/network/ipc/bridge/a;
if-nez v0, :cond_24
return v1
.line 214
:cond_24
invoke-interface {v0}, Llive/sg/bigo/sdk/network/ipc/bridge/a;->b()Z
move-result v0
if-nez v0, :cond_37
.line 216
iget-object v1, p0, Llive/sg/bigo/sdk/network/ipc/b;->f:Ljava/util/Map;
invoke-virtual {p1}, Llive/sg/bigo/svcapi/p;->hashCode()I
move-result p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
:cond_37
return v0
.end method