2026-07-06 19:54:44 +08:00

370 lines
8.1 KiB
Smali

.class public Lcom/iflytek/speech/SpeechUnderstanderAidl;
.super Lcom/iflytek/speech/SpeechModuleAidl;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/iflytek/speech/SpeechModuleAidl<",
"Lcom/iflytek/speech/aidl/ISpeechUnderstander;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/iflytek/cloud/InitListener;)V
.locals 1
const-string v0, "com.iflytek.vflynote.speechunderstand"
.line 1
invoke-direct {p0, p1, p2, v0}, Lcom/iflytek/speech/SpeechModuleAidl;-><init>(Landroid/content/Context;Lcom/iflytek/cloud/InitListener;Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public cancel(Lcom/iflytek/speech/SpeechUnderstanderListener;)I
.locals 1
.line 1
iget-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
if-nez v0, :cond_0
const/16 p1, 0x520b
return p1
:cond_0
if-nez p1, :cond_1
const/16 p1, 0x4e2c
return p1
.line 7
:cond_1
:try_start_0
check-cast v0, Lcom/iflytek/speech/aidl/ISpeechUnderstander;
invoke-interface {v0, p1}, Lcom/iflytek/speech/aidl/ISpeechUnderstander;->cancel(Lcom/iflytek/speech/SpeechUnderstanderListener;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/4 p1, 0x0
return p1
:catch_0
move-exception p1
.line 12
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
:catch_1
move-exception p1
.line 13
invoke-static {p1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:goto_0
const/16 p1, 0x520c
return p1
.end method
.method public bridge synthetic destory()Z
.locals 1
.line 1
invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->destory()Z
move-result v0
return v0
.end method
.method public bridge synthetic getIntent()Landroid/content/Intent;
.locals 1
.line 1
invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->getIntent()Landroid/content/Intent;
move-result-object v0
return-object v0
.end method
.method public getParameter(Ljava/lang/String;)Ljava/lang/String;
.locals 0
.line 1
invoke-super {p0, p1}, Lcom/iflytek/speech/SpeechModuleAidl;->getParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic isActionInstalled(Landroid/content/Context;Ljava/lang/String;)Z
.locals 0
.line 1
invoke-super {p0, p1, p2}, Lcom/iflytek/speech/SpeechModuleAidl;->isActionInstalled(Landroid/content/Context;Ljava/lang/String;)Z
move-result p1
return p1
.end method
.method public bridge synthetic isAvailable()Z
.locals 1
.line 1
invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->isAvailable()Z
move-result v0
return v0
.end method
.method public isUnderstanding()Z
.locals 1
.line 1
:try_start_0
iget-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
if-eqz v0, :cond_0
.line 2
check-cast v0, Lcom/iflytek/speech/aidl/ISpeechUnderstander;
invoke-interface {v0}, Lcom/iflytek/speech/aidl/ISpeechUnderstander;->isUnderstanding()Z
move-result v0
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v0
.line 6
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
:catch_1
move-exception v0
.line 7
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:cond_0
:goto_0
const/4 v0, 0x0
:goto_1
return v0
.end method
.method public setParameter(Ljava/lang/String;Ljava/lang/String;)I
.locals 0
.line 1
invoke-super {p0, p1, p2}, Lcom/iflytek/speech/SpeechModuleAidl;->setParameter(Ljava/lang/String;Ljava/lang/String;)I
move-result p1
return p1
.end method
.method public startUnderstanding(Lcom/iflytek/speech/SpeechUnderstanderListener;)I
.locals 2
.line 1
iget-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
if-nez v0, :cond_0
const/16 p1, 0x520b
return p1
:cond_0
if-nez p1, :cond_1
const/16 p1, 0x4e2c
return p1
.line 7
:cond_1
:try_start_0
check-cast v0, Lcom/iflytek/speech/aidl/ISpeechUnderstander;
invoke-virtual {p0}, Lcom/iflytek/speech/SpeechUnderstanderAidl;->getIntent()Landroid/content/Intent;
move-result-object v1
invoke-interface {v0, v1, p1}, Lcom/iflytek/speech/aidl/ISpeechUnderstander;->startUnderstanding(Landroid/content/Intent;Lcom/iflytek/speech/SpeechUnderstanderListener;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/4 p1, 0x0
return p1
:catch_0
move-exception p1
.line 12
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
:catch_1
move-exception p1
.line 13
invoke-static {p1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:goto_0
const/16 p1, 0x520c
return p1
.end method
.method public stopUnderstanding(Lcom/iflytek/speech/SpeechUnderstanderListener;)I
.locals 1
.line 1
iget-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
if-nez v0, :cond_0
const/16 p1, 0x520b
return p1
:cond_0
if-nez p1, :cond_1
const/16 p1, 0x4e2c
return p1
.line 7
:cond_1
:try_start_0
check-cast v0, Lcom/iflytek/speech/aidl/ISpeechUnderstander;
invoke-interface {v0, p1}, Lcom/iflytek/speech/aidl/ISpeechUnderstander;->stopUnderstanding(Lcom/iflytek/speech/SpeechUnderstanderListener;)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
const/4 p1, 0x0
return p1
:catch_0
move-exception p1
.line 12
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
:catch_1
move-exception p1
.line 13
invoke-static {p1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:goto_0
const/16 p1, 0x520c
return p1
.end method
.method public writeAudio([BII)I
.locals 3
.line 1
invoke-static {}, Lcom/iflytek/cloud/SpeechUtility;->getUtility()Lcom/iflytek/cloud/SpeechUtility;
move-result-object v0
invoke-virtual {v0}, Lcom/iflytek/cloud/SpeechUtility;->getServiceVersion()I
move-result v0
const/16 v1, 0x2c
if-ge v0, v1, :cond_0
const/16 p1, 0x4e32
return p1
.line 5
:cond_0
iget-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
if-nez v0, :cond_1
const/16 p1, 0x520b
return p1
:cond_1
const/4 v0, 0x0
.line 9
:try_start_0
invoke-virtual {p0}, Lcom/iflytek/speech/SpeechUnderstanderAidl;->getIntent()Landroid/content/Intent;
move-result-object v1
.line 10
iget-object v2, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface;
check-cast v2, Lcom/iflytek/speech/aidl/ISpeechUnderstander;
invoke-interface {v2, v1, p1, p2, p3}, Lcom/iflytek/speech/aidl/ISpeechUnderstander;->writeAudio(Landroid/content/Intent;[BII)V
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return v0
:catch_0
move-exception p1
.line 15
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
:catch_1
move-exception p1
.line 16
invoke-static {p1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:goto_0
return v0
.end method