ce$c.smali

.class public final Lcom/loc/ce$c;
.super Landroid/os/Handler;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/loc/ce;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "c"
.end annotation


# instance fields
.field final synthetic a:Lcom/loc/ce;


# direct methods
.method public constructor <init>(Lcom/loc/ce;)V
    .registers 2

    iput-object p1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method public constructor <init>(Lcom/loc/ce;Landroid/os/Looper;)V
    .registers 3

    iput-object p1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method


# virtual methods
.method public final handleMessage(Landroid/os/Message;)V
    .registers 5

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    iget-boolean v0, v0, Lcom/loc/ce;->o:Z

    if-eqz v0, :cond_10

    invoke-static {}, Lcom/loc/ca;->c()Z

    move-result v0

    if-nez v0, :cond_10

    :cond_f
    :goto_f
    :sswitch_f
    return-void

    :cond_10
    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_e2

    goto :goto_f

    :sswitch_16
    :try_start_16
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    iget-object v1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-static {v1, v0}, Lcom/loc/ce;->a(Lcom/loc/ce;Landroid/os/Bundle;)V
    :try_end_1f
    .catch Ljava/lang/Throwable; {:try_start_16 .. :try_end_1f} :catch_20

    goto :goto_f

    :catch_20
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_LBS_LOCATIONSUCCESS"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_f

    :sswitch_2b
    const/4 v0, 0x0

    const/16 v1, 0x85d    # 3.0E-42f

    invoke-static {v0, v1}, Lcom/loc/cg;->a(Ljava/lang/String;I)V

    :sswitch_31
    :try_start_31
    iget-object v0, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-static {v0, p1}, Lcom/loc/ce;->a(Lcom/loc/ce;Landroid/os/Message;)V
    :try_end_36
    .catch Ljava/lang/Throwable; {:try_start_31 .. :try_end_36} :catch_37

    goto :goto_f

    :catch_37
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_GPS_LOCATIONSUCCESS"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_f

    :sswitch_42
    :try_start_42
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    iget-object v1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-static {v1, v0}, Lcom/loc/ce;->b(Lcom/loc/ce;Landroid/os/Bundle;)V
    :try_end_4b
    .catch Ljava/lang/Throwable; {:try_start_42 .. :try_end_4b} :catch_4c

    goto :goto_f

    :catch_4c
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_GPS_LOCATIONCHANGE"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_f

    :sswitch_57
    :try_start_57
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    iget-object v1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    iget-object v1, v1, Lcom/loc/ce;->c:Lcom/loc/cn;

    if-eqz v1, :cond_f

    iget-object v1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    iget-object v1, v1, Lcom/loc/ce;->c:Lcom/loc/cn;
    :try_end_65
    .catch Ljava/lang/Throwable; {:try_start_57 .. :try_end_65} :catch_a5

    if-eqz v0, :cond_f

    :try_start_67
    const-class v2, Lcom/amap/api/location/AMapLocation;

    invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->setClassLoader(Ljava/lang/ClassLoader;)V

    const-string/jumbo v2, "lMaxGeoDis"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v2

    iput v2, v1, Lcom/loc/cn;->h:I

    const-string/jumbo v2, "lMinGeoDis"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v2

    iput v2, v1, Lcom/loc/cn;->i:I

    const-string/jumbo v2, "loc"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/amap/api/location/AMapLocation;

    invoke-virtual {v0}, Lcom/amap/api/location/AMapLocation;->getAdCode()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_f

    iput-object v0, v1, Lcom/loc/cn;->n:Lcom/amap/api/location/AMapLocation;
    :try_end_97
    .catch Ljava/lang/Throwable; {:try_start_67 .. :try_end_97} :catch_99

    goto/16 :goto_f

    :catch_99
    move-exception v0

    :try_start_9a
    const-string/jumbo v1, "GPSLocation"

    const-string/jumbo v2, "setLastGeoLocation"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_a3
    .catch Ljava/lang/Throwable; {:try_start_9a .. :try_end_a3} :catch_a5

    goto/16 :goto_f

    :catch_a5
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_GPS_GEO_SUCCESS"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_f

    :sswitch_b1
    :try_start_b1
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    iget-object v1, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    const-string/jumbo v2, "ngpsAble"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    invoke-static {v1, v0}, Lcom/loc/ce;->b(Lcom/loc/ce;Z)Z
    :try_end_c1
    .catch Ljava/lang/Throwable; {:try_start_b1 .. :try_end_c1} :catch_c3

    goto/16 :goto_f

    :catch_c3
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_NGPS_ABLE"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_f

    :sswitch_cf
    :try_start_cf
    iget-object v0, p0, Lcom/loc/ce$c;->a:Lcom/loc/ce;

    invoke-static {v0}, Lcom/loc/ce;->a(Lcom/loc/ce;)V
    :try_end_d4
    .catch Ljava/lang/Throwable; {:try_start_cf .. :try_end_d4} :catch_d6

    goto/16 :goto_f

    :catch_d6
    move-exception v0

    const-string/jumbo v1, "AMapLocationManager$ActionHandler"

    const-string/jumbo v2, "handleMessage RESULT_FASTSKY"

    invoke-static {v0, v1, v2}, Lcom/loc/ca;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_f

    :sswitch_data_e2
    .sparse-switch
        0x1 -> :sswitch_16
        0x2 -> :sswitch_31
        0x3 -> :sswitch_f
        0x5 -> :sswitch_42
        0x6 -> :sswitch_57
        0x7 -> :sswitch_b1
        0x8 -> :sswitch_2b
        0x64 -> :sswitch_cf
    .end sparse-switch
.end method