.class Landroidx/core/location/LocationManagerCompat$Api24Impl; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation build Landroidx/annotation/RequiresApi; value = 0x18 .end annotation .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/core/location/LocationManagerCompat; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "Api24Impl" .end annotation # direct methods .method private constructor ()V .locals 0 .line 1395 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static registerGnssMeasurementsCallback(Landroid/location/LocationManager;Landroid/location/GnssMeasurementsEvent$Callback;)Z .locals 0 .param p0 # Landroid/location/LocationManager; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/location/GnssMeasurementsEvent$Callback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/RequiresPermission; value = "android.permission.ACCESS_FINE_LOCATION" .end annotation .line 1402 invoke-virtual {p0, p1}, Landroid/location/LocationManager;->registerGnssMeasurementsCallback(Landroid/location/GnssMeasurementsEvent$Callback;)Z move-result p0 return p0 .end method .method public static registerGnssMeasurementsCallback(Landroid/location/LocationManager;Landroid/location/GnssMeasurementsEvent$Callback;Landroid/os/Handler;)Z .locals 0 .param p0 # Landroid/location/LocationManager; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/location/GnssMeasurementsEvent$Callback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p2 # Landroid/os/Handler; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/RequiresPermission; value = "android.permission.ACCESS_FINE_LOCATION" .end annotation .line 1408 invoke-virtual {p0, p1, p2}, Landroid/location/LocationManager;->registerGnssMeasurementsCallback(Landroid/location/GnssMeasurementsEvent$Callback;Landroid/os/Handler;)Z move-result p0 return p0 .end method .method public static registerGnssStatusCallback(Landroid/location/LocationManager;Landroid/os/Handler;Ljava/util/concurrent/Executor;Landroidx/core/location/GnssStatusCompat$Callback;)Z .locals 4 .annotation build Landroidx/annotation/RequiresPermission; anyOf = { "android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION" } .end annotation const/4 v0, 0x0 const/4 v1, 0x1 if-eqz p1, :cond_0 move v2, v1 goto :goto_0 :cond_0 move v2, v0 .line 1419 :goto_0 invoke-static {v2}, Landroidx/core/util/Preconditions;->checkArgument(Z)V .line 1421 sget-object v2, Landroidx/core/location/LocationManagerCompat$GnssListenersHolder;->sGnssStatusListeners:Landroidx/collection/SimpleArrayMap; monitor-enter v2 .line 1423 :try_start_0 invoke-virtual {v2, p3}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v3 check-cast v3, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport; if-nez v3, :cond_1 .line 1426 new-instance v3, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport; invoke-direct {v3, p3}, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport;->(Landroidx/core/location/GnssStatusCompat$Callback;)V goto :goto_1 :catchall_0 move-exception p0 goto :goto_2 .line 1428 :cond_1 invoke-virtual {v3}, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport;->unregister()V .line 1430 :goto_1 invoke-virtual {v3, p2}, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport;->register(Ljava/util/concurrent/Executor;)V .line 1432 invoke-virtual {p0, v3, p1}, Landroid/location/LocationManager;->registerGnssStatusCallback(Landroid/location/GnssStatus$Callback;Landroid/os/Handler;)Z move-result p0 if-eqz p0, :cond_2 .line 1433 invoke-virtual {v2, p3, v3}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 1434 monitor-exit v2 return v1 .line 1436 :cond_2 monitor-exit v2 return v0 .line 1438 :goto_2 monitor-exit v2 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p0 .end method .method public static unregisterGnssMeasurementsCallback(Landroid/location/LocationManager;Landroid/location/GnssMeasurementsEvent$Callback;)V .locals 0 .param p0 # Landroid/location/LocationManager; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .param p1 # Landroid/location/GnssMeasurementsEvent$Callback; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1413 invoke-virtual {p0, p1}, Landroid/location/LocationManager;->unregisterGnssMeasurementsCallback(Landroid/location/GnssMeasurementsEvent$Callback;)V return-void .end method .method public static unregisterGnssStatusCallback(Landroid/location/LocationManager;Ljava/lang/Object;)V .locals 1 .line 1442 instance-of v0, p1, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport; if-eqz v0, :cond_0 .line 1443 move-object v0, p1 check-cast v0, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport; invoke-virtual {v0}, Landroidx/core/location/LocationManagerCompat$PreRGnssStatusTransport;->unregister()V .line 1445 :cond_0 check-cast p1, Landroid/location/GnssStatus$Callback; invoke-virtual {p0, p1}, Landroid/location/LocationManager;->unregisterGnssStatusCallback(Landroid/location/GnssStatus$Callback;)V return-void .end method