.class public Lcom/iflytek/speech/SpeechRecognizerAidl; .super Lcom/iflytek/speech/SpeechModuleAidl; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Lcom/iflytek/speech/SpeechModuleAidl<", "Lcom/iflytek/speech/aidl/ISpeechRecognizer;", ">;" } .end annotation # direct methods .method public constructor (Landroid/content/Context;Lcom/iflytek/cloud/InitListener;)V .locals 1 const-string v0, "com.iflytek.vflynote.recognize" .line 1 invoke-direct {p0, p1, p2, v0}, Lcom/iflytek/speech/SpeechModuleAidl;->(Landroid/content/Context;Lcom/iflytek/cloud/InitListener;Ljava/lang/String;)V return-void .end method # virtual methods .method public buildGrammar(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/speech/GrammarListener;)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 p3, :cond_1 const/16 p1, 0x4e2c return p1 .line 7 :cond_1 :try_start_0 invoke-virtual {p0}, Lcom/iflytek/speech/SpeechRecognizerAidl;->getIntent()Landroid/content/Intent; move-result-object v0 const-string v1, "grammar_type" .line 8 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p1, "grammar_content" .line 9 invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 10 iget-object p1, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface; check-cast p1, Lcom/iflytek/speech/aidl/ISpeechRecognizer; invoke-interface {p1, v0, p3}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->buildGrammar(Landroid/content/Intent;Lcom/iflytek/speech/GrammarListener;)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 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 const/16 p1, 0x520c return p1 .end method .method public cancel(Lcom/iflytek/speech/RecognizerListener;)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/ISpeechRecognizer; invoke-interface {v0, p1}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->cancel(Lcom/iflytek/speech/RecognizerListener;)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 destory()Z .locals 1 const/4 v0, 0x0 .line 1 iput-object v0, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface; .line 2 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 isListening()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/ISpeechRecognizer; invoke-interface {v0}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->isListening()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 startListening(Lcom/iflytek/speech/RecognizerListener;)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/ISpeechRecognizer; invoke-virtual {p0}, Lcom/iflytek/speech/SpeechRecognizerAidl;->getIntent()Landroid/content/Intent; move-result-object v1 invoke-interface {v0, v1, p1}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->startListening(Landroid/content/Intent;Lcom/iflytek/speech/RecognizerListener;)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 stopListening(Lcom/iflytek/speech/RecognizerListener;)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/ISpeechRecognizer; invoke-interface {v0, p1}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->stopListening(Lcom/iflytek/speech/RecognizerListener;)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 updateLexicon(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/speech/LexiconListener;)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 p3, :cond_1 const/16 p1, 0x4e2c return p1 .line 7 :cond_1 :try_start_0 invoke-virtual {p0}, Lcom/iflytek/speech/SpeechRecognizerAidl;->getIntent()Landroid/content/Intent; move-result-object v0 const-string v1, "lexicon_name" .line 8 invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; const-string p1, "lexicon_content" .line 9 invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; .line 10 iget-object p1, p0, Lcom/iflytek/speech/SpeechModuleAidl;->mService:Landroid/os/IInterface; check-cast p1, Lcom/iflytek/speech/aidl/ISpeechRecognizer; invoke-interface {p1, v0, p3}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->updateLexicon(Landroid/content/Intent;Lcom/iflytek/speech/LexiconListener;)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 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 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/SpeechRecognizerAidl;->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/ISpeechRecognizer; invoke-interface {v2, v1, p1, p2, p3}, Lcom/iflytek/speech/aidl/ISpeechRecognizer;->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