311 lines
7.4 KiB
Smali
311 lines
7.4 KiB
Smali
.class public Landroidx/core/location/a$h;
|
|
.super Ljava/lang/Object;
|
|
.source "LocationManagerCompat.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/location/GpsStatus$Listener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/location/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "h"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/location/LocationManager;
|
|
|
|
.field public final b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
.field public volatile c:Ljava/util/concurrent/Executor;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/location/LocationManager;Landroidx/core/location/GnssStatusCompat$a;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "invalid null callback"
|
|
|
|
.line 2
|
|
invoke-static {v0, v1}, Lr1/o;->b(ZLjava/lang/Object;)V
|
|
|
|
.line 3
|
|
iput-object p1, p0, Landroidx/core/location/a$h;->a:Landroid/location/LocationManager;
|
|
|
|
.line 4
|
|
iput-object p2, p0, Landroidx/core/location/a$h;->b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/core/location/a$h;->g(Ljava/util/concurrent/Executor;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic b(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;Landroidx/core/location/GnssStatusCompat;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/core/location/a$h;->h(Ljava/util/concurrent/Executor;Landroidx/core/location/GnssStatusCompat;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic c(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Landroidx/core/location/a$h;->e(Ljava/util/concurrent/Executor;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic d(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Landroidx/core/location/a$h;->f(Ljava/util/concurrent/Executor;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic e(Ljava/util/concurrent/Executor;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
invoke-virtual {p1}, Landroidx/core/location/GnssStatusCompat$a;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic f(Ljava/util/concurrent/Executor;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
invoke-virtual {p1}, Landroidx/core/location/GnssStatusCompat$a;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic g(Ljava/util/concurrent/Executor;I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/core/location/GnssStatusCompat$a;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic h(Ljava/util/concurrent/Executor;Landroidx/core/location/GnssStatusCompat;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->b:Landroidx/core/location/GnssStatusCompat$a;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/core/location/GnssStatusCompat$a;->b(Landroidx/core/location/GnssStatusCompat;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public i(Ljava/util/concurrent/Executor;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0}, Lr1/o;->m(Z)V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public j()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
iput-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onGpsStatusChanged(I)V
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
value = "android.permission.ACCESS_FINE_LOCATION"
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/location/a$h;->c:Ljava/util/concurrent/Executor;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
if-eq p1, v1, :cond_4
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq p1, v1, :cond_3
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq p1, v1, :cond_2
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_1
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->a:Landroid/location/LocationManager;
|
|
|
|
invoke-virtual {p1, v2}, Landroid/location/LocationManager;->getGpsStatus(Landroid/location/GpsStatus;)Landroid/location/GpsStatus;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 3
|
|
invoke-static {p1}, Landroidx/core/location/GnssStatusCompat;->o(Landroid/location/GpsStatus;)Landroidx/core/location/GnssStatusCompat;
|
|
|
|
move-result-object p1
|
|
|
|
.line 4
|
|
new-instance v1, Li1/m;
|
|
|
|
invoke-direct {v1, p0, v0, p1}, Li1/m;-><init>(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;Landroidx/core/location/GnssStatusCompat;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_2
|
|
iget-object p1, p0, Landroidx/core/location/a$h;->a:Landroid/location/LocationManager;
|
|
|
|
invoke-virtual {p1, v2}, Landroid/location/LocationManager;->getGpsStatus(Landroid/location/GpsStatus;)Landroid/location/GpsStatus;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Landroid/location/GpsStatus;->getTimeToFirstFix()I
|
|
|
|
move-result p1
|
|
|
|
.line 7
|
|
new-instance v1, Li1/l;
|
|
|
|
invoke-direct {v1, p0, v0, p1}, Li1/l;-><init>(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;I)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_3
|
|
new-instance p1, Li1/k;
|
|
|
|
invoke-direct {p1, p0, v0}, Li1/k;-><init>(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;)V
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_4
|
|
new-instance p1, Li1/j;
|
|
|
|
invoke-direct {p1, p0, v0}, Li1/j;-><init>(Landroidx/core/location/a$h;Ljava/util/concurrent/Executor;)V
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|