ConnectionTracker.smali
.class public Lcom/google/android/gms/common/stats/ConnectionTracker;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
# static fields
.field private static final zza:Ljava/lang/Object;
.field private static volatile zzb:Lcom/google/android/gms/common/stats/ConnectionTracker; = null
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private static zzc:Z = false
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
.end field
# instance fields
.field private zzd:Ljava/util/concurrent/ConcurrentHashMap;
.annotation build Lcom/google/android/gms/common/util/VisibleForTesting;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ConcurrentHashMap<",
"Landroid/content/ServiceConnection;",
"Landroid/content/ServiceConnection;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/lang/Object;
return-void
.end method
.method private constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
iput-object v0, p0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzd:Ljava/util/concurrent/ConcurrentHashMap;
return-void
.end method
.method public static getInstance()Lcom/google/android/gms/common/stats/ConnectionTracker;
.registers 2
.annotation build Landroidx/annotation/RecentlyNonNull;
.end annotation
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Lcom/google/android/gms/common/stats/ConnectionTracker;
if-nez v0, :cond_17
sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zza:Ljava/lang/Object;
monitor-enter v0
:try_start_7
sget-object v1, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Lcom/google/android/gms/common/stats/ConnectionTracker;
if-nez v1, :cond_12
new-instance v1, Lcom/google/android/gms/common/stats/ConnectionTracker;
invoke-direct {v1}, Lcom/google/android/gms/common/stats/ConnectionTracker;-><init>()V
sput-object v1, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Lcom/google/android/gms/common/stats/ConnectionTracker;
:cond_12
monitor-exit v0
goto :goto_17
:catchall_14
move-exception v1
monitor-exit v0
:try_end_16
.catchall {:try_start_7 .. :try_end_16} :catchall_14
throw v1
:cond_17
:goto_17
sget-object v0, Lcom/google/android/gms/common/stats/ConnectionTracker;->zzb:Lcom/google/android/gms/common/stats/ConnectionTracker;
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/android/gms/common/stats/ConnectionTracker;
return-object v0
.end method
.method private final zza(Landroid/content/Context;Ljava/lang/String;Landroid/content/Intent;Landroid/content/ServiceConnection;IZ)Z
.registers 9
.annotation build Landroid/annotation/SuppressLint;
value = {
"UntrackedBindService"
}
.end annotation
invoke-virtual {p3}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName;
move-result-object p6
const/4 v0, 0x0
if-nez p6, :cond_9
const/4 p6, 0x0
goto :goto_11
:cond_9
invoke-virtual {p6}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result