DataUploader.smali
.class public Lcom/iflytek/cloud/DataUploader;
.super Lcom/iflytek/thirdparty/w;
.source "SourceFile"
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
.prologue
.line 30
invoke-direct {p0, p1}, Lcom/iflytek/thirdparty/w;-><init>(Landroid/content/Context;)V
.line 31
return-void
.end method
# virtual methods
.method protected onFini()Z
.registers 2
.prologue
.line 64
const/4 v0, 0x1
return v0
.end method
.method public uploadData(Lcom/iflytek/cloud/SpeechListener;Ljava/lang/String;[B)I
.registers 9
.prologue
.line 46
const/4 v1, 0x0
.line 49
:try_start_1
new-instance v0, Lcom/iflytek/thirdparty/y;
iget-object v2, p0, Lcom/iflytek/cloud/DataUploader;->mContext:Landroid/content/Context;
iget-object v3, p0, Lcom/iflytek/cloud/DataUploader;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v4, "upload"
invoke-virtual {p0, v4}, Lcom/iflytek/cloud/DataUploader;->getHandlerThread(Ljava/lang/String;)Landroid/os/HandlerThread;
move-result-object v4
invoke-direct {v0, v2, v3, v4}, Lcom/iflytek/thirdparty/y;-><init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
iput-object v0, p0, Lcom/iflytek/cloud/DataUploader;->mscer:Lcom/iflytek/thirdparty/s;
.line 50
iget-object v0, p0, Lcom/iflytek/cloud/DataUploader;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/y;
new-instance v2, Lcom/iflytek/thirdparty/w$a;
invoke-direct {v2, p0, p1}, Lcom/iflytek/thirdparty/w$a;-><init>(Lcom/iflytek/thirdparty/w;Lcom/iflytek/cloud/SpeechListener;)V
invoke-virtual {v0, v2, p2, p3}, Lcom/iflytek/thirdparty/y;->a(Lcom/iflytek/cloud/SpeechListener;Ljava/lang/String;[B)V
:try_end_1e
.catch Lcom/iflytek/cloud/SpeechError; {:try_start_1 .. :try_end_1e} :catch_20
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1e} :catch_2a
move v0, v1
.line 59
:goto_1f
return v0
.line 51
:catch_20
move-exception v0
move-object v1, v0
.line 52
invoke-virtual {v1}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v0
.line 53
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_1f
.line 54
:catch_2a
move-exception v0
move-object v1, v0
.line 55
const/16 v0, 0x5207
.line 56
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_1f
.end method