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,28 @@
.class public final Lcom/google/firebase/database/BuildConfig;
.super Ljava/lang/Object;
.source "BuildConfig.java"
# static fields
.field public static final APPLICATION_ID:Ljava/lang/String; = "com.google.firebase.database"
.field public static final BUILD_TYPE:Ljava/lang/String; = "release"
.field public static final DEBUG:Z = false
.field public static final FLAVOR:Ljava/lang/String; = ""
.field public static final VERSION_CODE:I = -0x1
.field public static final VERSION_NAME:Ljava/lang/String; = "20.0.3"
# 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,52 @@
.class public interface abstract Lcom/google/firebase/database/ChildEventListener;
.super Ljava/lang/Object;
.source "ChildEventListener.java"
# virtual methods
.method public abstract onCancelled(Lcom/google/firebase/database/DatabaseError;)V
.param p1 # Lcom/google/firebase/database/DatabaseError;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public abstract onChildAdded(Lcom/google/firebase/database/DataSnapshot;Ljava/lang/String;)V
.param p1 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract onChildChanged(Lcom/google/firebase/database/DataSnapshot;Ljava/lang/String;)V
.param p1 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract onChildMoved(Lcom/google/firebase/database/DataSnapshot;Ljava/lang/String;)V
.param p1 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
.method public abstract onChildRemoved(Lcom/google/firebase/database/DataSnapshot;)V
.param p1 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
@@ -0,0 +1,139 @@
.class Lcom/google/firebase/database/DataSnapshot$1$1;
.super Ljava/lang/Object;
.source "DataSnapshot.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DataSnapshot$1;->iterator()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/DataSnapshot;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/DataSnapshot$1;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DataSnapshot$1;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DataSnapshot$1$1;->this$1:Lcom/google/firebase/database/DataSnapshot$1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot$1$1;->this$1:Lcom/google/firebase/database/DataSnapshot$1;
iget-object v0, v0, Lcom/google/firebase/database/DataSnapshot$1;->val$iter:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
return v0
.end method
.method public next()Lcom/google/firebase/database/DataSnapshot;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot$1$1;->this$1:Lcom/google/firebase/database/DataSnapshot$1;
iget-object v0, v0, Lcom/google/firebase/database/DataSnapshot$1;->val$iter:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/snapshot/NamedNode;
.line 3
new-instance v1, Lcom/google/firebase/database/DataSnapshot;
iget-object v2, p0, Lcom/google/firebase/database/DataSnapshot$1$1;->this$1:Lcom/google/firebase/database/DataSnapshot$1;
iget-object v2, v2, Lcom/google/firebase/database/DataSnapshot$1;->this$0:Lcom/google/firebase/database/DataSnapshot;
.line 4
invoke-static {v2}, Lcom/google/firebase/database/DataSnapshot;->access$000(Lcom/google/firebase/database/DataSnapshot;)Lcom/google/firebase/database/DatabaseReference;
move-result-object v2
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/NamedNode;->getName()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v3
invoke-virtual {v3}, Lcom/google/firebase/database/snapshot/ChildKey;->asString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Lcom/google/firebase/database/DatabaseReference;->child(Ljava/lang/String;)Lcom/google/firebase/database/DatabaseReference;
move-result-object v2
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/NamedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-static {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->from(Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/snapshot/IndexedNode;
move-result-object v0
invoke-direct {v1, v2, v0}, Lcom/google/firebase/database/DataSnapshot;-><init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/IndexedNode;)V
return-object v1
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/DataSnapshot$1$1;->next()Lcom/google/firebase/database/DataSnapshot;
move-result-object v0
return-object v0
.end method
.method public remove()V
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "remove called on immutable collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,68 @@
.class Lcom/google/firebase/database/DataSnapshot$1;
.super Ljava/lang/Object;
.source "DataSnapshot.java"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DataSnapshot;->getChildren()Ljava/lang/Iterable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lcom/google/firebase/database/DataSnapshot;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/DataSnapshot;
.field public final synthetic val$iter:Ljava/util/Iterator;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DataSnapshot;Ljava/util/Iterator;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DataSnapshot$1;->this$0:Lcom/google/firebase/database/DataSnapshot;
iput-object p2, p0, Lcom/google/firebase/database/DataSnapshot$1;->val$iter:Ljava/util/Iterator;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/DataSnapshot;",
">;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/DataSnapshot$1$1;
invoke-direct {v0, p0}, Lcom/google/firebase/database/DataSnapshot$1$1;-><init>(Lcom/google/firebase/database/DataSnapshot$1;)V
return-object v0
.end method
@@ -0,0 +1,455 @@
.class public Lcom/google/firebase/database/DataSnapshot;
.super Ljava/lang/Object;
.source "DataSnapshot.java"
# instance fields
.field private final node:Lcom/google/firebase/database/snapshot/IndexedNode;
.field private final query:Lcom/google/firebase/database/DatabaseReference;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/IndexedNode;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p2, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
.line 3
iput-object p1, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
return-void
.end method
.method public static synthetic access$000(Lcom/google/firebase/database/DataSnapshot;)Lcom/google/firebase/database/DatabaseReference;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
return-object p0
.end method
# virtual methods
.method public child(Ljava/lang/String;)Lcom/google/firebase/database/DataSnapshot;
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/DatabaseReference;->child(Ljava/lang/String;)Lcom/google/firebase/database/DatabaseReference;
move-result-object v0
.line 2
iget-object v1, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v1}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v1
new-instance v2, Lcom/google/firebase/database/core/Path;
invoke-direct {v2, p1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
invoke-interface {v1, v2}, Lcom/google/firebase/database/snapshot/Node;->getChild(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
.line 3
new-instance v1, Lcom/google/firebase/database/DataSnapshot;
invoke-static {p1}, Lcom/google/firebase/database/snapshot/IndexedNode;->from(Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/snapshot/IndexedNode;
move-result-object p1
invoke-direct {v1, v0, p1}, Lcom/google/firebase/database/DataSnapshot;-><init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/IndexedNode;)V
return-object v1
.end method
.method public exists()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->isEmpty()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
return v0
.end method
.method public getChildren()Ljava/lang/Iterable;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Iterable<",
"Lcom/google/firebase/database/DataSnapshot;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 2
new-instance v1, Lcom/google/firebase/database/DataSnapshot$1;
invoke-direct {v1, p0, v0}, Lcom/google/firebase/database/DataSnapshot$1;-><init>(Lcom/google/firebase/database/DataSnapshot;Ljava/util/Iterator;)V
return-object v1
.end method
.method public getChildrenCount()J
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getChildCount()I
move-result v0
int-to-long v0, v0
return-wide v0
.end method
.method public getKey()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
invoke-virtual {v0}, Lcom/google/firebase/database/DatabaseReference;->getKey()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getPriority()Ljava/lang/Object;
.locals 2
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getPriority()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
.line 2
instance-of v1, v0, Ljava/lang/Long;
if-eqz v1, :cond_0
.line 3
check-cast v0, Ljava/lang/Long;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v0
long-to-double v0, v0
invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object v0
:cond_0
return-object v0
.end method
.method public getRef()Lcom/google/firebase/database/DatabaseReference;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
return-object v0
.end method
.method public getValue()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getValue(Lcom/google/firebase/database/GenericTypeIndicator;)Ljava/lang/Object;
.locals 1
.param p1 # Lcom/google/firebase/database/GenericTypeIndicator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/firebase/database/GenericTypeIndicator<",
"TT;>;)TT;"
}
.end annotation
.line 5
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
.line 6
invoke-static {v0, p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToCustomClass(Ljava/lang/Object;Lcom/google/firebase/database/GenericTypeIndicator;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getValue(Ljava/lang/Class;)Ljava/lang/Object;
.locals 1
.param p1 # Ljava/lang/Class;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.line 3
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
.line 4
invoke-static {v0, p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToCustomClass(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getValue(Z)Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0, p1}, Lcom/google/firebase/database/snapshot/Node;->getValue(Z)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public hasChild(Ljava/lang/String;)Z
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
invoke-virtual {v0}, Lcom/google/firebase/database/DatabaseReference;->getParent()Lcom/google/firebase/database/DatabaseReference;
move-result-object v0
if-nez v0, :cond_0
.line 2
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validateRootPathString(Ljava/lang/String;)V
goto :goto_0
.line 3
:cond_0
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validatePathString(Ljava/lang/String;)V
.line 4
:goto_0
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/core/Path;
invoke-direct {v1, p1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
invoke-interface {v0, v1}, Lcom/google/firebase/database/snapshot/Node;->getChild(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
invoke-interface {p1}, Lcom/google/firebase/database/snapshot/Node;->isEmpty()Z
move-result p1
xor-int/lit8 p1, p1, 0x1
return p1
.end method
.method public hasChildren()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getChildCount()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
const-string v0, "DataSnapshot { key = "
.line 1
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/DataSnapshot;->query:Lcom/google/firebase/database/DatabaseReference;
.line 2
invoke-virtual {v1}, Lcom/google/firebase/database/DatabaseReference;->getKey()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ", value = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lcom/google/firebase/database/DataSnapshot;->node:Lcom/google/firebase/database/snapshot/IndexedNode;
.line 3
invoke-virtual {v1}, Lcom/google/firebase/database/snapshot/IndexedNode;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v1
const/4 v2, 0x1
invoke-interface {v1, v2}, Lcom/google/firebase/database/snapshot/Node;->getValue(Z)Ljava/lang/Object;
move-result-object v1
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,608 @@
.class public Lcom/google/firebase/database/DatabaseError;
.super Ljava/lang/Object;
.source "DatabaseError.java"
# static fields
.field public static final DATA_STALE:I = -0x1
.field public static final DISCONNECTED:I = -0x4
.field public static final EXPIRED_TOKEN:I = -0x6
.field public static final INVALID_TOKEN:I = -0x7
.field public static final MAX_RETRIES:I = -0x8
.field public static final NETWORK_ERROR:I = -0x18
.field public static final OPERATION_FAILED:I = -0x2
.field public static final OVERRIDDEN_BY_SET:I = -0x9
.field public static final PERMISSION_DENIED:I = -0x3
.field public static final UNAVAILABLE:I = -0xa
.field public static final UNKNOWN_ERROR:I = -0x3e7
.field public static final USER_CODE_EXCEPTION:I = -0xb
.field public static final WRITE_CANCELED:I = -0x19
.field private static final errorCodes:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field private static final errorReasons:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# instance fields
.field private final code:I
.field private final details:Ljava/lang/String;
.field private final message:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 14
.line 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/google/firebase/database/DatabaseError;->errorReasons:Ljava/util/Map;
const/4 v1, -0x1
.line 2
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "The transaction needs to be run again with current data"
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v2, -0x2
.line 3
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const-string v3, "The server indicated that this operation failed"
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v3, -0x3
.line 4
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
const-string v4, "This client does not have permission to perform this operation"
.line 5
invoke-interface {v0, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v4, -0x4
.line 6
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
const-string v5, "The operation had to be aborted due to a network disconnect"
invoke-interface {v0, v4, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v5, -0x6
.line 7
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
const-string v6, "The supplied auth token has expired"
invoke-interface {v0, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v6, -0x7
.line 8
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
const-string v7, "The supplied auth token was invalid"
invoke-interface {v0, v6, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v7, -0x8
.line 9
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const-string v8, "The transaction had too many retries"
invoke-interface {v0, v7, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v8, -0x9
.line 10
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v8
const-string v9, "The transaction was overridden by a subsequent set"
invoke-interface {v0, v8, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v9, -0xa
.line 11
invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
const-string v10, "The service is unavailable"
invoke-interface {v0, v9, v10}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v10, -0xb
.line 12
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v10
const-string v11, "User code called from the Firebase Database runloop threw an exception:\n"
.line 13
invoke-interface {v0, v10, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v10, -0x18
.line 14
invoke-static {v10}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v10
const-string v11, "The operation could not be performed due to a network error"
invoke-interface {v0, v10, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v11, -0x19
.line 15
invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v11
const-string v12, "The write was canceled by the user."
invoke-interface {v0, v11, v12}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/16 v12, -0x3e7
.line 16
invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v12
const-string v13, "An unknown error occurred"
invoke-interface {v0, v12, v13}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 17
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/google/firebase/database/DatabaseError;->errorCodes:Ljava/util/Map;
const-string v12, "datastale"
.line 18
invoke-interface {v0, v12, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "failure"
.line 19
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "permission_denied"
.line 20
invoke-interface {v0, v1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "disconnected"
.line 21
invoke-interface {v0, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "expired_token"
.line 22
invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "invalid_token"
.line 23
invoke-interface {v0, v1, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "maxretries"
.line 24
invoke-interface {v0, v1, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "overriddenbyset"
.line 25
invoke-interface {v0, v1, v8}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "unavailable"
.line 26
invoke-interface {v0, v1, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "network_error"
.line 27
invoke-interface {v0, v1, v10}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "write_canceled"
.line 28
invoke-interface {v0, v1, v11}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
.method private constructor <init>(ILjava/lang/String;)V
.locals 1
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/google/firebase/database/DatabaseError;-><init>(ILjava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method private constructor <init>(ILjava/lang/String;Ljava/lang/String;)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput p1, p0, Lcom/google/firebase/database/DatabaseError;->code:I
.line 4
iput-object p2, p0, Lcom/google/firebase/database/DatabaseError;->message:Ljava/lang/String;
if-nez p3, :cond_0
const-string p3, ""
.line 5
:cond_0
iput-object p3, p0, Lcom/google/firebase/database/DatabaseError;->details:Ljava/lang/String;
return-void
.end method
.method public static fromCode(I)Lcom/google/firebase/database/DatabaseError;
.locals 3
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 1
sget-object v0, Lcom/google/firebase/database/DatabaseError;->errorReasons:Ljava/util/Map;
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 2
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 3
new-instance v1, Lcom/google/firebase/database/DatabaseError;
const/4 v2, 0x0
invoke-direct {v1, p0, v0, v2}, Lcom/google/firebase/database/DatabaseError;-><init>(ILjava/lang/String;Ljava/lang/String;)V
return-object v1
.line 4
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Invalid Firebase Database error code: "
invoke-static {v1, p0}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static fromException(Ljava/lang/Throwable;)Lcom/google/firebase/database/DatabaseError;
.locals 4
.param p0 # Ljava/lang/Throwable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Ljava/io/StringWriter;
invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V
.line 2
new-instance v1, Ljava/io/PrintWriter;
invoke-direct {v1, v0}, Ljava/io/PrintWriter;-><init>(Ljava/io/Writer;)V
.line 3
invoke-virtual {p0, v1}, Ljava/lang/Throwable;->printStackTrace(Ljava/io/PrintWriter;)V
.line 4
new-instance p0, Ljava/lang/StringBuilder;
invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V
sget-object v1, Lcom/google/firebase/database/DatabaseError;->errorReasons:Ljava/util/Map;
const/16 v2, -0xb
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 5
new-instance v0, Lcom/google/firebase/database/DatabaseError;
invoke-direct {v0, v2, p0}, Lcom/google/firebase/database/DatabaseError;-><init>(ILjava/lang/String;)V
return-object v0
.end method
.method public static fromStatus(Ljava/lang/String;)Lcom/google/firebase/database/DatabaseError;
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-static {p0, v0}, Lcom/google/firebase/database/DatabaseError;->fromStatus(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/database/DatabaseError;
move-result-object p0
return-object p0
.end method
.method public static fromStatus(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/database/DatabaseError;
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
const/4 v0, 0x0
.line 2
invoke-static {p0, p1, v0}, Lcom/google/firebase/database/DatabaseError;->fromStatus(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/database/DatabaseError;
move-result-object p0
return-object p0
.end method
.method public static fromStatus(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/database/DatabaseError;
.locals 2
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 3
sget-object v0, Lcom/google/firebase/database/DatabaseError;->errorCodes:Ljava/util/Map;
sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {p0, v1}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
invoke-interface {v0, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Integer;
if-nez p0, :cond_0
const/16 p0, -0x3e7
.line 4
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
:cond_0
if-nez p1, :cond_1
.line 5
sget-object p1, Lcom/google/firebase/database/DatabaseError;->errorReasons:Ljava/util/Map;
invoke-interface {p1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
.line 6
:cond_1
new-instance v0, Lcom/google/firebase/database/DatabaseError;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-direct {v0, p0, p1, p2}, Lcom/google/firebase/database/DatabaseError;-><init>(ILjava/lang/String;Ljava/lang/String;)V
return-object v0
.end method
# virtual methods
.method public getCode()I
.locals 1
.line 1
iget v0, p0, Lcom/google/firebase/database/DatabaseError;->code:I
return v0
.end method
.method public getDetails()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DatabaseError;->details:Ljava/lang/String;
return-object v0
.end method
.method public getMessage()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DatabaseError;->message:Ljava/lang/String;
return-object v0
.end method
.method public toException()Lcom/google/firebase/database/DatabaseException;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/DatabaseException;
const-string v1, "Firebase Database error: "
invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/database/DatabaseError;->message:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "DatabaseError: "
.line 1
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/DatabaseError;->message: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,33 @@
.class public Lcom/google/firebase/database/DatabaseException;
.super Ljava/lang/RuntimeException;
.source "DatabaseException.java"
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 2
invoke-direct {p0, p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
@@ -0,0 +1,71 @@
.class Lcom/google/firebase/database/DatabaseReference$1;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DatabaseReference;->setValueInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/DatabaseReference;
.field public final synthetic val$node:Lcom/google/firebase/database/snapshot/Node;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/core/utilities/Pair;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DatabaseReference$1;->this$0:Lcom/google/firebase/database/DatabaseReference;
iput-object p2, p0, Lcom/google/firebase/database/DatabaseReference$1;->val$node:Lcom/google/firebase/database/snapshot/Node;
iput-object p3, p0, Lcom/google/firebase/database/DatabaseReference$1;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
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/DatabaseReference$1;->this$0:Lcom/google/firebase/database/DatabaseReference;
iget-object v1, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
invoke-virtual {v0}, Lcom/google/firebase/database/Query;->getPath()Lcom/google/firebase/database/core/Path;
move-result-object v0
iget-object v2, p0, Lcom/google/firebase/database/DatabaseReference$1;->val$node:Lcom/google/firebase/database/snapshot/Node;
iget-object v3, p0, Lcom/google/firebase/database/DatabaseReference$1;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v3}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
invoke-virtual {v1, v0, v2, v3}, Lcom/google/firebase/database/core/Repo;->setValue(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
return-void
.end method
@@ -0,0 +1,81 @@
.class Lcom/google/firebase/database/DatabaseReference$2;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DatabaseReference;->setPriorityInternal(Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/DatabaseReference;
.field public final synthetic val$priority:Lcom/google/firebase/database/snapshot/Node;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/core/utilities/Pair;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DatabaseReference$2;->this$0:Lcom/google/firebase/database/DatabaseReference;
iput-object p2, p0, Lcom/google/firebase/database/DatabaseReference$2;->val$priority:Lcom/google/firebase/database/snapshot/Node;
iput-object p3, p0, Lcom/google/firebase/database/DatabaseReference$2;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
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/DatabaseReference$2;->this$0:Lcom/google/firebase/database/DatabaseReference;
iget-object v1, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
.line 2
invoke-virtual {v0}, Lcom/google/firebase/database/Query;->getPath()Lcom/google/firebase/database/core/Path;
move-result-object v0
invoke-static {}, Lcom/google/firebase/database/snapshot/ChildKey;->getPriorityKey()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/google/firebase/database/core/Path;->child(Lcom/google/firebase/database/snapshot/ChildKey;)Lcom/google/firebase/database/core/Path;
move-result-object v0
iget-object v2, p0, Lcom/google/firebase/database/DatabaseReference$2;->val$priority:Lcom/google/firebase/database/snapshot/Node;
iget-object v3, p0, Lcom/google/firebase/database/DatabaseReference$2;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v3}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.line 3
invoke-virtual {v1, v0, v2, v3}, Lcom/google/firebase/database/core/Repo;->setValue(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
return-void
.end method
@@ -0,0 +1,77 @@
.class Lcom/google/firebase/database/DatabaseReference$3;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DatabaseReference;->updateChildrenInternal(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/DatabaseReference;
.field public final synthetic val$bouncedUpdate:Ljava/util/Map;
.field public final synthetic val$merge:Lcom/google/firebase/database/core/CompoundWrite;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/core/CompoundWrite;Lcom/google/firebase/database/core/utilities/Pair;Ljava/util/Map;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DatabaseReference$3;->this$0:Lcom/google/firebase/database/DatabaseReference;
iput-object p2, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$merge:Lcom/google/firebase/database/core/CompoundWrite;
iput-object p3, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
iput-object p4, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$bouncedUpdate:Ljava/util/Map;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
.line 1
iget-object v0, p0, Lcom/google/firebase/database/DatabaseReference$3;->this$0:Lcom/google/firebase/database/DatabaseReference;
iget-object v1, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
invoke-virtual {v0}, Lcom/google/firebase/database/Query;->getPath()Lcom/google/firebase/database/core/Path;
move-result-object v0
iget-object v2, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$merge:Lcom/google/firebase/database/core/CompoundWrite;
iget-object v3, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v3}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
iget-object v4, p0, Lcom/google/firebase/database/DatabaseReference$3;->val$bouncedUpdate:Ljava/util/Map;
invoke-virtual {v1, v0, v2, v3, v4}, Lcom/google/firebase/database/core/Repo;->updateChildren(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/core/CompoundWrite;Lcom/google/firebase/database/DatabaseReference$CompletionListener;Ljava/util/Map;)V
return-void
.end method
@@ -0,0 +1,65 @@
.class Lcom/google/firebase/database/DatabaseReference$4;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DatabaseReference;->runTransaction(Lcom/google/firebase/database/Transaction$Handler;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/DatabaseReference;
.field public final synthetic val$fireLocalEvents:Z
.field public final synthetic val$handler:Lcom/google/firebase/database/Transaction$Handler;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/Transaction$Handler;Z)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DatabaseReference$4;->this$0:Lcom/google/firebase/database/DatabaseReference;
iput-object p2, p0, Lcom/google/firebase/database/DatabaseReference$4;->val$handler:Lcom/google/firebase/database/Transaction$Handler;
iput-boolean p3, p0, Lcom/google/firebase/database/DatabaseReference$4;->val$fireLocalEvents:Z
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/DatabaseReference$4;->this$0:Lcom/google/firebase/database/DatabaseReference;
iget-object v1, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
invoke-virtual {v0}, Lcom/google/firebase/database/Query;->getPath()Lcom/google/firebase/database/core/Path;
move-result-object v0
iget-object v2, p0, Lcom/google/firebase/database/DatabaseReference$4;->val$handler:Lcom/google/firebase/database/Transaction$Handler;
iget-boolean v3, p0, Lcom/google/firebase/database/DatabaseReference$4;->val$fireLocalEvents:Z
invoke-virtual {v1, v0, v2, v3}, Lcom/google/firebase/database/core/Repo;->startTransaction(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/Transaction$Handler;Z)V
return-void
.end method
@@ -0,0 +1,55 @@
.class Lcom/google/firebase/database/DatabaseReference$5;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/DatabaseReference;->setHijackHash(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/DatabaseReference;
.field public final synthetic val$hijackHash:Z
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/DatabaseReference;Z)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/DatabaseReference$5;->this$0:Lcom/google/firebase/database/DatabaseReference;
iput-boolean p2, p0, Lcom/google/firebase/database/DatabaseReference$5;->val$hijackHash:Z
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/DatabaseReference$5;->this$0:Lcom/google/firebase/database/DatabaseReference;
iget-object v0, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
iget-boolean v1, p0, Lcom/google/firebase/database/DatabaseReference$5;->val$hijackHash:Z
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/Repo;->setHijackHash(Z)V
return-void
.end method
@@ -0,0 +1,27 @@
.class public interface abstract Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.super Ljava/lang/Object;
.source "DatabaseReference.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/DatabaseReference;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "CompletionListener"
.end annotation
# virtual methods
.method public abstract onComplete(Lcom/google/firebase/database/DatabaseError;Lcom/google/firebase/database/DatabaseReference;)V
.param p1 # Lcom/google/firebase/database/DatabaseError;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Lcom/google/firebase/database/DatabaseReference;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,167 @@
.class public Lcom/google/firebase/database/DatabaseRegistrar;
.super Ljava/lang/Object;
.source "DatabaseRegistrar.java"
# interfaces
.implements Lcom/google/firebase/components/ComponentRegistrar;
# annotations
.annotation build Landroidx/annotation/Keep;
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# 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 synthetic a(Lcom/google/firebase/components/ComponentContainer;)Lcom/google/firebase/database/FirebaseDatabaseComponent;
.locals 0
invoke-static {p0}, Lcom/google/firebase/database/DatabaseRegistrar;->lambda$getComponents$0(Lcom/google/firebase/components/ComponentContainer;)Lcom/google/firebase/database/FirebaseDatabaseComponent;
move-result-object p0
return-object p0
.end method
.method private static synthetic lambda$getComponents$0(Lcom/google/firebase/components/ComponentContainer;)Lcom/google/firebase/database/FirebaseDatabaseComponent;
.locals 4
.line 1
new-instance v0, Lcom/google/firebase/database/FirebaseDatabaseComponent;
const-class v1, Lcom/google/firebase/FirebaseApp;
.line 2
invoke-interface {p0, v1}, Lcom/google/firebase/components/ComponentContainer;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/firebase/FirebaseApp;
const-class v2, Lcom/google/firebase/auth/internal/InternalAuthProvider;
.line 3
invoke-interface {p0, v2}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
move-result-object v2
const-class v3, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;
.line 4
invoke-interface {p0, v3}, Lcom/google/firebase/components/ComponentContainer;->getDeferred(Ljava/lang/Class;)Lcom/google/firebase/inject/Deferred;
move-result-object p0
invoke-direct {v0, v1, v2, p0}, Lcom/google/firebase/database/FirebaseDatabaseComponent;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/inject/Deferred;Lcom/google/firebase/inject/Deferred;)V
return-object v0
.end method
# virtual methods
.method public getComponents()Ljava/util/List;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/firebase/components/Component<",
"*>;>;"
}
.end annotation
const/4 v0, 0x2
new-array v0, v0, [Lcom/google/firebase/components/Component;
.line 1
const-class v1, Lcom/google/firebase/database/FirebaseDatabaseComponent;
.line 2
invoke-static {v1}, Lcom/google/firebase/components/Component;->builder(Ljava/lang/Class;)Lcom/google/firebase/components/Component$Builder;
move-result-object v1
const-class v2, Lcom/google/firebase/FirebaseApp;
.line 3
invoke-static {v2}, Lcom/google/firebase/components/Dependency;->required(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/google/firebase/components/Component$Builder;->add(Lcom/google/firebase/components/Dependency;)Lcom/google/firebase/components/Component$Builder;
move-result-object v1
const-class v2, Lcom/google/firebase/auth/internal/InternalAuthProvider;
.line 4
invoke-static {v2}, Lcom/google/firebase/components/Dependency;->deferred(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/google/firebase/components/Component$Builder;->add(Lcom/google/firebase/components/Dependency;)Lcom/google/firebase/components/Component$Builder;
move-result-object v1
const-class v2, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;
.line 5
invoke-static {v2}, Lcom/google/firebase/components/Dependency;->deferred(Ljava/lang/Class;)Lcom/google/firebase/components/Dependency;
move-result-object v2
invoke-virtual {v1, v2}, Lcom/google/firebase/components/Component$Builder;->add(Lcom/google/firebase/components/Dependency;)Lcom/google/firebase/components/Component$Builder;
move-result-object v1
sget-object v2, Lcom/google/firebase/database/a;->a:Lcom/google/firebase/database/a;
.line 6
invoke-virtual {v1, v2}, Lcom/google/firebase/components/Component$Builder;->factory(Lcom/google/firebase/components/ComponentFactory;)Lcom/google/firebase/components/Component$Builder;
move-result-object v1
.line 7
invoke-virtual {v1}, Lcom/google/firebase/components/Component$Builder;->build()Lcom/google/firebase/components/Component;
move-result-object v1
const/4 v2, 0x0
aput-object v1, v0, v2
const-string v1, "fire-rtdb"
const-string v2, "20.0.3"
.line 8
invoke-static {v1, v2}, Lcom/google/firebase/platforminfo/LibraryVersionComponent;->create(Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/components/Component;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
.line 9
invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,19 @@
.class public interface abstract annotation Lcom/google/firebase/database/Exclude;
.super Ljava/lang/Object;
.source "Exclude.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;
}
.end annotation
@@ -0,0 +1,51 @@
.class Lcom/google/firebase/database/FirebaseDatabase$1;
.super Ljava/lang/Object;
.source "FirebaseDatabase.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/FirebaseDatabase;->purgeOutstandingWrites()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/FirebaseDatabase;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/FirebaseDatabase;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/FirebaseDatabase$1;->this$0:Lcom/google/firebase/database/FirebaseDatabase;
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/FirebaseDatabase$1;->this$0:Lcom/google/firebase/database/FirebaseDatabase;
invoke-static {v0}, Lcom/google/firebase/database/FirebaseDatabase;->access$000(Lcom/google/firebase/database/FirebaseDatabase;)Lcom/google/firebase/database/core/Repo;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/core/Repo;->purgeOutstandingWrites()V
return-void
.end method
@@ -0,0 +1,773 @@
.class public Lcom/google/firebase/database/FirebaseDatabase;
.super Ljava/lang/Object;
.source "FirebaseDatabase.java"
# static fields
.field private static final SDK_VERSION:Ljava/lang/String; = "20.0.3"
# instance fields
.field private final app:Lcom/google/firebase/FirebaseApp;
.field private final config:Lcom/google/firebase/database/core/DatabaseConfig;
.field private emulatorSettings:Lcom/google/firebase/emulators/EmulatedServiceSettings;
.annotation build Lcom/google/firebase/database/annotations/Nullable;
.end annotation
.end field
.field private repo:Lcom/google/firebase/database/core/Repo;
.field private final repoInfo:Lcom/google/firebase/database/core/RepoInfo;
# direct methods
.method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)V
.locals 0
.param p1 # Lcom/google/firebase/FirebaseApp;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/google/firebase/database/core/RepoInfo;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Lcom/google/firebase/database/core/DatabaseConfig;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/FirebaseDatabase;->app:Lcom/google/firebase/FirebaseApp;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/FirebaseDatabase;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
.line 4
iput-object p3, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
return-void
.end method
.method public static synthetic access$000(Lcom/google/firebase/database/FirebaseDatabase;)Lcom/google/firebase/database/core/Repo;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
return-object p0
.end method
.method private assertUnfrozen(Ljava/lang/String;)V
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
if-nez v0, :cond_0
return-void
.line 2
:cond_0
new-instance v0, Lcom/google/firebase/database/DatabaseException;
const-string v1, "Calls to "
const-string v2, "() must be made before any other usage of FirebaseDatabase instance."
invoke-static {v1, p1, v2}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static createForTests(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/FirebaseDatabase;
invoke-direct {v0, p0, p1, p2}, Lcom/google/firebase/database/FirebaseDatabase;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)V
.line 2
invoke-direct {v0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
return-object v0
.end method
.method private declared-synchronized ensureRepo()V
.locals 2
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabase;->emulatorSettings:Lcom/google/firebase/emulators/EmulatedServiceSettings;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/RepoInfo;->applyEmulatorSettings(Lcom/google/firebase/emulators/EmulatedServiceSettings;)V
.line 3
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabase;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
invoke-static {v0, v1, p0}, Lcom/google/firebase/database/core/RepoManager;->createRepo(Lcom/google/firebase/database/core/Context;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/FirebaseDatabase;)Lcom/google/firebase/database/core/Repo;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 4
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public static getInstance()Lcom/google/firebase/database/FirebaseDatabase;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {}, Lcom/google/firebase/FirebaseApp;->getInstance()Lcom/google/firebase/FirebaseApp;
move-result-object v0
if-eqz v0, :cond_0
.line 2
invoke-static {v0}, Lcom/google/firebase/database/FirebaseDatabase;->getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/database/FirebaseDatabase;
move-result-object v0
return-object v0
.line 3
:cond_0
new-instance v0, Lcom/google/firebase/database/DatabaseException;
const-string v1, "You must call FirebaseApp.initialize() first."
invoke-direct {v0, v1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static getInstance(Lcom/google/firebase/FirebaseApp;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 2
.param p0 # Lcom/google/firebase/FirebaseApp;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 7
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getOptions()Lcom/google/firebase/FirebaseOptions;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/FirebaseOptions;->getDatabaseUrl()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_1
.line 8
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getOptions()Lcom/google/firebase/FirebaseOptions;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/FirebaseOptions;->getProjectId()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
const-string v0, "https://"
.line 9
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p0}, Lcom/google/firebase/FirebaseApp;->getOptions()Lcom/google/firebase/FirebaseOptions;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/FirebaseOptions;->getProjectId()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "-default-rtdb.firebaseio.com"
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
goto :goto_0
.line 10
:cond_0
new-instance p0, Lcom/google/firebase/database/DatabaseException;
const-string v0, "Failed to get FirebaseDatabase instance: Can\'t determine Firebase Database URL. Be sure to include a Project ID in your configuration."
invoke-direct {p0, v0}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw p0
.line 11
:cond_1
:goto_0
invoke-static {p0, v0}, Lcom/google/firebase/database/FirebaseDatabase;->getInstance(Lcom/google/firebase/FirebaseApp;Ljava/lang/String;)Lcom/google/firebase/database/FirebaseDatabase;
move-result-object p0
return-object p0
.end method
.method public static declared-synchronized getInstance(Lcom/google/firebase/FirebaseApp;Ljava/lang/String;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 4
.param p0 # Lcom/google/firebase/FirebaseApp;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-class v0, Lcom/google/firebase/database/FirebaseDatabase;
monitor-enter v0
.line 12
:try_start_0
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_1
const-string v1, "Provided FirebaseApp must not be null."
.line 13
invoke-static {p0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 14
const-class v1, Lcom/google/firebase/database/FirebaseDatabaseComponent;
invoke-virtual {p0, v1}, Lcom/google/firebase/FirebaseApp;->get(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;
const-string v1, "Firebase Database component is not present."
.line 15
invoke-static {p0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 16
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Utilities;->parseUrl(Ljava/lang/String;)Lcom/google/firebase/database/core/utilities/ParsedUrl;
move-result-object v1
.line 17
iget-object v2, v1, Lcom/google/firebase/database/core/utilities/ParsedUrl;->path:Lcom/google/firebase/database/core/Path;
invoke-virtual {v2}, Lcom/google/firebase/database/core/Path;->isEmpty()Z
move-result v2
if-eqz v2, :cond_0
.line 18
iget-object p1, v1, Lcom/google/firebase/database/core/utilities/ParsedUrl;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
invoke-virtual {p0, p1}, Lcom/google/firebase/database/FirebaseDatabaseComponent;->get(Lcom/google/firebase/database/core/RepoInfo;)Lcom/google/firebase/database/FirebaseDatabase;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
return-object p0
.line 19
:cond_0
:try_start_1
new-instance p0, Lcom/google/firebase/database/DatabaseException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Specified Database URL \'"
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, "\' is invalid. It should point to the root of a Firebase Database but it includes a path: "
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p1, v1, Lcom/google/firebase/database/core/utilities/ParsedUrl;->path:Lcom/google/firebase/database/core/Path;
.line 20
invoke-virtual {p1}, Lcom/google/firebase/database/core/Path;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw p0
.line 21
:cond_1
new-instance p0, Lcom/google/firebase/database/DatabaseException;
const-string p1, "Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call."
invoke-direct {p0, p1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:catchall_0
move-exception p0
monitor-exit v0
throw p0
.end method
.method public static getInstance(Ljava/lang/String;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 1
.param p0 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 4
invoke-static {}, Lcom/google/firebase/FirebaseApp;->getInstance()Lcom/google/firebase/FirebaseApp;
move-result-object v0
if-eqz v0, :cond_0
.line 5
invoke-static {v0, p0}, Lcom/google/firebase/database/FirebaseDatabase;->getInstance(Lcom/google/firebase/FirebaseApp;Ljava/lang/String;)Lcom/google/firebase/database/FirebaseDatabase;
move-result-object p0
return-object p0
.line 6
:cond_0
new-instance p0, Lcom/google/firebase/database/DatabaseException;
const-string v0, "You must call FirebaseApp.initialize() first."
invoke-direct {p0, v0}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static getSdkVersion()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "20.0.3"
return-object v0
.end method
# virtual methods
.method public getApp()Lcom/google/firebase/FirebaseApp;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->app:Lcom/google/firebase/FirebaseApp;
return-object v0
.end method
.method public getConfig()Lcom/google/firebase/database/core/DatabaseConfig;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
return-object v0
.end method
.method public getReference()Lcom/google/firebase/database/DatabaseReference;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
.line 2
new-instance v0, Lcom/google/firebase/database/DatabaseReference;
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
invoke-static {}, Lcom/google/firebase/database/core/Path;->getEmptyPath()Lcom/google/firebase/database/core/Path;
move-result-object v2
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/DatabaseReference;-><init>(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)V
return-object v0
.end method
.method public getReference(Ljava/lang/String;)Lcom/google/firebase/database/DatabaseReference;
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 3
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
const-string v0, "Can\'t pass null for argument \'pathString\' in FirebaseDatabase.getReference()"
.line 4
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 5
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validateRootPathString(Ljava/lang/String;)V
.line 6
new-instance v0, Lcom/google/firebase/database/core/Path;
invoke-direct {v0, p1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
.line 7
new-instance p1, Lcom/google/firebase/database/DatabaseReference;
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
invoke-direct {p1, v1, v0}, Lcom/google/firebase/database/DatabaseReference;-><init>(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)V
return-object p1
.end method
.method public getReferenceFromUrl(Ljava/lang/String;)Lcom/google/firebase/database/DatabaseReference;
.locals 3
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
const-string v0, "Can\'t pass null for argument \'url\' in FirebaseDatabase.getReferenceFromUrl()"
.line 2
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 3
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Utilities;->parseUrl(Ljava/lang/String;)Lcom/google/firebase/database/core/utilities/ParsedUrl;
move-result-object v0
.line 4
iget-object v1, v0, Lcom/google/firebase/database/core/utilities/ParsedUrl;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
iget-object v2, p0, Lcom/google/firebase/database/FirebaseDatabase;->emulatorSettings:Lcom/google/firebase/emulators/EmulatedServiceSettings;
invoke-virtual {v1, v2}, Lcom/google/firebase/database/core/RepoInfo;->applyEmulatorSettings(Lcom/google/firebase/emulators/EmulatedServiceSettings;)V
.line 5
iget-object v1, v0, Lcom/google/firebase/database/core/utilities/ParsedUrl;->repoInfo:Lcom/google/firebase/database/core/RepoInfo;
iget-object v1, v1, Lcom/google/firebase/database/core/RepoInfo;->host:Ljava/lang/String;
iget-object v2, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
invoke-virtual {v2}, Lcom/google/firebase/database/core/Repo;->getRepoInfo()Lcom/google/firebase/database/core/RepoInfo;
move-result-object v2
iget-object v2, v2, Lcom/google/firebase/database/core/RepoInfo;->host:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 6
new-instance p1, Lcom/google/firebase/database/DatabaseReference;
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
iget-object v0, v0, Lcom/google/firebase/database/core/utilities/ParsedUrl;->path:Lcom/google/firebase/database/core/Path;
invoke-direct {p1, v1, v0}, Lcom/google/firebase/database/DatabaseReference;-><init>(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)V
return-object p1
.line 7
:cond_0
new-instance v0, Lcom/google/firebase/database/DatabaseException;
const-string v1, "Invalid URL ("
const-string v2, ") passed to getReference(). URL was expected to match configured Database URL: "
invoke-static {v1, p1, v2}, Landroidx/activity/result/g;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
.line 8
invoke-virtual {p0}, Lcom/google/firebase/database/FirebaseDatabase;->getReference()Lcom/google/firebase/database/DatabaseReference;
move-result-object v1
invoke-virtual {v1}, Lcom/google/firebase/database/DatabaseReference;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public goOffline()V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
invoke-static {v0}, Lcom/google/firebase/database/core/RepoManager;->interrupt(Lcom/google/firebase/database/core/Repo;)V
return-void
.end method
.method public goOnline()V
.locals 1
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
invoke-static {v0}, Lcom/google/firebase/database/core/RepoManager;->resume(Lcom/google/firebase/database/core/Repo;)V
return-void
.end method
.method public purgeOutstandingWrites()V
.locals 2
.line 1
invoke-direct {p0}, Lcom/google/firebase/database/FirebaseDatabase;->ensureRepo()V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
new-instance v1, Lcom/google/firebase/database/FirebaseDatabase$1;
invoke-direct {v1, p0}, Lcom/google/firebase/database/FirebaseDatabase$1;-><init>(Lcom/google/firebase/database/FirebaseDatabase;)V
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/Repo;->scheduleNow(Ljava/lang/Runnable;)V
return-void
.end method
.method public declared-synchronized setLogLevel(Lcom/google/firebase/database/Logger$Level;)V
.locals 1
.param p1 # Lcom/google/firebase/database/Logger$Level;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
monitor-enter p0
:try_start_0
const-string v0, "setLogLevel"
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/database/FirebaseDatabase;->assertUnfrozen(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/core/DatabaseConfig;->setLogLevel(Lcom/google/firebase/database/Logger$Level;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized setPersistenceCacheSizeBytes(J)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "setPersistenceCacheSizeBytes"
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/database/FirebaseDatabase;->assertUnfrozen(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
invoke-virtual {v0, p1, p2}, Lcom/google/firebase/database/core/DatabaseConfig;->setPersistenceCacheSizeBytes(J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized setPersistenceEnabled(Z)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "setPersistenceEnabled"
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/database/FirebaseDatabase;->assertUnfrozen(Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->config:Lcom/google/firebase/database/core/DatabaseConfig;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/core/DatabaseConfig;->setPersistenceEnabled(Z)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public useEmulator(Ljava/lang/String;I)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->repo:Lcom/google/firebase/database/core/Repo;
if-nez v0, :cond_0
.line 2
new-instance v0, Lcom/google/firebase/emulators/EmulatedServiceSettings;
invoke-direct {v0, p1, p2}, Lcom/google/firebase/emulators/EmulatedServiceSettings;-><init>(Ljava/lang/String;I)V
iput-object v0, p0, Lcom/google/firebase/database/FirebaseDatabase;->emulatorSettings:Lcom/google/firebase/emulators/EmulatedServiceSettings;
return-void
.line 3
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Cannot call useEmulator() after instance has already been initialized."
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
@@ -0,0 +1,163 @@
.class Lcom/google/firebase/database/FirebaseDatabaseComponent;
.super Ljava/lang/Object;
.source "FirebaseDatabaseComponent.java"
# instance fields
.field private final app:Lcom/google/firebase/FirebaseApp;
.field private final appCheckProvider:Lcom/google/firebase/database/core/TokenProvider;
.field private final authProvider:Lcom/google/firebase/database/core/TokenProvider;
.field private final instances:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lcom/google/firebase/database/core/RepoInfo;",
"Lcom/google/firebase/database/FirebaseDatabase;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/inject/Deferred;Lcom/google/firebase/inject/Deferred;)V
.locals 1
.param p1 # Lcom/google/firebase/FirebaseApp;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/FirebaseApp;",
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/auth/internal/InternalAuthProvider;",
">;",
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->instances:Ljava/util/Map;
.line 3
iput-object p1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->app:Lcom/google/firebase/FirebaseApp;
.line 4
new-instance p1, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;
invoke-direct {p1, p2}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;-><init>(Lcom/google/firebase/inject/Deferred;)V
iput-object p1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->authProvider:Lcom/google/firebase/database/core/TokenProvider;
.line 5
new-instance p1, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;
invoke-direct {p1, p3}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;-><init>(Lcom/google/firebase/inject/Deferred;)V
iput-object p1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->appCheckProvider:Lcom/google/firebase/database/core/TokenProvider;
return-void
.end method
# virtual methods
.method public declared-synchronized get(Lcom/google/firebase/database/core/RepoInfo;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
monitor-enter p0
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->instances:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/FirebaseDatabase;
if-nez v0, :cond_1
.line 2
new-instance v0, Lcom/google/firebase/database/core/DatabaseConfig;
invoke-direct {v0}, Lcom/google/firebase/database/core/DatabaseConfig;-><init>()V
.line 3
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->app:Lcom/google/firebase/FirebaseApp;
invoke-virtual {v1}, Lcom/google/firebase/FirebaseApp;->isDefaultApp()Z
move-result v1
if-nez v1, :cond_0
.line 4
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->app:Lcom/google/firebase/FirebaseApp;
invoke-virtual {v1}, Lcom/google/firebase/FirebaseApp;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/DatabaseConfig;->setSessionPersistenceKey(Ljava/lang/String;)V
.line 5
:cond_0
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->app:Lcom/google/firebase/FirebaseApp;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/DatabaseConfig;->setFirebaseApp(Lcom/google/firebase/FirebaseApp;)V
.line 6
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->authProvider:Lcom/google/firebase/database/core/TokenProvider;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/DatabaseConfig;->setAuthTokenProvider(Lcom/google/firebase/database/core/TokenProvider;)V
.line 7
iget-object v1, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->appCheckProvider:Lcom/google/firebase/database/core/TokenProvider;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/DatabaseConfig;->setAppCheckTokenProvider(Lcom/google/firebase/database/core/TokenProvider;)V
.line 8
new-instance v1, Lcom/google/firebase/database/FirebaseDatabase;
iget-object v2, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->app:Lcom/google/firebase/FirebaseApp;
invoke-direct {v1, v2, p1, v0}, Lcom/google/firebase/database/FirebaseDatabase;-><init>(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)V
.line 9
iget-object v0, p0, Lcom/google/firebase/database/FirebaseDatabaseComponent;->instances:Ljava/util/Map;
invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
move-object v0, v1
.line 10
:cond_1
monitor-exit p0
return-object v0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
@@ -0,0 +1,25 @@
.class public abstract Lcom/google/firebase/database/GenericTypeIndicator;
.super Ljava/lang/Object;
.source "GenericTypeIndicator.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# 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,18 @@
.class public interface abstract annotation Lcom/google/firebase/database/IgnoreExtraProperties;
.super Ljava/lang/Object;
.source "IgnoreExtraProperties.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->TYPE:Ljava/lang/annotation/ElementType;
}
.end annotation
@@ -0,0 +1,66 @@
.class public Lcom/google/firebase/database/InternalHelpers;
.super Ljava/lang/Object;
.source "InternalHelpers.java"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# 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 createDataSnapshot(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/IndexedNode;)Lcom/google/firebase/database/DataSnapshot;
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/DataSnapshot;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/DataSnapshot;-><init>(Lcom/google/firebase/database/DatabaseReference;Lcom/google/firebase/database/snapshot/IndexedNode;)V
return-object v0
.end method
.method public static createDatabaseForTests(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)Lcom/google/firebase/database/FirebaseDatabase;
.locals 0
.line 1
invoke-static {p0, p1, p2}, Lcom/google/firebase/database/FirebaseDatabase;->createForTests(Lcom/google/firebase/FirebaseApp;Lcom/google/firebase/database/core/RepoInfo;Lcom/google/firebase/database/core/DatabaseConfig;)Lcom/google/firebase/database/FirebaseDatabase;
move-result-object p0
return-object p0
.end method
.method public static createMutableData(Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/MutableData;
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/MutableData;
invoke-direct {v0, p0}, Lcom/google/firebase/database/MutableData;-><init>(Lcom/google/firebase/database/snapshot/Node;)V
return-object v0
.end method
.method public static createReference(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/DatabaseReference;
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/DatabaseReference;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/DatabaseReference;-><init>(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)V
return-object v0
.end method
@@ -0,0 +1,160 @@
.class public final enum Lcom/google/firebase/database/Logger$Level;
.super Ljava/lang/Enum;
.source "Logger.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/Logger;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Level"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/firebase/database/Logger$Level;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/database/Logger$Level;
.field public static final enum DEBUG:Lcom/google/firebase/database/Logger$Level;
.field public static final enum ERROR:Lcom/google/firebase/database/Logger$Level;
.field public static final enum INFO:Lcom/google/firebase/database/Logger$Level;
.field public static final enum NONE:Lcom/google/firebase/database/Logger$Level;
.field public static final enum WARN:Lcom/google/firebase/database/Logger$Level;
# direct methods
.method public static constructor <clinit>()V
.locals 11
.line 1
new-instance v0, Lcom/google/firebase/database/Logger$Level;
const-string v1, "DEBUG"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/Logger$Level;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/firebase/database/Logger$Level;->DEBUG:Lcom/google/firebase/database/Logger$Level;
.line 2
new-instance v1, Lcom/google/firebase/database/Logger$Level;
const-string v3, "INFO"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/firebase/database/Logger$Level;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/firebase/database/Logger$Level;->INFO:Lcom/google/firebase/database/Logger$Level;
.line 3
new-instance v3, Lcom/google/firebase/database/Logger$Level;
const-string v5, "WARN"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/google/firebase/database/Logger$Level;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/google/firebase/database/Logger$Level;->WARN:Lcom/google/firebase/database/Logger$Level;
.line 4
new-instance v5, Lcom/google/firebase/database/Logger$Level;
const-string v7, "ERROR"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/google/firebase/database/Logger$Level;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/google/firebase/database/Logger$Level;->ERROR:Lcom/google/firebase/database/Logger$Level;
.line 5
new-instance v7, Lcom/google/firebase/database/Logger$Level;
const-string v9, "NONE"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/google/firebase/database/Logger$Level;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/google/firebase/database/Logger$Level;->NONE:Lcom/google/firebase/database/Logger$Level;
const/4 v9, 0x5
new-array v9, v9, [Lcom/google/firebase/database/Logger$Level;
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/Logger$Level;->$VALUES:[Lcom/google/firebase/database/Logger$Level;
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/Logger$Level;
.locals 1
.line 1
const-class v0, Lcom/google/firebase/database/Logger$Level;
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/Logger$Level;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/database/Logger$Level;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/Logger$Level;->$VALUES:[Lcom/google/firebase/database/Logger$Level;
invoke-virtual {v0}, [Lcom/google/firebase/database/Logger$Level;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/database/Logger$Level;
return-object v0
.end method
@@ -0,0 +1,11 @@
.class public interface abstract Lcom/google/firebase/database/Logger;
.super Ljava/lang/Object;
.source "Logger.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/Logger$Level;
}
.end annotation
@@ -0,0 +1,92 @@
.class Lcom/google/firebase/database/MutableData$1$1;
.super Ljava/lang/Object;
.source "MutableData.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/MutableData$1;->iterator()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/MutableData$1;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/MutableData$1;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/MutableData$1$1;->this$1:Lcom/google/firebase/database/MutableData$1;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public next()Lcom/google/firebase/database/MutableData;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData$1$1;->next()Lcom/google/firebase/database/MutableData;
move-result-object v0
return-object v0
.end method
.method public remove()V
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "remove called on immutable collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,64 @@
.class Lcom/google/firebase/database/MutableData$1;
.super Ljava/lang/Object;
.source "MutableData.java"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/MutableData;->getChildren()Ljava/lang/Iterable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/MutableData;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/MutableData;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/MutableData$1;->this$0:Lcom/google/firebase/database/MutableData;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/MutableData$1$1;
invoke-direct {v0, p0}, Lcom/google/firebase/database/MutableData$1$1;-><init>(Lcom/google/firebase/database/MutableData$1;)V
return-object v0
.end method
@@ -0,0 +1,136 @@
.class Lcom/google/firebase/database/MutableData$2$1;
.super Ljava/lang/Object;
.source "MutableData.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/MutableData$2;->iterator()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$1:Lcom/google/firebase/database/MutableData$2;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/MutableData$2;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/MutableData$2$1;->this$1:Lcom/google/firebase/database/MutableData$2;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData$2$1;->this$1:Lcom/google/firebase/database/MutableData$2;
iget-object v0, v0, Lcom/google/firebase/database/MutableData$2;->val$iter:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
return v0
.end method
.method public next()Lcom/google/firebase/database/MutableData;
.locals 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/database/MutableData$2$1;->this$1:Lcom/google/firebase/database/MutableData$2;
iget-object v0, v0, Lcom/google/firebase/database/MutableData$2;->val$iter:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/snapshot/NamedNode;
.line 3
new-instance v1, Lcom/google/firebase/database/MutableData;
iget-object v2, p0, Lcom/google/firebase/database/MutableData$2$1;->this$1:Lcom/google/firebase/database/MutableData$2;
iget-object v2, v2, Lcom/google/firebase/database/MutableData$2;->this$0:Lcom/google/firebase/database/MutableData;
invoke-static {v2}, Lcom/google/firebase/database/MutableData;->access$000(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/core/SnapshotHolder;
move-result-object v2
iget-object v3, p0, Lcom/google/firebase/database/MutableData$2$1;->this$1:Lcom/google/firebase/database/MutableData$2;
iget-object v3, v3, Lcom/google/firebase/database/MutableData$2;->this$0:Lcom/google/firebase/database/MutableData;
invoke-static {v3}, Lcom/google/firebase/database/MutableData;->access$100(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/core/Path;
move-result-object v3
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/NamedNode;->getName()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v0
invoke-virtual {v3, v0}, Lcom/google/firebase/database/core/Path;->child(Lcom/google/firebase/database/snapshot/ChildKey;)Lcom/google/firebase/database/core/Path;
move-result-object v0
const/4 v3, 0x0
invoke-direct {v1, v2, v0, v3}, Lcom/google/firebase/database/MutableData;-><init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/MutableData$1;)V
return-object v1
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData$2$1;->next()Lcom/google/firebase/database/MutableData;
move-result-object v0
return-object v0
.end method
.method public remove()V
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "remove called on immutable collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,68 @@
.class Lcom/google/firebase/database/MutableData$2;
.super Ljava/lang/Object;
.source "MutableData.java"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/MutableData;->getChildren()Ljava/lang/Iterable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/MutableData;
.field public final synthetic val$iter:Ljava/util/Iterator;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/MutableData;Ljava/util/Iterator;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/MutableData$2;->this$0:Lcom/google/firebase/database/MutableData;
iput-object p2, p0, Lcom/google/firebase/database/MutableData$2;->val$iter:Ljava/util/Iterator;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/MutableData$2$1;
invoke-direct {v0, p0}, Lcom/google/firebase/database/MutableData$2$1;-><init>(Lcom/google/firebase/database/MutableData$2;)V
return-object v0
.end method
@@ -0,0 +1,587 @@
.class public Lcom/google/firebase/database/MutableData;
.super Ljava/lang/Object;
.source "MutableData.java"
# instance fields
.field private final holder:Lcom/google/firebase/database/core/SnapshotHolder;
.field private final prefixPath:Lcom/google/firebase/database/core/Path;
# direct methods
.method private constructor <init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;)V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 4
iput-object p1, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
.line 5
iput-object p2, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
.line 6
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getValue()Ljava/lang/Object;
move-result-object p1
invoke-static {p2, p1}, Lcom/google/firebase/database/core/ValidationPath;->validateWithObject(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)V
return-void
.end method
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/MutableData$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/MutableData;-><init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;)V
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/database/snapshot/Node;)V
.locals 2
.line 2
new-instance v0, Lcom/google/firebase/database/core/SnapshotHolder;
invoke-direct {v0, p1}, Lcom/google/firebase/database/core/SnapshotHolder;-><init>(Lcom/google/firebase/database/snapshot/Node;)V
new-instance p1, Lcom/google/firebase/database/core/Path;
const-string v1, ""
invoke-direct {p1, v1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0, p1}, Lcom/google/firebase/database/MutableData;-><init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;)V
return-void
.end method
.method public static synthetic access$000(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/core/SnapshotHolder;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
return-object p0
.end method
.method public static synthetic access$100(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/core/Path;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
return-object p0
.end method
# virtual methods
.method public child(Ljava/lang/String;)Lcom/google/firebase/database/MutableData;
.locals 4
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validatePathString(Ljava/lang/String;)V
.line 2
new-instance v0, Lcom/google/firebase/database/MutableData;
iget-object v1, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
iget-object v2, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
new-instance v3, Lcom/google/firebase/database/core/Path;
invoke-direct {v3, p1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, v3}, Lcom/google/firebase/database/core/Path;->child(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/core/Path;
move-result-object p1
invoke-direct {v0, v1, p1}, Lcom/google/firebase/database/MutableData;-><init>(Lcom/google/firebase/database/core/SnapshotHolder;Lcom/google/firebase/database/core/Path;)V
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 2
.line 1
instance-of v0, p1, Lcom/google/firebase/database/MutableData;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
check-cast p1, Lcom/google/firebase/database/MutableData;
iget-object v1, p1, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
.line 2
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
iget-object p1, p1, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
.line 3
invoke-virtual {v0, p1}, Lcom/google/firebase/database/core/Path;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public getChildren()Ljava/lang/Iterable;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Iterable<",
"Lcom/google/firebase/database/MutableData;",
">;"
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
.line 2
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->isEmpty()Z
move-result v1
if-nez v1, :cond_1
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->isLeafNode()Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
.line 3
:cond_0
invoke-static {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->from(Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/snapshot/IndexedNode;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/IndexedNode;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 4
new-instance v1, Lcom/google/firebase/database/MutableData$2;
invoke-direct {v1, p0, v0}, Lcom/google/firebase/database/MutableData$2;-><init>(Lcom/google/firebase/database/MutableData;Ljava/util/Iterator;)V
return-object v1
.line 5
:cond_1
:goto_0
new-instance v0, Lcom/google/firebase/database/MutableData$1;
invoke-direct {v0, p0}, Lcom/google/firebase/database/MutableData$1;-><init>(Lcom/google/firebase/database/MutableData;)V
return-object v0
.end method
.method public getChildrenCount()J
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getChildCount()I
move-result v0
int-to-long v0, v0
return-wide v0
.end method
.method public getKey()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-virtual {v0}, Lcom/google/firebase/database/core/Path;->getBack()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-virtual {v0}, Lcom/google/firebase/database/core/Path;->getBack()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/ChildKey;->asString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public getNode()Lcom/google/firebase/database/snapshot/Node;
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
iget-object v1, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/SnapshotHolder;->getNode(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
return-object v0
.end method
.method public getPriority()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getPriority()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getValue()Ljava/lang/Object;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getValue(Lcom/google/firebase/database/GenericTypeIndicator;)Ljava/lang/Object;
.locals 1
.param p1 # Lcom/google/firebase/database/GenericTypeIndicator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/google/firebase/database/GenericTypeIndicator<",
"TT;>;)TT;"
}
.end annotation
.line 4
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
.line 5
invoke-static {v0, p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToCustomClass(Ljava/lang/Object;Lcom/google/firebase/database/GenericTypeIndicator;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public getValue(Ljava/lang/Class;)Ljava/lang/Object;
.locals 1
.param p1 # Ljava/lang/Class;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
.line 2
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->getValue()Ljava/lang/Object;
move-result-object v0
.line 3
invoke-static {v0, p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToCustomClass(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public hasChild(Ljava/lang/String;)Z
.locals 2
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
new-instance v1, Lcom/google/firebase/database/core/Path;
invoke-direct {v1, p1}, Lcom/google/firebase/database/core/Path;-><init>(Ljava/lang/String;)V
invoke-interface {v0, v1}, Lcom/google/firebase/database/snapshot/Node;->getChild(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
invoke-interface {p1}, Lcom/google/firebase/database/snapshot/Node;->isEmpty()Z
move-result p1
xor-int/lit8 p1, p1, 0x1
return p1
.end method
.method public hasChildren()Z
.locals 2
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
.line 2
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->isLeafNode()Z
move-result v1
if-nez v1, :cond_0
invoke-interface {v0}, Lcom/google/firebase/database/snapshot/Node;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public setPriority(Ljava/lang/Object;)V
.locals 4
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
iget-object v1, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
.line 2
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v2
iget-object v3, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-static {v3, p1}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
invoke-interface {v2, p1}, Lcom/google/firebase/database/snapshot/Node;->updatePriority(Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
.line 3
invoke-virtual {v0, v1, p1}, Lcom/google/firebase/database/core/SnapshotHolder;->update(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;)V
return-void
.end method
.method public setValue(Ljava/lang/Object;)V
.locals 2
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/firebase/database/DatabaseException;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p1}, Lcom/google/firebase/database/core/ValidationPath;->validateWithObject(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)V
.line 2
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToPlainJavaTypes(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 3
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validateWritableObject(Ljava/lang/Object;)V
.line 4
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
iget-object v1, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-static {p1}, Lcom/google/firebase/database/snapshot/NodeUtilities;->NodeFromJSON(Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
invoke-virtual {v0, v1, p1}, Lcom/google/firebase/database/core/SnapshotHolder;->update(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->prefixPath:Lcom/google/firebase/database/core/Path;
invoke-virtual {v0}, Lcom/google/firebase/database/core/Path;->getFront()Lcom/google/firebase/database/snapshot/ChildKey;
move-result-object v0
const-string v1, "MutableData { key = "
.line 2
invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
if-eqz v0, :cond_0
.line 3
invoke-virtual {v0}, Lcom/google/firebase/database/snapshot/ChildKey;->asString()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const-string v0, "<none>"
:goto_0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, ", value = "
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lcom/google/firebase/database/MutableData;->holder:Lcom/google/firebase/database/core/SnapshotHolder;
.line 4
invoke-virtual {v0}, Lcom/google/firebase/database/core/SnapshotHolder;->getRootNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
const/4 v2, 0x1
invoke-interface {v0, v2}, Lcom/google/firebase/database/snapshot/Node;->getValue(Z)Ljava/lang/Object;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v0, " }"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,75 @@
.class Lcom/google/firebase/database/OnDisconnect$1;
.super Ljava/lang/Object;
.source "OnDisconnect.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/OnDisconnect;
.field public final synthetic val$node:Lcom/google/firebase/database/snapshot/Node;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/OnDisconnect;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/core/utilities/Pair;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/OnDisconnect$1;->this$0:Lcom/google/firebase/database/OnDisconnect;
iput-object p2, p0, Lcom/google/firebase/database/OnDisconnect$1;->val$node:Lcom/google/firebase/database/snapshot/Node;
iput-object p3, p0, Lcom/google/firebase/database/OnDisconnect$1;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
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/OnDisconnect$1;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v0}, Lcom/google/firebase/database/OnDisconnect;->access$100(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Repo;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/OnDisconnect$1;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v1}, Lcom/google/firebase/database/OnDisconnect;->access$000(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Path;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/database/OnDisconnect$1;->val$node:Lcom/google/firebase/database/snapshot/Node;
iget-object v3, p0, Lcom/google/firebase/database/OnDisconnect$1;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v3}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
invoke-virtual {v0, v1, v2, v3}, Lcom/google/firebase/database/core/Repo;->onDisconnectSetValue(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
return-void
.end method
@@ -0,0 +1,81 @@
.class Lcom/google/firebase/database/OnDisconnect$2;
.super Ljava/lang/Object;
.source "OnDisconnect.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/OnDisconnect;->updateChildrenInternal(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/OnDisconnect;
.field public final synthetic val$parsedUpdate:Ljava/util/Map;
.field public final synthetic val$update:Ljava/util/Map;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/OnDisconnect;Ljava/util/Map;Lcom/google/firebase/database/core/utilities/Pair;Ljava/util/Map;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/OnDisconnect$2;->this$0:Lcom/google/firebase/database/OnDisconnect;
iput-object p2, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$parsedUpdate:Ljava/util/Map;
iput-object p3, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
iput-object p4, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$update:Ljava/util/Map;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
.line 1
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect$2;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v0}, Lcom/google/firebase/database/OnDisconnect;->access$100(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Repo;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/OnDisconnect$2;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v1}, Lcom/google/firebase/database/OnDisconnect;->access$000(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Path;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$parsedUpdate:Ljava/util/Map;
iget-object v3, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v3}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
iget-object v4, p0, Lcom/google/firebase/database/OnDisconnect$2;->val$update:Ljava/util/Map;
invoke-virtual {v0, v1, v2, v3, v4}, Lcom/google/firebase/database/core/Repo;->onDisconnectUpdate(Lcom/google/firebase/database/core/Path;Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;Ljava/util/Map;)V
return-void
.end method
@@ -0,0 +1,69 @@
.class Lcom/google/firebase/database/OnDisconnect$3;
.super Ljava/lang/Object;
.source "OnDisconnect.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/OnDisconnect;->cancelInternal(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)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/OnDisconnect;
.field public final synthetic val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/OnDisconnect;Lcom/google/firebase/database/core/utilities/Pair;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/OnDisconnect$3;->this$0:Lcom/google/firebase/database/OnDisconnect;
iput-object p2, p0, Lcom/google/firebase/database/OnDisconnect$3;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
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/OnDisconnect$3;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v0}, Lcom/google/firebase/database/OnDisconnect;->access$100(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Repo;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/OnDisconnect$3;->this$0:Lcom/google/firebase/database/OnDisconnect;
invoke-static {v1}, Lcom/google/firebase/database/OnDisconnect;->access$000(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Path;
move-result-object v1
iget-object v2, p0, Lcom/google/firebase/database/OnDisconnect$3;->val$wrapped:Lcom/google/firebase/database/core/utilities/Pair;
invoke-virtual {v2}, Lcom/google/firebase/database/core/utilities/Pair;->getSecond()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/firebase/database/DatabaseReference$CompletionListener;
invoke-virtual {v0, v1, v2}, Lcom/google/firebase/database/core/Repo;->onDisconnectCancel(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
return-void
.end method
@@ -0,0 +1,546 @@
.class public Lcom/google/firebase/database/OnDisconnect;
.super Ljava/lang/Object;
.source "OnDisconnect.java"
# instance fields
.field private path:Lcom/google/firebase/database/core/Path;
.field private repo:Lcom/google/firebase/database/core/Repo;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/core/Repo;Lcom/google/firebase/database/core/Path;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/OnDisconnect;->repo:Lcom/google/firebase/database/core/Repo;
.line 3
iput-object p2, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
return-void
.end method
.method public static synthetic access$000(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Path;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
return-object p0
.end method
.method public static synthetic access$100(Lcom/google/firebase/database/OnDisconnect;)Lcom/google/firebase/database/core/Repo;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/OnDisconnect;->repo:Lcom/google/firebase/database/core/Repo;
return-object p0
.end method
.method private cancelInternal(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/DatabaseReference$CompletionListener;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 1
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Utilities;->wrapOnComplete(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/firebase/database/core/utilities/Pair;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->repo:Lcom/google/firebase/database/core/Repo;
new-instance v1, Lcom/google/firebase/database/OnDisconnect$3;
invoke-direct {v1, p0, p1}, Lcom/google/firebase/database/OnDisconnect$3;-><init>(Lcom/google/firebase/database/OnDisconnect;Lcom/google/firebase/database/core/utilities/Pair;)V
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/Repo;->scheduleNow(Ljava/lang/Runnable;)V
.line 3
invoke-virtual {p1}, Lcom/google/firebase/database/core/utilities/Pair;->getFirst()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/android/gms/tasks/Task;
return-object p1
.end method
.method private onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/snapshot/Node;",
"Lcom/google/firebase/database/DatabaseReference$CompletionListener;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0}, Lcom/google/firebase/database/core/utilities/Validation;->validateWritablePath(Lcom/google/firebase/database/core/Path;)V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p1}, Lcom/google/firebase/database/core/ValidationPath;->validateWithObject(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)V
.line 3
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/encoding/CustomClassMapper;->convertToPlainJavaTypes(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 4
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/Validation;->validateWritableObject(Ljava/lang/Object;)V
.line 5
invoke-static {p1, p2}, Lcom/google/firebase/database/snapshot/NodeUtilities;->NodeFromJSON(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
.line 6
invoke-static {p3}, Lcom/google/firebase/database/core/utilities/Utilities;->wrapOnComplete(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/firebase/database/core/utilities/Pair;
move-result-object p2
.line 7
iget-object p3, p0, Lcom/google/firebase/database/OnDisconnect;->repo:Lcom/google/firebase/database/core/Repo;
new-instance v0, Lcom/google/firebase/database/OnDisconnect$1;
invoke-direct {v0, p0, p1, p2}, Lcom/google/firebase/database/OnDisconnect$1;-><init>(Lcom/google/firebase/database/OnDisconnect;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/core/utilities/Pair;)V
invoke-virtual {p3, v0}, Lcom/google/firebase/database/core/Repo;->scheduleNow(Ljava/lang/Runnable;)V
.line 8
invoke-virtual {p2}, Lcom/google/firebase/database/core/utilities/Pair;->getFirst()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/android/gms/tasks/Task;
return-object p1
.end method
.method private updateChildrenInternal(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/DatabaseReference$CompletionListener;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p1}, Lcom/google/firebase/database/core/utilities/Validation;->parseAndValidateUpdate(Lcom/google/firebase/database/core/Path;Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
.line 2
invoke-static {p2}, Lcom/google/firebase/database/core/utilities/Utilities;->wrapOnComplete(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/firebase/database/core/utilities/Pair;
move-result-object p2
.line 3
iget-object v1, p0, Lcom/google/firebase/database/OnDisconnect;->repo:Lcom/google/firebase/database/core/Repo;
new-instance v2, Lcom/google/firebase/database/OnDisconnect$2;
invoke-direct {v2, p0, v0, p2, p1}, Lcom/google/firebase/database/OnDisconnect$2;-><init>(Lcom/google/firebase/database/OnDisconnect;Ljava/util/Map;Lcom/google/firebase/database/core/utilities/Pair;Ljava/util/Map;)V
invoke-virtual {v1, v2}, Lcom/google/firebase/database/core/Repo;->scheduleNow(Ljava/lang/Runnable;)V
.line 4
invoke-virtual {p2}, Lcom/google/firebase/database/core/utilities/Pair;->getFirst()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/android/gms/tasks/Task;
return-object p1
.end method
# virtual methods
.method public cancel()Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-direct {p0, v0}, Lcom/google/firebase/database/OnDisconnect;->cancelInternal(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public cancel(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 0
.param p1 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 2
invoke-direct {p0, p1}, Lcom/google/firebase/database/OnDisconnect;->cancelInternal(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
.method public removeValue()Lcom/google/android/gms/tasks/Task;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Lcom/google/firebase/database/OnDisconnect;->setValue(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public removeValue(Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 1
.param p1 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
const/4 v0, 0x0
.line 2
invoke-virtual {p0, v0, p1}, Lcom/google/firebase/database/OnDisconnect;->setValue(Ljava/lang/Object;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
return-void
.end method
.method public setValue(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
.locals 2
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 1
invoke-static {}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->NullPriority()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
const/4 v1, 0x0
invoke-direct {p0, p1, v0, v1}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
return-object p1
.end method
.method public setValue(Ljava/lang/Object;D)Lcom/google/android/gms/tasks/Task;
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"D)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 3
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {p2, p3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object p2
invoke-static {v0, p2}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p2
const/4 p3, 0x0
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
return-object p1
.end method
.method public setValue(Ljava/lang/Object;Ljava/lang/String;)Lcom/google/android/gms/tasks/Task;
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Ljava/lang/String;",
")",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p2}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p2
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
return-object p1
.end method
.method public setValue(Ljava/lang/Object;DLcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p4 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 6
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {p2, p3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object p2
invoke-static {v0, p2}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p2
invoke-direct {p0, p1, p2, p4}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
.method public setValue(Ljava/lang/Object;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 4
invoke-static {}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->NullPriority()Lcom/google/firebase/database/snapshot/Node;
move-result-object v0
invoke-direct {p0, p1, v0, p2}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
.method public setValue(Ljava/lang/Object;Ljava/lang/String;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 5
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p2}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p2
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
.method public setValue(Ljava/lang/Object;Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 1
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Ljava/util/Map;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 7
iget-object v0, p0, Lcom/google/firebase/database/OnDisconnect;->path:Lcom/google/firebase/database/core/Path;
invoke-static {v0, p2}, Lcom/google/firebase/database/snapshot/PriorityUtilities;->parsePriority(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p2
invoke-direct {p0, p1, p2, p3}, Lcom/google/firebase/database/OnDisconnect;->onDisconnectSetInternal(Ljava/lang/Object;Lcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
.method public updateChildren(Ljava/util/Map;)Lcom/google/android/gms/tasks/Task;
.locals 1
.param p1 # Ljava/util/Map;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;)",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/Void;",
">;"
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0}, Lcom/google/firebase/database/OnDisconnect;->updateChildrenInternal(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
return-object p1
.end method
.method public updateChildren(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)V
.locals 0
.param p1 # Ljava/util/Map;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Lcom/google/firebase/database/DatabaseReference$CompletionListener;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;",
"Lcom/google/firebase/database/DatabaseReference$CompletionListener;",
")V"
}
.end annotation
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/OnDisconnect;->updateChildrenInternal(Ljava/util/Map;Lcom/google/firebase/database/DatabaseReference$CompletionListener;)Lcom/google/android/gms/tasks/Task;
return-void
.end method
@@ -0,0 +1,24 @@
.class public interface abstract annotation Lcom/google/firebase/database/PropertyName;
.super Ljava/lang/Object;
.source "PropertyName.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;
}
.end annotation
# virtual methods
.method public abstract value()Ljava/lang/String;
.end method
@@ -0,0 +1,67 @@
.class Lcom/google/firebase/database/Query$1;
.super Ljava/lang/Object;
.source "Query.java"
# interfaces
.implements Lcom/google/firebase/database/ValueEventListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/Query;->addListenerForSingleValueEvent(Lcom/google/firebase/database/ValueEventListener;)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/Query;
.field public final synthetic val$listener:Lcom/google/firebase/database/ValueEventListener;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/Query;Lcom/google/firebase/database/ValueEventListener;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/Query$1;->this$0:Lcom/google/firebase/database/Query;
iput-object p2, p0, Lcom/google/firebase/database/Query$1;->val$listener:Lcom/google/firebase/database/ValueEventListener;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCancelled(Lcom/google/firebase/database/DatabaseError;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/Query$1;->val$listener:Lcom/google/firebase/database/ValueEventListener;
invoke-interface {v0, p1}, Lcom/google/firebase/database/ValueEventListener;->onCancelled(Lcom/google/firebase/database/DatabaseError;)V
return-void
.end method
.method public onDataChange(Lcom/google/firebase/database/DataSnapshot;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/Query$1;->this$0:Lcom/google/firebase/database/Query;
invoke-virtual {v0, p0}, Lcom/google/firebase/database/Query;->removeEventListener(Lcom/google/firebase/database/ValueEventListener;)V
.line 2
iget-object v0, p0, Lcom/google/firebase/database/Query$1;->val$listener:Lcom/google/firebase/database/ValueEventListener;
invoke-interface {v0, p1}, Lcom/google/firebase/database/ValueEventListener;->onDataChange(Lcom/google/firebase/database/DataSnapshot;)V
return-void
.end method
@@ -0,0 +1,55 @@
.class Lcom/google/firebase/database/Query$2;
.super Ljava/lang/Object;
.source "Query.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/Query;->removeEventRegistration(Lcom/google/firebase/database/core/EventRegistration;)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/Query;
.field public final synthetic val$registration:Lcom/google/firebase/database/core/EventRegistration;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/Query;Lcom/google/firebase/database/core/EventRegistration;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/Query$2;->this$0:Lcom/google/firebase/database/Query;
iput-object p2, p0, Lcom/google/firebase/database/Query$2;->val$registration:Lcom/google/firebase/database/core/EventRegistration;
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/Query$2;->this$0:Lcom/google/firebase/database/Query;
iget-object v0, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
iget-object v1, p0, Lcom/google/firebase/database/Query$2;->val$registration:Lcom/google/firebase/database/core/EventRegistration;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/Repo;->removeEventCallback(Lcom/google/firebase/database/core/EventRegistration;)V
return-void
.end method
@@ -0,0 +1,55 @@
.class Lcom/google/firebase/database/Query$3;
.super Ljava/lang/Object;
.source "Query.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/Query;->addEventRegistration(Lcom/google/firebase/database/core/EventRegistration;)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/Query;
.field public final synthetic val$listener:Lcom/google/firebase/database/core/EventRegistration;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/Query;Lcom/google/firebase/database/core/EventRegistration;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/Query$3;->this$0:Lcom/google/firebase/database/Query;
iput-object p2, p0, Lcom/google/firebase/database/Query$3;->val$listener:Lcom/google/firebase/database/core/EventRegistration;
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/Query$3;->this$0:Lcom/google/firebase/database/Query;
iget-object v0, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
iget-object v1, p0, Lcom/google/firebase/database/Query$3;->val$listener:Lcom/google/firebase/database/core/EventRegistration;
invoke-virtual {v0, v1}, Lcom/google/firebase/database/core/Repo;->addEventCallback(Lcom/google/firebase/database/core/EventRegistration;)V
return-void
.end method
@@ -0,0 +1,59 @@
.class Lcom/google/firebase/database/Query$4;
.super Ljava/lang/Object;
.source "Query.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/Query;->keepSynced(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/Query;
.field public final synthetic val$keepSynced:Z
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/Query;Z)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/Query$4;->this$0:Lcom/google/firebase/database/Query;
iput-boolean p2, p0, Lcom/google/firebase/database/Query$4;->val$keepSynced:Z
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/Query$4;->this$0:Lcom/google/firebase/database/Query;
iget-object v1, v0, Lcom/google/firebase/database/Query;->repo:Lcom/google/firebase/database/core/Repo;
invoke-virtual {v0}, Lcom/google/firebase/database/Query;->getSpec()Lcom/google/firebase/database/core/view/QuerySpec;
move-result-object v0
iget-boolean v2, p0, Lcom/google/firebase/database/Query$4;->val$keepSynced:Z
invoke-virtual {v1, v0, v2}, Lcom/google/firebase/database/core/Repo;->keepSynced(Lcom/google/firebase/database/core/view/QuerySpec;Z)V
return-void
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,79 @@
.class public final Lcom/google/firebase/database/R$attr;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "attr"
.end annotation
# static fields
.field public static final alpha:I = 0x7f040033
.field public static final buttonSize:I = 0x7f040088
.field public static final circleCrop:I = 0x7f0400bc
.field public static final colorScheme:I = 0x7f0400e8
.field public static final coordinatorLayoutStyle:I = 0x7f040107
.field public static final font:I = 0x7f0401b5
.field public static final fontProviderAuthority:I = 0x7f0401b7
.field public static final fontProviderCerts:I = 0x7f0401b8
.field public static final fontProviderFetchStrategy:I = 0x7f0401b9
.field public static final fontProviderFetchTimeout:I = 0x7f0401ba
.field public static final fontProviderPackage:I = 0x7f0401bb
.field public static final fontProviderQuery:I = 0x7f0401bc
.field public static final fontStyle:I = 0x7f0401be
.field public static final fontVariationSettings:I = 0x7f0401bf
.field public static final fontWeight:I = 0x7f0401c0
.field public static final imageAspectRatio:I = 0x7f0401ee
.field public static final imageAspectRatioAdjust:I = 0x7f0401ef
.field public static final keylines:I = 0x7f040227
.field public static final layout_anchor:I = 0x7f040232
.field public static final layout_anchorGravity:I = 0x7f040233
.field public static final layout_behavior:I = 0x7f040234
.field public static final layout_dodgeInsetEdges:I = 0x7f040261
.field public static final layout_insetEdge:I = 0x7f04026a
.field public static final layout_keyline:I = 0x7f04026b
.field public static final scopeUris:I = 0x7f040348
.field public static final statusBarBackground:I = 0x7f04039c
.field public static final ttcIndex:I = 0x7f040438
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,55 @@
.class public final Lcom/google/firebase/database/R$color;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "color"
.end annotation
# static fields
.field public static final common_google_signin_btn_text_dark:I = 0x7f060220
.field public static final common_google_signin_btn_text_dark_default:I = 0x7f060221
.field public static final common_google_signin_btn_text_dark_disabled:I = 0x7f060222
.field public static final common_google_signin_btn_text_dark_focused:I = 0x7f060223
.field public static final common_google_signin_btn_text_dark_pressed:I = 0x7f060224
.field public static final common_google_signin_btn_text_light:I = 0x7f060225
.field public static final common_google_signin_btn_text_light_default:I = 0x7f060226
.field public static final common_google_signin_btn_text_light_disabled:I = 0x7f060227
.field public static final common_google_signin_btn_text_light_focused:I = 0x7f060228
.field public static final common_google_signin_btn_text_light_pressed:I = 0x7f060229
.field public static final common_google_signin_btn_tint:I = 0x7f06022a
.field public static final notification_action_color_filter:I = 0x7f0602d7
.field public static final notification_icon_bg_color:I = 0x7f0602d8
.field public static final ripple_material_light:I = 0x7f0602ea
.field public static final secondary_text_default_material_light:I = 0x7f0602ed
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,69 @@
.class public final Lcom/google/firebase/database/R$dimen;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "dimen"
.end annotation
# static fields
.field public static final compat_button_inset_horizontal_material:I = 0x7f070091
.field public static final compat_button_inset_vertical_material:I = 0x7f070092
.field public static final compat_button_padding_horizontal_material:I = 0x7f070093
.field public static final compat_button_padding_vertical_material:I = 0x7f070094
.field public static final compat_control_corner_material:I = 0x7f070095
.field public static final compat_notification_large_icon_max_height:I = 0x7f070096
.field public static final compat_notification_large_icon_max_width:I = 0x7f070097
.field public static final notification_action_icon_size:I = 0x7f070275
.field public static final notification_action_text_size:I = 0x7f070276
.field public static final notification_big_circle_margin:I = 0x7f070277
.field public static final notification_content_margin_start:I = 0x7f070278
.field public static final notification_large_icon_height:I = 0x7f070279
.field public static final notification_large_icon_width:I = 0x7f07027a
.field public static final notification_main_column_padding_top:I = 0x7f07027b
.field public static final notification_media_narrow_margin:I = 0x7f07027c
.field public static final notification_right_icon_size:I = 0x7f07027d
.field public static final notification_right_side_padding_top:I = 0x7f07027e
.field public static final notification_small_icon_background_padding:I = 0x7f07027f
.field public static final notification_small_icon_size_as_large:I = 0x7f070280
.field public static final notification_subtext_size:I = 0x7f070281
.field public static final notification_top_pad:I = 0x7f070282
.field public static final notification_top_pad_large_text:I = 0x7f070283
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,91 @@
.class public final Lcom/google/firebase/database/R$drawable;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "drawable"
.end annotation
# static fields
.field public static final common_full_open_on_phone:I = 0x7f0802af
.field public static final common_google_signin_btn_icon_dark:I = 0x7f0802b0
.field public static final common_google_signin_btn_icon_dark_focused:I = 0x7f0802b1
.field public static final common_google_signin_btn_icon_dark_normal:I = 0x7f0802b2
.field public static final common_google_signin_btn_icon_dark_normal_background:I = 0x7f0802b3
.field public static final common_google_signin_btn_icon_disabled:I = 0x7f0802b4
.field public static final common_google_signin_btn_icon_light:I = 0x7f0802b5
.field public static final common_google_signin_btn_icon_light_focused:I = 0x7f0802b6
.field public static final common_google_signin_btn_icon_light_normal:I = 0x7f0802b7
.field public static final common_google_signin_btn_icon_light_normal_background:I = 0x7f0802b8
.field public static final common_google_signin_btn_text_dark:I = 0x7f0802b9
.field public static final common_google_signin_btn_text_dark_focused:I = 0x7f0802ba
.field public static final common_google_signin_btn_text_dark_normal:I = 0x7f0802bb
.field public static final common_google_signin_btn_text_dark_normal_background:I = 0x7f0802bc
.field public static final common_google_signin_btn_text_disabled:I = 0x7f0802bd
.field public static final common_google_signin_btn_text_light:I = 0x7f0802be
.field public static final common_google_signin_btn_text_light_focused:I = 0x7f0802bf
.field public static final common_google_signin_btn_text_light_normal:I = 0x7f0802c0
.field public static final common_google_signin_btn_text_light_normal_background:I = 0x7f0802c1
.field public static final googleg_disabled_color_18:I = 0x7f08036e
.field public static final googleg_standard_color_18:I = 0x7f08036f
.field public static final notification_action_background:I = 0x7f0809fa
.field public static final notification_bg:I = 0x7f0809fb
.field public static final notification_bg_low:I = 0x7f0809fc
.field public static final notification_bg_low_normal:I = 0x7f0809fd
.field public static final notification_bg_low_pressed:I = 0x7f0809fe
.field public static final notification_bg_normal:I = 0x7f0809ff
.field public static final notification_bg_normal_pressed:I = 0x7f080a00
.field public static final notification_icon_background:I = 0x7f080a01
.field public static final notification_template_icon_bg:I = 0x7f080a02
.field public static final notification_template_icon_low_bg:I = 0x7f080a03
.field public static final notification_tile_bg:I = 0x7f080a04
.field public static final notify_panel_notification_icon_bg:I = 0x7f080a05
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,111 @@
.class public final Lcom/google/firebase/database/R$id;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "id"
.end annotation
# static fields
.field public static final action_container:I = 0x7f0a003d
.field public static final action_divider:I = 0x7f0a003f
.field public static final action_image:I = 0x7f0a0040
.field public static final action_text:I = 0x7f0a0047
.field public static final actions:I = 0x7f0a0048
.field public static final adjust_height:I = 0x7f0a0066
.field public static final adjust_width:I = 0x7f0a0067
.field public static final async:I = 0x7f0a016a
.field public static final auto:I = 0x7f0a016d
.field public static final blocking:I = 0x7f0a018c
.field public static final bottom:I = 0x7f0a0198
.field public static final chronometer:I = 0x7f0a0247
.field public static final dark:I = 0x7f0a02a8
.field public static final end:I = 0x7f0a033e
.field public static final forever:I = 0x7f0a0407
.field public static final icon:I = 0x7f0a04a3
.field public static final icon_group:I = 0x7f0a04ac
.field public static final icon_only:I = 0x7f0a04ad
.field public static final info:I = 0x7f0a04c8
.field public static final italic:I = 0x7f0a04ee
.field public static final left:I = 0x7f0a0545
.field public static final light:I = 0x7f0a054b
.field public static final line1:I = 0x7f0a054f
.field public static final line3:I = 0x7f0a0550
.field public static final none:I = 0x7f0a0819
.field public static final normal:I = 0x7f0a081a
.field public static final notification_background:I = 0x7f0a0829
.field public static final notification_main_column:I = 0x7f0a082b
.field public static final notification_main_column_container:I = 0x7f0a082c
.field public static final right:I = 0x7f0a092b
.field public static final right_icon:I = 0x7f0a092f
.field public static final right_side:I = 0x7f0a0931
.field public static final standard:I = 0x7f0a0a7c
.field public static final start:I = 0x7f0a0a7f
.field public static final tag_transition_group:I = 0x7f0a0aa8
.field public static final tag_unhandled_key_event_manager:I = 0x7f0a0aa9
.field public static final tag_unhandled_key_listeners:I = 0x7f0a0aaa
.field public static final text:I = 0x7f0a0ab3
.field public static final text2:I = 0x7f0a0ab4
.field public static final time:I = 0x7f0a0b07
.field public static final title:I = 0x7f0a0b1a
.field public static final top:I = 0x7f0a0b82
.field public static final wide:I = 0x7f0a0beb
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,29 @@
.class public final Lcom/google/firebase/database/R$integer;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "integer"
.end annotation
# static fields
.field public static final google_play_services_version:I = 0x7f0b0010
.field public static final status_bar_notification_info_maxnum:I = 0x7f0b001d
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,37 @@
.class public final Lcom/google/firebase/database/R$layout;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "layout"
.end annotation
# static fields
.field public static final notification_action:I = 0x7f0d016d
.field public static final notification_action_tombstone:I = 0x7f0d016e
.field public static final notification_template_custom_big:I = 0x7f0d0177
.field public static final notification_template_icon_group:I = 0x7f0d0178
.field public static final notification_template_part_chronometer:I = 0x7f0d017c
.field public static final notification_template_part_time:I = 0x7f0d017d
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,63 @@
.class public final Lcom/google/firebase/database/R$string;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "string"
.end annotation
# static fields
.field public static final common_google_play_services_enable_button:I = 0x7f1301e5
.field public static final common_google_play_services_enable_text:I = 0x7f1301e6
.field public static final common_google_play_services_enable_title:I = 0x7f1301e7
.field public static final common_google_play_services_install_button:I = 0x7f1301e8
.field public static final common_google_play_services_install_text:I = 0x7f1301e9
.field public static final common_google_play_services_install_title:I = 0x7f1301ea
.field public static final common_google_play_services_notification_channel_name:I = 0x7f1301eb
.field public static final common_google_play_services_notification_ticker:I = 0x7f1301ec
.field public static final common_google_play_services_unknown_issue:I = 0x7f1301ed
.field public static final common_google_play_services_unsupported_text:I = 0x7f1301ee
.field public static final common_google_play_services_update_button:I = 0x7f1301ef
.field public static final common_google_play_services_update_text:I = 0x7f1301f0
.field public static final common_google_play_services_update_title:I = 0x7f1301f1
.field public static final common_google_play_services_updating_text:I = 0x7f1301f2
.field public static final common_google_play_services_wear_update_text:I = 0x7f1301f3
.field public static final common_open_on_phone:I = 0x7f1301f4
.field public static final common_signin_button_text:I = 0x7f1301f5
.field public static final common_signin_button_text_long:I = 0x7f1301f6
.field public static final status_bar_notification_info_overflow:I = 0x7f130643
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,41 @@
.class public final Lcom/google/firebase/database/R$style;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "style"
.end annotation
# static fields
.field public static final TextAppearance_Compat_Notification:I = 0x7f1401ca
.field public static final TextAppearance_Compat_Notification_Info:I = 0x7f1401cb
.field public static final TextAppearance_Compat_Notification_Line2:I = 0x7f1401cd
.field public static final TextAppearance_Compat_Notification_Time:I = 0x7f1401d0
.field public static final TextAppearance_Compat_Notification_Title:I = 0x7f1401d2
.field public static final Widget_Compat_NotificationActionContainer:I = 0x7f1402da
.field public static final Widget_Compat_NotificationActionText:I = 0x7f1402db
.field public static final Widget_Support_CoordinatorLayout:I = 0x7f14035a
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,310 @@
.class public final Lcom/google/firebase/database/R$styleable;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "styleable"
.end annotation
# static fields
.field public static final ColorStateListItem:[I
.field public static final ColorStateListItem_alpha:I = 0x3
.field public static final ColorStateListItem_android_alpha:I = 0x1
.field public static final ColorStateListItem_android_color:I = 0x0
.field public static final ColorStateListItem_android_lStar:I = 0x2
.field public static final ColorStateListItem_lStar:I = 0x4
.field public static final CoordinatorLayout:[I
.field public static final CoordinatorLayout_Layout:[I
.field public static final CoordinatorLayout_Layout_android_layout_gravity:I = 0x0
.field public static final CoordinatorLayout_Layout_layout_anchor:I = 0x1
.field public static final CoordinatorLayout_Layout_layout_anchorGravity:I = 0x2
.field public static final CoordinatorLayout_Layout_layout_behavior:I = 0x3
.field public static final CoordinatorLayout_Layout_layout_dodgeInsetEdges:I = 0x4
.field public static final CoordinatorLayout_Layout_layout_insetEdge:I = 0x5
.field public static final CoordinatorLayout_Layout_layout_keyline:I = 0x6
.field public static final CoordinatorLayout_keylines:I = 0x0
.field public static final CoordinatorLayout_statusBarBackground:I = 0x1
.field public static final FontFamily:[I
.field public static final FontFamilyFont:[I
.field public static final FontFamilyFont_android_font:I = 0x0
.field public static final FontFamilyFont_android_fontStyle:I = 0x2
.field public static final FontFamilyFont_android_fontVariationSettings:I = 0x4
.field public static final FontFamilyFont_android_fontWeight:I = 0x1
.field public static final FontFamilyFont_android_ttcIndex:I = 0x3
.field public static final FontFamilyFont_font:I = 0x5
.field public static final FontFamilyFont_fontStyle:I = 0x6
.field public static final FontFamilyFont_fontVariationSettings:I = 0x7
.field public static final FontFamilyFont_fontWeight:I = 0x8
.field public static final FontFamilyFont_ttcIndex:I = 0x9
.field public static final FontFamily_fontProviderAuthority:I = 0x0
.field public static final FontFamily_fontProviderCerts:I = 0x1
.field public static final FontFamily_fontProviderFetchStrategy:I = 0x2
.field public static final FontFamily_fontProviderFetchTimeout:I = 0x3
.field public static final FontFamily_fontProviderPackage:I = 0x4
.field public static final FontFamily_fontProviderQuery:I = 0x5
.field public static final FontFamily_fontProviderSystemFontFamily:I = 0x6
.field public static final GradientColor:[I
.field public static final GradientColorItem:[I
.field public static final GradientColorItem_android_color:I = 0x0
.field public static final GradientColorItem_android_offset:I = 0x1
.field public static final GradientColor_android_centerColor:I = 0x7
.field public static final GradientColor_android_centerX:I = 0x3
.field public static final GradientColor_android_centerY:I = 0x4
.field public static final GradientColor_android_endColor:I = 0x1
.field public static final GradientColor_android_endX:I = 0xa
.field public static final GradientColor_android_endY:I = 0xb
.field public static final GradientColor_android_gradientRadius:I = 0x5
.field public static final GradientColor_android_startColor:I = 0x0
.field public static final GradientColor_android_startX:I = 0x8
.field public static final GradientColor_android_startY:I = 0x9
.field public static final GradientColor_android_tileMode:I = 0x6
.field public static final GradientColor_android_type:I = 0x2
.field public static final LoadingImageView:[I
.field public static final LoadingImageView_circleCrop:I = 0x0
.field public static final LoadingImageView_imageAspectRatio:I = 0x1
.field public static final LoadingImageView_imageAspectRatioAdjust:I = 0x2
.field public static final SignInButton:[I
.field public static final SignInButton_buttonSize:I = 0x0
.field public static final SignInButton_button_style:I = 0x1
.field public static final SignInButton_colorScheme:I = 0x2
.field public static final SignInButton_scopeUris:I = 0x3
.field public static final SignInButton_text:I = 0x4
# direct methods
.method public static constructor <clinit>()V
.locals 4
const/4 v0, 0x5
new-array v1, v0, [I
fill-array-data v1, :array_0
sput-object v1, Lcom/google/firebase/database/R$styleable;->ColorStateListItem:[I
const/4 v1, 0x2
new-array v2, v1, [I
fill-array-data v2, :array_1
sput-object v2, Lcom/google/firebase/database/R$styleable;->CoordinatorLayout:[I
const/4 v2, 0x7
new-array v3, v2, [I
fill-array-data v3, :array_2
sput-object v3, Lcom/google/firebase/database/R$styleable;->CoordinatorLayout_Layout:[I
new-array v2, v2, [I
fill-array-data v2, :array_3
sput-object v2, Lcom/google/firebase/database/R$styleable;->FontFamily:[I
const/16 v2, 0xa
new-array v2, v2, [I
fill-array-data v2, :array_4
sput-object v2, Lcom/google/firebase/database/R$styleable;->FontFamilyFont:[I
const/16 v2, 0xc
new-array v2, v2, [I
fill-array-data v2, :array_5
sput-object v2, Lcom/google/firebase/database/R$styleable;->GradientColor:[I
new-array v1, v1, [I
fill-array-data v1, :array_6
sput-object v1, Lcom/google/firebase/database/R$styleable;->GradientColorItem:[I
const/4 v1, 0x3
new-array v1, v1, [I
fill-array-data v1, :array_7
sput-object v1, Lcom/google/firebase/database/R$styleable;->LoadingImageView:[I
new-array v0, v0, [I
fill-array-data v0, :array_8
sput-object v0, Lcom/google/firebase/database/R$styleable;->SignInButton:[I
return-void
:array_0
.array-data 4
0x10101a5
0x101031f
0x1010647
0x7f040033
0x7f040228
.end array-data
:array_1
.array-data 4
0x7f040227
0x7f04039c
.end array-data
:array_2
.array-data 4
0x10100b3
0x7f040232
0x7f040233
0x7f040234
0x7f040261
0x7f04026a
0x7f04026b
.end array-data
:array_3
.array-data 4
0x7f0401b7
0x7f0401b8
0x7f0401b9
0x7f0401ba
0x7f0401bb
0x7f0401bc
0x7f0401bd
.end array-data
:array_4
.array-data 4
0x1010532
0x1010533
0x101053f
0x101056f
0x1010570
0x7f0401b5
0x7f0401be
0x7f0401bf
0x7f0401c0
0x7f040438
.end array-data
:array_5
.array-data 4
0x101019d
0x101019e
0x10101a1
0x10101a2
0x10101a3
0x10101a4
0x1010201
0x101020b
0x1010510
0x1010511
0x1010512
0x1010513
.end array-data
:array_6
.array-data 4
0x10101a5
0x1010514
.end array-data
:array_7
.array-data 4
0x7f0400bc
0x7f0401ee
0x7f0401ef
.end array-data
:array_8
.array-data 4
0x7f040088
0x7f04008d
0x7f0400e8
0x7f040348
0x7f0403d8
.end array-data
.end method
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,29 @@
.class public final Lcom/google/firebase/database/R;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/R$attr;,
Lcom/google/firebase/database/R$color;,
Lcom/google/firebase/database/R$dimen;,
Lcom/google/firebase/database/R$drawable;,
Lcom/google/firebase/database/R$id;,
Lcom/google/firebase/database/R$integer;,
Lcom/google/firebase/database/R$layout;,
Lcom/google/firebase/database/R$string;,
Lcom/google/firebase/database/R$style;,
Lcom/google/firebase/database/R$styleable;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
@@ -0,0 +1,162 @@
.class public Lcom/google/firebase/database/ServerValue;
.super Ljava/lang/Object;
.source "ServerValue.java"
# static fields
.field public static final TIMESTAMP:Ljava/util/Map;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "timestamp"
.line 1
invoke-static {v0}, Lcom/google/firebase/database/ServerValue;->createScalarServerValuePlaceholder(Ljava/lang/String;)Ljava/util/Map;
move-result-object v0
sput-object v0, Lcom/google/firebase/database/ServerValue;->TIMESTAMP:Ljava/util/Map;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static createParameterizedServerValuePlaceholder(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/Object;",
")",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 2
invoke-virtual {v0, p0, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 3
new-instance p0, Ljava/util/HashMap;
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
.line 4
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p1
const-string v0, ".sv"
invoke-virtual {p0, v0, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 5
invoke-static {p0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method private static createScalarServerValuePlaceholder(Ljava/lang/String;)Ljava/util/Map;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v1, ".sv"
.line 2
invoke-virtual {v0, v1, p0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 3
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final increment(D)Ljava/lang/Object;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 2
invoke-static {p0, p1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
move-result-object p0
const-string p1, "increment"
invoke-static {p1, p0}, Lcom/google/firebase/database/ServerValue;->createParameterizedServerValuePlaceholder(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
.method public static final increment(J)Ljava/lang/Object;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p0
const-string p1, "increment"
invoke-static {p1, p0}, Lcom/google/firebase/database/ServerValue;->createParameterizedServerValuePlaceholder(Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map;
move-result-object p0
return-object p0
.end method
@@ -0,0 +1,18 @@
.class public interface abstract annotation Lcom/google/firebase/database/ThrowOnExtraProperties;
.super Ljava/lang/Object;
.source "ThrowOnExtraProperties.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->TYPE:Ljava/lang/annotation/ElementType;
}
.end annotation
@@ -0,0 +1,14 @@
.class synthetic Lcom/google/firebase/database/Transaction$1;
.super Ljava/lang/Object;
.source "Transaction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/Transaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,36 @@
.class public interface abstract Lcom/google/firebase/database/Transaction$Handler;
.super Ljava/lang/Object;
.source "Transaction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/Transaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Handler"
.end annotation
# virtual methods
.method public abstract doTransaction(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/Transaction$Result;
.param p1 # Lcom/google/firebase/database/MutableData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end method
.method public abstract onComplete(Lcom/google/firebase/database/DatabaseError;ZLcom/google/firebase/database/DataSnapshot;)V
.param p1 # Lcom/google/firebase/database/DatabaseError;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.end method
@@ -0,0 +1,71 @@
.class public Lcom/google/firebase/database/Transaction$Result;
.super Ljava/lang/Object;
.source "Transaction.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/Transaction;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Result"
.end annotation
# instance fields
.field private data:Lcom/google/firebase/database/snapshot/Node;
.field private success:Z
# direct methods
.method private constructor <init>(ZLcom/google/firebase/database/snapshot/Node;)V
.locals 0
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
iput-boolean p1, p0, Lcom/google/firebase/database/Transaction$Result;->success:Z
.line 4
iput-object p2, p0, Lcom/google/firebase/database/Transaction$Result;->data:Lcom/google/firebase/database/snapshot/Node;
return-void
.end method
.method public synthetic constructor <init>(ZLcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/Transaction$1;)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/Transaction$Result;-><init>(ZLcom/google/firebase/database/snapshot/Node;)V
return-void
.end method
# virtual methods
.method public getNode()Lcom/google/firebase/database/snapshot/Node;
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/Transaction$Result;->data:Lcom/google/firebase/database/snapshot/Node;
return-object v0
.end method
.method public isSuccess()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/Transaction$Result;->success:Z
return v0
.end method
@@ -0,0 +1,65 @@
.class public Lcom/google/firebase/database/Transaction;
.super Ljava/lang/Object;
.source "Transaction.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/Transaction$Handler;,
Lcom/google/firebase/database/Transaction$Result;
}
.end annotation
# 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 abort()Lcom/google/firebase/database/Transaction$Result;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/Transaction$Result;
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/firebase/database/Transaction$Result;-><init>(ZLcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/Transaction$1;)V
return-object v0
.end method
.method public static success(Lcom/google/firebase/database/MutableData;)Lcom/google/firebase/database/Transaction$Result;
.locals 3
.param p0 # Lcom/google/firebase/database/MutableData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/Transaction$Result;
invoke-virtual {p0}, Lcom/google/firebase/database/MutableData;->getNode()Lcom/google/firebase/database/snapshot/Node;
move-result-object p0
const/4 v1, 0x1
const/4 v2, 0x0
invoke-direct {v0, v1, p0, v2}, Lcom/google/firebase/database/Transaction$Result;-><init>(ZLcom/google/firebase/database/snapshot/Node;Lcom/google/firebase/database/Transaction$1;)V
return-object v0
.end method
@@ -0,0 +1,19 @@
.class public interface abstract Lcom/google/firebase/database/ValueEventListener;
.super Ljava/lang/Object;
.source "ValueEventListener.java"
# virtual methods
.method public abstract onCancelled(Lcom/google/firebase/database/DatabaseError;)V
.param p1 # Lcom/google/firebase/database/DatabaseError;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
.method public abstract onDataChange(Lcom/google/firebase/database/DataSnapshot;)V
.param p1 # Lcom/google/firebase/database/DataSnapshot;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method
@@ -0,0 +1,44 @@
.class public final synthetic Lcom/google/firebase/database/a;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/components/ComponentFactory;
# static fields
.field public static final synthetic a:Lcom/google/firebase/database/a;
# direct methods
.method public static synthetic constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/firebase/database/a;
invoke-direct {v0}, Lcom/google/firebase/database/a;-><init>()V
sput-object v0, Lcom/google/firebase/database/a;->a:Lcom/google/firebase/database/a;
return-void
.end method
.method public synthetic constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final create(Lcom/google/firebase/components/ComponentContainer;)Ljava/lang/Object;
.locals 0
invoke-static {p1}, Lcom/google/firebase/database/DatabaseRegistrar;->a(Lcom/google/firebase/components/ComponentContainer;)Lcom/google/firebase/database/FirebaseDatabaseComponent;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,276 @@
.class public Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;
.super Ljava/lang/Object;
.source "AndroidAppCheckTokenProvider.java"
# interfaces
.implements Lcom/google/firebase/database/core/TokenProvider;
# instance fields
.field private final deferredAppCheckProvider:Lcom/google/firebase/inject/Deferred;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;",
">;"
}
.end annotation
.end field
.field private final internalAppCheck:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/firebase/inject/Deferred;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->deferredAppCheckProvider:Lcom/google/firebase/inject/Deferred;
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->internalAppCheck:Ljava/util/concurrent/atomic/AtomicReference;
.line 4
new-instance v0, Lcom/google/firebase/database/android/d;
invoke-direct {v0, p0}, Lcom/google/firebase/database/android/d;-><init>(Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;)V
invoke-interface {p1, v0}, Lcom/google/firebase/inject/Deferred;->whenAvailable(Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
return-void
.end method
.method public static synthetic a(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$addTokenChangeListener$4(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
.method public static synthetic b(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$addTokenChangeListener$5(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static synthetic c(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$addTokenChangeListener$3(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
.method public static synthetic d(Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$new$0(Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static synthetic e(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$getToken$1(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
.method public static synthetic f(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->lambda$getToken$2(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
return-void
.end method
.method private static synthetic lambda$addTokenChangeListener$3(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
.line 1
invoke-virtual {p1}, Lcom/google/firebase/appcheck/AppCheckTokenResult;->getToken()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;->onTokenChange(Ljava/lang/String;)V
return-void
.end method
.method private static synthetic lambda$addTokenChangeListener$4(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/android/f;
invoke-direct {v0, p1, p2}, Lcom/google/firebase/database/android/f;-><init>(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
invoke-interface {p0, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method private static synthetic lambda$addTokenChangeListener$5(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
.locals 1
.line 1
invoke-interface {p2}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;
new-instance v0, Lcom/google/firebase/database/android/c;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/android/c;-><init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.line 2
invoke-interface {p2, v0}, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;->addAppCheckTokenListener(Lcom/google/firebase/appcheck/interop/AppCheckTokenListener;)V
return-void
.end method
.method private static synthetic lambda$getToken$1(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
.line 1
invoke-virtual {p1}, Lcom/google/firebase/appcheck/AppCheckTokenResult;->getToken()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onSuccess(Ljava/lang/String;)V
return-void
.end method
.method private static synthetic lambda$getToken$2(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
.locals 0
.line 1
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onError(Ljava/lang/String;)V
return-void
.end method
.method private synthetic lambda$new$0(Lcom/google/firebase/inject/Provider;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->internalAppCheck:Ljava/util/concurrent/atomic/AtomicReference;
invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public addTokenChangeListener(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->deferredAppCheckProvider:Lcom/google/firebase/inject/Deferred;
new-instance v1, Lcom/google/firebase/database/android/e;
invoke-direct {v1, p1, p2}, Lcom/google/firebase/database/android/e;-><init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
invoke-interface {v0, v1}, Lcom/google/firebase/inject/Deferred;->whenAvailable(Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
return-void
.end method
.method public getToken(ZLcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 1
.param p2 # Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->internalAppCheck:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;
if-eqz v0, :cond_0
.line 2
invoke-interface {v0, p1}, Lcom/google/firebase/appcheck/interop/InternalAppCheckTokenProvider;->getToken(Z)Lcom/google/android/gms/tasks/Task;
move-result-object p1
.line 3
new-instance v0, Lcom/google/firebase/database/android/b;
invoke-direct {v0, p2}, Lcom/google/firebase/database/android/b;-><init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.line 4
invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/Task;->addOnSuccessListener(Lcom/google/android/gms/tasks/OnSuccessListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
new-instance v0, Lcom/google/firebase/database/android/a;
invoke-direct {v0, p2}, Lcom/google/firebase/database/android/a;-><init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.line 5
invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/Task;->addOnFailureListener(Lcom/google/android/gms/tasks/OnFailureListener;)Lcom/google/android/gms/tasks/Task;
goto :goto_0
:cond_0
const/4 p1, 0x0
.line 6
invoke-interface {p2, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onSuccess(Ljava/lang/String;)V
:goto_0
return-void
.end method
.method public removeTokenChangeListener(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
return-void
.end method
@@ -0,0 +1,319 @@
.class public Lcom/google/firebase/database/android/AndroidAuthTokenProvider;
.super Ljava/lang/Object;
.source "AndroidAuthTokenProvider.java"
# interfaces
.implements Lcom/google/firebase/database/core/TokenProvider;
# instance fields
.field private final deferredAuthProvider:Lcom/google/firebase/inject/Deferred;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/auth/internal/InternalAuthProvider;",
">;"
}
.end annotation
.end field
.field private final internalAuth:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lcom/google/firebase/auth/internal/InternalAuthProvider;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/firebase/inject/Deferred;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Deferred<",
"Lcom/google/firebase/auth/internal/InternalAuthProvider;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->deferredAuthProvider:Lcom/google/firebase/inject/Deferred;
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->internalAuth:Ljava/util/concurrent/atomic/AtomicReference;
.line 4
new-instance v0, Lcom/google/firebase/database/android/j;
invoke-direct {v0, p0}, Lcom/google/firebase/database/android/j;-><init>(Lcom/google/firebase/database/android/AndroidAuthTokenProvider;)V
invoke-interface {p1, v0}, Lcom/google/firebase/inject/Deferred;->whenAvailable(Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
return-void
.end method
.method public static synthetic a(Lcom/google/firebase/database/android/AndroidAuthTokenProvider;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-direct {p0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$new$0(Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method public static synthetic b(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/auth/GetTokenResult;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$getToken$1(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/auth/GetTokenResult;)V
return-void
.end method
.method public static synthetic c(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$addTokenChangeListener$3(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
return-void
.end method
.method public static synthetic d(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$addTokenChangeListener$4(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
return-void
.end method
.method public static synthetic e(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
.locals 0
invoke-static {p0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$getToken$2(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
return-void
.end method
.method public static synthetic f(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
.locals 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->lambda$addTokenChangeListener$5(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
.method private static isUnauthenticatedUsage(Ljava/lang/Exception;)Z
.locals 1
.line 1
instance-of v0, p0, Lcom/google/firebase/FirebaseApiNotAvailableException;
if-nez v0, :cond_1
instance-of p0, p0, Lcom/google/firebase/internal/api/FirebaseNoSignedInUserException;
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method private static synthetic lambda$addTokenChangeListener$3(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 0
.line 1
invoke-virtual {p1}, Lcom/google/firebase/internal/InternalTokenResult;->getToken()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;->onTokenChange(Ljava/lang/String;)V
return-void
.end method
.method private static synthetic lambda$addTokenChangeListener$4(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/android/l;
invoke-direct {v0, p1, p2}, Lcom/google/firebase/database/android/l;-><init>(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
invoke-interface {p0, v0}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method private static synthetic lambda$addTokenChangeListener$5(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
.locals 1
.line 1
invoke-interface {p2}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/google/firebase/auth/internal/InternalAuthProvider;
new-instance v0, Lcom/google/firebase/database/android/i;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/android/i;-><init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.line 2
invoke-interface {p2, v0}, Lcom/google/firebase/auth/internal/InternalAuthProvider;->addIdTokenListener(Lcom/google/firebase/auth/internal/IdTokenListener;)V
return-void
.end method
.method private static synthetic lambda$getToken$1(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/auth/GetTokenResult;)V
.locals 0
.line 1
invoke-virtual {p1}, Lcom/google/firebase/auth/GetTokenResult;->getToken()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onSuccess(Ljava/lang/String;)V
return-void
.end method
.method private static synthetic lambda$getToken$2(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
.locals 1
.line 1
invoke-static {p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->isUnauthenticatedUsage(Ljava/lang/Exception;)Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
.line 2
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onSuccess(Ljava/lang/String;)V
goto :goto_0
.line 3
:cond_0
invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-interface {p0, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onError(Ljava/lang/String;)V
:goto_0
return-void
.end method
.method private synthetic lambda$new$0(Lcom/google/firebase/inject/Provider;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->internalAuth:Ljava/util/concurrent/atomic/AtomicReference;
invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/firebase/auth/internal/InternalAuthProvider;
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public addTokenChangeListener(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 2
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->deferredAuthProvider:Lcom/google/firebase/inject/Deferred;
new-instance v1, Lcom/google/firebase/database/android/k;
invoke-direct {v1, p1, p2}, Lcom/google/firebase/database/android/k;-><init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
invoke-interface {v0, v1}, Lcom/google/firebase/inject/Deferred;->whenAvailable(Lcom/google/firebase/inject/Deferred$DeferredHandler;)V
return-void
.end method
.method public getToken(ZLcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 1
.param p2 # Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->internalAuth:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/auth/internal/InternalAuthProvider;
if-eqz v0, :cond_0
.line 2
invoke-interface {v0, p1}, Lcom/google/firebase/auth/internal/InternalAuthProvider;->getAccessToken(Z)Lcom/google/android/gms/tasks/Task;
move-result-object p1
.line 3
new-instance v0, Lcom/google/firebase/database/android/h;
invoke-direct {v0, p2}, Lcom/google/firebase/database/android/h;-><init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.line 4
invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/Task;->addOnSuccessListener(Lcom/google/android/gms/tasks/OnSuccessListener;)Lcom/google/android/gms/tasks/Task;
move-result-object p1
new-instance v0, Lcom/google/firebase/database/android/g;
invoke-direct {v0, p2}, Lcom/google/firebase/database/android/g;-><init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.line 5
invoke-virtual {p1, v0}, Lcom/google/android/gms/tasks/Task;->addOnFailureListener(Lcom/google/android/gms/tasks/OnFailureListener;)Lcom/google/android/gms/tasks/Task;
goto :goto_0
:cond_0
const/4 p1, 0x0
.line 6
invoke-interface {p2, p1}, Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;->onSuccess(Ljava/lang/String;)V
:goto_0
return-void
.end method
.method public removeTokenChangeListener(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
return-void
.end method
@@ -0,0 +1,57 @@
.class public Lcom/google/firebase/database/android/AndroidEventTarget;
.super Ljava/lang/Object;
.source "AndroidEventTarget.java"
# interfaces
.implements Lcom/google/firebase/database/core/EventTarget;
# instance fields
.field private final handler:Landroid/os/Handler;
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object v0, p0, Lcom/google/firebase/database/android/AndroidEventTarget;->handler:Landroid/os/Handler;
return-void
.end method
# virtual methods
.method public postEvent(Ljava/lang/Runnable;)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidEventTarget;->handler:Landroid/os/Handler;
invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
return-void
.end method
.method public restart()V
.locals 0
return-void
.end method
.method public shutdown()V
.locals 0
return-void
.end method
@@ -0,0 +1,59 @@
.class Lcom/google/firebase/database/android/AndroidPlatform$1$1;
.super Ljava/lang/Object;
.source "AndroidPlatform.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/android/AndroidPlatform$1;->handleException(Ljava/lang/Throwable;)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/android/AndroidPlatform$1;
.field public final synthetic val$e:Ljava/lang/Throwable;
.field public final synthetic val$message:Ljava/lang/String;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/android/AndroidPlatform$1;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform$1$1;->this$1:Lcom/google/firebase/database/android/AndroidPlatform$1;
iput-object p2, p0, Lcom/google/firebase/database/android/AndroidPlatform$1$1;->val$message:Ljava/lang/String;
iput-object p3, p0, Lcom/google/firebase/database/android/AndroidPlatform$1$1;->val$e:Ljava/lang/Throwable;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
.line 1
new-instance v0, Ljava/lang/RuntimeException;
iget-object v1, p0, Lcom/google/firebase/database/android/AndroidPlatform$1$1;->val$message:Ljava/lang/String;
iget-object v2, p0, Lcom/google/firebase/database/android/AndroidPlatform$1$1;->val$e:Ljava/lang/Throwable;
invoke-direct {v0, v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
@@ -0,0 +1,82 @@
.class Lcom/google/firebase/database/android/AndroidPlatform$1;
.super Lcom/google/firebase/database/core/utilities/DefaultRunLoop;
.source "AndroidPlatform.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/android/AndroidPlatform;->newRunLoop(Lcom/google/firebase/database/core/Context;)Lcom/google/firebase/database/core/RunLoop;
.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/android/AndroidPlatform;
.field public final synthetic val$logger:Lcom/google/firebase/database/logging/LogWrapper;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/android/AndroidPlatform;Lcom/google/firebase/database/logging/LogWrapper;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform$1;->this$0:Lcom/google/firebase/database/android/AndroidPlatform;
iput-object p2, p0, Lcom/google/firebase/database/android/AndroidPlatform$1;->val$logger:Lcom/google/firebase/database/logging/LogWrapper;
invoke-direct {p0}, Lcom/google/firebase/database/core/utilities/DefaultRunLoop;-><init>()V
return-void
.end method
# virtual methods
.method public handleException(Ljava/lang/Throwable;)V
.locals 3
.line 1
invoke-static {p1}, Lcom/google/firebase/database/core/utilities/DefaultRunLoop;->messageForException(Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object v0
.line 2
iget-object v1, p0, Lcom/google/firebase/database/android/AndroidPlatform$1;->val$logger:Lcom/google/firebase/database/logging/LogWrapper;
invoke-virtual {v1, v0, p1}, Lcom/google/firebase/database/logging/LogWrapper;->error(Ljava/lang/String;Ljava/lang/Throwable;)V
.line 3
new-instance v1, Landroid/os/Handler;
iget-object v2, p0, Lcom/google/firebase/database/android/AndroidPlatform$1;->this$0:Lcom/google/firebase/database/android/AndroidPlatform;
invoke-static {v2}, Lcom/google/firebase/database/android/AndroidPlatform;->access$000(Lcom/google/firebase/database/android/AndroidPlatform;)Landroid/content/Context;
move-result-object v2
invoke-virtual {v2}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;
move-result-object v2
invoke-direct {v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
.line 4
new-instance v2, Lcom/google/firebase/database/android/AndroidPlatform$1$1;
invoke-direct {v2, p0, v0, p1}, Lcom/google/firebase/database/android/AndroidPlatform$1$1;-><init>(Lcom/google/firebase/database/android/AndroidPlatform$1;Ljava/lang/String;Ljava/lang/Throwable;)V
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 5
invoke-virtual {p0}, Lcom/google/firebase/database/core/utilities/DefaultRunLoop;->getExecutorService()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object p1
invoke-interface {p1}, Ljava/util/concurrent/ScheduledExecutorService;->shutdownNow()Ljava/util/List;
return-void
.end method
@@ -0,0 +1,64 @@
.class Lcom/google/firebase/database/android/AndroidPlatform$2;
.super Ljava/lang/Object;
.source "AndroidPlatform.java"
# interfaces
.implements Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/android/AndroidPlatform;->newPersistentConnection(Lcom/google/firebase/database/core/Context;Lcom/google/firebase/database/connection/ConnectionContext;Lcom/google/firebase/database/connection/HostInfo;Lcom/google/firebase/database/connection/PersistentConnection$Delegate;)Lcom/google/firebase/database/connection/PersistentConnection;
.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/android/AndroidPlatform;
.field public final synthetic val$connection:Lcom/google/firebase/database/connection/PersistentConnection;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/android/AndroidPlatform;Lcom/google/firebase/database/connection/PersistentConnection;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform$2;->this$0:Lcom/google/firebase/database/android/AndroidPlatform;
iput-object p2, p0, Lcom/google/firebase/database/android/AndroidPlatform$2;->val$connection:Lcom/google/firebase/database/connection/PersistentConnection;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onBackgroundStateChanged(Z)V
.locals 1
const-string v0, "app_in_background"
if-eqz p1, :cond_0
.line 1
iget-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform$2;->val$connection:Lcom/google/firebase/database/connection/PersistentConnection;
invoke-interface {p1, v0}, Lcom/google/firebase/database/connection/PersistentConnection;->interrupt(Ljava/lang/String;)V
goto :goto_0
.line 2
:cond_0
iget-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform$2;->val$connection:Lcom/google/firebase/database/connection/PersistentConnection;
invoke-interface {p1, v0}, Lcom/google/firebase/database/connection/PersistentConnection;->resume(Ljava/lang/String;)V
:goto_0
return-void
.end method
@@ -0,0 +1,295 @@
.class public Lcom/google/firebase/database/android/AndroidPlatform;
.super Ljava/lang/Object;
.source "AndroidPlatform.java"
# interfaces
.implements Lcom/google/firebase/database/core/Platform;
# static fields
.field private static final APP_IN_BACKGROUND_INTERRUPT_REASON:Ljava/lang/String; = "app_in_background"
# instance fields
.field private final applicationContext:Landroid/content/Context;
.field private final createdPersistenceCaches:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final firebaseApp:Lcom/google/firebase/FirebaseApp;
# direct methods
.method public constructor <init>(Lcom/google/firebase/FirebaseApp;)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/android/AndroidPlatform;->createdPersistenceCaches:Ljava/util/Set;
.line 3
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform;->firebaseApp:Lcom/google/firebase/FirebaseApp;
if-eqz p1, :cond_0
.line 4
invoke-virtual {p1}, Lcom/google/firebase/FirebaseApp;->getApplicationContext()Landroid/content/Context;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/database/android/AndroidPlatform;->applicationContext:Landroid/content/Context;
return-void
:cond_0
const-string p1, "FirebaseDatabase"
const-string v0, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
.line 5
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
const-string v1, "ERROR: You must call FirebaseApp.initializeApp() before using Firebase Database."
.line 6
invoke-static {p1, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 7
invoke-static {p1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 8
new-instance p1, Ljava/lang/RuntimeException;
const-string v0, "You need to call FirebaseApp.initializeApp() before using Firebase Database."
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static synthetic access$000(Lcom/google/firebase/database/android/AndroidPlatform;)Landroid/content/Context;
.locals 0
.line 1
iget-object p0, p0, Lcom/google/firebase/database/android/AndroidPlatform;->applicationContext:Landroid/content/Context;
return-object p0
.end method
# virtual methods
.method public createPersistenceManager(Lcom/google/firebase/database/core/Context;Ljava/lang/String;)Lcom/google/firebase/database/core/persistence/PersistenceManager;
.locals 3
.line 1
invoke-virtual {p1}, Lcom/google/firebase/database/core/Context;->getSessionPersistenceKey()Ljava/lang/String;
move-result-object v0
const-string v1, "_"
.line 2
invoke-static {p2, v1, v0}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 3
iget-object v1, p0, Lcom/google/firebase/database/android/AndroidPlatform;->createdPersistenceCaches:Ljava/util/Set;
invoke-interface {v1, p2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
.line 4
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidPlatform;->createdPersistenceCaches:Ljava/util/Set;
invoke-interface {v0, p2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 5
new-instance v0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
iget-object v1, p0, Lcom/google/firebase/database/android/AndroidPlatform;->applicationContext:Landroid/content/Context;
invoke-direct {v0, v1, p1, p2}, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;-><init>(Landroid/content/Context;Lcom/google/firebase/database/core/Context;Ljava/lang/String;)V
.line 6
new-instance p2, Lcom/google/firebase/database/core/persistence/LRUCachePolicy;
invoke-virtual {p1}, Lcom/google/firebase/database/core/Context;->getPersistenceCacheSizeBytes()J
move-result-wide v1
invoke-direct {p2, v1, v2}, Lcom/google/firebase/database/core/persistence/LRUCachePolicy;-><init>(J)V
.line 7
new-instance v1, Lcom/google/firebase/database/core/persistence/DefaultPersistenceManager;
invoke-direct {v1, p1, v0, p2}, Lcom/google/firebase/database/core/persistence/DefaultPersistenceManager;-><init>(Lcom/google/firebase/database/core/Context;Lcom/google/firebase/database/core/persistence/PersistenceStorageEngine;Lcom/google/firebase/database/core/persistence/CachePolicy;)V
return-object v1
.line 8
:cond_0
new-instance p1, Lcom/google/firebase/database/DatabaseException;
const-string p2, "SessionPersistenceKey \'"
const-string v1, "\' has already been used."
invoke-static {p2, v0, v1}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Lcom/google/firebase/database/DatabaseException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public getPlatformVersion()Ljava/lang/String;
.locals 2
const-string v0, "android-"
.line 1
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {}, Lcom/google/firebase/database/FirebaseDatabase;->getSdkVersion()Ljava/lang/String;
move-result-object 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
.method public getSSLCacheDirectory()Ljava/io/File;
.locals 3
.line 1
iget-object v0, p0, Lcom/google/firebase/database/android/AndroidPlatform;->applicationContext:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "sslcache"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;
move-result-object v0
return-object v0
.end method
.method public getUserAgent(Lcom/google/firebase/database/core/Context;)Ljava/lang/String;
.locals 2
.line 1
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const-string v1, "/Android"
invoke-static {p1, v0, v1}, Landroid/support/v4/media/c;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public newEventTarget(Lcom/google/firebase/database/core/Context;)Lcom/google/firebase/database/core/EventTarget;
.locals 0
.line 1
new-instance p1, Lcom/google/firebase/database/android/AndroidEventTarget;
invoke-direct {p1}, Lcom/google/firebase/database/android/AndroidEventTarget;-><init>()V
return-object p1
.end method
.method public newLogger(Lcom/google/firebase/database/core/Context;Lcom/google/firebase/database/logging/Logger$Level;Ljava/util/List;)Lcom/google/firebase/database/logging/Logger;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/core/Context;",
"Lcom/google/firebase/database/logging/Logger$Level;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Lcom/google/firebase/database/logging/Logger;"
}
.end annotation
.line 1
new-instance p1, Lcom/google/firebase/database/logging/AndroidLogger;
invoke-direct {p1, p2, p3}, Lcom/google/firebase/database/logging/AndroidLogger;-><init>(Lcom/google/firebase/database/logging/Logger$Level;Ljava/util/List;)V
return-object p1
.end method
.method public newPersistentConnection(Lcom/google/firebase/database/core/Context;Lcom/google/firebase/database/connection/ConnectionContext;Lcom/google/firebase/database/connection/HostInfo;Lcom/google/firebase/database/connection/PersistentConnection$Delegate;)Lcom/google/firebase/database/connection/PersistentConnection;
.locals 0
.line 1
new-instance p1, Lcom/google/firebase/database/connection/PersistentConnectionImpl;
invoke-direct {p1, p2, p3, p4}, Lcom/google/firebase/database/connection/PersistentConnectionImpl;-><init>(Lcom/google/firebase/database/connection/ConnectionContext;Lcom/google/firebase/database/connection/HostInfo;Lcom/google/firebase/database/connection/PersistentConnection$Delegate;)V
.line 2
iget-object p2, p0, Lcom/google/firebase/database/android/AndroidPlatform;->firebaseApp:Lcom/google/firebase/FirebaseApp;
new-instance p3, Lcom/google/firebase/database/android/AndroidPlatform$2;
invoke-direct {p3, p0, p1}, Lcom/google/firebase/database/android/AndroidPlatform$2;-><init>(Lcom/google/firebase/database/android/AndroidPlatform;Lcom/google/firebase/database/connection/PersistentConnection;)V
invoke-virtual {p2, p3}, Lcom/google/firebase/FirebaseApp;->addBackgroundStateChangeListener(Lcom/google/firebase/FirebaseApp$BackgroundStateChangeListener;)V
return-object p1
.end method
.method public newRunLoop(Lcom/google/firebase/database/core/Context;)Lcom/google/firebase/database/core/RunLoop;
.locals 1
const-string v0, "RunLoop"
.line 1
invoke-virtual {p1, v0}, Lcom/google/firebase/database/core/Context;->getLogger(Ljava/lang/String;)Lcom/google/firebase/database/logging/LogWrapper;
move-result-object p1
.line 2
new-instance v0, Lcom/google/firebase/database/android/AndroidPlatform$1;
invoke-direct {v0, p0, p1}, Lcom/google/firebase/database/android/AndroidPlatform$1;-><init>(Lcom/google/firebase/database/android/AndroidPlatform;Lcom/google/firebase/database/logging/LogWrapper;)V
return-object v0
.end method
@@ -0,0 +1,98 @@
.class Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$1;
.super Ljava/lang/Object;
.source "SqlPersistenceStorageEngine.java"
# interfaces
.implements Lcom/google/firebase/database/core/utilities/ImmutableTree$TreeVisitor;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;->pruneTreeRecursive(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/core/utilities/ImmutableTree;Lcom/google/firebase/database/core/utilities/ImmutableTree;Lcom/google/firebase/database/core/persistence/PruneForest;Ljava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/firebase/database/core/utilities/ImmutableTree$TreeVisitor<",
"Ljava/lang/Void;",
"Ljava/lang/Integer;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
.field public final synthetic val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;Lcom/google/firebase/database/core/utilities/ImmutableTree;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$1;->this$0:Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
iput-object p2, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$1;->val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Void;Ljava/lang/Integer;)Ljava/lang/Integer;
.locals 0
.line 2
iget-object p2, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$1;->val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
invoke-virtual {p2, p1}, Lcom/google/firebase/database/core/utilities/ImmutableTree;->get(Lcom/google/firebase/database/core/Path;)Ljava/lang/Object;
move-result-object p1
if-nez p1, :cond_0
invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I
move-result p1
add-int/lit8 p1, p1, 0x1
goto :goto_0
:cond_0
invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I
move-result p1
:goto_0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p2, Ljava/lang/Void;
check-cast p3, Ljava/lang/Integer;
invoke-virtual {p0, p1, p2, p3}, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$1;->onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Void;Ljava/lang/Integer;)Ljava/lang/Integer;
move-result-object p1
return-object p1
.end method
@@ -0,0 +1,118 @@
.class Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;
.super Ljava/lang/Object;
.source "SqlPersistenceStorageEngine.java"
# interfaces
.implements Lcom/google/firebase/database/core/utilities/ImmutableTree$TreeVisitor;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;->pruneTreeRecursive(Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/core/utilities/ImmutableTree;Lcom/google/firebase/database/core/utilities/ImmutableTree;Lcom/google/firebase/database/core/persistence/PruneForest;Ljava/util/List;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/firebase/database/core/utilities/ImmutableTree$TreeVisitor<",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
.field public final synthetic val$currentNode:Lcom/google/firebase/database/snapshot/Node;
.field public final synthetic val$relativePath:Lcom/google/firebase/database/core/Path;
.field public final synthetic val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
.field public final synthetic val$rowsToResaveAccumulator:Ljava/util/List;
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;Lcom/google/firebase/database/core/utilities/ImmutableTree;Ljava/util/List;Lcom/google/firebase/database/core/Path;Lcom/google/firebase/database/snapshot/Node;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->this$0:Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
iput-object p2, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
iput-object p3, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$rowsToResaveAccumulator:Ljava/util/List;
iput-object p4, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$relativePath:Lcom/google/firebase/database/core/Path;
iput-object p5, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$currentNode:Lcom/google/firebase/database/snapshot/Node;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p2, Ljava/lang/Void;
check-cast p3, Ljava/lang/Void;
invoke-virtual {p0, p1, p2, p3}, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Void;Ljava/lang/Void;)Ljava/lang/Void;
move-result-object p1
return-object p1
.end method
.method public onNodeValue(Lcom/google/firebase/database/core/Path;Ljava/lang/Void;Ljava/lang/Void;)Ljava/lang/Void;
.locals 2
.line 2
iget-object p2, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$rowIdsToKeep:Lcom/google/firebase/database/core/utilities/ImmutableTree;
invoke-virtual {p2, p1}, Lcom/google/firebase/database/core/utilities/ImmutableTree;->get(Lcom/google/firebase/database/core/Path;)Ljava/lang/Object;
move-result-object p2
if-nez p2, :cond_0
.line 3
iget-object p2, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$rowsToResaveAccumulator:Ljava/util/List;
new-instance p3, Lcom/google/firebase/database/core/utilities/Pair;
iget-object v0, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$relativePath:Lcom/google/firebase/database/core/Path;
.line 4
invoke-virtual {v0, p1}, Lcom/google/firebase/database/core/Path;->child(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/core/Path;
move-result-object v0
iget-object v1, p0, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$2;->val$currentNode:Lcom/google/firebase/database/snapshot/Node;
invoke-interface {v1, p1}, Lcom/google/firebase/database/snapshot/Node;->getChild(Lcom/google/firebase/database/core/Path;)Lcom/google/firebase/database/snapshot/Node;
move-result-object p1
invoke-direct {p3, v0, p1}, Lcom/google/firebase/database/core/utilities/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
.line 5
invoke-interface {p2, p3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_0
const/4 p1, 0x0
return-object p1
.end method
@@ -0,0 +1,150 @@
.class Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$PersistentCacheOpenHelper;
.super Landroid/database/sqlite/SQLiteOpenHelper;
.source "SqlPersistenceStorageEngine.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/android/SqlPersistenceStorageEngine;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "PersistentCacheOpenHelper"
.end annotation
# static fields
.field private static final DATABASE_VERSION:I = 0x2
# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x2
.line 1
invoke-direct {p0, p1, p2, v0, v1}, Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V
return-void
.end method
.method private dropTable(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "DROP TABLE IF EXISTS "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
.locals 1
const-string v0, "CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);"
.line 1
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
const-string v0, "CREATE TABLE writes (id INTEGER, path TEXT, type TEXT, part INTEGER, node BLOB, UNIQUE (id, part));"
.line 2
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
const-string v0, "CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);"
.line 3
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
const-string v0, "CREATE TABLE trackedKeys (id INTEGER, key TEXT);"
.line 4
invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
return-void
.end method
.method public onUpgrade(Landroid/database/sqlite/SQLiteDatabase;II)V
.locals 3
const/4 v0, 0x1
const/4 v1, 0x2
if-ne p3, v1, :cond_0
move v1, v0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
const-string v2, "Why is onUpgrade() called with a different version?"
.line 1
invoke-static {v1, v2}, Lcom/google/firebase/database/core/utilities/Utilities;->hardAssert(ZLjava/lang/String;)V
if-gt p2, v0, :cond_1
const-string p2, "serverCache"
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$PersistentCacheOpenHelper;->dropTable(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V
const-string p2, "CREATE TABLE serverCache (path TEXT PRIMARY KEY, value BLOB);"
.line 3
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
const-string p2, "complete"
.line 4
invoke-direct {p0, p1, p2}, Lcom/google/firebase/database/android/SqlPersistenceStorageEngine$PersistentCacheOpenHelper;->dropTable(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)V
const-string p2, "CREATE TABLE trackedKeys (id INTEGER, key TEXT);"
.line 5
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
const-string p2, "CREATE TABLE trackedQueries (id INTEGER PRIMARY KEY, path TEXT, queryParams TEXT, lastUse INTEGER, complete INTEGER, active INTEGER);"
.line 6
invoke-virtual {p1, p2}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V
return-void
.line 7
:cond_1
new-instance p1, Ljava/lang/AssertionError;
const-string p2, "We don\'t handle upgrading to "
invoke-static {p2, p3}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p1
.end method
@@ -0,0 +1,34 @@
.class public final synthetic Lcom/google/firebase/database/android/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/core/TokenProvider$GetTokenCompletionListener;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/a;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
return-void
.end method
# virtual methods
.method public final onFailure(Ljava/lang/Exception;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/a;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->f(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
return-void
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/database/android/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/core/TokenProvider$GetTokenCompletionListener;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/b;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
return-void
.end method
# virtual methods
.method public final onSuccess(Ljava/lang/Object;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/b;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
check-cast p1, Lcom/google/firebase/appcheck/AppCheckTokenResult;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->e(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/c;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/appcheck/interop/AppCheckTokenListener;
# instance fields
.field public final synthetic a:Ljava/util/concurrent/ExecutorService;
.field public final synthetic b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
# direct methods
.method public synthetic constructor <init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/c;->a:Ljava/util/concurrent/ExecutorService;
iput-object p2, p0, Lcom/google/firebase/database/android/c;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
return-void
.end method
# virtual methods
.method public final onAppCheckTokenChanged(Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/c;->a:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/google/firebase/database/android/c;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
invoke-static {v0, v1, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->a(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
@@ -0,0 +1,34 @@
.class public final synthetic Lcom/google/firebase/database/android/d;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/d;->a:Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/d;->a:Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->d(Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/e;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic a:Ljava/util/concurrent/ExecutorService;
.field public final synthetic b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
# direct methods
.method public synthetic constructor <init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/e;->a:Ljava/util/concurrent/ExecutorService;
iput-object p2, p0, Lcom/google/firebase/database/android/e;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/e;->a:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/google/firebase/database/android/e;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
invoke-static {v0, v1, p1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->b(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/f;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
.field public final synthetic b:Lcom/google/firebase/appcheck/AppCheckTokenResult;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/f;->a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
iput-object p2, p0, Lcom/google/firebase/database/android/f;->b:Lcom/google/firebase/appcheck/AppCheckTokenResult;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/f;->a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
iget-object v1, p0, Lcom/google/firebase/database/android/f;->b:Lcom/google/firebase/appcheck/AppCheckTokenResult;
invoke-static {v0, v1}, Lcom/google/firebase/database/android/AndroidAppCheckTokenProvider;->c(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/appcheck/AppCheckTokenResult;)V
return-void
.end method
@@ -0,0 +1,34 @@
.class public final synthetic Lcom/google/firebase/database/android/g;
.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/core/TokenProvider$GetTokenCompletionListener;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/g;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
return-void
.end method
# virtual methods
.method public final onFailure(Ljava/lang/Exception;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/g;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->e(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Ljava/lang/Exception;)V
return-void
.end method
@@ -0,0 +1,36 @@
.class public final synthetic Lcom/google/firebase/database/android/h;
.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/core/TokenProvider$GetTokenCompletionListener;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/h;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
return-void
.end method
# virtual methods
.method public final onSuccess(Ljava/lang/Object;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/h;->a:Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;
check-cast p1, Lcom/google/firebase/auth/GetTokenResult;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->b(Lcom/google/firebase/database/core/TokenProvider$GetTokenCompletionListener;Lcom/google/firebase/auth/GetTokenResult;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/i;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/auth/internal/IdTokenListener;
# instance fields
.field public final synthetic a:Ljava/util/concurrent/ExecutorService;
.field public final synthetic b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
# direct methods
.method public synthetic constructor <init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/i;->a:Ljava/util/concurrent/ExecutorService;
iput-object p2, p0, Lcom/google/firebase/database/android/i;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
return-void
.end method
# virtual methods
.method public final onIdTokenChanged(Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/i;->a:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/google/firebase/database/android/i;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
invoke-static {v0, v1, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->d(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
return-void
.end method
@@ -0,0 +1,34 @@
.class public final synthetic Lcom/google/firebase/database/android/j;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/android/AndroidAuthTokenProvider;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/android/AndroidAuthTokenProvider;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/j;->a:Lcom/google/firebase/database/android/AndroidAuthTokenProvider;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 1
iget-object v0, p0, Lcom/google/firebase/database/android/j;->a:Lcom/google/firebase/database/android/AndroidAuthTokenProvider;
invoke-static {v0, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->a(Lcom/google/firebase/database/android/AndroidAuthTokenProvider;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/k;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Lcom/google/firebase/inject/Deferred$DeferredHandler;
# instance fields
.field public final synthetic a:Ljava/util/concurrent/ExecutorService;
.field public final synthetic b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
# direct methods
.method public synthetic constructor <init>(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/k;->a:Ljava/util/concurrent/ExecutorService;
iput-object p2, p0, Lcom/google/firebase/database/android/k;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
return-void
.end method
# virtual methods
.method public final handle(Lcom/google/firebase/inject/Provider;)V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/k;->a:Ljava/util/concurrent/ExecutorService;
iget-object v1, p0, Lcom/google/firebase/database/android/k;->b:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
invoke-static {v0, v1, p1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->f(Ljava/util/concurrent/ExecutorService;Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/inject/Provider;)V
return-void
.end method
@@ -0,0 +1,40 @@
.class public final synthetic Lcom/google/firebase/database/android/l;
.super Ljava/lang/Object;
.source "R8$$SyntheticClass"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
.field public final synthetic b:Lcom/google/firebase/internal/InternalTokenResult;
# direct methods
.method public synthetic constructor <init>(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/database/android/l;->a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
iput-object p2, p0, Lcom/google/firebase/database/android/l;->b:Lcom/google/firebase/internal/InternalTokenResult;
return-void
.end method
# virtual methods
.method public final run()V
.locals 2
iget-object v0, p0, Lcom/google/firebase/database/android/l;->a:Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;
iget-object v1, p0, Lcom/google/firebase/database/android/l;->b:Lcom/google/firebase/internal/InternalTokenResult;
invoke-static {v0, v1}, Lcom/google/firebase/database/android/AndroidAuthTokenProvider;->c(Lcom/google/firebase/database/core/TokenProvider$TokenChangeListener;Lcom/google/firebase/internal/InternalTokenResult;)V
return-void
.end method
@@ -0,0 +1,11 @@
.class interface abstract synthetic Lcom/google/firebase/database/android/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,32 @@
.class public interface abstract annotation Lcom/google/firebase/database/annotations/NotNull;
.super Ljava/lang/Object;
.source "NotNull.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation system Ldalvik/annotation/AnnotationDefault;
value = .subannotation Lcom/google/firebase/database/annotations/NotNull;
value = ""
.end subannotation
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->CLASS:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->PARAMETER:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->LOCAL_VARIABLE:Ljava/lang/annotation/ElementType;
}
.end annotation
# virtual methods
.method public abstract value()Ljava/lang/String;
.end method
@@ -0,0 +1,32 @@
.class public interface abstract annotation Lcom/google/firebase/database/annotations/Nullable;
.super Ljava/lang/Object;
.source "Nullable.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation system Ldalvik/annotation/AnnotationDefault;
value = .subannotation Lcom/google/firebase/database/annotations/Nullable;
value = ""
.end subannotation
.end annotation
.annotation runtime Ljava/lang/annotation/Retention;
value = .enum Ljava/lang/annotation/RetentionPolicy;->CLASS:Ljava/lang/annotation/RetentionPolicy;
.end annotation
.annotation runtime Ljava/lang/annotation/Target;
value = {
.enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->PARAMETER:Ljava/lang/annotation/ElementType;,
.enum Ljava/lang/annotation/ElementType;->LOCAL_VARIABLE:Ljava/lang/annotation/ElementType;
}
.end annotation
# virtual methods
.method public abstract value()Ljava/lang/String;
.end method
@@ -0,0 +1,11 @@
.class interface abstract synthetic Lcom/google/firebase/database/annotations/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,177 @@
.class Lcom/google/firebase/database/collection/ArraySortedMap$1;
.super Ljava/lang/Object;
.source "ArraySortedMap.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/firebase/database/collection/ArraySortedMap;->iterator(IZ)Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
# instance fields
.field public currentPos:I
.field public final synthetic this$0:Lcom/google/firebase/database/collection/ArraySortedMap;
.field public final synthetic val$pos:I
.field public final synthetic val$reverse:Z
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/collection/ArraySortedMap;IZ)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->this$0:Lcom/google/firebase/database/collection/ArraySortedMap;
iput p2, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->val$pos:I
iput-boolean p3, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->val$reverse:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput p2, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 4
.line 1
iget-boolean v0, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->val$reverse:Z
const/4 v1, 0x1
const/4 v2, 0x0
if-eqz v0, :cond_0
iget v0, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
if-ltz v0, :cond_1
goto :goto_0
:cond_0
iget v0, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
iget-object v3, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->this$0:Lcom/google/firebase/database/collection/ArraySortedMap;
invoke-static {v3}, Lcom/google/firebase/database/collection/ArraySortedMap;->access$000(Lcom/google/firebase/database/collection/ArraySortedMap;)[Ljava/lang/Object;
move-result-object v3
array-length v3, v3
if-ge v0, v3, :cond_1
goto :goto_0
:cond_1
move v1, v2
:goto_0
return v1
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ArraySortedMap$1;->next()Ljava/util/Map$Entry;
move-result-object v0
return-object v0
.end method
.method public next()Ljava/util/Map$Entry;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map$Entry<",
"TK;TV;>;"
}
.end annotation
.line 2
iget-object v0, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->this$0:Lcom/google/firebase/database/collection/ArraySortedMap;
invoke-static {v0}, Lcom/google/firebase/database/collection/ArraySortedMap;->access$000(Lcom/google/firebase/database/collection/ArraySortedMap;)[Ljava/lang/Object;
move-result-object v0
iget v1, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
aget-object v0, v0, v1
.line 3
iget-object v1, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->this$0:Lcom/google/firebase/database/collection/ArraySortedMap;
invoke-static {v1}, Lcom/google/firebase/database/collection/ArraySortedMap;->access$100(Lcom/google/firebase/database/collection/ArraySortedMap;)[Ljava/lang/Object;
move-result-object v1
iget v2, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
aget-object v1, v1, v2
.line 4
iget-boolean v3, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->val$reverse:Z
if-eqz v3, :cond_0
add-int/lit8 v2, v2, -0x1
goto :goto_0
:cond_0
add-int/lit8 v2, v2, 0x1
:goto_0
iput v2, p0, Lcom/google/firebase/database/collection/ArraySortedMap$1;->currentPos:I
.line 5
new-instance v2, Ljava/util/AbstractMap$SimpleImmutableEntry;
invoke-direct {v2, v0, v1}, Ljava/util/AbstractMap$SimpleImmutableEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
return-object v2
.end method
.method public remove()V
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "Can\'t remove elements from ImmutableSortedMap"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,28 @@
.class public final Lcom/google/firebase/database/collection/BuildConfig;
.super Ljava/lang/Object;
.source "BuildConfig.java"
# static fields
.field public static final APPLICATION_ID:Ljava/lang/String; = "com.google.firebase.database.collection"
.field public static final BUILD_TYPE:Ljava/lang/String; = "release"
.field public static final DEBUG:Z = false
.field public static final FLAVOR:Ljava/lang/String; = ""
.field public static final VERSION_CODE:I = -0x1
.field public static final VERSION_NAME:Ljava/lang/String; = ""
# 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,35 @@
.class public interface abstract Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
.super Ljava/lang/Object;
.source "ImmutableSortedMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "KeyTranslator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<C:",
"Ljava/lang/Object;",
"D:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract translate(Ljava/lang/Object;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TC;)TD;"
}
.end annotation
.end method
@@ -0,0 +1,198 @@
.class public Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;
.super Ljava/lang/Object;
.source "ImmutableSortedMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/ImmutableSortedMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
}
.end annotation
# static fields
.field public static final ARRAY_TO_RB_TREE_SIZE_THRESHOLD:I = 0x19
.field private static final IDENTITY_TRANSLATOR:Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/collection/a;->a:Lcom/google/firebase/database/collection/a;
sput-object v0, Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;->IDENTITY_TRANSLATOR:Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static synthetic a(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
invoke-static {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;->lambda$static$0(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static buildFrom(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<A:",
"Ljava/lang/Object;",
"B:",
"Ljava/lang/Object;",
"C:",
"Ljava/lang/Object;",
">(",
"Ljava/util/List<",
"TA;>;",
"Ljava/util/Map<",
"TB;TC;>;",
"Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator<",
"TA;TB;>;",
"Ljava/util/Comparator<",
"TA;>;)",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TA;TC;>;"
}
.end annotation
.line 1
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v0
const/16 v1, 0x19
if-ge v0, v1, :cond_0
.line 2
invoke-static {p0, p1, p2, p3}, Lcom/google/firebase/database/collection/ArraySortedMap;->buildFrom(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ArraySortedMap;
move-result-object p0
return-object p0
.line 3
:cond_0
invoke-static {p0, p1, p2, p3}, Lcom/google/firebase/database/collection/RBTreeSortedMap;->buildFrom(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/RBTreeSortedMap;
move-result-object p0
return-object p0
.end method
.method public static emptyMap(Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Comparator<",
"TK;>;)",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TK;TV;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ArraySortedMap;
invoke-direct {v0, p0}, Lcom/google/firebase/database/collection/ArraySortedMap;-><init>(Ljava/util/Comparator;)V
return-object v0
.end method
.method public static fromMap(Ljava/util/Map;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<A:",
"Ljava/lang/Object;",
"B:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Map<",
"TA;TB;>;",
"Ljava/util/Comparator<",
"TA;>;)",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TA;TB;>;"
}
.end annotation
.line 1
invoke-interface {p0}, Ljava/util/Map;->size()I
move-result v0
const/16 v1, 0x19
if-ge v0, v1, :cond_0
.line 2
invoke-static {p0, p1}, Lcom/google/firebase/database/collection/ArraySortedMap;->fromMap(Ljava/util/Map;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ArraySortedMap;
move-result-object p0
return-object p0
.line 3
:cond_0
invoke-static {p0, p1}, Lcom/google/firebase/database/collection/RBTreeSortedMap;->fromMap(Ljava/util/Map;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/RBTreeSortedMap;
move-result-object p0
return-object p0
.end method
.method public static identityTranslator()Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<A:",
"Ljava/lang/Object;",
">()",
"Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator<",
"TA;TA;>;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;->IDENTITY_TRANSLATOR:Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
return-object v0
.end method
.method private static synthetic lambda$static$0(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
return-object p0
.end method
@@ -0,0 +1,430 @@
.class public abstract Lcom/google/firebase/database/collection/ImmutableSortedMap;
.super Ljava/lang/Object;
.source "ImmutableSortedMap.java"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public abstract containsKey(Ljava/lang/Object;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)Z"
}
.end annotation
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 5
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
.line 1
:cond_0
instance-of v1, p1, Lcom/google/firebase/database/collection/ImmutableSortedMap;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
.line 2
:cond_1
check-cast p1, Lcom/google/firebase/database/collection/ImmutableSortedMap;
.line 3
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getComparator()Ljava/util/Comparator;
move-result-object v1
invoke-virtual {p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getComparator()Ljava/util/Comparator;
move-result-object v3
invoke-interface {v1, v3}, Ljava/util/Comparator;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_2
return v2
.line 4
:cond_2
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->size()I
move-result v1
invoke-virtual {p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->size()I
move-result v3
if-eq v1, v3, :cond_3
return v2
.line 5
:cond_3
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->iterator()Ljava/util/Iterator;
move-result-object v1
.line 6
invoke-virtual {p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->iterator()Ljava/util/Iterator;
move-result-object p1
.line 7
:cond_4
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_5
.line 8
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/Map$Entry;
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
invoke-interface {v3, v4}, Ljava/util/Map$Entry;->equals(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_4
return v2
:cond_5
return v0
.end method
.method public abstract get(Ljava/lang/Object;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)TV;"
}
.end annotation
.end method
.method public abstract getComparator()Ljava/util/Comparator;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Comparator<",
"TK;>;"
}
.end annotation
.end method
.method public abstract getMaxKey()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TK;"
}
.end annotation
.end method
.method public abstract getMinKey()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TK;"
}
.end annotation
.end method
.method public abstract getPredecessorKey(Ljava/lang/Object;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)TK;"
}
.end annotation
.end method
.method public abstract getSuccessorKey(Ljava/lang/Object;)Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)TK;"
}
.end annotation
.end method
.method public hashCode()I
.locals 3
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getComparator()Ljava/util/Comparator;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
.line 2
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->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/util/Map$Entry;
mul-int/lit8 v0, v0, 0x1f
.line 3
invoke-interface {v2}, Ljava/util/Map$Entry;->hashCode()I
move-result v2
add-int/2addr v0, v2
goto :goto_0
:cond_0
return v0
.end method
.method public abstract inOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor<",
"TK;TV;>;)V"
}
.end annotation
.end method
.method public abstract indexOf(Ljava/lang/Object;)I
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)I"
}
.end annotation
.end method
.method public abstract insert(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract isEmpty()Z
.end method
.method public abstract iterator()Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
.end method
.method public abstract iteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
.end method
.method public abstract remove(Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract reverseIterator()Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
.end method
.method public abstract reverseIteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
.end method
.method public abstract size()I
.end method
.method public toString()Ljava/lang/String;
.locals 5
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 2
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "{"
.line 3
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 4
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->iterator()Ljava/util/Iterator;
move-result-object v1
const/4 v2, 0x1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/Map$Entry;
if-eqz v2, :cond_0
const/4 v2, 0x0
goto :goto_1
:cond_0
const-string v4, ", "
.line 5
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_1
const-string v4, "("
.line 6
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 7
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v4, "=>"
.line 8
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 9
invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v3, ")"
.line 10
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_1
const-string v1, "};"
.line 11
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 12
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,325 @@
.class public Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;
.super Ljava/lang/Object;
.source "ImmutableSortedMapIterator.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
# instance fields
.field private final isReverse:Z
.field private final nodeStack:Ljava/util/ArrayDeque;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayDeque<",
"Lcom/google/firebase/database/collection/LLRBValueNode<",
"TK;TV;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/firebase/database/collection/LLRBNode;Ljava/lang/Object;Ljava/util/Comparator;Z)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;TK;",
"Ljava/util/Comparator<",
"TK;>;Z)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/util/ArrayDeque;
invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V
iput-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
.line 3
iput-boolean p4, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->isReverse:Z
.line 4
:goto_0
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->isEmpty()Z
move-result v0
if-nez v0, :cond_6
if-eqz p2, :cond_1
if-eqz p4, :cond_0
.line 5
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getKey()Ljava/lang/Object;
move-result-object v0
invoke-interface {p3, p2, v0}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v0
goto :goto_1
.line 6
:cond_0
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getKey()Ljava/lang/Object;
move-result-object v0
invoke-interface {p3, v0, p2}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I
move-result v0
goto :goto_1
:cond_1
const/4 v0, 0x1
:goto_1
if-gez v0, :cond_3
if-eqz p4, :cond_2
.line 7
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p1
goto :goto_0
.line 8
:cond_2
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p1
goto :goto_0
:cond_3
if-nez v0, :cond_4
.line 9
iget-object p2, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
check-cast p1, Lcom/google/firebase/database/collection/LLRBValueNode;
invoke-virtual {p2, p1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
goto :goto_2
.line 10
:cond_4
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
move-object v1, p1
check-cast v1, Lcom/google/firebase/database/collection/LLRBValueNode;
invoke-virtual {v0, v1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
if-eqz p4, :cond_5
.line 11
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p1
goto :goto_0
.line 12
:cond_5
invoke-interface {p1}, Lcom/google/firebase/database/collection/LLRBNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p1
goto :goto_0
:cond_6
:goto_2
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
invoke-virtual {v0}, Ljava/util/ArrayDeque;->size()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->next()Ljava/util/Map$Entry;
move-result-object v0
return-object v0
.end method
.method public next()Ljava/util/Map$Entry;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map$Entry<",
"TK;TV;>;"
}
.end annotation
.line 2
:try_start_0
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
invoke-virtual {v0}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/firebase/database/collection/LLRBValueNode;
.line 3
new-instance v1, Ljava/util/AbstractMap$SimpleEntry;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getKey()Ljava/lang/Object;
move-result-object v2
invoke-virtual {v0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getValue()Ljava/lang/Object;
move-result-object v3
invoke-direct {v1, v2, v3}, Ljava/util/AbstractMap$SimpleEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
.line 4
iget-boolean v2, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->isReverse:Z
if-eqz v2, :cond_0
.line 5
invoke-virtual {v0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v0
.line 6
:goto_0
invoke-interface {v0}, Lcom/google/firebase/database/collection/LLRBNode;->isEmpty()Z
move-result v2
if-nez v2, :cond_1
.line 7
iget-object v2, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
move-object v3, v0
check-cast v3, Lcom/google/firebase/database/collection/LLRBValueNode;
invoke-virtual {v2, v3}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
.line 8
invoke-interface {v0}, Lcom/google/firebase/database/collection/LLRBNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v0
goto :goto_0
.line 9
:cond_0
invoke-virtual {v0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v0
.line 10
:goto_1
invoke-interface {v0}, Lcom/google/firebase/database/collection/LLRBNode;->isEmpty()Z
move-result v2
if-nez v2, :cond_1
.line 11
iget-object v2, p0, Lcom/google/firebase/database/collection/ImmutableSortedMapIterator;->nodeStack:Ljava/util/ArrayDeque;
move-object v3, v0
check-cast v3, Lcom/google/firebase/database/collection/LLRBValueNode;
invoke-virtual {v2, v3}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V
.line 12
invoke-interface {v0}, Lcom/google/firebase/database/collection/LLRBNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v0
:try_end_0
.catch Ljava/util/EmptyStackException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:cond_1
return-object v1
.line 13
:catch_0
new-instance v0, Ljava/util/NoSuchElementException;
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
throw v0
.end method
.method public remove()V
.locals 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
const-string v1, "remove called on immutable collection"
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
.end method
@@ -0,0 +1,116 @@
.class Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
.super Ljava/lang/Object;
.source "ImmutableSortedSet.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/ImmutableSortedSet;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "WrappedEntryIterator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
# instance fields
.field public final iterator:Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TT;",
"Ljava/lang/Void;",
">;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/util/Iterator;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TT;",
"Ljava/lang/Void;",
">;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;->iterator:Ljava/util/Iterator;
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;->iterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
return v0
.end method
.method public next()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;->iterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public remove()V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;->iterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
return-void
.end method
@@ -0,0 +1,479 @@
.class public Lcom/google/firebase/database/collection/ImmutableSortedSet;
.super Ljava/lang/Object;
.source "ImmutableSortedSet.java"
# interfaces
.implements Ljava/lang/Iterable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"TT;>;"
}
.end annotation
# instance fields
.field private final map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TT;",
"Ljava/lang/Void;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/google/firebase/database/collection/ImmutableSortedMap;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/ImmutableSortedMap<",
"TT;",
"Ljava/lang/Void;",
">;)V"
}
.end annotation
.line 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 6
iput-object p1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
return-void
.end method
.method public constructor <init>(Ljava/util/List;Ljava/util/Comparator;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"TT;>;",
"Ljava/util/Comparator<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
move-result-object v0
.line 3
invoke-static {}, Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;->identityTranslator()Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;
move-result-object v1
.line 4
invoke-static {p1, v0, v1, p2}, Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder;->buildFrom(Ljava/util/List;Ljava/util/Map;Lcom/google/firebase/database/collection/ImmutableSortedMap$Builder$KeyTranslator;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
move-result-object p1
iput-object p1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
return-void
.end method
# virtual methods
.method public contains(Ljava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->containsKey(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
if-ne p0, p1, :cond_0
const/4 p1, 0x1
return p1
.line 1
:cond_0
instance-of v0, p1, Lcom/google/firebase/database/collection/ImmutableSortedSet;
if-nez v0, :cond_1
const/4 p1, 0x0
return p1
.line 2
:cond_1
check-cast p1, Lcom/google/firebase/database/collection/ImmutableSortedSet;
.line 3
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
iget-object p1, p1, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
.end method
.method public getMaxEntry()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getMaxKey()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getMinEntry()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getMinKey()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public getPredecessorEntry(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->getPredecessorKey(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public hashCode()I
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->hashCode()I
move-result v0
return v0
.end method
.method public indexOf(Ljava/lang/Object;)I
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)I"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->indexOf(Ljava/lang/Object;)I
move-result p1
return p1
.end method
.method public insert(Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedSet;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Lcom/google/firebase/database/collection/ImmutableSortedSet<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet;
iget-object v1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
const/4 v2, 0x0
invoke-virtual {v1, p1, v2}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->insert(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet;-><init>(Lcom/google/firebase/database/collection/ImmutableSortedMap;)V
return-object v0
.end method
.method public isEmpty()Z
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->isEmpty()Z
move-result v0
return v0
.end method
.method public iterator()Ljava/util/Iterator;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
iget-object v1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->iterator()Ljava/util/Iterator;
move-result-object v1
invoke-direct {v0, v1}, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;-><init>(Ljava/util/Iterator;)V
return-object v0
.end method
.method public iteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
iget-object v1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v1, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->iteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;-><init>(Ljava/util/Iterator;)V
return-object v0
.end method
.method public remove(Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedSet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Lcom/google/firebase/database/collection/ImmutableSortedSet<",
"TT;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->remove(Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedMap;
move-result-object p1
.line 2
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
if-ne p1, v0, :cond_0
move-object v0, p0
goto :goto_0
:cond_0
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet;
invoke-direct {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet;-><init>(Lcom/google/firebase/database/collection/ImmutableSortedMap;)V
:goto_0
return-object v0
.end method
.method public reverseIterator()Ljava/util/Iterator;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
iget-object v1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->reverseIterator()Ljava/util/Iterator;
move-result-object v1
invoke-direct {v0, v1}, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;-><init>(Ljava/util/Iterator;)V
return-object v0
.end method
.method public reverseIteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Ljava/util/Iterator<",
"TT;>;"
}
.end annotation
.line 1
new-instance v0, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;
iget-object v1, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v1, p1}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->reverseIteratorFrom(Ljava/lang/Object;)Ljava/util/Iterator;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet$WrappedEntryIterator;-><init>(Ljava/util/Iterator;)V
return-object v0
.end method
.method public size()I
.locals 1
.line 1
iget-object v0, p0, Lcom/google/firebase/database/collection/ImmutableSortedSet;->map:Lcom/google/firebase/database/collection/ImmutableSortedMap;
invoke-virtual {v0}, Lcom/google/firebase/database/collection/ImmutableSortedMap;->size()I
move-result v0
return v0
.end method
.method public unionWith(Lcom/google/firebase/database/collection/ImmutableSortedSet;)Lcom/google/firebase/database/collection/ImmutableSortedSet;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/ImmutableSortedSet<",
"TT;>;)",
"Lcom/google/firebase/database/collection/ImmutableSortedSet<",
"TT;>;"
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/ImmutableSortedSet;->size()I
move-result v0
invoke-virtual {p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet;->size()I
move-result v1
if-ge v0, v1, :cond_0
move-object v0, p1
move-object p1, p0
goto :goto_0
:cond_0
move-object v0, p0
.line 2
:goto_0
invoke-virtual {p1}, Lcom/google/firebase/database/collection/ImmutableSortedSet;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.line 3
invoke-virtual {v0, v1}, Lcom/google/firebase/database/collection/ImmutableSortedSet;->insert(Ljava/lang/Object;)Lcom/google/firebase/database/collection/ImmutableSortedSet;
move-result-object v0
goto :goto_1
:cond_1
return-object v0
.end method
@@ -0,0 +1,192 @@
.class public Lcom/google/firebase/database/collection/LLRBBlackValueNode;
.super Lcom/google/firebase/database/collection/LLRBValueNode;
.source "LLRBBlackValueNode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Lcom/google/firebase/database/collection/LLRBValueNode<",
"TK;TV;>;"
}
.end annotation
# instance fields
.field private size:I
# direct methods
.method public constructor <init>(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/firebase/database/collection/LLRBValueNode;-><init>(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)V
const/4 p1, -0x1
.line 2
iput p1, p0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;->size:I
return-void
.end method
# virtual methods
.method public copy(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)Lcom/google/firebase/database/collection/LLRBValueNode;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;)",
"Lcom/google/firebase/database/collection/LLRBValueNode<",
"TK;TV;>;"
}
.end annotation
if-nez p1, :cond_0
.line 1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getKey()Ljava/lang/Object;
move-result-object p1
:cond_0
if-nez p2, :cond_1
.line 2
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getValue()Ljava/lang/Object;
move-result-object p2
:cond_1
if-nez p3, :cond_2
.line 3
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p3
:cond_2
if-nez p4, :cond_3
.line 4
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object p4
.line 5
:cond_3
new-instance v0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;
invoke-direct {v0, p1, p2, p3, p4}, Lcom/google/firebase/database/collection/LLRBBlackValueNode;-><init>(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)V
return-object v0
.end method
.method public getColor()Lcom/google/firebase/database/collection/LLRBNode$Color;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/collection/LLRBNode$Color;->BLACK:Lcom/google/firebase/database/collection/LLRBNode$Color;
return-object v0
.end method
.method public isRed()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public setLeft(Lcom/google/firebase/database/collection/LLRBNode;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;)V"
}
.end annotation
.line 1
iget v0, p0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;->size:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 2
invoke-super {p0, p1}, Lcom/google/firebase/database/collection/LLRBValueNode;->setLeft(Lcom/google/firebase/database/collection/LLRBNode;)V
return-void
.line 3
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Can\'t set left after using size"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public size()I
.locals 2
.line 1
iget v0, p0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;->size:I
const/4 v1, -0x1
if-ne v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getLeft()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v0
invoke-interface {v0}, Lcom/google/firebase/database/collection/LLRBNode;->size()I
move-result v0
add-int/lit8 v0, v0, 0x1
invoke-virtual {p0}, Lcom/google/firebase/database/collection/LLRBValueNode;->getRight()Lcom/google/firebase/database/collection/LLRBNode;
move-result-object v1
invoke-interface {v1}, Lcom/google/firebase/database/collection/LLRBNode;->size()I
move-result v1
add-int/2addr v1, v0
iput v1, p0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;->size:I
.line 3
:cond_0
iget v0, p0, Lcom/google/firebase/database/collection/LLRBBlackValueNode;->size:I
return v0
.end method
@@ -0,0 +1,269 @@
.class public Lcom/google/firebase/database/collection/LLRBEmptyNode;
.super Ljava/lang/Object;
.source "LLRBEmptyNode.java"
# interfaces
.implements Lcom/google/firebase/database/collection/LLRBNode;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
# static fields
.field private static final INSTANCE:Lcom/google/firebase/database/collection/LLRBEmptyNode;
# direct methods
.method public static constructor <clinit>()V
.locals 1
.line 1
new-instance v0, Lcom/google/firebase/database/collection/LLRBEmptyNode;
invoke-direct {v0}, Lcom/google/firebase/database/collection/LLRBEmptyNode;-><init>()V
sput-object v0, Lcom/google/firebase/database/collection/LLRBEmptyNode;->INSTANCE:Lcom/google/firebase/database/collection/LLRBEmptyNode;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getInstance()Lcom/google/firebase/database/collection/LLRBEmptyNode;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">()",
"Lcom/google/firebase/database/collection/LLRBEmptyNode<",
"TK;TV;>;"
}
.end annotation
.line 1
sget-object v0, Lcom/google/firebase/database/collection/LLRBEmptyNode;->INSTANCE:Lcom/google/firebase/database/collection/LLRBEmptyNode;
return-object v0
.end method
# virtual methods
.method public copy(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode$Color;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Lcom/google/firebase/database/collection/LLRBNode$Color;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public getKey()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TK;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public getLeft()Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public getMax()Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public getMin()Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public getRight()Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public getValue()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TV;"
}
.end annotation
const/4 v0, 0x0
return-object v0
.end method
.method public inOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor<",
"TK;TV;>;)V"
}
.end annotation
return-void
.end method
.method public insert(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Ljava/util/Comparator<",
"TK;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.line 1
new-instance p3, Lcom/google/firebase/database/collection/LLRBRedValueNode;
invoke-direct {p3, p1, p2}, Lcom/google/firebase/database/collection/LLRBRedValueNode;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
return-object p3
.end method
.method public isEmpty()Z
.locals 1
const/4 v0, 0x1
return v0
.end method
.method public isRed()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public remove(Ljava/lang/Object;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/LLRBNode;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;",
"Ljava/util/Comparator<",
"TK;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
return-object p0
.end method
.method public shortCircuitingInOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor<",
"TK;TV;>;)Z"
}
.end annotation
const/4 p1, 0x1
return p1
.end method
.method public shortCircuitingReverseOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor<",
"TK;TV;>;)Z"
}
.end annotation
const/4 p1, 0x1
return p1
.end method
.method public size()I
.locals 1
const/4 v0, 0x0
return v0
.end method
@@ -0,0 +1,115 @@
.class public final enum Lcom/google/firebase/database/collection/LLRBNode$Color;
.super Ljava/lang/Enum;
.source "LLRBNode.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/LLRBNode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Color"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/firebase/database/collection/LLRBNode$Color;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/firebase/database/collection/LLRBNode$Color;
.field public static final enum BLACK:Lcom/google/firebase/database/collection/LLRBNode$Color;
.field public static final enum RED:Lcom/google/firebase/database/collection/LLRBNode$Color;
# direct methods
.method public static constructor <clinit>()V
.locals 5
.line 1
new-instance v0, Lcom/google/firebase/database/collection/LLRBNode$Color;
const-string v1, "RED"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/firebase/database/collection/LLRBNode$Color;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/firebase/database/collection/LLRBNode$Color;->RED:Lcom/google/firebase/database/collection/LLRBNode$Color;
.line 2
new-instance v1, Lcom/google/firebase/database/collection/LLRBNode$Color;
const-string v3, "BLACK"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/firebase/database/collection/LLRBNode$Color;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/firebase/database/collection/LLRBNode$Color;->BLACK:Lcom/google/firebase/database/collection/LLRBNode$Color;
const/4 v3, 0x2
new-array v3, v3, [Lcom/google/firebase/database/collection/LLRBNode$Color;
aput-object v0, v3, v2
aput-object v1, v3, v4
.line 3
sput-object v3, Lcom/google/firebase/database/collection/LLRBNode$Color;->$VALUES:[Lcom/google/firebase/database/collection/LLRBNode$Color;
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/collection/LLRBNode$Color;
.locals 1
.line 1
const-class v0, Lcom/google/firebase/database/collection/LLRBNode$Color;
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/collection/LLRBNode$Color;
return-object p0
.end method
.method public static values()[Lcom/google/firebase/database/collection/LLRBNode$Color;
.locals 1
.line 1
sget-object v0, Lcom/google/firebase/database/collection/LLRBNode$Color;->$VALUES:[Lcom/google/firebase/database/collection/LLRBNode$Color;
invoke-virtual {v0}, [Lcom/google/firebase/database/collection/LLRBNode$Color;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/firebase/database/collection/LLRBNode$Color;
return-object v0
.end method
@@ -0,0 +1,67 @@
.class public abstract Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;
.super Ljava/lang/Object;
.source "LLRBNode.java"
# interfaces
.implements Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/LLRBNode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x409
name = "NodeVisitor"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor<",
"TK;TV;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public shouldContinue(Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)Z"
}
.end annotation
.line 1
invoke-virtual {p0, p1, p2}, Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;->visitEntry(Ljava/lang/Object;Ljava/lang/Object;)V
const/4 p1, 0x1
return p1
.end method
.method public abstract visitEntry(Ljava/lang/Object;Ljava/lang/Object;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)V"
}
.end annotation
.end method
@@ -0,0 +1,35 @@
.class public interface abstract Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;
.super Ljava/lang/Object;
.source "LLRBNode.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/database/collection/LLRBNode;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "ShortCircuitingNodeVisitor"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract shouldContinue(Ljava/lang/Object;Ljava/lang/Object;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)Z"
}
.end annotation
.end method
@@ -0,0 +1,160 @@
.class public interface abstract Lcom/google/firebase/database/collection/LLRBNode;
.super Ljava/lang/Object;
.source "LLRBNode.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/firebase/database/collection/LLRBNode$Color;,
Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;,
Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K:",
"Ljava/lang/Object;",
"V:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract copy(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/firebase/database/collection/LLRBNode$Color;Lcom/google/firebase/database/collection/LLRBNode;Lcom/google/firebase/database/collection/LLRBNode;)Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Lcom/google/firebase/database/collection/LLRBNode$Color;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract getKey()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TK;"
}
.end annotation
.end method
.method public abstract getLeft()Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract getMax()Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract getMin()Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract getRight()Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract getValue()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TV;"
}
.end annotation
.end method
.method public abstract inOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$NodeVisitor<",
"TK;TV;>;)V"
}
.end annotation
.end method
.method public abstract insert(Ljava/lang/Object;Ljava/lang/Object;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;",
"Ljava/util/Comparator<",
"TK;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract isEmpty()Z
.end method
.method public abstract isRed()Z
.end method
.method public abstract remove(Ljava/lang/Object;Ljava/util/Comparator;)Lcom/google/firebase/database/collection/LLRBNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;",
"Ljava/util/Comparator<",
"TK;>;)",
"Lcom/google/firebase/database/collection/LLRBNode<",
"TK;TV;>;"
}
.end annotation
.end method
.method public abstract shortCircuitingInOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor<",
"TK;TV;>;)Z"
}
.end annotation
.end method
.method public abstract shortCircuitingReverseOrderTraversal(Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor;)Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/database/collection/LLRBNode$ShortCircuitingNodeVisitor<",
"TK;TV;>;)Z"
}
.end annotation
.end method
.method public abstract size()I
.end method

Some files were not shown because too many files have changed in this diff Show More