LocationServices.smali
.class public Lcom/google/android/gms/location/LocationServices;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-location@@17.1.0"
# 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 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
.field private static final zza: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/zzay;",
">;"
}
.end annotation
.end field
.field private static final zzb: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/zzay;",
"Lcom/google/android/gms/common/api/Api$ApiOptions$NoOptions;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 4
.line 12
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;->zza:Lcom/google/android/gms/common/api/Api$ClientKey;
.line 13
new-instance v0, Lcom/google/android/gms/location/zzax;
invoke-direct {v0}, Lcom/google/android/gms/location/zzax;-><init>()V
sput-object v0, Lcom/google/android/gms/location/LocationServices;->zzb:Lcom/google/android/gms/common/api/Api$AbstractClientBuilder;
.line 14
new-instance v1, Lcom/google/android/gms/common/api/Api;
sget-object v2, Lcom/google/android/gms/location/LocationServices;->zza:Lcom/google/android/gms/common/api/Api$ClientKey;
const-string v3, "LocationServices.API"
invoke-direct {v1, v3, v0, v2}, 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 v1, Lcom/google/android/gms/location/LocationServices;->API:Lcom/google/android/gms/common/api/Api;
.line 15
new-instance v0, Lcom/google/android/gms/internal/location/zzn;
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzn;-><init>()V
sput-object v0, Lcom/google/android/gms/location/LocationServices;->FusedLocationApi:Lcom/google/android/gms/location/FusedLocationProviderApi;
.line 16
new-instance v0, Lcom/google/android/gms/internal/location/zzae;
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzae;-><init>()V
sput-object v0, Lcom/google/android/gms/location/LocationServices;->GeofencingApi:Lcom/google/android/gms/location/GeofencingApi;
.line 17
new-instance v0, Lcom/google/android/gms/internal/location/zzbh;
invoke-direct {v0}, Lcom/google/android/gms/internal/location/zzbh;-><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
.registers 1
.line 1
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;
.registers 2
.line 10
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;
.registers 2
.line 11
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;
.registers 2
.line 6
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;
.registers 2
.line 7
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;
.registers 2
.line 8
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;
.registers 2
.line 9
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/zzay;
.registers 5
const/4 v0, 0x1
const/4 v1, 0x0
if-eqz p0, :cond_6
const/4 v2, 0x1
goto :goto_7
:cond_6
const/4 v2, 0x0
:goto_7
const-string v3, "GoogleApiClient parameter is required."
.line 2
invoke-static {v2, v3}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(ZLjava/lang/Object;)V
.line 3
sget-object v2, Lcom/google/android/gms/location/LocationServices;->zza: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/zzay;
if-eqz p0, :cond_17
goto :goto_18
:cond_17
const/4 v0, 0x0
:goto_18
const-string v1, "GoogleApiClient is not configured to use the LocationServices.API Api. Pass thisinto GoogleApiClient.Builder#addApi() to use this feature."
.line 4
invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(ZLjava/lang/Object;)V
return-object p0
.end method