DataDownloader.smali
.class public Lcom/iflytek/cloud/DataDownloader;
.super Lcom/iflytek/thirdparty/w;
.source "SourceFile"
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 2
.prologue
.line 31
invoke-direct {p0, p1}, Lcom/iflytek/thirdparty/w;-><init>(Landroid/content/Context;)V
.line 32
return-void
.end method
# virtual methods
.method public downloadData(Lcom/iflytek/cloud/SpeechListener;)I
.registers 7
.prologue
.line 41
const/4 v1, 0x0
.line 44
:try_start_1
new-instance v0, Lcom/iflytek/thirdparty/y;
iget-object v2, p0, Lcom/iflytek/cloud/DataDownloader;->mContext:Landroid/content/Context;
iget-object v3, p0, Lcom/iflytek/cloud/DataDownloader;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v4, "download"
invoke-virtual {p0, v4}, Lcom/iflytek/cloud/DataDownloader;->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/DataDownloader;->mscer:Lcom/iflytek/thirdparty/s;
.line 45
iget-object v0, p0, Lcom/iflytek/cloud/DataDownloader;->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}, Lcom/iflytek/thirdparty/y;->a(Lcom/iflytek/cloud/SpeechListener;)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 54
:goto_1f
return v0
.line 46
:catch_20
move-exception v0
move-object v1, v0
.line 47
invoke-virtual {v1}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v0
.line 48
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_1f
.line 49
:catch_2a
move-exception v0
move-object v1, v0
.line 50
const/16 v0, 0x5207
.line 51
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_1f
.end method
.method protected onFini()Z
.registers 2
.prologue
.line 59
const/4 v0, 0x1
return v0
.end method