VoiceWakeuperAidl.smali

.class public Lcom/iflytek/speech/VoiceWakeuperAidl;
.super Lcom/iflytek/speech/SpeechModuleAidl;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/iflytek/speech/SpeechModuleAidl",
        "<",
        "Lcom/iflytek/speech/aidl/IWakeuper;",
        ">;"
    }
.end annotation


# static fields
.field public static final ARG_RES_PROVIDER_AUTHORITY:Ljava/lang/String; = "content_provider_name"

.field public static final ARG_RES_TYPE:Ljava/lang/String; = "engine_res_type"

.field public static final IVP_RES_ID:Ljava/lang/String; = "ivp_res_id"

.field public static final IVP_USER_NAME:Ljava/lang/String; = "ivp_user_name"

.field public static final IVW_AND_IVP:Ljava/lang/String; = "ivw_and_ivp"

.field public static final IVW_FILES:Ljava/lang/String; = "ivw_files"

.field public static final IVW_THRESHOLD:Ljava/lang/String; = "ivw_threshold"

.field public static final IVW_WORD_ID:Ljava/lang/String; = "ivw_word_id"

.field public static final PARAMS_SEPARATE:Ljava/lang/String; = ";"

.field public static final PROVIDER_NAME:Ljava/lang/String; = "com.iflytek.speech.SharedProvider"

.field public static final RES_FROM_ASSETS:I = 0x101

.field public static final RES_FROM_CLIENT:I = 0x103

.field public static final RES_SPECIFIED:I = 0x102

.field public static final WAKEUP_RESULT_ID:Ljava/lang/String; = "wakeup_result_id"

.field public static final WAKEUP_RESULT_SCORE:Ljava/lang/String; = "wakeup_result_Score"


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/iflytek/cloud/InitListener;)V
    .registers 4

    .prologue
    .line 85
    const-string v0, "com.iflytek.vflynote.wakeup"

    invoke-direct {p0, p1, p2, v0}, Lcom/iflytek/speech/SpeechModuleAidl;-><init>(Landroid/content/Context;Lcom/iflytek/cloud/InitListener;Ljava/lang/String;)V

    .line 86
    return-void
.end method


# virtual methods
.method public cancel(Lcom/iflytek/speech/WakeuperListener;)I
    .registers 3

    .prologue
    .line 119
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    if-nez v0, :cond_7

    .line 120
    const/16 v0, 0x520b

    .line 132
    :goto_6
    return v0

    .line 122
    :cond_7
    if-nez p1, :cond_c

    .line 123
    const/16 v0, 0x4e2c

    goto :goto_6

    .line 125
    :cond_c
    :try_start_c
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    check-cast v0, Lcom/iflytek/speech/aidl/IWakeuper;

    invoke-interface {v0, p1}, Lcom/iflytek/speech/aidl/IWakeuper;->cancel(Lcom/iflytek/speech/WakeuperListener;)V
    :try_end_13
    .catch Landroid/os/RemoteException; {:try_start_c .. :try_end_13} :catch_15
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_13} :catch_1c

    .line 126
    const/4 v0, 0x0

    goto :goto_6

    .line 127
    :catch_15
    move-exception v0

    .line 128
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 132
    :goto_19
    const/16 v0, 0x520c

    goto :goto_6

    .line 129
    :catch_1c
    move-exception v0

    .line 130
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_19
.end method

.method public bridge synthetic destory()Z
    .registers 2

    .prologue
    .line 16
    invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->destory()Z

    move-result v0

    return v0
.end method

.method public destroy()Z
    .registers 2

    .prologue
    .line 145
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    if-nez v0, :cond_6

    .line 146
    const/4 v0, 0x0

    .line 155
    :goto_5
    return v0

    .line 149
    :cond_6
    :try_start_6
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    check-cast v0, Lcom/iflytek/speech/aidl/IWakeuper;

    invoke-interface {v0}, Lcom/iflytek/speech/aidl/IWakeuper;->destroy()V
    :try_end_d
    .catch Landroid/os/RemoteException; {:try_start_6 .. :try_end_d} :catch_12
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_d} :catch_17

    .line 155
    :goto_d
    invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->destory()Z

    move-result v0

    goto :goto_5

    .line 150
    :catch_12
    move-exception v0

    .line 151
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    goto :goto_d

    .line 152
    :catch_17
    move-exception v0

    .line 153
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_d
.end method

.method public bridge synthetic getIntent()Landroid/content/Intent;
    .registers 2

    .prologue
    .line 16
    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;
    .registers 3

    .prologue
    .line 204
    invoke-super {p0, p1}, Lcom/iflytek/speech/SpeechModuleAidl;->getParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic isActionInstalled(Landroid/content/Context;Ljava/lang/String;)Z
    .registers 4

    .prologue
    .line 16
    invoke-super {p0, p1, p2}, Lcom/iflytek/speech/SpeechModuleAidl;->isActionInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public bridge synthetic isAvailable()Z
    .registers 2

    .prologue
    .line 16
    invoke-super {p0}, Lcom/iflytek/speech/SpeechModuleAidl;->isAvailable()Z

    move-result v0

    return v0
.end method

.method public isListening()Z
    .registers 3

    .prologue
    .line 163
    const/4 v1, 0x0

    .line 165
    :try_start_1
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    check-cast v0, Lcom/iflytek/speech/aidl/IWakeuper;

    invoke-interface {v0}, Lcom/iflytek/speech/aidl/IWakeuper;->isListening()Z
    :try_end_8
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_8} :catch_a
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_8} :catch_10

    move-result v0

    .line 171
    :goto_9
    return v0

    .line 166
    :catch_a
    move-exception v0

    .line 167
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    move v0, v1

    .line 170
    goto :goto_9

    .line 168
    :catch_10
    move-exception v0

    .line 169
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    move v0, v1

    goto :goto_9
.end method

.method public setParameter(Ljava/lang/String;Ljava/lang/String;)I
    .registers 4

    .prologue
    .line 192
    invoke-super {p0, p1, p2}, Lcom/iflytek/speech/SpeechModuleAidl;->setParameter(Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    return v0
.end method

.method public startListening(Lcom/iflytek/speech/WakeuperListener;)I
    .registers 4

    .prologue
    .line 94
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    if-nez v0, :cond_7

    .line 95
    const/16 v0, 0x520b

    .line 107
    :goto_6
    return v0

    .line 97
    :cond_7
    if-nez p1, :cond_c

    .line 98
    const/16 v0, 0x4e2c

    goto :goto_6

    .line 100
    :cond_c
    :try_start_c
    iget-object v0, p0, Lcom/iflytek/speech/VoiceWakeuperAidl;->mService:Landroid/os/IInterface;

    check-cast v0, Lcom/iflytek/speech/aidl/IWakeuper;

    invoke-virtual {p0}, Lcom/iflytek/speech/VoiceWakeuperAidl;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-interface {v0, v1, p1}, Lcom/iflytek/speech/aidl/IWakeuper;->startListening(Landroid/content/Intent;Lcom/iflytek/speech/WakeuperListener;)V
    :try_end_17
    .catch Landroid/os/RemoteException; {:try_start_c .. :try_end_17} :catch_19
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_17} :catch_20

    .line 101
    const/4 v0, 0x0

    goto :goto_6

    .line 102
    :catch_19
    move-exception v0

    .line 103
    invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V

    .line 107
    :goto_1d
    const/16 v0, 0x520c

    goto :goto_6

    .line 104
    :catch_20
    move-exception v0

    .line 105
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1d
.end method