f.smali
.class public Lj5/f;
.super Ljava/lang/Object;
.source "FirebaseInstallations.java"
# interfaces
.implements Lj5/g;
# static fields
.field public static final l:Ljava/lang/Object;
.field public static final m:Ljava/util/concurrent/ThreadFactory;
# instance fields
.field public final a:Lz3/c;
.field public final b:Ll5/c;
.field public final c:Lcom/google/firebase/installations/local/PersistedInstallation;
.field public final d:Lj5/m;
.field public final e:Lk5/b;
.field public final f:Lj5/k;
.field public final g:Ljava/lang/Object;
.field public final h:Ljava/util/concurrent/ExecutorService;
.field public final i:Ljava/util/concurrent/ExecutorService;
.field public j:Ljava/lang/String;
.field public final k:Ljava/util/List;
.annotation build Landroidx/annotation/GuardedBy;
value = "lock"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lj5/l;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lj5/f;->l:Ljava/lang/Object;
new-instance v0, Lj5/f$a;
invoke-direct {v0}, Lj5/f$a;-><init>()V
sput-object v0, Lj5/f;->m:Ljava/util/concurrent/ThreadFactory;
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/ExecutorService;Lz3/c;Ll5/c;Lcom/google/firebase/installations/local/PersistedInstallation;Lj5/m;Lk5/b;Lj5/k;)V
.registers 18
move-object v0, p0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v1, Ljava/lang/Object;
invoke-direct {v1}, Ljava/lang/Object;-><init>()V
iput-object v1, v0, Lj5/f;->g:Ljava/lang/Object;
const/4 v1, 0x0
iput-object v1, v0, Lj5/f;->j:Ljava/lang/String;
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, v0, Lj5/f;->k:Ljava/util/List;
move-object v1, p2
iput-object v1, v0, Lj5/f;->a:Lz3/c;
move-object v1, p3
iput-object v1, v0, Lj5/f;->b:Ll5/c;
move-object v1, p4
iput-object v1, v0, Lj5/f;->c:Lcom/google/firebase/installations/local/PersistedInstallation;
move-object v1, p5
iput-object v1, v0, Lj5/f;->d:Lj5/m;
move-object/from16 v1, p6
iput-object v1, v0, Lj5/f;->e:Lk5/b;
move-object/from16 v1, p7
iput-object v1, v0, Lj5/f;->f:Lj5/k;
move-object v1, p1
iput-object v1, v0, Lj5/f;->h:Ljava/util/concurrent/ExecutorService;
new-instance v9, Ljava/util/concurrent/ThreadPoolExecutor;
sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v7, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v7}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
sget-object v8, Lj5/f;->m:Ljava/util/concurrent/ThreadFactory;
const/4 v2, 0x0
const/4 v3, 0x1
const-wide/16 v4, 0x1e
move-object v1, v9
invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
iput-object v9, v0, Lj5/f;->i:Ljava/util/concurrent/ExecutorService;
return-void
.end method
.method public constructor <init>(Lz3/c;Lo5/h;Lcom/google/firebase/heartbeatinfo/HeartBeatInfo;)V
.registers 13
.param p1 # Lz3/c;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p2 # Lo5/h;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
new-instance v8, Ljava/util/concurrent/ThreadPoolExecutor;
sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
sget-object v7, Lj5/f;->m:Ljava/util/concurrent/ThreadFactory;
const/4 v1, 0x0
const/4 v2, 0x1
const-wide/16 v3, 0x1e
move-object v0, v8
invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
new-instance v3, Ll5/c;
invoke-virtual {p1}, Lz3/c;->b()Landroid/content/Context;
move-result-object v0
invoke-direct {v3, v0, p2, p3}, Ll5/c;-><init>(Landroid/content/Context;Lo5/h;Lcom/google/firebase/heartbeatinfo/HeartBeatInfo;)V
new-instance v4, Lcom/google/firebase/installations/local/PersistedInstallation;
invoke-direct {v4, p1}, Lcom/google/firebase/installations/local/PersistedInstallation;-><init>(Lz3/c;)V
new-instance v5, Lj5/m;
invoke-direct {v5}, Lj5/m;-><init>()V
new-instance v6, Lk5/b;
invoke-direct {v6, p1}, Lk5/b;-><init>(Lz3/c;)V
new-instance v7, Lj5/k;
invoke-direct {v7}, Lj5/k;-><init>()V
move-object v0, p0
move-object v1, v8
move-object v2, p1
invoke-direct/range {v0 .. v7}, Lj5/f;-><init>(Ljava/util/concurrent/ExecutorService;Lz3/c;Ll5/c;Lcom/google/firebase/installations/local/PersistedInstallation;Lj5/m;Lk5/b;Lj5/k;)V
return-void
.end method
.method public static a(Lz3/c;)Lj5/f;
.registers 3
.param p0 # Lz3/c;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
if-eqz p0, :cond_4
const/4 v0, 0x1
goto :goto_5
:cond_4
const/4 v0, 0x0
:goto_5
const-string v1, "Null is not a valid value of FirebaseApp."
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
const-class v0, Lj5/g;
invoke-virtual {p0, v0}, Lz3/c;->a(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lj5/f;
return-object p0
.end method
.method public static synthetic a(Lj5/f;)V
.registers 2
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lj5/f;->c(Z)V
return-void
.end method
.method public static synthetic a(Lj5/f;Z)V
.registers 2
invoke-virtual {p0, p1}, Lj5/f;->c(Z)V
return-void
.end method
.method public static synthetic b(Lj5/f;Z)V
.registers 2
invoke-virtual {p0, p1}, Lj5/f;->b(Z)V
return-void
.end method
.method public static i()Lj5/f;
.registers 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
invoke-static {}, Lz3/c;->j()Lz3/c;
move-result-object v0
invoke-static {v0}, Lj5/f;->a(Lz3/c;)Lj5/f;
move-result-object v0
return-object v0
.end method
# virtual methods
.method public final a()Lcom/google/android/gms/tasks/Task;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Lj5/j;",
">;"
}
.end annotation
new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
new-instance v1, Lj5/i;
iget-object v2, p0, Lj5/f;->d:Lj5/m;
invoke-direct {v1, v2, v0}, Lj5/i;-><init>(Lj5/m;Lcom/google/android/gms/tasks/TaskCompletionSource;)V
iget-object v2, p0, Lj5/f;->g:Ljava/lang/Object;
monitor-enter v2
:try_start_f
iget-object v3, p0, Lj5/f;->k:Ljava/util/List;
invoke-interface {v3, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
monitor-exit v2
:try_end_15
.catchall {:try_start_f .. :try_end_15} :catchall_1a
invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
:catchall_1a
move-exception v0
:try_start_1b
monitor-exit v2
:try_end_1c
.catchall {:try_start_1b .. :try_end_1c} :catchall_1a
throw v0
.end method
.method public a(Z)Lcom/google/android/gms/tasks/Task;
.registers 4
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(Z)",
"Lcom/google/android/gms/tasks/Task<",
"Lj5/j;",
">;"
}
.end annotation
invoke-virtual {p0}, Lj5/f;->h()V
invoke-virtual {p0}, Lj5/f;->a()Lcom/google/android/gms/tasks/Task;
move-result-object v0
iget-object v1, p0, Lj5/f;->h:Ljava/util/concurrent/ExecutorService;
invoke-static {p0, p1}, Lj5/c;->a(Lj5/f;Z)Ljava/lang/Runnable;
move-result-object p1
invoke-interface {v1, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-object v0
.end method
.method public final a(Lk5/c;)Lk5/c;
.registers 8
.param p1 # Lk5/c;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lj5/f;->b:Ll5/c;
invoke-virtual {p0}, Lj5/f;->c()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Lk5/c;->c()Ljava/lang/String;
move-result-object v2
invoke-virtual {p0}, Lj5/f;->g()Ljava/lang/String;
move-result-object v3
invoke-virtual {p1}, Lk5/c;->e()Ljava/lang/String;
move-result-object v4
invoke-virtual {v0, v1, v2, v3, v4}, Ll5/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/installations/remote/TokenResult;
move-result-object v0
sget-object v1, Lj5/f$b;->b:[I
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/TokenResult;->a()Lcom/google/firebase/installations/remote/TokenResult$ResponseCode;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
move-result v2
aget v1, v1, v2
const/4 v2, 0x1
if-eq v1, v2, :cond_40
const/4 v0, 0x2
if-eq v1, v0, :cond_39
const/4 v0, 0x3
if-ne v1, v0, :cond_33
const/4 v0, 0x0
iput-object v0, p0, Lj5/f;->j:Ljava/lang/String;
invoke-virtual {p1}, Lk5/c;->o()Lk5/c;
move-result-object p1
return-object p1
:cond_33
new-instance p1, Ljava/io/IOException;
invoke-direct {p1}, Ljava/io/IOException;-><init>()V
throw p1
:cond_39
const-string v0, "BAD CONFIG"
invoke-virtual {p1, v0}, Lk5/c;->a(Ljava/lang/String;)Lk5/c;
move-result-object p1
return-object p1
:cond_40
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/TokenResult;->b()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/TokenResult;->c()J
move-result-wide v2
iget-object v0, p0, Lj5/f;->d:Lj5/m;
invoke-virtual {v0}, Lj5/m;->a()J
move-result-wide v4
move-object v0, p1
invoke-virtual/range {v0 .. v5}, Lk5/c;->a(Ljava/lang/String;JJ)Lk5/c;
move-result-object p1
return-object p1
.end method
.method public final a(Lk5/c;Ljava/lang/Exception;)V
.registers 6
iget-object v0, p0, Lj5/f;->g:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj5/f;->k:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_9
:goto_9
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1f
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lj5/l;
invoke-interface {v2, p1, p2}, Lj5/l;->a(Lk5/c;Ljava/lang/Exception;)Z
move-result v2
if-eqz v2, :cond_9
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
goto :goto_9
:cond_1f
monitor-exit v0
return-void
:catchall_21
move-exception p1
monitor-exit v0
:try_end_23
.catchall {:try_start_3 .. :try_end_23} :catchall_21
goto :goto_25
:goto_24
throw p1
:goto_25
goto :goto_24
.end method
.method public final b()Ljava/lang/String;
.registers 4
iget-object v0, p0, Lj5/f;->j:Ljava/lang/String;
if-eqz v0, :cond_5
return-object v0
:cond_5
invoke-virtual {p0}, Lj5/f;->f()Lk5/c;
move-result-object v0
iget-object v1, p0, Lj5/f;->i:Ljava/util/concurrent/ExecutorService;
invoke-static {p0}, Lj5/d;->a(Lj5/f;)Ljava/lang/Runnable;
move-result-object v2
invoke-interface {v1, v2}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
invoke-virtual {v0}, Lk5/c;->c()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final b(Lk5/c;)V
.registers 5
sget-object v0, Lj5/f;->l:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v1}, Lz3/c;->b()Landroid/content/Context;
move-result-object v1
const-string v2, "generatefid.lock"
invoke-static {v1, v2}, Lj5/b;->a(Landroid/content/Context;Ljava/lang/String;)Lj5/b;
move-result-object v1
:try_end_f
.catchall {:try_start_3 .. :try_end_f} :catchall_22
:try_start_f
iget-object v2, p0, Lj5/f;->c:Lcom/google/firebase/installations/local/PersistedInstallation;
invoke-virtual {v2, p1}, Lcom/google/firebase/installations/local/PersistedInstallation;->a(Lk5/c;)Lk5/c;
:try_end_14
.catchall {:try_start_f .. :try_end_14} :catchall_1b
if-eqz v1, :cond_19
:try_start_16
invoke-virtual {v1}, Lj5/b;->a()V
:cond_19
monitor-exit v0
return-void
:catchall_1b
move-exception p1
if-eqz v1, :cond_21
invoke-virtual {v1}, Lj5/b;->a()V
:cond_21
throw p1
:catchall_22
move-exception p1
monitor-exit v0
:try_end_24
.catchall {:try_start_16 .. :try_end_24} :catchall_22
throw p1
.end method
.method public final b(Z)V
.registers 3
invoke-virtual {p0}, Lj5/f;->f()Lk5/c;
move-result-object v0
if-eqz p1, :cond_a
invoke-virtual {v0}, Lk5/c;->n()Lk5/c;
move-result-object v0
:cond_a
invoke-virtual {p0, v0}, Lj5/f;->e(Lk5/c;)V
iget-object v0, p0, Lj5/f;->i:Ljava/util/concurrent/ExecutorService;
invoke-static {p0, p1}, Lj5/e;->a(Lj5/f;Z)Ljava/lang/Runnable;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method public c()Ljava/lang/String;
.registers 2
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v0}, Lz3/c;->d()Lz3/e;
move-result-object v0
invoke-virtual {v0}, Lz3/e;->a()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final c(Lk5/c;)Ljava/lang/String;
.registers 4
iget-object v0, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v0}, Lz3/c;->c()Ljava/lang/String;
move-result-object v0
const-string v1, "CHIME_ANDROID_SDK"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_16
iget-object v0, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v0}, Lz3/c;->h()Z
move-result v0
if-eqz v0, :cond_1c
:cond_16
invoke-virtual {p1}, Lk5/c;->l()Z
move-result p1
if-nez p1, :cond_23
:cond_1c
iget-object p1, p0, Lj5/f;->f:Lj5/k;
invoke-virtual {p1}, Lj5/k;->a()Ljava/lang/String;
move-result-object p1
return-object p1
:cond_23
iget-object p1, p0, Lj5/f;->e:Lk5/b;
invoke-virtual {p1}, Lk5/b;->a()Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_35
iget-object p1, p0, Lj5/f;->f:Lj5/k;
invoke-virtual {p1}, Lj5/k;->a()Ljava/lang/String;
move-result-object p1
:cond_35
return-object p1
.end method
.method public final c(Z)V
.registers 4
invoke-virtual {p0}, Lj5/f;->e()Lk5/c;
move-result-object v0
:try_start_4
invoke-virtual {v0}, Lk5/c;->h()Z
move-result v1
if-nez v1, :cond_22
invoke-virtual {v0}, Lk5/c;->k()Z
move-result v1
if-eqz v1, :cond_11
goto :goto_22
:cond_11
if-nez p1, :cond_1d
iget-object p1, p0, Lj5/f;->d:Lj5/m;
invoke-virtual {p1, v0}, Lj5/m;->a(Lk5/c;)Z
move-result p1
if-eqz p1, :cond_1c
goto :goto_1d
:cond_1c
return-void
:cond_1d
:goto_1d
invoke-virtual {p0, v0}, Lj5/f;->a(Lk5/c;)Lk5/c;
move-result-object p1
goto :goto_26
:cond_22
:goto_22
invoke-virtual {p0, v0}, Lj5/f;->d(Lk5/c;)Lk5/c;
move-result-object p1
:try_end_26
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_26} :catch_5b
:goto_26
invoke-virtual {p0, p1}, Lj5/f;->b(Lk5/c;)V
invoke-virtual {p1}, Lk5/c;->j()Z
move-result v0
if-eqz v0, :cond_35
invoke-virtual {p1}, Lk5/c;->c()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lj5/f;->j:Ljava/lang/String;
:cond_35
invoke-virtual {p1}, Lk5/c;->h()Z
move-result v0
if-eqz v0, :cond_46
new-instance v0, Lcom/google/firebase/installations/FirebaseInstallationsException;
sget-object v1, Lcom/google/firebase/installations/FirebaseInstallationsException$Status;->BAD_CONFIG:Lcom/google/firebase/installations/FirebaseInstallationsException$Status;
invoke-direct {v0, v1}, Lcom/google/firebase/installations/FirebaseInstallationsException;-><init>(Lcom/google/firebase/installations/FirebaseInstallationsException$Status;)V
invoke-virtual {p0, p1, v0}, Lj5/f;->a(Lk5/c;Ljava/lang/Exception;)V
goto :goto_5a
:cond_46
invoke-virtual {p1}, Lk5/c;->i()Z
move-result v0
if-eqz v0, :cond_57
new-instance v0, Ljava/io/IOException;
const-string v1, "cleared fid due to auth error"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1, v0}, Lj5/f;->a(Lk5/c;Ljava/lang/Exception;)V
goto :goto_5a
:cond_57
invoke-virtual {p0, p1}, Lj5/f;->e(Lk5/c;)V
:goto_5a
return-void
:catch_5b
move-exception p1
invoke-virtual {p0, v0, p1}, Lj5/f;->a(Lk5/c;Ljava/lang/Exception;)V
return-void
.end method
.method public d()Ljava/lang/String;
.registers 2
.annotation build Landroidx/annotation/VisibleForTesting;
.end annotation
iget-object v0, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v0}, Lz3/c;->d()Lz3/e;
move-result-object v0
invoke-virtual {v0}, Lz3/e;->b()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public final d(Lk5/c;)Lk5/c;
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Lk5/c;->c()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
const/16 v1, 0xb
if-ne v0, v1, :cond_13
iget-object v0, p0, Lj5/f;->e:Lk5/b;
invoke-virtual {v0}, Lk5/b;->d()Ljava/lang/String;
move-result-object v0
goto :goto_14
:cond_13
const/4 v0, 0x0
:goto_14
move-object v6, v0
iget-object v1, p0, Lj5/f;->b:Ll5/c;
invoke-virtual {p0}, Lj5/f;->c()Ljava/lang/String;
move-result-object v2
invoke-virtual {p1}, Lk5/c;->c()Ljava/lang/String;
move-result-object v3
invoke-virtual {p0}, Lj5/f;->g()Ljava/lang/String;
move-result-object v4
invoke-virtual {p0}, Lj5/f;->d()Ljava/lang/String;
move-result-object v5
invoke-virtual/range {v1 .. v6}, Ll5/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/google/firebase/installations/remote/InstallationResponse;
move-result-object v0
sget-object v1, Lj5/f$b;->a:[I
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/InstallationResponse;->d()Lcom/google/firebase/installations/remote/InstallationResponse$ResponseCode;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Enum;->ordinal()I
move-result v2
aget v1, v1, v2
const/4 v2, 0x1
if-eq v1, v2, :cond_4a
const/4 v0, 0x2
if-ne v1, v0, :cond_44
const-string v0, "BAD CONFIG"
invoke-virtual {p1, v0}, Lk5/c;->a(Ljava/lang/String;)Lk5/c;
move-result-object p1
return-object p1
:cond_44
new-instance p1, Ljava/io/IOException;
invoke-direct {p1}, Ljava/io/IOException;-><init>()V
throw p1
:cond_4a
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/InstallationResponse;->b()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/InstallationResponse;->c()Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lj5/f;->d:Lj5/m;
invoke-virtual {v3}, Lj5/m;->a()J
move-result-wide v3
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/InstallationResponse;->a()Lcom/google/firebase/installations/remote/TokenResult;
move-result-object v5
invoke-virtual {v5}, Lcom/google/firebase/installations/remote/TokenResult;->b()Ljava/lang/String;
move-result-object v5
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/InstallationResponse;->a()Lcom/google/firebase/installations/remote/TokenResult;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/installations/remote/TokenResult;->c()J
move-result-wide v6
move-object v0, p1
invoke-virtual/range {v0 .. v7}, Lk5/c;->a(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;J)Lk5/c;
move-result-object p1
return-object p1
.end method
.method public final e()Lk5/c;
.registers 4
sget-object v0, Lj5/f;->l:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v1}, Lz3/c;->b()Landroid/content/Context;
move-result-object v1
const-string v2, "generatefid.lock"
invoke-static {v1, v2}, Lj5/b;->a(Landroid/content/Context;Ljava/lang/String;)Lj5/b;
move-result-object v1
:try_end_f
.catchall {:try_start_3 .. :try_end_f} :catchall_23
:try_start_f
iget-object v2, p0, Lj5/f;->c:Lcom/google/firebase/installations/local/PersistedInstallation;
invoke-virtual {v2}, Lcom/google/firebase/installations/local/PersistedInstallation;->b()Lk5/c;
move-result-object v2
:try_end_15
.catchall {:try_start_f .. :try_end_15} :catchall_1c
if-eqz v1, :cond_1a
:try_start_17
invoke-virtual {v1}, Lj5/b;->a()V
:cond_1a
monitor-exit v0
return-object v2
:catchall_1c
move-exception v2
if-eqz v1, :cond_22
invoke-virtual {v1}, Lj5/b;->a()V
:cond_22
throw v2
:catchall_23
move-exception v1
monitor-exit v0
:try_end_25
.catchall {:try_start_17 .. :try_end_25} :catchall_23
throw v1
.end method
.method public final e(Lk5/c;)V
.registers 5
iget-object v0, p0, Lj5/f;->g:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj5/f;->k:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:cond_9
:goto_9
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1f
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lj5/l;
invoke-interface {v2, p1}, Lj5/l;->a(Lk5/c;)Z
move-result v2
if-eqz v2, :cond_9
invoke-interface {v1}, Ljava/util/Iterator;->remove()V
goto :goto_9
:cond_1f
monitor-exit v0
return-void
:catchall_21
move-exception p1
monitor-exit v0
:try_end_23
.catchall {:try_start_3 .. :try_end_23} :catchall_21
goto :goto_25
:goto_24
throw p1
:goto_25
goto :goto_24
.end method
.method public final f()Lk5/c;
.registers 6
sget-object v0, Lj5/f;->l:Ljava/lang/Object;
monitor-enter v0
:try_start_3
iget-object v1, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v1}, Lz3/c;->b()Landroid/content/Context;
move-result-object v1
const-string v2, "generatefid.lock"
invoke-static {v1, v2}, Lj5/b;->a(Landroid/content/Context;Ljava/lang/String;)Lj5/b;
move-result-object v1
:try_end_f
.catchall {:try_start_3 .. :try_end_f} :catchall_36
:try_start_f
iget-object v2, p0, Lj5/f;->c:Lcom/google/firebase/installations/local/PersistedInstallation;
invoke-virtual {v2}, Lcom/google/firebase/installations/local/PersistedInstallation;->b()Lk5/c;
move-result-object v2
invoke-virtual {v2}, Lk5/c;->i()Z
move-result v3
if-eqz v3, :cond_28
invoke-virtual {p0, v2}, Lj5/f;->c(Lk5/c;)Ljava/lang/String;
move-result-object v3
iget-object v4, p0, Lj5/f;->c:Lcom/google/firebase/installations/local/PersistedInstallation;
invoke-virtual {v2, v3}, Lk5/c;->b(Ljava/lang/String;)Lk5/c;
move-result-object v2
invoke-virtual {v4, v2}, Lcom/google/firebase/installations/local/PersistedInstallation;->a(Lk5/c;)Lk5/c;
:try_end_28
.catchall {:try_start_f .. :try_end_28} :catchall_2f
:cond_28
if-eqz v1, :cond_2d
:try_start_2a
invoke-virtual {v1}, Lj5/b;->a()V
:cond_2d
monitor-exit v0
return-object v2
:catchall_2f
move-exception v2
if-eqz v1, :cond_35
invoke-virtual {v1}, Lj5/b;->a()V
:cond_35
throw v2
:catchall_36
move-exception v1
monitor-exit v0
:try_end_38
.catchall {:try_start_2a .. :try_end_38} :catchall_36
throw v1
.end method
.method public g()Ljava/lang/String;
.registers 2
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Lj5/f;->a:Lz3/c;
invoke-virtual {v0}, Lz3/c;->d()Lz3/e;
move-result-object v0
invoke-virtual {v0}, Lz3/e;->d()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getId()Lcom/google/android/gms/tasks/Task;
.registers 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/android/gms/tasks/Task<",
"Ljava/lang/String;",
">;"
}
.end annotation
invoke-virtual {p0}, Lj5/f;->h()V
new-instance v0, Lcom/google/android/gms/tasks/TaskCompletionSource;
invoke-direct {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
invoke-virtual {p0}, Lj5/f;->b()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/android/gms/tasks/TaskCompletionSource;->trySetResult(Ljava/lang/Object;)Z
invoke-virtual {v0}, Lcom/google/android/gms/tasks/TaskCompletionSource;->getTask()Lcom/google/android/gms/tasks/Task;
move-result-object v0
return-object v0
.end method
.method public final h()V
.registers 3
invoke-virtual {p0}, Lj5/f;->d()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
invoke-virtual {p0}, Lj5/f;->g()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
invoke-virtual {p0}, Lj5/f;->c()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotEmpty(Ljava/lang/String;)Ljava/lang/String;
invoke-virtual {p0}, Lj5/f;->d()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lj5/m;->b(Ljava/lang/String;)Z
move-result v0
const-string v1, "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options."
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
invoke-virtual {p0}, Lj5/f;->c()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lj5/m;->a(Ljava/lang/String;)Z
move-result v0
const-string v1, "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options."
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
return-void
.end method