This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,123 @@
.class public Lcom/google/firebase/database/connection/CompoundHash;
.super Ljava/lang/Object;
.source "CompoundHash.java"
# instance fields
.field private final hashes:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final posts:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/util/List<",
"Ljava/lang/String;",
">;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;Ljava/util/List;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/util/List<",
"Ljava/lang/String;",
">;>;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v1
add-int/lit8 v1, v1, -0x1
if-ne v0, v1, :cond_0
.line 3
iput-object p1, p0, Lcom/google/firebase/database/connection/CompoundHash;->posts:Ljava/util/List;
.line 4
iput-object p2, p0, Lcom/google/firebase/database/connection/CompoundHash;->hashes:Ljava/util/List;
return-void
.line 5
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Number of posts need to be n-1 for n hashes in CompoundHash"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public getHashes()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/CompoundHash;->hashes:Ljava/util/List;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getPosts()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/util/List<",
"Ljava/lang/String;",
">;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/CompoundHash;->posts:Ljava/util/List;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,40 @@
.class public interface abstract Lcom/google/firebase/database/connection/Connection$Delegate;
.super Ljava/lang/Object;
.source "Connection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Delegate"
.end annotation
# virtual methods
.method public abstract onCacheHost(Ljava/lang/String;)V
.end method
.method public abstract onDataMessage(Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.end method
.method public abstract onDisconnect(Lcom/google/firebase/database/connection/Connection$DisconnectReason;)V
.end method
.method public abstract onKill(Ljava/lang/String;)V
.end method
.method public abstract onReady(JLjava/lang/String;)V
.end method
@@ -0,0 +1,115 @@
.class public final enum Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.super Ljava/lang/Enum;
.source "Connection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "DisconnectReason"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/firebase/database/connection/Connection$DisconnectReason;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.field public static final enum OTHER:Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.field public static final enum SERVER_RESET:Lcom/google/firebase/database/connection/Connection$DisconnectReason;
# direct methods
.method public static constructor <clinit>()V
.locals 5
.line 1
new-instance v0, Lcom/google/firebase/database/connection/Connection$DisconnectReason;
const-string v1, "SERVER_RESET"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/connection/Connection$DisconnectReason;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/firebase/database/connection/Connection$DisconnectReason;->SERVER_RESET:Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.line 2
new-instance v1, Lcom/google/firebase/database/connection/Connection$DisconnectReason;
const-string v3, "OTHER"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/firebase/database/connection/Connection$DisconnectReason;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/firebase/database/connection/Connection$DisconnectReason;->OTHER:Lcom/google/firebase/database/connection/Connection$DisconnectReason;
const/4 v3, 0x2
new-array v3, v3, [Lcom/google/firebase/database/connection/Connection$DisconnectReason;
aput-object v0, v3, v2
aput-object v1, v3, v4
.line 3
sput-object v3, Lcom/google/firebase/database/connection/Connection$DisconnectReason;->$VALUES:[Lcom/google/firebase/database/connection/Connection$DisconnectReason;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.locals 1
.line 1
const-class v0, Lcom/google/firebase/database/connection/Connection$DisconnectReason;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/firebase/database/connection/Connection$DisconnectReason;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/database/connection/Connection$DisconnectReason;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/connection/Connection$DisconnectReason;->$VALUES:[Lcom/google/firebase/database/connection/Connection$DisconnectReason;
invoke-virtual {v0}, [Lcom/google/firebase/database/connection/Connection$DisconnectReason;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/database/connection/Connection$DisconnectReason;
return-object v0
.end method
@@ -0,0 +1,130 @@
.class final enum Lcom/google/firebase/database/connection/Connection$State;
.super Ljava/lang/Enum;
.source "Connection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/Connection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "State"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/firebase/database/connection/Connection$State;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/database/connection/Connection$State;
.field public static final enum REALTIME_CONNECTED:Lcom/google/firebase/database/connection/Connection$State;
.field public static final enum REALTIME_CONNECTING:Lcom/google/firebase/database/connection/Connection$State;
.field public static final enum REALTIME_DISCONNECTED:Lcom/google/firebase/database/connection/Connection$State;
# direct methods
.method public static constructor <clinit>()V
.locals 7
.line 1
new-instance v0, Lcom/google/firebase/database/connection/Connection$State;
const-string v1, "REALTIME_CONNECTING"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/connection/Connection$State;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/firebase/database/connection/Connection$State;->REALTIME_CONNECTING:Lcom/google/firebase/database/connection/Connection$State;
.line 2
new-instance v1, Lcom/google/firebase/database/connection/Connection$State;
const-string v3, "REALTIME_CONNECTED"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/firebase/database/connection/Connection$State;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/firebase/database/connection/Connection$State;->REALTIME_CONNECTED:Lcom/google/firebase/database/connection/Connection$State;
.line 3
new-instance v3, Lcom/google/firebase/database/connection/Connection$State;
const-string v5, "REALTIME_DISCONNECTED"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/google/firebase/database/connection/Connection$State;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/google/firebase/database/connection/Connection$State;->REALTIME_DISCONNECTED:Lcom/google/firebase/database/connection/Connection$State;
const/4 v5, 0x3
new-array v5, v5, [Lcom/google/firebase/database/connection/Connection$State;
aput-object v0, v5, v2
aput-object v1, v5, v4
aput-object v3, v5, v6
.line 4
sput-object v5, Lcom/google/firebase/database/connection/Connection$State;->$VALUES:[Lcom/google/firebase/database/connection/Connection$State;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/firebase/database/connection/Connection$State;
.locals 1
.line 1
const-class v0, Lcom/google/firebase/database/connection/Connection$State;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/firebase/database/connection/Connection$State;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/database/connection/Connection$State;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/connection/Connection$State;->$VALUES:[Lcom/google/firebase/database/connection/Connection$State;
invoke-virtual {v0}, [Lcom/google/firebase/database/connection/Connection$State;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/database/connection/Connection$State;
return-object v0
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,144 @@
.class public Lcom/google/firebase/database/connection/ConnectionContext;
.super Ljava/lang/Object;
.source "ConnectionContext.java"
# instance fields
.field private final appCheckTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.field private final applicationId:Ljava/lang/String;
.field private final authTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.field private final clientSdkVersion:Ljava/lang/String;
.field private final executorService:Ljava/util/concurrent/ScheduledExecutorService;
.field private final logger:Lcom/google/firebase/database/logging/Logger;
.field private final persistenceEnabled:Z
.field private final sslCacheDirectory:Ljava/lang/String;
.field private final userAgent:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/logging/Logger;Lcom/google/firebase/database/connection/ConnectionTokenProvider;Lcom/google/firebase/database/connection/ConnectionTokenProvider;Ljava/util/concurrent/ScheduledExecutorService;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/connection/ConnectionContext;->logger:Lcom/google/firebase/database/logging/Logger;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/ConnectionContext;->authTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.line 4
iput-object p3, p0, Lcom/google/firebase/database/connection/ConnectionContext;->appCheckTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.line 5
iput-object p4, p0, Lcom/google/firebase/database/connection/ConnectionContext;->executorService:Ljava/util/concurrent/ScheduledExecutorService;
.line 6
iput-boolean p5, p0, Lcom/google/firebase/database/connection/ConnectionContext;->persistenceEnabled:Z
.line 7
iput-object p6, p0, Lcom/google/firebase/database/connection/ConnectionContext;->clientSdkVersion:Ljava/lang/String;
.line 8
iput-object p7, p0, Lcom/google/firebase/database/connection/ConnectionContext;->userAgent:Ljava/lang/String;
.line 9
iput-object p8, p0, Lcom/google/firebase/database/connection/ConnectionContext;->applicationId:Ljava/lang/String;
.line 10
iput-object p9, p0, Lcom/google/firebase/database/connection/ConnectionContext;->sslCacheDirectory:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public getAppCheckTokenProvider()Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->appCheckTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
return-object v0
.end method
.method public getApplicationId()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->applicationId:Ljava/lang/String;
return-object v0
.end method
.method public getAuthTokenProvider()Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->authTokenProvider:Lcom/google/firebase/database/connection/ConnectionTokenProvider;
return-object v0
.end method
.method public getClientSdkVersion()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->clientSdkVersion:Ljava/lang/String;
return-object v0
.end method
.method public getExecutorService()Ljava/util/concurrent/ScheduledExecutorService;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->executorService:Ljava/util/concurrent/ScheduledExecutorService;
return-object v0
.end method
.method public getLogger()Lcom/google/firebase/database/logging/Logger;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->logger:Lcom/google/firebase/database/logging/Logger;
return-object v0
.end method
.method public getSslCacheDirectory()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->sslCacheDirectory:Ljava/lang/String;
return-object v0
.end method
.method public getUserAgent()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->userAgent:Ljava/lang/String;
return-object v0
.end method
.method public isPersistenceEnabled()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/ConnectionContext;->persistenceEnabled:Z
return v0
.end method
@@ -0,0 +1,22 @@
.class public interface abstract Lcom/google/firebase/database/connection/ConnectionTokenProvider$GetTokenCallback;
.super Ljava/lang/Object;
.source "ConnectionTokenProvider.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "GetTokenCallback"
.end annotation
# virtual methods
.method public abstract onError(Ljava/lang/String;)V
.end method
.method public abstract onSuccess(Ljava/lang/String;)V
.end method
@@ -0,0 +1,16 @@
.class public interface abstract Lcom/google/firebase/database/connection/ConnectionTokenProvider;
.super Ljava/lang/Object;
.source "ConnectionTokenProvider.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/connection/ConnectionTokenProvider$GetTokenCallback;
}
.end annotation
# virtual methods
.method public abstract getToken(ZLcom/google/firebase/database/connection/ConnectionTokenProvider$GetTokenCallback;)V
.end method
@@ -0,0 +1,230 @@
.class public Lcom/google/firebase/database/connection/ConnectionUtils;
.super Ljava/lang/Object;
.source "ConnectionUtils.java"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static hardAssert(Z)V
.locals 2
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
const-string v1, ""
.line 1
invoke-static {p0, v1, v0}, Lcom/google/firebase/database/connection/ConnectionUtils;->hardAssert(ZLjava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs hardAssert(ZLjava/lang/String;[Ljava/lang/Object;)V
.locals 1
if-eqz p0, :cond_0
return-void
.line 2
:cond_0
new-instance p0, Ljava/lang/AssertionError;
const-string v0, "hardAssert failed: "
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {p1, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p0
.end method
.method public static longFromObject(Ljava/lang/Object;)Ljava/lang/Long;
.locals 2
.line 1
instance-of v0, p0, Ljava/lang/Integer;
if-eqz v0, :cond_0
.line 2
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
int-to-long v0, p0
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
return-object p0
.line 3
:cond_0
instance-of v0, p0, Ljava/lang/Long;
if-eqz v0, :cond_1
.line 4
check-cast p0, Ljava/lang/Long;
return-object p0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method public static pathToString(Ljava/util/List;)Ljava/lang/String;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Ljava/lang/String;"
}
.end annotation
.line 1
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z
move-result v0
const-string v1, "/"
if-eqz v0, :cond_0
return-object v1
.line 2
:cond_0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const/4 v2, 0x1
.line 3
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
if-nez v2, :cond_1
.line 4
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_1
const/4 v2, 0x0
.line 5
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 6
:cond_2
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static stringToPath(Ljava/lang/String;)Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const-string v1, "/"
const/4 v2, -0x1
.line 2
invoke-virtual {p0, v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;I)[Ljava/lang/String;
move-result-object p0
const/4 v1, 0x0
.line 3
:goto_0
array-length v2, p0
if-ge v1, v2, :cond_1
.line 4
aget-object v2, p0, v1
invoke-virtual {v2}, Ljava/lang/String;->isEmpty()Z
move-result v2
if-nez v2, :cond_0
.line 5
aget-object v2, p0, v1
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
@@ -0,0 +1,20 @@
.class Lcom/google/firebase/database/connection/Constants;
.super Ljava/lang/Object;
.source "Constants.java"
# static fields
.field public static final DOT_INFO_SERVERTIME_OFFSET:Ljava/lang/String; = "serverTimeOffset"
.field public static final WIRE_PROTOCOL_VERSION:Ljava/lang/String; = "5"
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,157 @@
.class public Lcom/google/firebase/database/connection/HostInfo;
.super Ljava/lang/Object;
.source "HostInfo.java"
# static fields
.field private static final LAST_SESSION_ID_PARAM:Ljava/lang/String; = "ls"
.field private static final VERSION_PARAM:Ljava/lang/String; = "v"
# instance fields
.field private final host:Ljava/lang/String;
.field private final namespace:Ljava/lang/String;
.field private final secure:Z
# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Z)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/connection/HostInfo;->host:Ljava/lang/String;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/HostInfo;->namespace:Ljava/lang/String;
.line 4
iput-boolean p3, p0, Lcom/google/firebase/database/connection/HostInfo;->secure:Z
return-void
.end method
.method public static getConnectionUrl(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/String;)Ljava/net/URI;
.locals 2
if-eqz p1, :cond_0
const-string p1, "wss"
goto :goto_0
:cond_0
const-string p1, "ws"
:goto_0
const-string v0, "://"
const-string v1, "/.ws?ns="
.line 1
invoke-static {p1, v0, p0, v1, p2}, Lr1/l;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
const-string p1, "&"
const-string p2, "v"
const-string v0, "="
const-string v1, "5"
invoke-static {p0, p1, p2, v0, v1}, Lr1/k;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
if-eqz p3, :cond_1
const-string p1, "&ls="
.line 2
invoke-static {p0, p1, p3}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
.line 3
:cond_1
invoke-static {p0}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public getHost()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/HostInfo;->host:Ljava/lang/String;
return-object v0
.end method
.method public getNamespace()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/HostInfo;->namespace:Ljava/lang/String;
return-object v0
.end method
.method public isSecure()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/HostInfo;->secure:Z
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "http"
.line 1
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-boolean v1, p0, Lcom/google/firebase/database/connection/HostInfo;->secure:Z
if-eqz v1, :cond_0
const-string v1, "s"
goto :goto_0
:cond_0
const-string v1, ""
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "://"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/database/connection/HostInfo;->host:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class public interface abstract Lcom/google/firebase/database/connection/ListenHashProvider;
.super Ljava/lang/Object;
.source "ListenHashProvider.java"
# virtual methods
.method public abstract getCompoundHash()Lcom/google/firebase/database/connection/CompoundHash;
.end method
.method public abstract getSimpleHash()Ljava/lang/String;
.end method
.method public abstract shouldIncludeCompoundHash()Z
.end method
@@ -0,0 +1,68 @@
.class public interface abstract Lcom/google/firebase/database/connection/PersistentConnection$Delegate;
.super Ljava/lang/Object;
.source "PersistentConnection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Delegate"
.end annotation
# virtual methods
.method public abstract onConnect()V
.end method
.method public abstract onConnectionStatus(Z)V
.end method
.method public abstract onDataUpdate(Ljava/util/List;Ljava/lang/Object;ZLjava/lang/Long;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
"Z",
"Ljava/lang/Long;",
")V"
}
.end annotation
.end method
.method public abstract onDisconnect()V
.end method
.method public abstract onRangeMergeUpdate(Ljava/util/List;Ljava/util/List;Ljava/lang/Long;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/List<",
"Lcom/google/firebase/database/connection/RangeMerge;",
">;",
"Ljava/lang/Long;",
")V"
}
.end annotation
.end method
.method public abstract onServerInfoUpdate(Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.end method
@@ -0,0 +1,185 @@
.class public interface abstract Lcom/google/firebase/database/connection/PersistentConnection;
.super Ljava/lang/Object;
.source "PersistentConnection.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/connection/PersistentConnection$Delegate;
}
.end annotation
# virtual methods
.method public abstract compareAndPut(Ljava/util/List;Ljava/lang/Object;Ljava/lang/String;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
"Ljava/lang/String;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract get(Ljava/util/List;Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end method
.method public abstract initialize()V
.end method
.method public abstract interrupt(Ljava/lang/String;)V
.end method
.method public abstract isInterrupted(Ljava/lang/String;)Z
.end method
.method public abstract listen(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/connection/ListenHashProvider;Ljava/lang/Long;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/connection/ListenHashProvider;",
"Ljava/lang/Long;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract merge(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract onDisconnectCancel(Ljava/util/List;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract onDisconnectMerge(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract onDisconnectPut(Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract purgeOutstandingWrites()V
.end method
.method public abstract put(Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.end method
.method public abstract refreshAppCheckToken()V
.end method
.method public abstract refreshAppCheckToken(Ljava/lang/String;)V
.end method
.method public abstract refreshAuthToken()V
.end method
.method public abstract refreshAuthToken(Ljava/lang/String;)V
.end method
.method public abstract resume(Ljava/lang/String;)V
.end method
.method public abstract shutdown()V
.end method
.method public abstract unlisten(Ljava/util/List;Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.end method
@@ -0,0 +1,66 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/ConnectionTokenProvider$GetTokenCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->fetchAuthToken(Z)Lcom/google/android/gms/tasks/Task;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onError(Ljava/lang/String;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
new-instance v1, Ljava/lang/Exception;
invoke-direct {v1, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
return-void
.end method
.method public onSuccess(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-virtual {v0, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
return-void
.end method
@@ -0,0 +1,66 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$2;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/ConnectionTokenProvider$GetTokenCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->fetchAppCheckToken(Z)Lcom/google/android/gms/tasks/Task;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$2;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$2;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onError(Ljava/lang/String;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$2;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
new-instance v1, Ljava/lang/Exception;
invoke-direct {v1, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setException(Ljava/lang/Exception;)V
return-void
.end method
.method public onSuccess(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$2;->val$taskCompletionSource:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-virtual {v0, p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->setResult(Ljava/lang/Object;)V
return-void
.end method
@@ -0,0 +1,101 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$3;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendOnDisconnect(Ljava/lang/String;Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$3;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$3;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "s"
.line 1
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, "ok"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-nez v1, :cond_0
const-string v1, "d"
.line 3
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
move-object v2, p1
check-cast v2, Ljava/lang/String;
goto :goto_0
:cond_0
move-object v0, v2
.line 4
:goto_0
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$3;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
if-eqz p1, :cond_1
.line 5
invoke-interface {p1, v0, v2}, Lcom/google/firebase/database/connection/RequestResultCallback;->onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
:cond_1
return-void
.end method
@@ -0,0 +1,210 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendAuthHelper(Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$restoreStateAfterComplete:Z
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Z)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-boolean p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->val$restoreStateAfterComplete:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "s"
.line 1
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, "ok"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_0
.line 3
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
sget-object v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->Connected:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
invoke-static {p1, v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$902(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.line 4
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1, v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1002(Lcom/google/firebase/database/connection/PersistentConnectionImpl;I)I
.line 5
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-boolean v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->val$restoreStateAfterComplete:Z
invoke-static {p1, v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1100(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Z)V
goto :goto_0
.line 6
:cond_0
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
const/4 v3, 0x0
invoke-static {v1, v3}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1202(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Ljava/lang/String;)Ljava/lang/String;
.line 7
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
const/4 v3, 0x1
invoke-static {v1, v3}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1302(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Z)Z
.line 8
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1400(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/connection/PersistentConnection$Delegate;
move-result-object v1
invoke-interface {v1, v2}, Lcom/google/firebase/database/connection/PersistentConnection$Delegate;->onConnectionStatus(Z)V
const-string v1, "d"
.line 9
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 10
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
const-string v3, "Authentication failed: "
const-string v4, " ("
const-string v5, ")"
invoke-static {v3, v0, v4, p1, v5}, Ls/i;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v1, p1, v2}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 11
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1600(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/connection/Connection;
move-result-object p1
invoke-virtual {p1}, Lcom/google/firebase/database/connection/Connection;->close()V
const-string p1, "invalid_token"
.line 12
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1
.line 13
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1008(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)I
.line 14
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1000(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)I
move-result p1
int-to-long v0, p1
const-wide/16 v2, 0x3
cmp-long p1, v0, v2
if-ltz p1, :cond_1
.line 15
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1700(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/connection/util/RetryHelper;
move-result-object p1
invoke-virtual {p1}, Lcom/google/firebase/database/connection/util/RetryHelper;->setMaxDelay()V
.line 16
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$4;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
const-string v0, "Provided authentication credentials are invalid. This usually indicates your FirebaseApp instance was not initialized correctly. Make sure your google-services.json file has the correct firebase_url and api_key. You can re-download google-services.json from https://console.firebase.google.com/."
invoke-virtual {p1, v0}, Lcom/google/firebase/database/logging/LogWrapper;->warn(Ljava/lang/String;)V
:cond_1
:goto_0
return-void
.end method
@@ -0,0 +1,245 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendPut(J)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$action:Ljava/lang/String;
.field public final synthetic val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
.field public final synthetic val$put:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;
.field public final synthetic val$putId:J
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Ljava/lang/String;JLcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$action:Ljava/lang/String;
iput-wide p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$putId:J
iput-object p5, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$put:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;
iput-object p6, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$action:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, " response: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
new-array v3, v1, [Ljava/lang/Object;
invoke-virtual {v0, v2, v3}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 2
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1900(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Ljava/util/Map;
move-result-object v0
iget-wide v2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$putId:J
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;
.line 3
iget-object v2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$put:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;
if-ne v0, v2, :cond_2
.line 4
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1900(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Ljava/util/Map;
move-result-object v0
iget-wide v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$putId:J
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 5
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
if-eqz v0, :cond_3
const-string v0, "s"
.line 6
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, "ok"
.line 7
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
.line 8
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
const/4 v0, 0x0
invoke-interface {p1, v0, v0}, Lcom/google/firebase/database/connection/RequestResultCallback;->onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_1
const-string v1, "d"
.line 9
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 10
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
invoke-interface {v1, v0, p1}, Lcom/google/firebase/database/connection/RequestResultCallback;->onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
.line 11
:cond_2
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
invoke-virtual {p1}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result p1
if-eqz p1, :cond_3
.line 12
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
const-string v0, "Ignoring on complete for put "
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->val$putId:J
const-string v4, " because it was removed already."
invoke-static {v0, v2, v3, v4}, Landroid/support/v4/media/session/a;->a(Ljava/lang/StringBuilder;JLjava/lang/String;)Ljava/lang/String;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 13
:cond_3
:goto_0
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$5;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2000(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)V
return-void
.end method
@@ -0,0 +1,148 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendGet(Ljava/lang/Long;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$get:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
.field public final synthetic val$readId:Ljava/lang/Long;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Ljava/lang/Long;Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$readId:Ljava/lang/Long;
iput-object p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$get:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2300(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Ljava/util/Map;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$readId:Ljava/lang/Long;
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
.line 2
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$get:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
if-ne v0, v1, :cond_0
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2300(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Ljava/util/Map;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$readId:Ljava/lang/Long;
invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
.line 4
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$get:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->access$2400(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;->onResponse(Ljava/util/Map;)V
goto :goto_0
.line 5
:cond_0
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
invoke-virtual {p1}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result p1
if-eqz p1, :cond_1
.line 6
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
const-string v0, "Ignoring on complete for get "
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$6;->val$readId:Ljava/lang/Long;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " because it was removed already."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_1
:goto_0
return-void
.end method
@@ -0,0 +1,184 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendListen(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "s"
.line 1
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, "ok"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
const-string v3, "d"
if-eqz v2, :cond_0
.line 3
invoke-interface {p1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/Map;
const-string v4, "w"
.line 4
invoke-interface {v2, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_0
.line 5
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/util/List;
.line 6
iget-object v4, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-object v5, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-static {v5}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->access$700(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
move-result-object v5
invoke-static {v4, v2, v5}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Ljava/util/List;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;)V
.line 7
:cond_0
iget-object v2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2600(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Ljava/util/Map;
move-result-object v2
iget-object v4, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-virtual {v4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->getQuery()Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
move-result-object v4
invoke-interface {v2, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
.line 8
iget-object v4, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
if-ne v2, v4, :cond_2
.line 9
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
.line 10
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-object v2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-virtual {v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->getQuery()Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
move-result-object v2
invoke-static {v1, v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2700(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
.line 11
invoke-interface {p1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 12
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-static {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->access$800(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)Lcom/google/firebase/database/connection/RequestResultCallback;
move-result-object v1
invoke-interface {v1, v0, p1}, Lcom/google/firebase/database/connection/RequestResultCallback;->onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
.line 13
:cond_1
iget-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$7;->val$listen:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
invoke-static {p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->access$800(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)Lcom/google/firebase/database/connection/RequestResultCallback;
move-result-object p1
const/4 v0, 0x0
invoke-interface {p1, v0, v0}, Lcom/google/firebase/database/connection/RequestResultCallback;->onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
:cond_2
:goto_0
return-void
.end method
@@ -0,0 +1,115 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$8;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->sendStats(Ljava/util/Map;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$8;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onResponse(Ljava/util/Map;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "s"
.line 1
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
const-string v1, "ok"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
const-string v1, "d"
.line 3
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 4
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$8;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v1
if-eqz v1, :cond_0
.line 5
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$8;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$1500(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
const-string v2, "Failed to send stats: "
const-string v3, " (message: "
const-string v4, ")"
invoke-static {v2, v0, v3, p1, v4}, Ls/i;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
invoke-virtual {v1, p1, v0}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
@@ -0,0 +1,74 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;->doIdleCheck()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2802(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Ljava/util/concurrent/ScheduledFuture;)Ljava/util/concurrent/ScheduledFuture;
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2900(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)Z
move-result v0
if-eqz v0, :cond_0
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
const-string v1, "connection_idle"
invoke-virtual {v0, v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->interrupt(Ljava/lang/String;)V
goto :goto_0
.line 4
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$9;->this$0:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-static {v0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->access$2000(Lcom/google/firebase/database/connection/PersistentConnectionImpl;)V
:goto_0
return-void
.end method
@@ -0,0 +1,28 @@
.class interface abstract Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ConnectionRequestCallback"
.end annotation
# virtual methods
.method public abstract onResponse(Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.end method
@@ -0,0 +1,160 @@
.class final enum Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.super Ljava/lang/Enum;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "ConnectionState"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.field public static final enum Authenticating:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.field public static final enum Connected:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.field public static final enum Connecting:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.field public static final enum Disconnected:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.field public static final enum GettingToken:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
# direct methods
.method public static constructor <clinit>()V
.locals 11
.line 1
new-instance v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const-string v1, "Disconnected"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->Disconnected:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.line 2
new-instance v1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const-string v3, "GettingToken"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->GettingToken:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.line 3
new-instance v3, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const-string v5, "Connecting"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->Connecting:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.line 4
new-instance v5, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const-string v7, "Authenticating"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->Authenticating:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.line 5
new-instance v7, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const-string v9, "Connected"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->Connected:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
const/4 v9, 0x5
new-array v9, v9, [Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
aput-object v0, v9, v2
aput-object v1, v9, v4
aput-object v3, v9, v6
aput-object v5, v9, v8
aput-object v7, v9, v10
.line 6
sput-object v9, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->$VALUES:[Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.locals 1
.line 1
const-class v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->$VALUES:[Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
invoke-virtual {v0}, [Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionState;
return-object v0
.end method
@@ -0,0 +1,131 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "OutstandingDisconnect"
.end annotation
# instance fields
.field private final action:Ljava/lang/String;
.field private final data:Ljava/lang/Object;
.field private final onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
.field private final path:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/lang/String;Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->action:Ljava/lang/String;
.line 4
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->path:Ljava/util/List;
.line 5
iput-object p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->data:Ljava/lang/Object;
.line 6
iput-object p4, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;-><init>(Ljava/lang/String;Ljava/util/List;Ljava/lang/Object;Lcom/google/firebase/database/connection/RequestResultCallback;)V
return-void
.end method
.method public static synthetic access$500(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;)Lcom/google/firebase/database/connection/RequestResultCallback;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-object p0
.end method
# virtual methods
.method public getAction()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->action:Ljava/lang/String;
return-object v0
.end method
.method public getData()Ljava/lang/Object;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->data:Ljava/lang/Object;
return-object v0
.end method
.method public getOnComplete()Lcom/google/firebase/database/connection/RequestResultCallback;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-object v0
.end method
.method public getPath()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingDisconnect;->path:Ljava/util/List;
return-object v0
.end method
@@ -0,0 +1,155 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "OutstandingGet"
.end annotation
# instance fields
.field private final onComplete:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
.field private final request:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private sent:Z
# direct methods
.method private constructor <init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;",
")V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->request:Ljava/util/Map;
.line 4
iput-object p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->onComplete:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
const/4 p1, 0x0
.line 5
iput-boolean p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->sent:Z
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;-><init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;)V
return-void
.end method
.method public static synthetic access$2100(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;)Z
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->markSent()Z
move-result p0
return p0
.end method
.method public static synthetic access$2200(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;)Ljava/util/Map;
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->getRequest()Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static synthetic access$2400(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
.locals 0
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->getOnComplete()Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
move-result-object p0
return-object p0
.end method
.method private getOnComplete()Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->onComplete:Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
return-object v0
.end method
.method private getRequest()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->request:Ljava/util/Map;
return-object v0
.end method
.method private markSent()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->sent:Z
if-eqz v0, :cond_0
const/4 v0, 0x0
return v0
:cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;->sent:Z
return v0
.end method
@@ -0,0 +1,138 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "OutstandingListen"
.end annotation
# instance fields
.field private final hashFunction:Lcom/google/firebase/database/connection/ListenHashProvider;
.field private final query:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.field private final resultCallback:Lcom/google/firebase/database/connection/RequestResultCallback;
.field private final tag:Ljava/lang/Long;
# direct methods
.method private constructor <init>(Lcom/google/firebase/database/connection/RequestResultCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;Ljava/lang/Long;Lcom/google/firebase/database/connection/ListenHashProvider;)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->resultCallback:Lcom/google/firebase/database/connection/RequestResultCallback;
.line 4
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->query:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.line 5
iput-object p4, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->hashFunction:Lcom/google/firebase/database/connection/ListenHashProvider;
.line 6
iput-object p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->tag:Ljava/lang/Long;
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/RequestResultCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;Ljava/lang/Long;Lcom/google/firebase/database/connection/ListenHashProvider;Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;-><init>(Lcom/google/firebase/database/connection/RequestResultCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;Ljava/lang/Long;Lcom/google/firebase/database/connection/ListenHashProvider;)V
return-void
.end method
.method public static synthetic access$700(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->query:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
return-object p0
.end method
.method public static synthetic access$800(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;)Lcom/google/firebase/database/connection/RequestResultCallback;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->resultCallback:Lcom/google/firebase/database/connection/RequestResultCallback;
return-object p0
.end method
# virtual methods
.method public getHashFunction()Lcom/google/firebase/database/connection/ListenHashProvider;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->hashFunction:Lcom/google/firebase/database/connection/ListenHashProvider;
return-object v0
.end method
.method public getQuery()Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->query:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
return-object v0
.end method
.method public getTag()Ljava/lang/Long;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->tag:Ljava/lang/Long;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->query:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
invoke-virtual {v1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " (Tag: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingListen;->tag:Ljava/lang/Long;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,141 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "OutstandingPut"
.end annotation
# instance fields
.field private action:Ljava/lang/String;
.field private onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
.field private request:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private sent:Z
# direct methods
.method private constructor <init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/RequestResultCallback;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/connection/RequestResultCallback;",
")V"
}
.end annotation
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->action:Ljava/lang/String;
.line 4
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->request:Ljava/util/Map;
.line 5
iput-object p3, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/RequestResultCallback;Lcom/google/firebase/database/connection/PersistentConnectionImpl$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;-><init>(Ljava/lang/String;Ljava/util/Map;Lcom/google/firebase/database/connection/RequestResultCallback;)V
return-void
.end method
.method public static synthetic access$400(Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;)Lcom/google/firebase/database/connection/RequestResultCallback;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-object p0
.end method
# virtual methods
.method public getAction()Ljava/lang/String;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->action:Ljava/lang/String;
return-object v0
.end method
.method public getOnComplete()Lcom/google/firebase/database/connection/RequestResultCallback;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->onComplete:Lcom/google/firebase/database/connection/RequestResultCallback;
return-object v0
.end method
.method public getRequest()Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->request:Ljava/util/Map;
return-object v0
.end method
.method public markSent()V
.locals 1
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->sent:Z
return-void
.end method
.method public wasSent()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingPut;->sent:Z
return v0
.end method
@@ -0,0 +1,194 @@
.class Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.super Ljava/lang/Object;
.source "PersistentConnectionImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "QuerySpec"
.end annotation
# instance fields
.field private final path:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final queryParams:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/List;Ljava/util/Map;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
return-void
.end method
.method public static synthetic access$100(Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;)Ljava/util/List;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
return-object p0
.end method
.method public static synthetic access$200(Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;)Ljava/util/Map;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
return-object p0
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 3
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
.line 1
:cond_0
instance-of v0, p1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
const/4 v1, 0x0
if-nez v0, :cond_1
return v1
.line 2
:cond_1
check-cast p1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
iget-object v2, p1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
invoke-interface {v0, v2}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2
return v1
.line 4
:cond_2
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
iget-object p1, p1, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public hashCode()I
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
.line 2
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->hashCode()I
move-result v1
add-int/2addr v1, v0
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->path:Ljava/util/List;
invoke-static {v1}, Lcom/google/firebase/database/connection/ConnectionUtils;->pathToString(Ljava/util/List;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " (params: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;->queryParams:Ljava/util/Map;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,105 @@
.class public Lcom/google/firebase/database/connection/RangeMerge;
.super Ljava/lang/Object;
.source "RangeMerge.java"
# instance fields
.field private final optExclusiveStart:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final optInclusiveEnd:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final snap:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/util/List;Ljava/util/List;Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/Object;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/connection/RangeMerge;->optExclusiveStart:Ljava/util/List;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/RangeMerge;->optInclusiveEnd:Ljava/util/List;
.line 4
iput-object p3, p0, Lcom/google/firebase/database/connection/RangeMerge;->snap:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public getOptExclusiveStart()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/RangeMerge;->optExclusiveStart:Ljava/util/List;
return-object v0
.end method
.method public getOptInclusiveEnd()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/RangeMerge;->optInclusiveEnd:Ljava/util/List;
return-object v0
.end method
.method public getSnap()Ljava/lang/Object;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/RangeMerge;->snap:Ljava/lang/Object;
return-object v0
.end method
@@ -0,0 +1,8 @@
.class public interface abstract Lcom/google/firebase/database/connection/RequestResultCallback;
.super Ljava/lang/Object;
.source "RequestResultCallback.java"
# virtual methods
.method public abstract onRequestResult(Ljava/lang/String;Ljava/lang/String;)V
.end method
@@ -0,0 +1,47 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$1;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection;->open()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$1;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$1;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$800(Lcom/google/firebase/database/connection/WebsocketConnection;)V
return-void
.end method
@@ -0,0 +1,68 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$2;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection;->nop()Ljava/lang/Runnable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$2;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$2;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$900(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/connection/WebsocketConnection$WSClient;
move-result-object v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$2;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$900(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/connection/WebsocketConnection$WSClient;
move-result-object v0
const-string v1, "0"
invoke-interface {v0, v1}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClient;->send(Ljava/lang/String;)V
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$2;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$300(Lcom/google/firebase/database/connection/WebsocketConnection;)V
:cond_0
return-void
.end method
@@ -0,0 +1,31 @@
.class public interface abstract Lcom/google/firebase/database/connection/WebsocketConnection$Delegate;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/WebsocketConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Delegate"
.end annotation
# virtual methods
.method public abstract onDisconnect(Z)V
.end method
.method public abstract onMessage(Ljava/util/Map;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.end method
@@ -0,0 +1,25 @@
.class interface abstract Lcom/google/firebase/database/connection/WebsocketConnection$WSClient;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/WebsocketConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "WSClient"
.end annotation
# virtual methods
.method public abstract close()V
.end method
.method public abstract connect()V
.end method
.method public abstract send(Ljava/lang/String;)V
.end method
@@ -0,0 +1,101 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->onOpen()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$000(Lcom/google/firebase/database/connection/WebsocketConnection;)Ljava/util/concurrent/ScheduledFuture;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
const/4 v2, 0x1
invoke-static {v0, v2}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$102(Lcom/google/firebase/database/connection/WebsocketConnection;Z)Z
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "websocket opened"
invoke-virtual {v0, v2, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 4
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$300(Lcom/google/firebase/database/connection/WebsocketConnection;)V
return-void
.end method
@@ -0,0 +1,55 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->onMessage(Lcom/google/firebase/database/tubesock/WebSocketMessage;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
.field public final synthetic val$str:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;Ljava/lang/String;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iput-object p2, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;->val$str:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
iget-object v1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;->val$str:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$500(Lcom/google/firebase/database/connection/WebsocketConnection;Ljava/lang/String;)V
return-void
.end method
@@ -0,0 +1,81 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->onClose()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "closed"
invoke-virtual {v0, v2, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 2
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$600(Lcom/google/firebase/database/connection/WebsocketConnection;)V
return-void
.end method
@@ -0,0 +1,110 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->onError(Lcom/google/firebase/database/tubesock/WebSocketException;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
.field public final synthetic val$e:Lcom/google/firebase/database/tubesock/WebSocketException;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;Lcom/google/firebase/database/tubesock/WebSocketException;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iput-object p2, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->val$e:Lcom/google/firebase/database/tubesock/WebSocketException;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 4
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->val$e:Lcom/google/firebase/database/tubesock/WebSocketException;
invoke-virtual {v0}, Ljava/lang/RuntimeException;->getCause()Ljava/lang/Throwable;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->val$e:Lcom/google/firebase/database/tubesock/WebSocketException;
invoke-virtual {v0}, Ljava/lang/RuntimeException;->getCause()Ljava/lang/Throwable;
move-result-object v0
instance-of v0, v0, Ljava/io/EOFException;
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "WebSocket reached EOF."
invoke-virtual {v0, v2, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
iget-object v2, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->val$e:Lcom/google/firebase/database/tubesock/WebSocketException;
new-array v1, v1, [Ljava/lang/Object;
const-string v3, "WebSocket error."
invoke-virtual {v0, v3, v2, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
.line 4
:goto_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;->this$1:Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
iget-object v0, v0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$600(Lcom/google/firebase/database/connection/WebsocketConnection;)V
return-void
.end method
@@ -0,0 +1,314 @@
.class Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;
.super Ljava/lang/Object;
.source "WebsocketConnection.java"
# interfaces
.implements Lcom/google/firebase/database/connection/WebsocketConnection$WSClient;
.implements Lcom/google/firebase/database/tubesock/WebSocketEventHandler;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/WebsocketConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "WSClientTubesock"
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
.field private ws:Lcom/google/firebase/database/tubesock/WebSocket;
# direct methods
.method private constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection;Lcom/google/firebase/database/tubesock/WebSocket;)V
.locals 0
.line 2
iput-object p1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-object p2, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
.line 4
invoke-virtual {p2, p0}, Lcom/google/firebase/database/tubesock/WebSocket;->setEventHandler(Lcom/google/firebase/database/tubesock/WebSocketEventHandler;)V
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/WebsocketConnection;Lcom/google/firebase/database/tubesock/WebSocket;Lcom/google/firebase/database/connection/WebsocketConnection$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;-><init>(Lcom/google/firebase/database/connection/WebsocketConnection;Lcom/google/firebase/database/tubesock/WebSocket;)V
return-void
.end method
.method private shutdown()V
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
invoke-virtual {v0}, Lcom/google/firebase/database/tubesock/WebSocket;->close()V
.line 2
:try_start_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
invoke-virtual {v0}, Lcom/google/firebase/database/tubesock/WebSocket;->blockClose()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 3
iget-object v1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v1}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
const-string v2, "Interrupted while shutting down websocket threads"
invoke-virtual {v1, v2, v0}, Lcom/google/firebase/database/logging/LogWrapper;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method
# virtual methods
.method public close()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
invoke-virtual {v0}, Lcom/google/firebase/database/tubesock/WebSocket;->close()V
return-void
.end method
.method public connect()V
.locals 4
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
invoke-virtual {v0}, Lcom/google/firebase/database/tubesock/WebSocket;->connect()V
:try_end_0
.catch Lcom/google/firebase/database/tubesock/WebSocketException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
.line 2
iget-object v1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v1}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v1
if-eqz v1, :cond_0
iget-object v1, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v1}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v1
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
const-string v3, "Error connecting"
invoke-virtual {v1, v3, v0, v2}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
.line 3
:cond_0
invoke-direct {p0}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->shutdown()V
:goto_0
return-void
.end method
.method public onClose()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$400(Lcom/google/firebase/database/connection/WebsocketConnection;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;
invoke-direct {v1, p0}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$3;-><init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public onError(Lcom/google/firebase/database/tubesock/WebSocketException;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$400(Lcom/google/firebase/database/connection/WebsocketConnection;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;
invoke-direct {v1, p0, p1}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$4;-><init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;Lcom/google/firebase/database/tubesock/WebSocketException;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public onLogMessage(Ljava/lang/String;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
const-string v1, "Tubesock: "
invoke-static {v1, p1}, Lc/g;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {v0, p1, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
return-void
.end method
.method public onMessage(Lcom/google/firebase/database/tubesock/WebSocketMessage;)V
.locals 3
.line 1
invoke-virtual {p1}, Lcom/google/firebase/database/tubesock/WebSocketMessage;->getText()Ljava/lang/String;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/logging/LogWrapper;->logsDebug()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$200(Lcom/google/firebase/database/connection/WebsocketConnection;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object v0
const-string v1, "ws message: "
invoke-static {v1, p1}, Lc/g;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Object;
invoke-virtual {v0, v1, v2}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 3
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$400(Lcom/google/firebase/database/connection/WebsocketConnection;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;
invoke-direct {v1, p0, p1}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$2;-><init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;Ljava/lang/String;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public onOpen()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->this$0:Lcom/google/firebase/database/connection/WebsocketConnection;
invoke-static {v0}, Lcom/google/firebase/database/connection/WebsocketConnection;->access$400(Lcom/google/firebase/database/connection/WebsocketConnection;)Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;
invoke-direct {v1, p0}, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock$1;-><init>(Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public send(Ljava/lang/String;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/WebsocketConnection$WSClientTubesock;->ws:Lcom/google/firebase/database/tubesock/WebSocket;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/tubesock/WebSocket;->send(Ljava/lang/String;)V
return-void
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/connection/a;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/android/gms/tasks/OnFailureListener;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:J
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;J)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/a;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-wide p2, p0, Lcom/google/firebase/database/connection/a;->b:J
return-void
.end method
# virtual methods
.method public final onFailure(Ljava/lang/Exception;)V
.locals 3
iget-object v0, p0, Lcom/google/firebase/database/connection/a;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-wide v1, p0, Lcom/google/firebase/database/connection/a;->b:J
invoke-static {v0, v1, v2, p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->e(Lcom/google/firebase/database/connection/PersistentConnectionImpl;JLjava/lang/Exception;)V
return-void
.end method
@@ -0,0 +1,56 @@
.class public final synthetic Lcom/google/firebase/database/connection/b;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/android/gms/tasks/OnSuccessListener;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:J
.field public final synthetic c:Lcom/google/android/gms/tasks/Task;
.field public final synthetic d:Lcom/google/android/gms/tasks/Task;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;JLcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/b;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-wide p2, p0, Lcom/google/firebase/database/connection/b;->b:J
iput-object p4, p0, Lcom/google/firebase/database/connection/b;->c:Lcom/google/android/gms/tasks/Task;
iput-object p5, p0, Lcom/google/firebase/database/connection/b;->d:Lcom/google/android/gms/tasks/Task;
return-void
.end method
# virtual methods
.method public final onSuccess(Ljava/lang/Object;)V
.locals 6
iget-object v0, p0, Lcom/google/firebase/database/connection/b;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-wide v1, p0, Lcom/google/firebase/database/connection/b;->b:J
iget-object v3, p0, Lcom/google/firebase/database/connection/b;->c:Lcom/google/android/gms/tasks/Task;
iget-object v4, p0, Lcom/google/firebase/database/connection/b;->d:Lcom/google/android/gms/tasks/Task;
move-object v5, p1
check-cast v5, Ljava/lang/Void;
invoke-static/range {v0 .. v5}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->b(Lcom/google/firebase/database/connection/PersistentConnectionImpl;JLcom/google/android/gms/tasks/Task;Lcom/google/android/gms/tasks/Task;Ljava/lang/Void;)V
return-void
.end method
@@ -0,0 +1,46 @@
.class public final synthetic Lcom/google/firebase/database/connection/c;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
.field public final synthetic c:Lcom/google/android/gms/tasks/TaskCompletionSource;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/c;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/c;->b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
iput-object p3, p0, Lcom/google/firebase/database/connection/c;->c:Lcom/google/android/gms/tasks/TaskCompletionSource;
return-void
.end method
# virtual methods
.method public final onResponse(Ljava/util/Map;)V
.locals 3
iget-object v0, p0, Lcom/google/firebase/database/connection/c;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-object v1, p0, Lcom/google/firebase/database/connection/c;->b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;
iget-object v2, p0, Lcom/google/firebase/database/connection/c;->c:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-static {v0, v1, v2, p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->f(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$QuerySpec;Lcom/google/android/gms/tasks/TaskCompletionSource;Ljava/util/Map;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/connection/d;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/database/connection/PersistentConnectionImpl$ConnectionRequestCallback;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:Z
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Z)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/d;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-boolean p2, p0, Lcom/google/firebase/database/connection/d;->b:Z
return-void
.end method
# virtual methods
.method public final onResponse(Ljava/util/Map;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/connection/d;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-boolean v1, p0, Lcom/google/firebase/database/connection/d;->b:Z
invoke-static {v0, v1, p1}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->c(Lcom/google/firebase/database/connection/PersistentConnectionImpl;ZLjava/util/Map;)V
return-void
.end method
@@ -0,0 +1,52 @@
.class public final synthetic Lcom/google/firebase/database/connection/e;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
.field public final synthetic c:J
.field public final synthetic d:Lcom/google/android/gms/tasks/TaskCompletionSource;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;JLcom/google/android/gms/tasks/TaskCompletionSource;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/e;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-object p2, p0, Lcom/google/firebase/database/connection/e;->b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
iput-wide p3, p0, Lcom/google/firebase/database/connection/e;->c:J
iput-object p5, p0, Lcom/google/firebase/database/connection/e;->d:Lcom/google/android/gms/tasks/TaskCompletionSource;
return-void
.end method
# virtual methods
.method public final run()V
.locals 5
iget-object v0, p0, Lcom/google/firebase/database/connection/e;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-object v1, p0, Lcom/google/firebase/database/connection/e;->b:Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;
iget-wide v2, p0, Lcom/google/firebase/database/connection/e;->c:J
iget-object v4, p0, Lcom/google/firebase/database/connection/e;->d:Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-static {v0, v1, v2, v3, v4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->a(Lcom/google/firebase/database/connection/PersistentConnectionImpl;Lcom/google/firebase/database/connection/PersistentConnectionImpl$OutstandingGet;JLcom/google/android/gms/tasks/TaskCompletionSource;)V
return-void
.end method
@@ -0,0 +1,46 @@
.class public final synthetic Lcom/google/firebase/database/connection/f;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
.field public final synthetic b:Z
.field public final synthetic c:Z
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/connection/PersistentConnectionImpl;ZZ)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/connection/f;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iput-boolean p2, p0, Lcom/google/firebase/database/connection/f;->b:Z
iput-boolean p3, p0, Lcom/google/firebase/database/connection/f;->c:Z
return-void
.end method
# virtual methods
.method public final run()V
.locals 3
iget-object v0, p0, Lcom/google/firebase/database/connection/f;->a:Lcom/google/firebase/database/connection/PersistentConnectionImpl;
iget-boolean v1, p0, Lcom/google/firebase/database/connection/f;->b:Z
iget-boolean v2, p0, Lcom/google/firebase/database/connection/f;->c:Z
invoke-static {v0, v1, v2}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;->d(Lcom/google/firebase/database/connection/PersistentConnectionImpl;ZZ)V
return-void
.end method
@@ -0,0 +1,11 @@
.class interface abstract synthetic Lcom/google/firebase/database/connection/package-info;
.super Ljava/lang/Object;
.source "package-info.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
@@ -0,0 +1,58 @@
.class Lcom/google/firebase/database/connection/util/RetryHelper$1;
.super Ljava/lang/Object;
.source "RetryHelper.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/connection/util/RetryHelper;->retry(Ljava/lang/Runnable;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/connection/util/RetryHelper;
.field public final synthetic val$runnable:Ljava/lang/Runnable;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/connection/util/RetryHelper;Ljava/lang/Runnable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$1;->this$0:Lcom/google/firebase/database/connection/util/RetryHelper;
iput-object p2, p0, Lcom/google/firebase/database/connection/util/RetryHelper$1;->val$runnable:Ljava/lang/Runnable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$1;->this$0:Lcom/google/firebase/database/connection/util/RetryHelper;
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/google/firebase/database/connection/util/RetryHelper;->access$002(Lcom/google/firebase/database/connection/util/RetryHelper;Ljava/util/concurrent/ScheduledFuture;)Ljava/util/concurrent/ScheduledFuture;
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$1;->val$runnable:Ljava/lang/Runnable;
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
return-void
.end method
@@ -0,0 +1,168 @@
.class public Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
.super Ljava/lang/Object;
.source "RetryHelper.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/connection/util/RetryHelper;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
# instance fields
.field private jitterFactor:D
.field private final logger:Lcom/google/firebase/database/logging/LogWrapper;
.field private minRetryDelayAfterFailure:J
.field private retryExponent:D
.field private retryMaxDelay:J
.field private final service:Ljava/util/concurrent/ScheduledExecutorService;
# direct methods
.method public constructor <init>(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/firebase/database/logging/Logger;Ljava/lang/String;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x3e8
.line 2
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->minRetryDelayAfterFailure:J
const-wide/high16 v0, 0x3fe0000000000000L # 0.5
.line 3
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->jitterFactor:D
const-wide/16 v0, 0x7530
.line 4
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryMaxDelay:J
const-wide v0, 0x3ff4cccccccccccdL # 1.3
.line 5
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryExponent:D
.line 6
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->service:Ljava/util/concurrent/ScheduledExecutorService;
.line 7
new-instance p1, Lcom/google/firebase/database/logging/LogWrapper;
invoke-direct {p1, p2, p3}, Lcom/google/firebase/database/logging/LogWrapper;-><init>(Lcom/google/firebase/database/logging/Logger;Ljava/lang/String;)V
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->logger:Lcom/google/firebase/database/logging/LogWrapper;
return-void
.end method
# virtual methods
.method public build()Lcom/google/firebase/database/connection/util/RetryHelper;
.locals 13
.line 1
new-instance v12, Lcom/google/firebase/database/connection/util/RetryHelper;
iget-object v1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->service:Ljava/util/concurrent/ScheduledExecutorService;
iget-object v2, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->logger:Lcom/google/firebase/database/logging/LogWrapper;
iget-wide v3, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->minRetryDelayAfterFailure:J
iget-wide v5, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryMaxDelay:J
iget-wide v7, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryExponent:D
iget-wide v9, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->jitterFactor:D
const/4 v11, 0x0
move-object v0, v12
invoke-direct/range {v0 .. v11}, Lcom/google/firebase/database/connection/util/RetryHelper;-><init>(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/firebase/database/logging/LogWrapper;JJDDLcom/google/firebase/database/connection/util/RetryHelper$1;)V
return-object v12
.end method
.method public withJitterFactor(D)Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
.locals 3
const-wide/16 v0, 0x0
cmpg-double v0, p1, v0
if-ltz v0, :cond_0
const-wide/high16 v0, 0x3ff0000000000000L # 1.0
cmpl-double v0, p1, v0
if-gtz v0, :cond_0
.line 1
iput-wide p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->jitterFactor:D
return-object p0
.line 2
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Argument out of range: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public withMaxDelay(J)Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
.locals 0
.line 1
iput-wide p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryMaxDelay:J
return-object p0
.end method
.method public withMinDelayAfterFailure(J)Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
.locals 0
.line 1
iput-wide p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->minRetryDelayAfterFailure:J
return-object p0
.end method
.method public withRetryExponent(D)Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
.locals 0
.line 1
iput-wide p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper$Builder;->retryExponent:D
return-object p0
.end method
@@ -0,0 +1,322 @@
.class public Lcom/google/firebase/database/connection/util/RetryHelper;
.super Ljava/lang/Object;
.source "RetryHelper.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/connection/util/RetryHelper$Builder;
}
.end annotation
# instance fields
.field private currentRetryDelay:J
.field private final executorService:Ljava/util/concurrent/ScheduledExecutorService;
.field private final jitterFactor:D
.field private lastWasSuccess:Z
.field private final logger:Lcom/google/firebase/database/logging/LogWrapper;
.field private final maxRetryDelay:J
.field private final minRetryDelayAfterFailure:J
.field private final random:Ljava/util/Random;
.field private final retryExponent:D
.field private scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ScheduledFuture<",
"*>;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/firebase/database/logging/LogWrapper;JJDD)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
new-instance v0, Ljava/util/Random;
invoke-direct {v0}, Ljava/util/Random;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->random:Ljava/util/Random;
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->lastWasSuccess:Z
.line 5
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->executorService:Ljava/util/concurrent/ScheduledExecutorService;
.line 6
iput-object p2, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->logger:Lcom/google/firebase/database/logging/LogWrapper;
.line 7
iput-wide p3, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->minRetryDelayAfterFailure:J
.line 8
iput-wide p5, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->maxRetryDelay:J
.line 9
iput-wide p7, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->retryExponent:D
.line 10
iput-wide p9, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->jitterFactor:D
return-void
.end method
.method public synthetic constructor <init>(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/firebase/database/logging/LogWrapper;JJDDLcom/google/firebase/database/connection/util/RetryHelper$1;)V
.locals 0
.line 1
invoke-direct/range {p0 .. p10}, Lcom/google/firebase/database/connection/util/RetryHelper;-><init>(Ljava/util/concurrent/ScheduledExecutorService;Lcom/google/firebase/database/logging/LogWrapper;JJDD)V
return-void
.end method
.method public static synthetic access$002(Lcom/google/firebase/database/connection/util/RetryHelper;Ljava/util/concurrent/ScheduledFuture;)Ljava/util/concurrent/ScheduledFuture;
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
return-object p1
.end method
# virtual methods
.method public cancel()V
.locals 4
.line 1
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->logger:Lcom/google/firebase/database/logging/LogWrapper;
new-array v2, v1, [Ljava/lang/Object;
const-string v3, "Cancelling existing retry attempt"
invoke-virtual {v0, v3, v2}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
const/4 v0, 0x0
.line 4
iput-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
goto :goto_0
.line 5
:cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->logger:Lcom/google/firebase/database/logging/LogWrapper;
new-array v1, v1, [Ljava/lang/Object;
const-string v2, "No existing retry attempt to cancel"
invoke-virtual {v0, v2, v1}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
const-wide/16 v0, 0x0
.line 6
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
return-void
.end method
.method public retry(Ljava/lang/Runnable;)V
.locals 10
.line 1
new-instance v0, Lcom/google/firebase/database/connection/util/RetryHelper$1;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/connection/util/RetryHelper$1;-><init>(Lcom/google/firebase/database/connection/util/RetryHelper;Ljava/lang/Runnable;)V
.line 2
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
const/4 v1, 0x0
if-eqz p1, :cond_0
.line 3
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->logger:Lcom/google/firebase/database/logging/LogWrapper;
new-array v2, v1, [Ljava/lang/Object;
const-string v3, "Cancelling previous scheduled retry"
invoke-virtual {p1, v3, v2}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 4
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
invoke-interface {p1, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
const/4 p1, 0x0
.line 5
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
.line 6
:cond_0
iget-boolean p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->lastWasSuccess:Z
const-wide/16 v2, 0x0
if-eqz p1, :cond_1
goto :goto_1
.line 7
:cond_1
iget-wide v4, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
cmp-long p1, v4, v2
if-nez p1, :cond_2
.line 8
iget-wide v2, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->minRetryDelayAfterFailure:J
iput-wide v2, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
goto :goto_0
:cond_2
long-to-double v2, v4
.line 9
iget-wide v4, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->retryExponent:D
mul-double/2addr v2, v4
double-to-long v2, v2
.line 10
iget-wide v4, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->maxRetryDelay:J
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
move-result-wide v2
iput-wide v2, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
:goto_0
const-wide/high16 v2, 0x3ff0000000000000L # 1.0
.line 11
iget-wide v4, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->jitterFactor:D
sub-double/2addr v2, v4
iget-wide v6, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
long-to-double v8, v6
mul-double/2addr v2, v8
long-to-double v6, v6
mul-double/2addr v4, v6
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->random:Ljava/util/Random;
.line 12
invoke-virtual {p1}, Ljava/util/Random;->nextDouble()D
move-result-wide v6
mul-double/2addr v6, v4
add-double/2addr v6, v2
double-to-long v2, v6
.line 13
:goto_1
iput-boolean v1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->lastWasSuccess:Z
.line 14
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->logger:Lcom/google/firebase/database/logging/LogWrapper;
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v5
aput-object v5, v4, v1
const-string v1, "Scheduling retry in %dms"
invoke-virtual {p1, v1, v4}, Lcom/google/firebase/database/logging/LogWrapper;->debug(Ljava/lang/String;[Ljava/lang/Object;)V
.line 15
iget-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->executorService:Ljava/util/concurrent/ScheduledExecutorService;
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-interface {p1, v0, v2, v3, v1}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->scheduledRetry:Ljava/util/concurrent/ScheduledFuture;
return-void
.end method
.method public setMaxDelay()V
.locals 2
.line 1
iget-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->maxRetryDelay:J
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
return-void
.end method
.method public signalSuccess()V
.locals 2
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->lastWasSuccess:Z
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Lcom/google/firebase/database/connection/util/RetryHelper;->currentRetryDelay:J
return-void
.end method
@@ -0,0 +1,654 @@
.class public Lcom/google/firebase/database/connection/util/StringListReader;
.super Ljava/io/Reader;
.source "StringListReader.java"
# instance fields
.field private charPos:I
.field private closed:Z
.field private frozen:Z
.field private markedCharPos:I
.field private markedStringListPos:I
.field private stringListPos:I
.field private strings:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/io/Reader;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
const/4 v0, 0x0
.line 3
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->closed:Z
.line 4
iget v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
iput v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedCharPos:I
.line 5
iget v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
iput v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedStringListPos:I
.line 6
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->frozen:Z
.line 7
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
return-void
.end method
.method private advance(J)J
.locals 7
const-wide/16 v0, 0x0
.line 1
:goto_0
iget v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
iget-object v3, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v3
if-ge v2, v3, :cond_1
cmp-long v2, v0, p1
if-gez v2, :cond_1
.line 2
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentStringRemainingChars()I
move-result v2
sub-long v3, p1, v0
int-to-long v5, v2
cmp-long v2, v3, v5
if-gez v2, :cond_0
.line 3
iget v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
int-to-long v5, v2
add-long/2addr v5, v3
long-to-int v2, v5
iput v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
add-long/2addr v0, v3
goto :goto_0
:cond_0
add-long/2addr v0, v5
const/4 v2, 0x0
.line 4
iput v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
.line 5
iget v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
add-int/lit8 v2, v2, 0x1
iput v2, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
goto :goto_0
:cond_1
return-wide v0
.end method
.method private checkState()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->closed:Z
if-nez v0, :cond_1
.line 2
iget-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->frozen:Z
if-eqz v0, :cond_0
return-void
.line 3
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "Reader needs to be frozen before read operations can be called"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.line 4
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "Stream already closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private currentString()Ljava/lang/String;
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
iget-object v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
iget v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method private currentStringRemainingChars()I
.locals 2
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_0
const/4 v0, 0x0
goto :goto_0
.line 2
:cond_0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
iget v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
sub-int/2addr v0, v1
:goto_0
return v0
.end method
# virtual methods
.method public addString(Ljava/lang/String;)V
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->frozen:Z
if-nez v0, :cond_1
.line 2
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
if-lez v0, :cond_0
.line 3
iget-object v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_0
return-void
.line 4
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Trying to add string after reading"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->closed:Z
return-void
.end method
.method public freeze()V
.locals 2
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->frozen:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->frozen:Z
return-void
.line 3
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Trying to freeze frozen StringListReader"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public mark(I)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
.line 2
iget p1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
iput p1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedCharPos:I
.line 3
iget p1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
iput p1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedStringListPos:I
return-void
.end method
.method public markSupported()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public read()I
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 8
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
.line 9
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_0
const/4 v0, -0x1
return v0
.line 10
:cond_0
iget v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C
move-result v0
const-wide/16 v1, 0x1
.line 11
invoke-direct {p0, v1, v2}, Lcom/google/firebase/database/connection/util/StringListReader;->advance(J)J
return v0
.end method
.method public read(Ljava/nio/CharBuffer;)I
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
.line 2
invoke-virtual {p1}, Ljava/nio/CharBuffer;->remaining()I
move-result v0
.line 3
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
:goto_0
if-lez v0, :cond_0
if-eqz v1, :cond_0
.line 4
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
iget v3, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
sub-int/2addr v1, v3
invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I
move-result v1
.line 5
iget-object v3, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
iget v4, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
iget v4, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
add-int v5, v4, v1
invoke-virtual {p1, v3, v4, v5}, Ljava/nio/CharBuffer;->put(Ljava/lang/String;II)Ljava/nio/CharBuffer;
sub-int/2addr v0, v1
add-int/2addr v2, v1
int-to-long v3, v1
.line 6
invoke-direct {p0, v3, v4}, Lcom/google/firebase/database/connection/util/StringListReader;->advance(J)J
.line 7
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v1
goto :goto_0
:cond_0
if-gtz v2, :cond_2
if-eqz v1, :cond_1
goto :goto_1
:cond_1
const/4 p1, -0x1
return p1
:cond_2
:goto_1
return v2
.end method
.method public read([CII)I
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 12
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
.line 13
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
:goto_0
if-eqz v0, :cond_0
if-ge v1, p3, :cond_0
.line 14
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentStringRemainingChars()I
move-result v2
sub-int v3, p3, v1
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
move-result v2
.line 15
iget v3, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
add-int v4, v3, v2
add-int v5, p2, v1
invoke-virtual {v0, v3, v4, p1, v5}, Ljava/lang/String;->getChars(II[CI)V
add-int/2addr v1, v2
int-to-long v2, v2
.line 16
invoke-direct {p0, v2, v3}, Lcom/google/firebase/database/connection/util/StringListReader;->advance(J)J
.line 17
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->currentString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
if-gtz v1, :cond_2
if-eqz v0, :cond_1
goto :goto_1
:cond_1
const/4 p1, -0x1
return p1
:cond_2
:goto_1
return v1
.end method
.method public ready()Z
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
const/4 v0, 0x1
return v0
.end method
.method public reset()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedCharPos:I
iput v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->charPos:I
.line 2
iget v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->markedStringListPos:I
iput v0, p0, Lcom/google/firebase/database/connection/util/StringListReader;->stringListPos:I
return-void
.end method
.method public skip(J)J
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/connection/util/StringListReader;->checkState()V
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/connection/util/StringListReader;->advance(J)J
move-result-wide p1
return-wide p1
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 2
iget-object v1, p0, Lcom/google/firebase/database/connection/util/StringListReader;->strings:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
.line 3
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
.line 4
:cond_0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,11 @@
.class interface abstract synthetic Lcom/google/firebase/database/connection/util/package-info;
.super Ljava/lang/Object;
.source "package-info.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation