IPersistentConnectionImpl.smali
.class public Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;
.super Lcom/google/firebase/database/connection/idl/zzu;
# annotations
.annotation build Lcom/google/android/gms/common/util/DynamiteApi;
.end annotation
# instance fields
.field private zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/idl/zzu;-><init>()V
return-void
.end method
.method static synthetic a(Ljava/lang/Long;)J
.registers 5
.prologue
const-wide/16 v0, -0x1
.line 0
.line 1000
if-eqz p0, :cond_18
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
move-result-wide v2
cmp-long v0, v2, v0
if-nez v0, :cond_14
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Tag parameter clashed with NO_TAG value"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_14
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
:cond_18
return-wide v0
.end method
.method private static a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
.registers 2
new-instance v0, Lcom/google/firebase/database/connection/idl/a;
invoke-direct {v0, p0}, Lcom/google/firebase/database/connection/idl/a;-><init>(Lcom/google/firebase/database/connection/idl/zzah;)V
return-object v0
.end method
.method public static loadDynamic(Landroid/content/Context;Lcom/google/firebase/database/connection/idl/zzc;Lcom/google/android/gms/internal/firebase_database/zzad;Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/android/gms/internal/firebase_database/zzak;)Lcom/google/firebase/database/connection/idl/zzt;
.registers 9
:try_start_0
sget-object v0, Lcom/google/android/gms/dynamite/DynamiteModule;->PREFER_HIGHEST_OR_REMOTE_VERSION:Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;
const-string v1, "com.google.android.gms.firebase_database"
invoke-static {p0, v0, v1}, Lcom/google/android/gms/dynamite/DynamiteModule;->load(Landroid/content/Context;Lcom/google/android/gms/dynamite/DynamiteModule$VersionPolicy;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;
move-result-object v0
const-string v1, "com.google.firebase.database.connection.idl.IPersistentConnectionImpl"
invoke-virtual {v0, v1}, Lcom/google/android/gms/dynamite/DynamiteModule;->instantiate(Ljava/lang/String;)Landroid/os/IBinder;
move-result-object v0
invoke-static {v0}, Lcom/google/firebase/database/connection/idl/zzu;->asInterface(Landroid/os/IBinder;)Lcom/google/firebase/database/connection/idl/zzt;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/connection/idl/d;
invoke-direct {v1, p2}, Lcom/google/firebase/database/connection/idl/d;-><init>(Lcom/google/android/gms/internal/firebase_database/zzad;)V
invoke-static {p3}, Lcom/google/android/gms/dynamic/ObjectWrapper;->wrap(Ljava/lang/Object;)Lcom/google/android/gms/dynamic/IObjectWrapper;
move-result-object v2
new-instance v3, Lcom/google/firebase/database/connection/idl/b;
invoke-direct {v3, p4}, Lcom/google/firebase/database/connection/idl/b;-><init>(Lcom/google/android/gms/internal/firebase_database/zzak;)V
invoke-interface {v0, p1, v1, v2, v3}, Lcom/google/firebase/database/connection/idl/zzt;->setup(Lcom/google/firebase/database/connection/idl/zzc;Lcom/google/firebase/database/connection/idl/zzk;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzw;)V
:try_end_23
.catch Lcom/google/android/gms/dynamite/DynamiteModule$LoadingException; {:try_start_0 .. :try_end_23} :catch_24
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_23} :catch_2b
return-object v0
:catch_24
move-exception v0
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
:catch_2b
move-exception v0
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.end method
.method private static s(J)Ljava/lang/Long;
.registers 4
const-wide/16 v0, -0x1
cmp-long v0, p0, v0
if-nez v0, :cond_8
const/4 v0, 0x0
:goto_7
return-object v0
:cond_8
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
goto :goto_7
.end method
.method static synthetic t(J)Ljava/lang/Long;
.registers 4
invoke-static {p0, p1}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->s(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public compareAndPut(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Ljava/lang/String;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Ljava/lang/String;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v1
invoke-static {p4}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v2
invoke-interface {v0, p1, v1, p3, v2}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Ljava/lang/Object;Ljava/lang/String;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public initialize()V
.registers 2
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0}, Lcom/google/android/gms/internal/firebase_database/zzaj;->initialize()V
return-void
.end method
.method public interrupt(Ljava/lang/String;)V
.registers 3
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/firebase_database/zzaj;->interrupt(Ljava/lang/String;)V
return-void
.end method
.method public isInterrupted(Ljava/lang/String;)Z
.registers 3
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/firebase_database/zzaj;->isInterrupted(Ljava/lang/String;)Z
move-result v0
return v0
.end method
.method public listen(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzq;JLcom/google/firebase/database/connection/idl/zzah;)V
.registers 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Lcom/google/firebase/database/connection/idl/zzq;",
"J",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
invoke-static {p4, p5}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->s(J)Ljava/lang/Long;
move-result-object v4
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map;
new-instance v3, Lcom/google/firebase/database/connection/idl/l;
invoke-direct {v3, p3}, Lcom/google/firebase/database/connection/idl/l;-><init>(Lcom/google/firebase/database/connection/idl/zzq;)V
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p6}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v5
move-object v1, p1
invoke-interface/range {v0 .. v5}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Ljava/util/Map;Lcom/google/android/gms/internal/firebase_database/zzai;Ljava/lang/Long;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public merge(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v1, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
invoke-static {p3}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v2
invoke-interface {v1, p1, v0, v2}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Ljava/util/Map;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public onDisconnectCancel(Ljava/util/List;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v1
invoke-interface {v0, p1, v1}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public onDisconnectMerge(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v1, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
invoke-static {p3}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v2
invoke-interface {v1, p1, v0, v2}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zzb(Ljava/util/List;Ljava/util/Map;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public onDisconnectPut(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v1
invoke-static {p3}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v2
invoke-interface {v0, p1, v1, v2}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zzb(Ljava/util/List;Ljava/lang/Object;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public purgeOutstandingWrites()V
.registers 2
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0}, Lcom/google/android/gms/internal/firebase_database/zzaj;->purgeOutstandingWrites()V
return-void
.end method
.method public put(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzah;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
"Lcom/google/firebase/database/connection/idl/zzah;",
")V"
}
.end annotation
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v1
invoke-static {p3}, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/idl/zzah;)Lcom/google/android/gms/internal/firebase_database/zzbb;
move-result-object v2
invoke-interface {v0, p1, v1, v2}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Ljava/lang/Object;Lcom/google/android/gms/internal/firebase_database/zzbb;)V
return-void
.end method
.method public refreshAuthToken()V
.registers 2
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0}, Lcom/google/android/gms/internal/firebase_database/zzaj;->refreshAuthToken()V
return-void
.end method
.method public refreshAuthToken2(Ljava/lang/String;)V
.registers 3
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zzh(Ljava/lang/String;)V
return-void
.end method
.method public resume(Ljava/lang/String;)V
.registers 3
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0, p1}, Lcom/google/android/gms/internal/firebase_database/zzaj;->resume(Ljava/lang/String;)V
return-void
.end method
.method public setup(Lcom/google/firebase/database/connection/idl/zzc;Lcom/google/firebase/database/connection/idl/zzk;Lcom/google/android/gms/dynamic/IObjectWrapper;Lcom/google/firebase/database/connection/idl/zzw;)V
.registers 15
iget-object v0, p1, Lcom/google/firebase/database/connection/idl/zzc;->bcH:Lcom/google/firebase/database/connection/idl/zzi;
invoke-static {v0}, Lcom/google/firebase/database/connection/idl/zzi;->a(Lcom/google/firebase/database/connection/idl/zzi;)Lcom/google/android/gms/internal/firebase_database/zzah;
move-result-object v8
invoke-static {p3}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/concurrent/ScheduledExecutorService;
new-instance v9, Lcom/google/firebase/database/connection/idl/c;
invoke-direct {v9, p4}, Lcom/google/firebase/database/connection/idl/c;-><init>(Lcom/google/firebase/database/connection/idl/zzw;)V
new-instance v1, Lcom/google/android/gms/internal/firebase_database/zzhw;
iget v0, p1, Lcom/google/firebase/database/connection/idl/zzc;->bcI:I
packed-switch v0, :pswitch_data_48
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqv:Lcom/google/android/gms/internal/firebase_database/zzib;
:goto_1a
iget-object v2, p1, Lcom/google/firebase/database/connection/idl/zzc;->bcJ:Ljava/util/List;
invoke-direct {v1, v0, v2}, Lcom/google/android/gms/internal/firebase_database/zzhw;-><init>(Lcom/google/android/gms/internal/firebase_database/zzib;Ljava/util/List;)V
new-instance v2, Lcom/google/firebase/database/connection/idl/f;
invoke-direct {v2, p2}, Lcom/google/firebase/database/connection/idl/f;-><init>(Lcom/google/firebase/database/connection/idl/zzk;)V
new-instance v0, Lcom/google/android/gms/internal/firebase_database/zzaf;
iget-boolean v4, p1, Lcom/google/firebase/database/connection/idl/zzc;->zzcp:Z
iget-object v5, p1, Lcom/google/firebase/database/connection/idl/zzc;->bcK:Ljava/lang/String;
iget-object v6, p1, Lcom/google/firebase/database/connection/idl/zzc;->zzcr:Ljava/lang/String;
iget-object v7, p1, Lcom/google/firebase/database/connection/idl/zzc;->zzcs:Ljava/lang/String;
invoke-direct/range {v0 .. v7}, Lcom/google/android/gms/internal/firebase_database/zzaf;-><init>(Lcom/google/android/gms/internal/firebase_database/zzia;Lcom/google/android/gms/internal/firebase_database/zzad;Ljava/util/concurrent/ScheduledExecutorService;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
new-instance v1, Lcom/google/android/gms/internal/firebase_database/zzal;
invoke-direct {v1, v0, v8, v9}, Lcom/google/android/gms/internal/firebase_database/zzal;-><init>(Lcom/google/android/gms/internal/firebase_database/zzaf;Lcom/google/android/gms/internal/firebase_database/zzah;Lcom/google/android/gms/internal/firebase_database/zzak;)V
iput-object v1, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
return-void
:pswitch_39
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqv:Lcom/google/android/gms/internal/firebase_database/zzib;
goto :goto_1a
:pswitch_3c
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqr:Lcom/google/android/gms/internal/firebase_database/zzib;
goto :goto_1a
:pswitch_3f
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqs:Lcom/google/android/gms/internal/firebase_database/zzib;
goto :goto_1a
:pswitch_42
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqt:Lcom/google/android/gms/internal/firebase_database/zzib;
goto :goto_1a
:pswitch_45
sget-object v0, Lcom/google/android/gms/internal/firebase_database/zzib;->zzqu:Lcom/google/android/gms/internal/firebase_database/zzib;
goto :goto_1a
:pswitch_data_48
.packed-switch 0x0
:pswitch_39
:pswitch_3c
:pswitch_3f
:pswitch_42
:pswitch_45
.end packed-switch
.end method
.method public shutdown()V
.registers 2
iget-object v0, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-interface {v0}, Lcom/google/android/gms/internal/firebase_database/zzaj;->shutdown()V
return-void
.end method
.method public unlisten(Ljava/util/List;Lcom/google/android/gms/dynamic/IObjectWrapper;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;",
"Lcom/google/android/gms/dynamic/IObjectWrapper;",
")V"
}
.end annotation
iget-object v1, p0, Lcom/google/firebase/database/connection/idl/IPersistentConnectionImpl;->zzfs:Lcom/google/android/gms/internal/firebase_database/zzaj;
invoke-static {p2}, Lcom/google/android/gms/dynamic/ObjectWrapper;->unwrap(Lcom/google/android/gms/dynamic/IObjectWrapper;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map;
invoke-interface {v1, p1, v0}, Lcom/google/android/gms/internal/firebase_database/zzaj;->zza(Ljava/util/List;Ljava/util/Map;)V
return-void
.end method