241 lines
8.2 KiB
Smali
241 lines
8.2 KiB
Smali
.class public Lcom/google/android/gms/location/LocationServices;
|
|
.super Ljava/lang/Object;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/gms/location/LocationServices$zza;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final API:Lcom/google/android/gms/common/api/Api;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/gms/common/api/Api<",
|
|
"Lcom/google/android/gms/common/api/Api$ApiOptions$NoOptions;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final CLIENT_BUILDER:Lcom/google/android/gms/common/api/Api$AbstractClientBuilder;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/gms/common/api/Api$AbstractClientBuilder<",
|
|
"Lcom/google/android/gms/internal/location/zzaz;",
|
|
"Lcom/google/android/gms/common/api/Api$ApiOptions$NoOptions;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final CLIENT_KEY:Lcom/google/android/gms/common/api/Api$ClientKey;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/gms/common/api/Api$ClientKey<",
|
|
"Lcom/google/android/gms/internal/location/zzaz;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final FusedLocationApi:Lcom/google/android/gms/location/FusedLocationProviderApi;
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GeofencingApi:Lcom/google/android/gms/location/GeofencingApi;
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final SettingsApi:Lcom/google/android/gms/location/SettingsApi;
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
new-instance v0, Lcom/google/android/gms/common/api/Api$ClientKey;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/common/api/Api$ClientKey;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/LocationServices;->CLIENT_KEY:Lcom/google/android/gms/common/api/Api$ClientKey;
|
|
|
|
new-instance v1, Lcom/google/android/gms/location/zzad;
|
|
|
|
invoke-direct {v1}, Lcom/google/android/gms/location/zzad;-><init>()V
|
|
|
|
sput-object v1, Lcom/google/android/gms/location/LocationServices;->CLIENT_BUILDER:Lcom/google/android/gms/common/api/Api$AbstractClientBuilder;
|
|
|
|
new-instance v2, Lcom/google/android/gms/common/api/Api;
|
|
|
|
const-string v3, "LocationServices.API"
|
|
|
|
invoke-direct {v2, v3, v1, v0}, Lcom/google/android/gms/common/api/Api;-><init>(Ljava/lang/String;Lcom/google/android/gms/common/api/Api$AbstractClientBuilder;Lcom/google/android/gms/common/api/Api$ClientKey;)V
|
|
|
|
sput-object v2, Lcom/google/android/gms/location/LocationServices;->API:Lcom/google/android/gms/common/api/Api;
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/location/zzq;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzq;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/LocationServices;->FusedLocationApi:Lcom/google/android/gms/location/FusedLocationProviderApi;
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/location/zzaf;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzaf;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/LocationServices;->GeofencingApi:Lcom/google/android/gms/location/GeofencingApi;
|
|
|
|
new-instance v0, Lcom/google/android/gms/internal/location/zzbk;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzbk;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/location/LocationServices;->SettingsApi:Lcom/google/android/gms/location/SettingsApi;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getFusedLocationProviderClient(Landroid/app/Activity;)Lcom/google/android/gms/location/FusedLocationProviderClient;
|
|
.locals 1
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/FusedLocationProviderClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/FusedLocationProviderClient;-><init>(Landroid/app/Activity;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getFusedLocationProviderClient(Landroid/content/Context;)Lcom/google/android/gms/location/FusedLocationProviderClient;
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/FusedLocationProviderClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/FusedLocationProviderClient;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getGeofencingClient(Landroid/app/Activity;)Lcom/google/android/gms/location/GeofencingClient;
|
|
.locals 1
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/GeofencingClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/GeofencingClient;-><init>(Landroid/app/Activity;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getGeofencingClient(Landroid/content/Context;)Lcom/google/android/gms/location/GeofencingClient;
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/GeofencingClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/GeofencingClient;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getSettingsClient(Landroid/app/Activity;)Lcom/google/android/gms/location/SettingsClient;
|
|
.locals 1
|
|
.param p0 # Landroid/app/Activity;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/SettingsClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/SettingsClient;-><init>(Landroid/app/Activity;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getSettingsClient(Landroid/content/Context;)Lcom/google/android/gms/location/SettingsClient;
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Lcom/google/android/gms/location/SettingsClient;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/gms/location/SettingsClient;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static zza(Lcom/google/android/gms/common/api/GoogleApiClient;)Lcom/google/android/gms/internal/location/zzaz;
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
const-string v3, "GoogleApiClient parameter is required."
|
|
|
|
invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
sget-object v2, Lcom/google/android/gms/location/LocationServices;->CLIENT_KEY:Lcom/google/android/gms/common/api/Api$ClientKey;
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/android/gms/common/api/GoogleApiClient;->getClient(Lcom/google/android/gms/common/api/Api$AnyClientKey;)Lcom/google/android/gms/common/api/Api$Client;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lcom/google/android/gms/internal/location/zzaz;
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
:goto_1
|
|
const-string v1, "GoogleApiClient is not configured to use the LocationServices.API Api. Pass thisinto GoogleApiClient.Builder#addApi() to use this feature."
|
|
|
|
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
|
|
|
|
return-object p0
|
|
.end method
|