.class public Lcom/moji/location/worker/MJLocationWorker;
.super Lcom/moji/location/worker/AbsLocationWorker;
.source "MJLocationWorker.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/location/worker/AbsLocationWorker<",
        "Lcom/moji/location/options/MJLocationOptions;",
        "Lcom/moji/location/entity/MJLocation;",
        ">;"
    }
.end annotation


# instance fields
.field private b:Lcom/moji/location/worker/AbsLocationWorker;

.field private c:Lcom/moji/location/worker/CDMALocationWorker;

.field private d:Lcom/moji/location/worker/GSMLocationWorker;

.field private e:Lcom/moji/location/entity/MJLocation;

.field private f:Lcom/moji/http/lbs/ServerLocationRequest;

.field private volatile g:Z

.field private volatile h:Z

.field private volatile i:Z

.field private volatile j:Z

.field private volatile k:Z

.field private l:J

.field private m:J


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 36
    invoke-direct {p0}, Lcom/moji/location/worker/AbsLocationWorker;-><init>()V

    const/4 v0, 0x0

    .line 45
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->g:Z

    .line 46
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 47
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->i:Z

    .line 48
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->j:Z

    .line 49
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->k:Z

    const-wide/16 v0, 0x0

    .line 50
    iput-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->l:J

    .line 51
    iput-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->m:J

    return-void
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Lcom/moji/location/entity/MJLocation;)Lcom/moji/location/entity/MJLocation;
    .locals 0

    .line 36
    iput-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Lcom/moji/location/worker/CDMALocationWorker;)Lcom/moji/location/worker/CDMALocationWorker;
    .locals 0

    .line 36
    iput-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->c:Lcom/moji/location/worker/CDMALocationWorker;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Lcom/moji/location/worker/GSMLocationWorker;)Lcom/moji/location/worker/GSMLocationWorker;
    .locals 0

    .line 36
    iput-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->d:Lcom/moji/location/worker/GSMLocationWorker;

    return-object p1
.end method

.method private a(Landroid/content/Context;Lcom/moji/http/lbs/ServerLocationResp;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/moji/http/lbs/ServerLocationResp;",
            "Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener<",
            "Lcom/moji/location/entity/MJLocation;",
            ">;",
            "Lcom/moji/location/entity/MJLocation;",
            ")V"
        }
    .end annotation

    .line 255
    iget-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->g:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    if-nez p4, :cond_2

    .line 259
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 260
    iget-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    if-eqz p1, :cond_1

    iget-object p4, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    :cond_1
    invoke-interface {p3, p4}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    return-void

    :cond_2
    if-nez p3, :cond_3

    return-void

    :cond_3
    const/4 v1, 0x0

    if-eqz p2, :cond_8

    .line 266
    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->OK()Z

    move-result v2

    if-eqz v2, :cond_8

    iget-object v2, p2, Lcom/moji/http/lbs/ServerLocationResp;->result:Lcom/moji/http/lbs/ServerLocationResp$CityEntity;

    if-nez v2, :cond_4

    goto/16 :goto_1

    .line 282
    :cond_4
    iget-object p2, p2, Lcom/moji/http/lbs/ServerLocationResp;->result:Lcom/moji/http/lbs/ServerLocationResp$CityEntity;

    .line 283
    iget v2, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_id:I

    if-ltz v2, :cond_6

    iget-object v2, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_name:Ljava/lang/String;

    invoke-static {v2}, Lcom/moji/location/util/LocationUtil;->b(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_5

    goto :goto_0

    .line 292
    :cond_5
    invoke-virtual {p4, v1}, Lcom/moji/location/entity/MJLocation;->setErrorCode(I)V

    .line 293
    iget v2, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_id:I

    invoke-virtual {p4, v2}, Lcom/moji/location/entity/MJLocation;->setMJCityID(I)V

    .line 294
    iget-object p2, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_name:Ljava/lang/String;

    invoke-virtual {p4, p2}, Lcom/moji/location/entity/MJLocation;->setMJCityName(Ljava/lang/String;)V

    .line 295
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 296
    invoke-interface {p3, p4}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    .line 297
    sget-object p2, Lcom/moji/location/MJLocationSource;->MOJI_LOCATION:Lcom/moji/location/MJLocationSource;

    invoke-static {p1, p2, p4}, Lcom/moji/location/provider/HistoryLocationHelper;->a(Landroid/content/Context;Lcom/moji/location/MJLocationSource;Lcom/moji/location/entity/MJLocation;)V

    const-string p1, ""

    .line 298
    invoke-direct {p0, v0, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    const-string p1, ""

    .line 299
    invoke-direct {p0, v0, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    .line 300
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "success"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    return-void

    :cond_6
    :goto_0
    const-string p1, "MJServerLocationWorker"

    .line 284
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, " server Location error  cityID: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v3, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_id:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v3, " city_name:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_name:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v2}, Lcom/moji/tool/log/MJLogger;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 285
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 286
    iget-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    if-eqz p1, :cond_7

    iget-object p4, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    :cond_7
    invoke-interface {p3, p4}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    .line 287
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, " server return Location info error  cityID: "

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p3, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_id:I

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p3, " city_name:"

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p2, Lcom/moji/http/lbs/ServerLocationResp$CityEntity;->city_name:Ljava/lang/String;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    const-string p1, "LBS location failed"

    .line 288
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    .line 289
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "fail"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    return-void

    .line 267
    :cond_8
    :goto_1
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 268
    iget-object p1, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    if-eqz p1, :cond_9

    iget-object p4, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    :cond_9
    invoke-interface {p3, p4}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    if-eqz p2, :cond_c

    const-string p1, "MJServerLocationWorker"

    .line 270
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, " server Location error "

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getResult()Lcom/moji/requestcore/entity/IResult;

    move-result-object p4

    if-nez p4, :cond_a

    const-string p4, "null"

    goto :goto_2

    :cond_a
    new-instance p4, Ljava/lang/StringBuilder;

    invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, " c:"

    invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getCode()I

    move-result v0

    invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, " p:"

    invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getDesc()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p4

    :goto_2
    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-static {p1, p3}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 271
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p3, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string p4, "fail"

    invoke-virtual {p1, p3, p4}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    .line 272
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, " server Location error  rc:"

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getResult()Lcom/moji/requestcore/entity/IResult;

    move-result-object p3

    if-nez p3, :cond_b

    const-string p2, "null"

    goto :goto_3

    :cond_b
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, " c:"

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getCode()I

    move-result p4

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p4, " p:"

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Lcom/moji/http/lbs/ServerLocationResp;->getDesc()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    :goto_3
    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    const-string p1, "LBS location failed"

    .line 273
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    goto :goto_4

    :cond_c
    const-string p1, "MJServerLocationWorker"

    const-string p2, " server Location error  resp: null"

    .line 275
    invoke-static {p1, p2}, Lcom/moji/tool/log/MJLogger;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 276
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "fail"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    const-string p1, " server Location error  resp: null"

    .line 277
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    const-string p1, "LBS location failed"

    .line 278
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    :goto_4
    return-void
.end method

.method private a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener<",
            "Lcom/moji/location/entity/MJLocation;",
            ">;",
            "Lcom/moji/location/entity/MJLocation;",
            ")V"
        }
    .end annotation

    .line 189
    iget-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->g:Z

    if-eqz v0, :cond_0

    return-void

    .line 192
    :cond_0
    invoke-virtual {p0}, Lcom/moji/location/worker/MJLocationWorker;->d()V

    .line 193
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->m:J

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 195
    :try_start_0
    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    .line 196
    invoke-static {p3}, Lcom/moji/location/util/LocationUtil;->b(Lcom/moji/location/entity/MJLocation;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v3, "latitude"

    .line 197
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "longitude"

    .line 198
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "location"

    .line 199
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getAddress()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "coordinate_system"

    const/4 v4, 0x2

    .line 200
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 201
    :cond_1
    invoke-static {p3}, Lcom/moji/location/util/LocationUtil;->c(Lcom/moji/location/entity/MJLocation;)Z

    move-result v3

    if-eqz v3, :cond_2

    const-string v3, "mcc"

    .line 202
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getGsmMCC()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "mnc"

    .line 203
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getGsmMNC()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "cid"

    .line 204
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getGsmCID()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "lac"

    .line 205
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getGsmLAC()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 206
    :cond_2
    invoke-static {p3}, Lcom/moji/location/util/LocationUtil;->a(Lcom/moji/location/entity/MJLocation;)Z

    move-result v3

    if-eqz v3, :cond_3

    const-string v3, "cdma_latitude"

    .line 207
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getCDMALAT()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "cdma_longitude"

    .line 208
    invoke-virtual {p3}, Lcom/moji/location/entity/MJLocation;->getCDMALNG()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "coordinate_system"

    const/4 v4, 0x5

    .line 209
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 217
    :goto_0
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->i:Z

    .line 218
    new-instance v3, Lcom/moji/http/lbs/ServerLocationRequest;

    invoke-direct {v3, v2}, Lcom/moji/http/lbs/ServerLocationRequest;-><init>(Ljava/util/Map;)V

    iput-object v3, p0, Lcom/moji/location/worker/MJLocationWorker;->f:Lcom/moji/http/lbs/ServerLocationRequest;

    .line 219
    iget-object v2, p0, Lcom/moji/location/worker/MJLocationWorker;->f:Lcom/moji/http/lbs/ServerLocationRequest;

    new-instance v3, Lcom/moji/location/worker/MJLocationWorker$2;

    invoke-direct {v3, p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker$2;-><init>(Lcom/moji/location/worker/MJLocationWorker;Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V

    invoke-virtual {v2, v3}, Lcom/moji/http/lbs/ServerLocationRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    goto :goto_1

    :cond_3
    const/4 p1, 0x6

    .line 211
    invoke-virtual {p3, p1}, Lcom/moji/location/entity/MJLocation;->setErrorCode(I)V

    .line 212
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 213
    invoke-interface {p2, p3}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    const-string p1, "CELL location failed"

    .line 214
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p1

    .line 244
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    .line 245
    iget-object v0, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    if-eqz v0, :cond_4

    iget-object p3, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    :cond_4
    invoke-interface {p2, p3}, Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;->a(Ljava/lang/Object;)V

    const-string p2, "server Location failed"

    .line 246
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 247
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "exception occurred: "

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    const-string p1, "LBS location failed"

    .line 248
    invoke-direct {p0, v1, v1, p1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    .line 249
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string p3, "fail"

    invoke-virtual {p1, p2, p3}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :goto_1
    return-void
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Landroid/content/Context;Lcom/moji/http/lbs/ServerLocationResp;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/moji/location/worker/MJLocationWorker;->a(Landroid/content/Context;Lcom/moji/http/lbs/ServerLocationResp;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker;->a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/entity/MJLocation;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;ZZLjava/lang/String;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    return-void
.end method

.method private a(ZZLjava/lang/String;)V
    .locals 10

    .line 304
    iget-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->i:Z

    if-nez v0, :cond_0

    return-void

    .line 307
    :cond_0
    iget-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->j:Z

    if-eqz v0, :cond_1

    return-void

    :cond_1
    const/4 v0, 0x1

    .line 310
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->j:Z

    .line 311
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/location/worker/MJLocationWorker;->m:J

    sub-long v7, v0, v2

    .line 312
    invoke-static {}, Lcom/moji/tool/DeviceTool;->l()Z

    move-result v0

    .line 313
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v1

    const-string v2, "MJServerLocationWorker"

    .line 317
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "LBS success:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", timeout:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", errorInfo:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p1, :cond_2

    const-string v4, "success"

    goto :goto_0

    :cond_2
    move-object v4, p3

    :goto_0
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ", screenOn:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", duration:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v4, ", netConnected:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/moji/tool/log/UserLog;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-nez v1, :cond_3

    return-void

    .line 325
    :cond_3
    :try_start_0
    new-instance v9, Lorg/json/JSONObject;

    invoke-direct {v9}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "property1"

    if-eqz v1, :cond_4

    const-string v1, "0"

    goto :goto_1

    :cond_4
    const-string v1, "1"

    .line 326
    :goto_1
    invoke-virtual {v9, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    if-nez p1, :cond_6

    const-string v1, "property2"

    if-eqz p2, :cond_5

    .line 328
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "location timeout over:"

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v2, p0, Lcom/moji/location/worker/MJLocationWorker;->a:J

    invoke-virtual {p2, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    :cond_5
    invoke-virtual {v9, v1, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_6
    if-eqz v0, :cond_7

    const-string p2, "0"

    goto :goto_2

    :cond_7
    const-string p2, "1"

    :goto_2
    const-string p3, "property3"

    .line 331
    invoke-virtual {v9, p3, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 332
    iget-wide p2, p0, Lcom/moji/location/worker/MJLocationWorker;->m:J

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-gtz v2, :cond_9

    .line 333
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p2

    sget-object p3, Lcom/moji/statistics/EVENT_TAG;->LBS_LOCATION_UPDATE:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_8

    const-string p1, "0"

    goto :goto_3

    :cond_8
    const-string p1, "1"

    :goto_3
    invoke-virtual {p2, p3, p1, v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    return-void

    .line 336
    :cond_9
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v4

    sget-object v5, Lcom/moji/statistics/EVENT_TAG;->LBS_LOCATION_UPDATE:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_a

    const-string p1, "0"

    goto :goto_4

    :cond_a
    const-string p1, "1"

    :goto_4
    move-object v6, p1

    invoke-virtual/range {v4 .. v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_5

    :catch_0
    move-exception p1

    const-string p2, "MJServerLocationWorker"

    .line 338
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_5
    return-void
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;)Z
    .locals 0

    .line 36
    iget-boolean p0, p0, Lcom/moji/location/worker/MJLocationWorker;->g:Z

    return p0
.end method

.method static synthetic a(Lcom/moji/location/worker/MJLocationWorker;Z)Z
    .locals 0

    .line 36
    iput-boolean p1, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/location/worker/MJLocationWorker;)J
    .locals 2

    .line 36
    iget-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->m:J

    return-wide v0
.end method

.method static synthetic b(Lcom/moji/location/worker/MJLocationWorker;ZZLjava/lang/String;)V
    .locals 0

    .line 36
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    return-void
.end method

.method private b(ZZLjava/lang/String;)V
    .locals 10

    .line 343
    iget-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->k:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 346
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->k:Z

    .line 347
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/location/worker/MJLocationWorker;->l:J

    sub-long v7, v0, v2

    .line 348
    invoke-static {}, Lcom/moji/tool/DeviceTool;->l()Z

    move-result v0

    .line 349
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v1

    const-string v2, "MJServerLocationWorker"

    .line 353
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Total success:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", timeout:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", errorInfo:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p1, :cond_1

    const-string v4, "success"

    goto :goto_0

    :cond_1
    move-object v4, p3

    :goto_0
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ", screenOn:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, ", duration:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v4, ", netConnected:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/moji/tool/log/UserLog;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-nez v1, :cond_2

    return-void

    .line 361
    :cond_2
    :try_start_0
    new-instance v9, Lorg/json/JSONObject;

    invoke-direct {v9}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "property1"

    if-eqz v1, :cond_3

    const-string v1, "0"

    goto :goto_1

    :cond_3
    const-string v1, "1"

    .line 362
    :goto_1
    invoke-virtual {v9, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    if-nez p1, :cond_5

    const-string v1, "property2"

    if-eqz p2, :cond_4

    .line 364
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "location timeout over:"

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v2, p0, Lcom/moji/location/worker/MJLocationWorker;->a:J

    invoke-virtual {p2, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    :cond_4
    invoke-virtual {v9, v1, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_5
    if-eqz v0, :cond_6

    const-string p2, "0"

    goto :goto_2

    :cond_6
    const-string p2, "1"

    :goto_2
    const-string p3, "property3"

    .line 367
    invoke-virtual {v9, p3, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 368
    iget-wide p2, p0, Lcom/moji/location/worker/MJLocationWorker;->l:J

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-gtz v2, :cond_8

    .line 369
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p2

    sget-object p3, Lcom/moji/statistics/EVENT_TAG;->LOCATION_UPDATE:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_7

    const-string p1, "0"

    goto :goto_3

    :cond_7
    const-string p1, "1"

    :goto_3
    invoke-virtual {p2, p3, p1, v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;Lorg/json/JSONObject;)Lcom/moji/statistics/EventManager;

    return-void

    .line 372
    :cond_8
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v4

    sget-object v5, Lcom/moji/statistics/EVENT_TAG;->LOCATION_UPDATE:Lcom/moji/statistics/EVENT_TAG;

    if-eqz p1, :cond_9

    const-string p1, "0"

    goto :goto_4

    :cond_9
    const-string p1, "1"

    :goto_4
    move-object v6, p1

    invoke-virtual/range {v4 .. v9}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;JLorg/json/JSONObject;)Lcom/moji/statistics/EventManager;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_5

    :catch_0
    move-exception p1

    const-string p2, "MJServerLocationWorker"

    .line 374
    invoke-static {p2, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_5
    return-void
.end method

.method static synthetic c(Lcom/moji/location/worker/MJLocationWorker;)J
    .locals 2

    .line 36
    iget-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->l:J

    return-wide v0
.end method

.method static synthetic d(Lcom/moji/location/worker/MJLocationWorker;)Lcom/moji/location/worker/CDMALocationWorker;
    .locals 0

    .line 36
    iget-object p0, p0, Lcom/moji/location/worker/MJLocationWorker;->c:Lcom/moji/location/worker/CDMALocationWorker;

    return-object p0
.end method

.method static synthetic e(Lcom/moji/location/worker/MJLocationWorker;)Lcom/moji/location/worker/GSMLocationWorker;
    .locals 0

    .line 36
    iget-object p0, p0, Lcom/moji/location/worker/MJLocationWorker;->d:Lcom/moji/location/worker/GSMLocationWorker;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/location/worker/MJLocationWorker;)Lcom/moji/location/entity/MJLocation;
    .locals 0

    .line 36
    iget-object p0, p0, Lcom/moji/location/worker/MJLocationWorker;->e:Lcom/moji/location/entity/MJLocation;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 5

    .line 149
    invoke-virtual {p0}, Lcom/moji/location/worker/MJLocationWorker;->e()V

    const/4 v0, 0x1

    .line 150
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->g:Z

    .line 151
    iget-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->b:Lcom/moji/location/worker/AbsLocationWorker;

    if-eqz v1, :cond_0

    .line 152
    iget-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->b:Lcom/moji/location/worker/AbsLocationWorker;

    invoke-virtual {v1}, Lcom/moji/location/worker/AbsLocationWorker;->a()V

    :cond_0
    const/4 v1, 0x0

    .line 154
    iput-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->b:Lcom/moji/location/worker/AbsLocationWorker;

    .line 155
    iget-object v2, p0, Lcom/moji/location/worker/MJLocationWorker;->d:Lcom/moji/location/worker/GSMLocationWorker;

    if-eqz v2, :cond_1

    .line 156
    iget-object v2, p0, Lcom/moji/location/worker/MJLocationWorker;->d:Lcom/moji/location/worker/GSMLocationWorker;

    invoke-virtual {v2}, Lcom/moji/location/worker/GSMLocationWorker;->a()V

    .line 158
    :cond_1
    iput-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->d:Lcom/moji/location/worker/GSMLocationWorker;

    .line 159
    iget-object v2, p0, Lcom/moji/location/worker/MJLocationWorker;->c:Lcom/moji/location/worker/CDMALocationWorker;

    if-eqz v2, :cond_2

    .line 160
    iget-object v2, p0, Lcom/moji/location/worker/MJLocationWorker;->c:Lcom/moji/location/worker/CDMALocationWorker;

    invoke-virtual {v2}, Lcom/moji/location/worker/CDMALocationWorker;->a()V

    .line 162
    :cond_2
    iput-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->c:Lcom/moji/location/worker/CDMALocationWorker;

    .line 164
    iget-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->f:Lcom/moji/http/lbs/ServerLocationRequest;

    if-eqz v1, :cond_3

    .line 165
    iget-object v1, p0, Lcom/moji/location/worker/MJLocationWorker;->f:Lcom/moji/http/lbs/ServerLocationRequest;

    invoke-virtual {v1}, Lcom/moji/http/lbs/ServerLocationRequest;->h_()V

    .line 167
    :cond_3
    iget-boolean v1, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    if-nez v1, :cond_5

    .line 168
    iget-boolean v1, p0, Lcom/moji/location/worker/MJLocationWorker;->i:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_4

    const-string v1, ""

    .line 169
    invoke-direct {p0, v2, v0, v1}, Lcom/moji/location/worker/MJLocationWorker;->a(ZZLjava/lang/String;)V

    .line 170
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v1

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->MOJI_LOCATION_RESULT:Lcom/moji/statistics/EVENT_TAG;

    const-string v4, "fail"

    invoke-virtual {v1, v3, v4}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :cond_4
    const-string v1, ""

    .line 172
    invoke-direct {p0, v2, v0, v1}, Lcom/moji/location/worker/MJLocationWorker;->b(ZZLjava/lang/String;)V

    .line 173
    iput-boolean v0, p0, Lcom/moji/location/worker/MJLocationWorker;->h:Z

    :cond_5
    return-void
.end method

.method public a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener<",
            "Lcom/moji/location/entity/MJLocation;",
            ">;",
            "Lcom/moji/location/options/MJLocationOptions;",
            ")V"
        }
    .end annotation

    .line 55
    invoke-virtual {p0}, Lcom/moji/location/worker/MJLocationWorker;->e()V

    .line 56
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/location/worker/MJLocationWorker;->l:J

    .line 57
    new-instance v0, Lcom/moji/location/worker/AmapLocationWorker;

    invoke-direct {v0}, Lcom/moji/location/worker/AmapLocationWorker;-><init>()V

    iput-object v0, p0, Lcom/moji/location/worker/MJLocationWorker;->b:Lcom/moji/location/worker/AbsLocationWorker;

    .line 58
    iget-object v0, p0, Lcom/moji/location/worker/MJLocationWorker;->b:Lcom/moji/location/worker/AbsLocationWorker;

    new-instance v1, Lcom/moji/location/worker/MJLocationWorker$1;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker$1;-><init>(Lcom/moji/location/worker/MJLocationWorker;Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V

    invoke-virtual {v0, p1, v1, p3}, Lcom/moji/location/worker/AbsLocationWorker;->a(Landroid/content/Context;Lcom/moji/location/MJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V

    return-void
.end method

.method public bridge synthetic a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Ljava/lang/Object;)V
    .locals 0

    .line 36
    check-cast p3, Lcom/moji/location/options/MJLocationOptions;

    invoke-virtual {p0, p1, p2, p3}, Lcom/moji/location/worker/MJLocationWorker;->a(Landroid/content/Context;Lcom/moji/location/worker/AbsLocationWorker$AbsMJLocationListener;Lcom/moji/location/options/MJLocationOptions;)V

    return-void
.end method

.method protected b()Lcom/moji/location/options/IOptionsParser;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/moji/location/options/IOptionsParser<",
            "Lcom/moji/location/options/MJLocationOptions;",
            ">;"
        }
    .end annotation

    .line 179
    new-instance v0, Lcom/moji/location/options/DefaultOptionsParser;

    invoke-direct {v0}, Lcom/moji/location/options/DefaultOptionsParser;-><init>()V

    return-object v0
.end method

.method protected c()Lcom/moji/location/entity/ILocationParser;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/moji/location/entity/ILocationParser<",
            "Lcom/moji/location/entity/MJLocation;",
            ">;"
        }
    .end annotation

    .line 184
    new-instance v0, Lcom/moji/location/entity/DefaultLocationParser;

    invoke-direct {v0}, Lcom/moji/location/entity/DefaultLocationParser;-><init>()V

    return-object v0
.end method
