u.smali
.class public Lcom/iflytek/thirdparty/u;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field a:Lorg/json/JSONObject;
.field b:J
.field c:J
# direct methods
.method public constructor <init>()V
.registers 5
.prologue
const-wide/16 v2, 0x0
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 25
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
iput-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
.line 28
iput-wide v2, p0, Lcom/iflytek/thirdparty/u;->b:J
.line 30
iput-wide v2, p0, Lcom/iflytek/thirdparty/u;->c:J
return-void
.end method
# virtual methods
.method public declared-synchronized a()Ljava/lang/String;
.registers 2
.prologue
.line 134
monitor-enter p0
:try_start_1
iget-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
:try_end_6
.catchall {:try_start_1 .. :try_end_6} :catchall_9
move-result-object v0
monitor-exit p0
return-object v0
:catchall_9
move-exception v0
monitor-exit p0
throw v0
.end method
.method public a(Lcom/iflytek/thirdparty/ad;)V
.registers 7
.prologue
const/4 v4, 0x0
.line 39
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/iflytek/thirdparty/u;->c:J
.line 40
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iput-wide v0, p0, Lcom/iflytek/thirdparty/u;->b:J
.line 41
const-string v0, "app_start"
iget-wide v2, p0, Lcom/iflytek/thirdparty/u;->c:J
invoke-static {v2, v3}, Lcom/iflytek/cloud/msc/util/DataUtil;->getComplexDateTime(J)Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v0, v1, v4}, Lcom/iflytek/thirdparty/u;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 42
const-string v0, "caller.appid"
invoke-virtual {p1, v0}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 43
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_29
.line 44
const-string v1, "app_caller_appid"
invoke-virtual {p0, v1, v0, v4}, Lcom/iflytek/thirdparty/u;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 46
:cond_29
const/4 v0, 0x0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/AppInfoUtil;->getAppInfo(Landroid/content/Context;)Lcom/iflytek/thirdparty/ad;
move-result-object v0
.line 48
const-string v1, "app.ver.code"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 49
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_3f
.line 50
const-string v1, "app_cver"
invoke-virtual {p0, v1, v0, v4}, Lcom/iflytek/thirdparty/u;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 51
:cond_3f
return-void
.end method
.method public declared-synchronized a(Ljava/lang/String;)V
.registers 6
.prologue
.line 58
monitor-enter p0
:try_start_1
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iget-wide v2, p0, Lcom/iflytek/thirdparty/u;->b:J
sub-long/2addr v0, v2
const/4 v2, 0x0
invoke-virtual {p0, p1, v0, v1, v2}, Lcom/iflytek/thirdparty/u;->a(Ljava/lang/String;JZ)V
:try_end_c
.catchall {:try_start_1 .. :try_end_c} :catchall_e
.line 59
monitor-exit p0
return-void
.line 58
:catchall_e
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized a(Ljava/lang/String;JZ)V
.registers 7
.prologue
.line 78
monitor-enter p0
:try_start_1
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
:try_end_4
.catchall {:try_start_1 .. :try_end_4} :catchall_16
move-result v0
if-eqz v0, :cond_9
.line 99
:cond_7
:goto_7
monitor-exit p0
return-void
.line 81
:cond_9
if-nez p4, :cond_19
.line 82
:try_start_b
iget-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
:try_end_10
.catch Lorg/json/JSONException; {:try_start_b .. :try_end_10} :catch_11
.catchall {:try_start_b .. :try_end_10} :catchall_16
goto :goto_7
.line 96
:catch_11
move-exception v0
.line 97
:try_start_12
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:try_end_15
.catchall {:try_start_12 .. :try_end_15} :catchall_16
goto :goto_7
.line 78
:catchall_16
move-exception v0
monitor-exit p0
throw v0
.line 85
:cond_19
:try_start_19
iget-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v0
.line 86
if-nez v0, :cond_2b
.line 87
new-instance v0, Lorg/json/JSONArray;
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
.line 88
iget-object v1, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v1, p1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 91
:cond_2b
if-eqz v0, :cond_7
.line 92
invoke-virtual {v0, p2, p3}, Lorg/json/JSONArray;->put(J)Lorg/json/JSONArray;
:try_end_30
.catch Lorg/json/JSONException; {:try_start_19 .. :try_end_30} :catch_11
.catchall {:try_start_19 .. :try_end_30} :catchall_16
goto :goto_7
.end method
.method public declared-synchronized a(Ljava/lang/String;Ljava/lang/String;Z)V
.registers 6
.prologue
.line 109
monitor-enter p0
:try_start_1
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_d
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
:try_end_a
.catchall {:try_start_1 .. :try_end_a} :catchall_1c
move-result v0
if-eqz v0, :cond_f
.line 130
:cond_d
:goto_d
monitor-exit p0
return-void
.line 112
:cond_f
if-nez p3, :cond_1f
.line 113
:try_start_11
iget-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_16
.catch Lorg/json/JSONException; {:try_start_11 .. :try_end_16} :catch_17
.catchall {:try_start_11 .. :try_end_16} :catchall_1c
goto :goto_d
.line 127
:catch_17
move-exception v0
.line 128
:try_start_18
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:try_end_1b
.catchall {:try_start_18 .. :try_end_1b} :catchall_1c
goto :goto_d
.line 109
:catchall_1c
move-exception v0
monitor-exit p0
throw v0
.line 116
:cond_1f
:try_start_1f
iget-object v0, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v0, p1}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
move-result-object v0
.line 117
if-nez v0, :cond_31
.line 118
new-instance v0, Lorg/json/JSONArray;
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
.line 119
iget-object v1, p0, Lcom/iflytek/thirdparty/u;->a:Lorg/json/JSONObject;
invoke-virtual {v1, p1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
.line 122
:cond_31
if-eqz v0, :cond_d
.line 123
invoke-virtual {v0, p2}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
:try_end_36
.catch Lorg/json/JSONException; {:try_start_1f .. :try_end_36} :catch_17
.catchall {:try_start_1f .. :try_end_36} :catchall_1c
goto :goto_d
.end method