c.smali
.class Lcom/baidu/lbsapi/auth/c;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/baidu/lbsapi/auth/c$a;
}
.end annotation
# instance fields
.field private a:Landroid/content/Context;
.field private b:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private c:Lcom/baidu/lbsapi/auth/c$a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/baidu/lbsapi/auth/c$a",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method protected constructor <init>(Landroid/content/Context;)V
.registers 3
const/4 v0, 0x0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lcom/baidu/lbsapi/auth/c;->b:Ljava/util/HashMap;
iput-object v0, p0, Lcom/baidu/lbsapi/auth/c;->c:Lcom/baidu/lbsapi/auth/c$a;
iput-object p1, p0, Lcom/baidu/lbsapi/auth/c;->a:Landroid/content/Context;
return-void
.end method
.method static synthetic a(Lcom/baidu/lbsapi/auth/c;)Landroid/content/Context;
.registers 2
iget-object v0, p0, Lcom/baidu/lbsapi/auth/c;->a:Landroid/content/Context;
return-object v0
.end method
.method private a(Ljava/util/HashMap;)Ljava/util/HashMap;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/HashMap",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)",
"Ljava/util/HashMap",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
invoke-virtual {p1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_d
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_25
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {v0}, Ljava/lang/String;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
invoke-virtual {v1, v0, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_d
:cond_25
return-object v1
.end method
.method static synthetic a(Lcom/baidu/lbsapi/auth/c;Ljava/lang/String;)V
.registers 2
invoke-direct {p0, p1}, Lcom/baidu/lbsapi/auth/c;->a(Ljava/lang/String;)V
return-void
.end method
.method private a(Ljava/lang/String;)V
.registers 5
if-nez p1, :cond_4
const-string p1, ""
:cond_4
:try_start_4
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
const-string v1, "status"
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z
move-result v1
if-nez v1, :cond_17
const-string v1, "status"
const/4 v2, -0x1
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_17
.catch Lorg/json/JSONException; {:try_start_4 .. :try_end_17} :catch_27
:cond_17
:goto_17
iget-object v1, p0, Lcom/baidu/lbsapi/auth/c;->c:Lcom/baidu/lbsapi/auth/c$a;
if-eqz v1, :cond_26
iget-object v1, p0, Lcom/baidu/lbsapi/auth/c;->c:Lcom/baidu/lbsapi/auth/c$a;
if-eqz v0, :cond_39
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
:goto_23
invoke-interface {v1, v0}, Lcom/baidu/lbsapi/auth/c$a;->a(Ljava/lang/Object;)V
:cond_26
return-void
:catch_27
move-exception v0
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_start_2d
const-string v1, "status"
const/4 v2, -0x1
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_33
.catch Lorg/json/JSONException; {:try_start_2d .. :try_end_33} :catch_34
goto :goto_17
:catch_34
move-exception v1
invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_17
:cond_39
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_23
.end method
.method static synthetic b(Lcom/baidu/lbsapi/auth/c;)Ljava/util/HashMap;
.registers 2
iget-object v0, p0, Lcom/baidu/lbsapi/auth/c;->b:Ljava/util/HashMap;
return-object v0
.end method
# virtual methods
.method protected a(Ljava/util/HashMap;Lcom/baidu/lbsapi/auth/c$a;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/HashMap",
"<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;",
"Lcom/baidu/lbsapi/auth/c$a",
"<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
invoke-direct {p0, p1}, Lcom/baidu/lbsapi/auth/c;->a(Ljava/util/HashMap;)Ljava/util/HashMap;
move-result-object v0
iput-object v0, p0, Lcom/baidu/lbsapi/auth/c;->b:Ljava/util/HashMap;
iput-object p2, p0, Lcom/baidu/lbsapi/auth/c;->c:Lcom/baidu/lbsapi/auth/c$a;
new-instance v0, Ljava/lang/Thread;
new-instance v1, Lcom/baidu/lbsapi/auth/d;
invoke-direct {v1, p0}, Lcom/baidu/lbsapi/auth/d;-><init>(Lcom/baidu/lbsapi/auth/c;)V
invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
invoke-virtual {v0}, Ljava/lang/Thread;->start()V
return-void
.end method