k.smali
.class public Lcom/iflytek/thirdparty/k;
.super Lcom/iflytek/thirdparty/s;
.source "SourceFile"
# interfaces
.implements Lcom/iflytek/cloud/record/PcmRecorder$PcmRecordListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/iflytek/thirdparty/k$a;
}
.end annotation
# instance fields
.field public a:Ljava/lang/String;
.field protected volatile b:Lcom/iflytek/cloud/WakeuperListener;
.field protected c:Z
.field protected d:I
.field protected e:Lcom/iflytek/thirdparty/j;
.field protected f:Lcom/iflytek/cloud/record/PcmRecorder;
.field protected g:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public h:Z
.field public i:Z
.field protected final j:Ljava/util/concurrent/ConcurrentLinkedQueue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ConcurrentLinkedQueue",
"<[B>;"
}
.end annotation
.end field
.field protected final k:I
.field protected l:Ljava/lang/String;
.field protected m:I
.field protected n:I
.field protected o:Z
.field protected final p:I
.field protected q:I
.field protected r:J
.field protected s:J
.field protected t:J
.field protected final u:I
.field protected v:I
.field private w:Z
.field private x:I
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
.registers 10
.prologue
const-wide/16 v4, 0x0
const/4 v2, 0x0
const/4 v1, 0x0
.line 111
invoke-direct {p0, p1, p3}, Lcom/iflytek/thirdparty/s;-><init>(Landroid/content/Context;Landroid/os/HandlerThread;)V
.line 73
iput-object v2, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
.line 76
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->c:Z
.line 78
const/4 v0, 0x1
iput v0, p0, Lcom/iflytek/thirdparty/k;->d:I
.line 80
new-instance v0, Lcom/iflytek/thirdparty/j;
invoke-direct {v0}, Lcom/iflytek/thirdparty/j;-><init>()V
iput-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
.line 81
iput-object v2, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
.line 83
iput-object v2, p0, Lcom/iflytek/thirdparty/k;->g:Ljava/util/ArrayList;
.line 86
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->h:Z
.line 88
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->i:Z
.line 91
new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
iput-object v0, p0, Lcom/iflytek/thirdparty/k;->j:Ljava/util/concurrent/ConcurrentLinkedQueue;
.line 92
const v0, 0xea60
iput v0, p0, Lcom/iflytek/thirdparty/k;->k:I
.line 93
iput-object v2, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
.line 94
iput v1, p0, Lcom/iflytek/thirdparty/k;->m:I
.line 95
iput v1, p0, Lcom/iflytek/thirdparty/k;->n:I
.line 97
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->o:Z
.line 99
const/16 v0, 0x7d0
iput v0, p0, Lcom/iflytek/thirdparty/k;->p:I
.line 100
iput v1, p0, Lcom/iflytek/thirdparty/k;->q:I
.line 101
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
.line 102
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->s:J
.line 103
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->t:J
.line 105
const/16 v0, 0x64
iput v0, p0, Lcom/iflytek/thirdparty/k;->u:I
.line 106
iput v1, p0, Lcom/iflytek/thirdparty/k;->v:I
.line 108
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->w:Z
.line 207
iput v1, p0, Lcom/iflytek/thirdparty/k;->x:I
.line 112
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->c:Z
.line 113
invoke-virtual {p0, p2}, Lcom/iflytek/thirdparty/k;->setParams(Lcom/iflytek/thirdparty/ad;)V
.line 114
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/iflytek/thirdparty/k;->g:Ljava/util/ArrayList;
.line 115
return-void
.end method
.method private a(I[B)D
.registers 11
.prologue
const-wide/high16 v6, 0x4034000000000000L # 20.0
.line 804
const-wide/16 v2, 0x0
.line 806
array-length v1, p2
const/4 v0, 0x0
:goto_6
if-ge v0, v1, :cond_10
aget-byte v4, p2, v0
.line 807
mul-int/2addr v4, v4
int-to-long v4, v4
add-long/2addr v2, v4
.line 806
add-int/lit8 v0, v0, 0x1
goto :goto_6
.line 810
:cond_10
long-to-double v0, v2
int-to-double v2, p1
div-double/2addr v0, v2
.line 812
const-wide/high16 v2, 0x4024000000000000L # 10.0
invoke-static {v0, v1}, Ljava/lang/Math;->log10(D)D
move-result-wide v0
mul-double/2addr v0, v2
.line 813
cmpl-double v2, v0, v6
if-lez v2, :cond_1f
.line 814
sub-double/2addr v0, v6
.line 816
:cond_1f
return-wide v0
.end method
.method private a(Z[BILandroid/os/Bundle;)V
.registers 13
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/iflytek/cloud/SpeechError;,
Ljava/io/UnsupportedEncodingException;
}
.end annotation
.prologue
const/4 v1, 0x1
const/4 v3, 0x0
const/16 v7, 0x2786
const/4 v2, 0x0
.line 499
if-ne p3, v1, :cond_90
.line 502
if-eqz p2, :cond_5d
array-length v0, p2
if-lez v0, :cond_5d
.line 504
new-instance v0, Ljava/lang/String;
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getResultEncoding()Ljava/lang/String;
move-result-object v4
invoke-direct {v0, p2, v4}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 524
:goto_15
iget-object v4, p0, Lcom/iflytek/thirdparty/k;->g:Ljava/util/ArrayList;
invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 525
iget-object v4, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v4, :cond_3d
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v4
if-eqz v4, :cond_3d
.line 527
new-instance v4, Landroid/os/Bundle;
invoke-direct {v4}, Landroid/os/Bundle;-><init>()V
.line 528
const-string v5, "rec_result"
new-instance v6, Lcom/iflytek/cloud/RecognizerResult;
invoke-direct {v6, v0}, Lcom/iflytek/cloud/RecognizerResult;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v5, v6}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
.line 529
iget-object v5, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
const/16 v6, 0x55f1
if-eqz p1, :cond_8e
move v0, v1
:goto_3a
invoke-interface {v5, v6, v0, v2, v4}, Lcom/iflytek/cloud/WakeuperListener;->onEvent(IIILandroid/os/Bundle;)V
.line 531
:cond_3d
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "msc result time:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 610
:cond_57
:goto_57
if-eqz p1, :cond_5c
.line 612
invoke-virtual {p0, v3}, Lcom/iflytek/thirdparty/k;->exit(Lcom/iflytek/cloud/SpeechError;)V
.line 614
:cond_5c
return-void
.line 506
:cond_5d
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->g:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_8b
.line 509
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "local_grammar"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 510
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_85
const-string v1, "sms.irf"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_85
.line 512
new-instance v0, Lcom/iflytek/cloud/SpeechError;
const/16 v1, 0x4e25
invoke-direct {v0, v1}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
.line 516
:cond_85
new-instance v0, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v0, v7}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
.line 521
:cond_8b
const-string v0, ""
goto :goto_15
:cond_8e
move v0, v2
.line 529
goto :goto_3a
.line 534
:cond_90
if-nez p3, :cond_c6
.line 537
if-eqz p2, :cond_c0
array-length v0, p2
if-lez v0, :cond_c0
.line 539
new-instance v1, Ljava/lang/String;
const-string v0, "utf-8"
invoke-direct {v1, p2, v0}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 546
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v0, :cond_57
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v0
if-eqz v0, :cond_57
.line 550
if-eqz p4, :cond_12e
.line 551
const-string v0, "ivw_audio"
invoke-virtual {p4, v0}, Landroid/os/Bundle;->getByteArray(Ljava/lang/String;)[B
move-result-object v0
.line 553
:goto_b0
new-instance v2, Lcom/iflytek/cloud/WakeuperResult;
invoke-direct {v2, v1, v0}, Lcom/iflytek/cloud/WakeuperResult;-><init>(Ljava/lang/String;[B)V
.line 554
const-string v0, "GetNotifyResult"
invoke-static {v0, v3}, Lcom/iflytek/cloud/msc/util/log/PerfLogger;->appendInfo(Ljava/lang/String;Ljava/lang/String;)V
.line 555
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v0, v2}, Lcom/iflytek/cloud/WakeuperListener;->onResult(Lcom/iflytek/cloud/WakeuperResult;)V
goto :goto_57
.line 543
:cond_c0
new-instance v0, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v0, v7}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
.line 560
:cond_c6
const/4 v0, 0x2
if-ne p3, v0, :cond_57
.line 565
if-eqz p2, :cond_11f
array-length v0, p2
if-lez v0, :cond_11f
.line 567
new-instance v0, Ljava/lang/String;
const-string v4, "utf-8"
invoke-direct {v0, p2, v4}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 574
iget-object v4, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v5, "enroll"
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_104
.line 576
iget-object v4, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v4, :cond_ed
.line 579
new-instance v4, Lcom/iflytek/cloud/WakeuperResult;
invoke-direct {v4, v0}, Lcom/iflytek/cloud/WakeuperResult;-><init>(Ljava/lang/String;)V
.line 580
iget-object v5, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v5, v4}, Lcom/iflytek/cloud/WakeuperListener;->onResult(Lcom/iflytek/cloud/WakeuperResult;)V
.line 584
:cond_ed
:try_start_ed
new-instance v4, Lorg/json/JSONObject;
invoke-direct {v4, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 586
const-string v5, "suc_times"
invoke-virtual {v4, v5}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v5
const-string v6, "total_times"
invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v4
if-eq v5, v4, :cond_125
.line 588
const/4 v1, 0x0
invoke-virtual {p0, v1}, Lcom/iflytek/thirdparty/k;->sendMsg(I)V
:try_end_104
.catch Ljava/lang/Exception; {:try_start_ed .. :try_end_104} :catch_127
.line 600
:cond_104
:goto_104
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v1, :cond_57
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v1
if-eqz v1, :cond_57
.line 603
new-instance v1, Lcom/iflytek/cloud/WakeuperResult;
invoke-direct {v1, v0}, Lcom/iflytek/cloud/WakeuperResult;-><init>(Ljava/lang/String;)V
.line 604
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v0, v1}, Lcom/iflytek/cloud/WakeuperListener;->onResult(Lcom/iflytek/cloud/WakeuperResult;)V
.line 605
if-eqz v2, :cond_57
.line 606
invoke-virtual {p0, v3}, Lcom/iflytek/thirdparty/k;->exit(Lcom/iflytek/cloud/SpeechError;)V
goto/16 :goto_57
.line 571
:cond_11f
new-instance v0, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v0, v7}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
:cond_125
move v2, v1
.line 592
goto :goto_104
.line 595
:catch_127
move-exception v0
.line 596
new-instance v0, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v0, v7}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
:cond_12e
move-object v0, v3
goto :goto_b0
.end method
.method private f()V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/iflytek/cloud/SpeechError;,
Ljava/io/IOException;,
Ljava/lang/InterruptedException;
}
.end annotation
.prologue
.line 417
const-string v0, "recording stop"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 418
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v1, "enroll"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_12
.line 419
invoke-direct {p0}, Lcom/iflytek/thirdparty/k;->g()V
.line 421
:cond_12
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/j;->a()V
.line 422
return-void
.end method
.method private g()V
.registers 5
.prologue
.line 644
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
if-eqz v0, :cond_1e
.line 645
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v1
const-string v2, "record_force_stop"
const/4 v3, 0x0
invoke-virtual {v1, v2, v3}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v1
invoke-virtual {v0, v1}, Lcom/iflytek/cloud/record/PcmRecorder;->stopRecord(Z)V
.line 646
const/4 v0, 0x0
iput-object v0, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
.line 648
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->w:Z
if-eqz v0, :cond_1e
.line 649
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->stopBluetooth()V
.line 652
:cond_1e
return-void
.end method
# virtual methods
.method MsgProcCallBack([CIII[B)I
.registers 13
.prologue
const/4 v6, 0x1
const/4 v5, 0x4
const/4 v4, 0x0
.line 302
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "cur rec buf: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lcom/iflytek/thirdparty/k;->s:J
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", cur sync auw size: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lcom/iflytek/thirdparty/k;->r:J
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", cur writen size: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-wide v2, p0, Lcom/iflytek/thirdparty/k;->t:J
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 305
if-eqz p5, :cond_85
.line 306
const-string v0, "MscWakeuper"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "msg:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "param1:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "param2:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "result:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
new-instance v2, Ljava/lang/String;
invoke-direct {v2, p5}, Ljava/lang/String;-><init>([B)V
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;Ljava/lang/String;)V
.line 310
:goto_70
const/4 v1, 0x0
.line 312
:try_start_71
invoke-static {}, Lcom/iflytek/thirdparty/k$a;->values()[Lcom/iflytek/thirdparty/k$a;
move-result-object v0
aget-object v0, v0, p2
:try_end_77
.catch Ljava/lang/Throwable; {:try_start_71 .. :try_end_77} :catch_b8
.line 318
:goto_77
if-eqz v0, :cond_84
.line 319
sget-object v1, Lcom/iflytek/thirdparty/k$1;->a:[I
invoke-virtual {v0}, Lcom/iflytek/thirdparty/k$a;->ordinal()I
move-result v0
aget v0, v1, v0
packed-switch v0, :pswitch_data_132
.line 384
:cond_84
:goto_84
return v4
.line 308
:cond_85
const-string v0, "MscWakeuper"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "msg:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "param1:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "param2:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "result:null"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_70
.line 313
:catch_b8
move-exception v0
.line 314
const-string v2, "unmatched ivw message!"
invoke-static {v2}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V
.line 315
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
move-object v0, v1
goto :goto_77
.line 322
:pswitch_c3
iput-boolean v6, p0, Lcom/iflytek/thirdparty/k;->h:Z
.line 324
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->i:Z
if-nez v0, :cond_d3
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v1, "oneshot"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_e3
.line 327
:cond_d3
invoke-virtual {p0, v5, v4, v4, p5}, Lcom/iflytek/thirdparty/k;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
.line 335
:goto_d7
invoke-virtual {p0, v5}, Lcom/iflytek/thirdparty/k;->hasMessages(I)Z
move-result v1
if-eqz v1, :cond_e9
.line 336
sget-object v1, Lcom/iflytek/thirdparty/s$a;->b:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;Lcom/iflytek/thirdparty/s$a;ZI)V
goto :goto_84
.line 331
:cond_e3
const/4 v0, 0x5
invoke-virtual {p0, v5, v0, v4, p5}, Lcom/iflytek/thirdparty/k;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
goto :goto_d7
.line 338
:cond_e9
sget-object v1, Lcom/iflytek/thirdparty/s$a;->a:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;Lcom/iflytek/thirdparty/s$a;ZI)V
goto :goto_84
.line 342
:pswitch_ef
new-instance v0, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v0, p3}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->onError(Lcom/iflytek/cloud/SpeechError;)V
goto :goto_84
.line 347
:pswitch_f8
invoke-virtual {p0, v5, p3, v6, p5}, Lcom/iflytek/thirdparty/k;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
.line 350
invoke-virtual {p0, v5}, Lcom/iflytek/thirdparty/k;->hasMessages(I)Z
move-result v1
if-eqz v1, :cond_109
.line 351
sget-object v1, Lcom/iflytek/thirdparty/s$a;->b:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;Lcom/iflytek/thirdparty/s$a;ZI)V
goto/16 :goto_84
.line 353
:cond_109
sget-object v1, Lcom/iflytek/thirdparty/s$a;->a:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;Lcom/iflytek/thirdparty/s$a;ZI)V
goto/16 :goto_84
.line 358
:pswitch_110
const/4 v0, 0x3
if-ne p3, v0, :cond_84
.line 359
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->d()V
goto/16 :goto_84
.line 366
:pswitch_118
:try_start_118
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v0, :cond_84
.line 368
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v0, p3}, Lcom/iflytek/cloud/WakeuperListener;->onVolumeChanged(I)V
:try_end_121
.catch Ljava/lang/Exception; {:try_start_118 .. :try_end_121} :catch_123
goto/16 :goto_84
.line 370
:catch_123
move-exception v0
goto/16 :goto_84
.line 376
:pswitch_126
const/4 v0, 0x2
invoke-virtual {p0, v5, v4, v0, p5}, Lcom/iflytek/thirdparty/k;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
.line 377
sget-object v1, Lcom/iflytek/thirdparty/s$a;->a:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;Lcom/iflytek/thirdparty/s$a;ZI)V
goto/16 :goto_84
.line 319
:pswitch_data_132
.packed-switch 0x1
:pswitch_c3
:pswitch_ef
:pswitch_f8
:pswitch_110
:pswitch_118
:pswitch_126
.end packed-switch
.end method
.method public a([BII)I
.registers 5
.prologue
.line 691
invoke-virtual {p0, p1, p2, p3}, Lcom/iflytek/thirdparty/k;->onRecordBuffer([BII)V
.line 692
const/4 v0, 0x0
return v0
.end method
.method protected a()V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/iflytek/cloud/SpeechError;,
Ljava/lang/Throwable;
}
.end annotation
.prologue
const/4 v3, 0x0
.line 214
.line 216
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
iget-object v0, v0, Lcom/iflytek/thirdparty/j;->mClientID:[C
if-nez v0, :cond_33
.line 217
const-string v0, "SDKSessionBegin"
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/iflytek/cloud/msc/util/log/PerfLogger;->appendInfo(Ljava/lang/String;Ljava/lang/String;)V
.line 218
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
invoke-virtual {v0, v1, v2, p0}, Lcom/iflytek/thirdparty/j;->sessionBegin(Landroid/content/Context;Ljava/lang/String;Lcom/iflytek/thirdparty/s;)I
move-result v0
.line 219
if-nez v0, :cond_34
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
iget-object v1, v1, Lcom/iflytek/thirdparty/j;->mClientID:[C
if-eqz v1, :cond_34
.line 221
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v0
if-eqz v0, :cond_33
.line 222
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
iget-object v0, v0, Lcom/iflytek/thirdparty/j;->mClientID:[C
const-string v1, "MsgProcCallBack"
invoke-static {v0, v1, p0}, Lcom/iflytek/msc/MSC;->QIVWRegisterNotify([CLjava/lang/String;Ljava/lang/Object;)I
.line 223
sget-object v0, Lcom/iflytek/thirdparty/s$b;->c:Lcom/iflytek/thirdparty/s$b;
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->setStatus(Lcom/iflytek/thirdparty/s$b;)V
.line 241
:cond_33
:goto_33
return-void
.line 225
:cond_34
if-eqz v0, :cond_5a
.line 228
iget v1, p0, Lcom/iflytek/thirdparty/k;->x:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/iflytek/thirdparty/k;->x:I
.line 229
iget v1, p0, Lcom/iflytek/thirdparty/k;->x:I
const/16 v2, 0x28
if-le v1, v2, :cond_48
.line 230
new-instance v1, Lcom/iflytek/cloud/SpeechError;
invoke-direct {v1, v0}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v1
.line 231
:cond_48
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v0
if-eqz v0, :cond_33
.line 233
const-wide/16 v0, 0xf
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
.line 234
const/4 v0, 0x1
sget-object v1, Lcom/iflytek/thirdparty/s$a;->a:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v3, v3}, Lcom/iflytek/thirdparty/k;->sendMsg(ILcom/iflytek/thirdparty/s$a;ZI)V
goto :goto_33
.line 237
:cond_5a
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "current csid: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
iget-object v1, v1, Lcom/iflytek/thirdparty/j;->mSessionID:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V
.line 238
new-instance v0, Lcom/iflytek/cloud/SpeechError;
const/16 v1, 0x5207
invoke-direct {v0, v1}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
.end method
.method protected a(Landroid/os/Message;)V
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.prologue
const/4 v2, 0x0
.line 250
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast v0, [B
check-cast v0, [B
.line 251
if-eqz v0, :cond_c
array-length v1, v0
if-nez v1, :cond_d
.line 290
:cond_c
:goto_c
return-void
.line 254
:cond_d
const/4 v1, 0x1
invoke-virtual {p0, v0, v1}, Lcom/iflytek/thirdparty/k;->a([BZ)V
.line 255
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->t:J
array-length v1, v0
int-to-long v6, v1
add-long/2addr v4, v6
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->t:J
.line 256
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
iget-wide v6, p0, Lcom/iflytek/thirdparty/k;->s:J
cmp-long v1, v4, v6
if-gez v1, :cond_27
.line 257
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
array-length v1, v0
int-to-long v6, v1
add-long/2addr v4, v6
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
.line 260
:cond_27
iget v1, p0, Lcom/iflytek/thirdparty/k;->v:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/iflytek/thirdparty/k;->v:I
.line 263
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->s:J
iget-wide v6, p0, Lcom/iflytek/thirdparty/k;->r:J
sub-long/2addr v4, v6
iget v1, p0, Lcom/iflytek/thirdparty/k;->q:I
int-to-long v6, v1
cmp-long v1, v4, v6
if-ltz v1, :cond_a2
.line 264
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "cur rec buf: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->s:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", cur sync auw size: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", cur writen size: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->t:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", diff match max buf size: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget v3, p0, Lcom/iflytek/thirdparty/k;->q:I
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", cur bufs in msg will be ignored!"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogW(Ljava/lang/String;)V
.line 266
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->s:J
iput-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
.line 267
const/4 v1, 0x2
invoke-virtual {p0, v1}, Lcom/iflytek/thirdparty/k;->removeMessages(I)V
.line 268
invoke-static {}, Ljava/lang/System;->gc()V
.line 274
:cond_86
:goto_86
iget v1, p0, Lcom/iflytek/thirdparty/k;->m:I
if-lez v1, :cond_e8
.line 275
:goto_8a
iget v1, p0, Lcom/iflytek/thirdparty/k;->m:I
iget v3, p0, Lcom/iflytek/thirdparty/k;->n:I
if-ge v1, v3, :cond_dd
.line 276
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->j:Ljava/util/concurrent/ConcurrentLinkedQueue;
invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
.line 277
iget v3, p0, Lcom/iflytek/thirdparty/k;->n:I
if-eqz v1, :cond_db
array-length v1, v1
:goto_9d
sub-int v1, v3, v1
iput v1, p0, Lcom/iflytek/thirdparty/k;->n:I
goto :goto_8a
.line 269
:cond_a2
const/16 v1, 0x64
iget v3, p0, Lcom/iflytek/thirdparty/k;->v:I
if-gt v1, v3, :cond_86
.line 270
iput v2, p0, Lcom/iflytek/thirdparty/k;->v:I
.line 271
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "cur rec buf: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->s:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", cur sync auw size: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->r:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v3, ", cur writen size: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-wide v4, p0, Lcom/iflytek/thirdparty/k;->t:J
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
goto :goto_86
:cond_db
move v1, v2
.line 277
goto :goto_9d
.line 280
:cond_dd
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->j:Ljava/util/concurrent/ConcurrentLinkedQueue;
invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z
.line 281
iget v1, p0, Lcom/iflytek/thirdparty/k;->n:I
array-length v3, v0
add-int/2addr v1, v3
iput v1, p0, Lcom/iflytek/thirdparty/k;->n:I
.line 284
:cond_e8
iget-boolean v1, p0, Lcom/iflytek/thirdparty/k;->o:Z
if-eqz v1, :cond_c
.line 286
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.line 287
const-string v3, "data"
invoke-virtual {v1, v3, v0}, Landroid/os/Bundle;->putByteArray(Ljava/lang/String;[B)V
.line 288
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
const/16 v3, 0x520b
invoke-interface {v0, v3, v2, v2, v1}, Lcom/iflytek/cloud/WakeuperListener;->onEvent(IIILandroid/os/Bundle;)V
goto/16 :goto_c
.end method
.method public declared-synchronized a(Lcom/iflytek/cloud/WakeuperListener;)V
.registers 3
.prologue
.line 132
monitor-enter p0
:try_start_1
iput-object p1, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
.line 133
const-string v0, "[ivw]startListening called"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 135
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->start()V
:try_end_b
.catchall {:try_start_1 .. :try_end_b} :catchall_d
.line 136
monitor-exit p0
return-void
.line 132
:catchall_d
move-exception v0
monitor-exit p0
throw v0
.end method
.method protected a([BZ)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/iflytek/cloud/SpeechError;
}
.end annotation
.prologue
.line 687
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
array-length v1, p1
invoke-virtual {v0, p1, v1}, Lcom/iflytek/thirdparty/j;->a([BI)V
.line 688
return-void
.end method
.method public declared-synchronized a(Z)Z
.registers 4
.prologue
.line 392
monitor-enter p0
:try_start_1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "stopListening, current status is :"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getStatus()Lcom/iflytek/thirdparty/s$b;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " usercancel : "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 394
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v1, "enroll"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_38
.line 395
iput-boolean p1, p0, Lcom/iflytek/thirdparty/k;->c:Z
.line 396
const/4 v0, 0x3
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->sendMsg(I)V
:try_end_35
.catchall {:try_start_1 .. :try_end_35} :catchall_50
.line 407
:goto_35
const/4 v0, 0x1
monitor-exit p0
return v0
.line 399
:cond_38
:try_start_38
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v1, "oneshot"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_53
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->h:Z
if-eqz v0, :cond_53
.line 400
invoke-direct {p0}, Lcom/iflytek/thirdparty/k;->g()V
.line 402
iput-boolean p1, p0, Lcom/iflytek/thirdparty/k;->c:Z
.line 403
const/4 v0, 0x3
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->sendMsg(I)V
:try_end_4f
.catchall {:try_start_38 .. :try_end_4f} :catchall_50
goto :goto_35
.line 392
:catchall_50
move-exception v0
monitor-exit p0
throw v0
.line 405
:cond_53
const/4 v0, 0x0
:try_start_54
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->cancel(Z)V
:try_end_57
.catchall {:try_start_54 .. :try_end_57} :catchall_50
goto :goto_35
.end method
.method protected b()V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const/4 v4, 0x0
.line 171
const-string v0, "[ivw]start connecting"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 173
iput-boolean v4, p0, Lcom/iflytek/thirdparty/k;->h:Z
.line 174
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "record_read_rate"
const/16 v2, 0x28
invoke-virtual {v0, v1, v2}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v0
.line 175
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v1
const-string v2, "notify_record_data"
iget-boolean v3, p0, Lcom/iflytek/thirdparty/k;->o:Z
invoke-virtual {v1, v2, v3}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->o:Z
.line 178
iget v1, p0, Lcom/iflytek/thirdparty/k;->d:I
const/4 v2, -0x1
if-eq v1, v2, :cond_c7
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v1
if-eqz v1, :cond_c7
.line 179
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v1
const-string v2, "ivw_audio_path"
invoke-virtual {v1, v2}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
.line 180
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_4f
.line 181
const v1, 0xea60
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getSampleRate()I
move-result v2
mul-int/2addr v1, v2
div-int/lit16 v1, v1, 0x3e8
mul-int/lit8 v1, v1, 0x2
iput v1, p0, Lcom/iflytek/thirdparty/k;->m:I
.line 184
:cond_4f
const-string v1, "[ivw]start record"
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 185
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
if-nez v1, :cond_7f
.line 186
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v1
const-string v2, "bluetooth"
iget-boolean v3, p0, Lcom/iflytek/thirdparty/k;->w:Z
invoke-virtual {v1, v2, v3}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v1
iput-boolean v1, p0, Lcom/iflytek/thirdparty/k;->w:Z
.line 187
iget-boolean v1, p0, Lcom/iflytek/thirdparty/k;->w:Z
if-eqz v1, :cond_6d
.line 188
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->startBluetooth()V
.line 191
:cond_6d
new-instance v1, Lcom/iflytek/cloud/record/PcmRecorder;
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getSampleRate()I
move-result v2
iget v3, p0, Lcom/iflytek/thirdparty/k;->d:I
invoke-direct {v1, v2, v0, v3}, Lcom/iflytek/cloud/record/PcmRecorder;-><init>(III)V
iput-object v1, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
.line 192
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->f:Lcom/iflytek/cloud/record/PcmRecorder;
invoke-virtual {v0, p0}, Lcom/iflytek/cloud/record/PcmRecorder;->startRecording(Lcom/iflytek/cloud/record/PcmRecorder$PcmRecordListener;)V
.line 198
:cond_7f
:goto_7f
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getSampleRate()I
move-result v0
mul-int/lit16 v0, v0, 0x7d0
div-int/lit16 v0, v0, 0x3e8
mul-int/lit8 v0, v0, 0x2
iput v0, p0, Lcom/iflytek/thirdparty/k;->q:I
.line 199
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "max saved buf byte: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/iflytek/thirdparty/k;->m:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", max auw buf byte: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/iflytek/thirdparty/k;->q:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 201
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getStatus()Lcom/iflytek/thirdparty/s$b;
move-result-object v0
sget-object v1, Lcom/iflytek/thirdparty/s$b;->e:Lcom/iflytek/thirdparty/s$b;
if-eq v0, v1, :cond_c0
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v0, :cond_c0
.line 202
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v0}, Lcom/iflytek/cloud/WakeuperListener;->onBeginOfSpeech()V
.line 204
:cond_c0
const/4 v0, 0x1
sget-object v1, Lcom/iflytek/thirdparty/s$a;->a:Lcom/iflytek/thirdparty/s$a;
invoke-virtual {p0, v0, v1, v4, v4}, Lcom/iflytek/thirdparty/k;->sendMsg(ILcom/iflytek/thirdparty/s$a;ZI)V
.line 205
return-void
.line 195
:cond_c7
iput v4, p0, Lcom/iflytek/thirdparty/k;->m:I
goto :goto_7f
.end method
.method b(Landroid/os/Message;)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/iflytek/cloud/SpeechError;,
Ljava/lang/InterruptedException;,
Ljava/io/UnsupportedEncodingException;
}
.end annotation
.prologue
.line 662
iget v1, p1, Landroid/os/Message;->arg1:I
.line 663
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast v0, [B
check-cast v0, [B
.line 665
packed-switch v1, :pswitch_data_2a
.line 677
:goto_b
:pswitch_b
return-void
.line 667
:pswitch_c
const/4 v1, 0x0
iget v2, p1, Landroid/os/Message;->arg2:I
invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v3
invoke-direct {p0, v1, v0, v2, v3}, Lcom/iflytek/thirdparty/k;->a(Z[BILandroid/os/Bundle;)V
goto :goto_b
.line 670
:pswitch_17
new-instance v0, Lcom/iflytek/cloud/SpeechError;
const/16 v1, 0x4e2a
invoke-direct {v0, v1}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
throw v0
.line 672
:pswitch_1f
const/4 v1, 0x1
iget v2, p1, Landroid/os/Message;->arg2:I
invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v3
invoke-direct {p0, v1, v0, v2, v3}, Lcom/iflytek/thirdparty/k;->a(Z[BILandroid/os/Bundle;)V
goto :goto_b
.line 665
:pswitch_data_2a
.packed-switch 0x0
:pswitch_c
:pswitch_b
:pswitch_17
:pswitch_b
:pswitch_b
:pswitch_1f
.end packed-switch
.end method
.method public c()I
.registers 2
.prologue
.line 123
iget v0, p0, Lcom/iflytek/thirdparty/k;->d:I
return v0
.end method
.method public cancel(Z)V
.registers 5
.prologue
.line 429
if-eqz p1, :cond_18
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v0
if-eqz v0, :cond_18
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v0, :cond_18
.line 430
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
new-instance v1, Lcom/iflytek/cloud/SpeechError;
const/16 v2, 0x4e31
invoke-direct {v1, v2}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
invoke-interface {v0, v1}, Lcom/iflytek/cloud/WakeuperListener;->onError(Lcom/iflytek/cloud/SpeechError;)V
.line 432
:cond_18
const-string v0, "cancel"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 433
invoke-direct {p0}, Lcom/iflytek/thirdparty/k;->g()V
.line 435
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getStatus()Lcom/iflytek/thirdparty/s$b;
move-result-object v0
sget-object v1, Lcom/iflytek/thirdparty/s$b;->c:Lcom/iflytek/thirdparty/s$b;
if-ne v0, v1, :cond_2b
.line 436
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/iflytek/thirdparty/k;->c:Z
.line 438
:cond_2b
invoke-super {p0, p1}, Lcom/iflytek/thirdparty/s;->cancel(Z)V
.line 439
return-void
.end method
.method public d()V
.registers 3
.prologue
.line 731
sget-object v0, Lcom/iflytek/thirdparty/s$b;->c:Lcom/iflytek/thirdparty/s$b;
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getStatus()Lcom/iflytek/thirdparty/s$b;
move-result-object v1
if-ne v0, v1, :cond_11
.line 733
const-string v0, "ivw msc vadEndCall"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 734
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->a(Z)Z
.line 738
:cond_11
return-void
.end method
.method public e()Lcom/iflytek/cloud/WakeuperListener;
.registers 2
.prologue
.line 770
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
return-object v0
.end method
.method public getClientID()Ljava/lang/String;
.registers 2
.prologue
.line 762
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/j;->getClientID()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getSessionID()Ljava/lang/String;
.registers 2
.prologue
.line 753
const/4 v0, 0x0
return-object v0
.end method
.method public isLongInput()Z
.registers 2
.prologue
.line 632
const/4 v0, 0x0
return v0
.end method
.method protected onEnd(Lcom/iflytek/cloud/SpeechError;)V
.registers 6
.prologue
const/4 v3, 0x0
.line 443
const-string v0, "onSessionEnd"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 444
invoke-direct {p0}, Lcom/iflytek/thirdparty/k;->g()V
.line 447
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_46
.line 448
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->j:Ljava/util/concurrent/ConcurrentLinkedQueue;
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/iflytek/cloud/msc/util/FileUtil;->saveFile(Ljava/util/concurrent/ConcurrentLinkedQueue;Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_9a
.line 449
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "audio_format"
invoke-virtual {v0, v1, v3}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 450
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getSampleRate()I
move-result v1
.line 451
iget-object v2, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-static {v0, v2, v1}, Lcom/iflytek/cloud/msc/util/FileUtil;->formatPcm(Ljava/lang/String;Ljava/lang/String;I)Z
.line 452
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "save ivw audio succeed: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 459
:cond_46
:goto_46
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
const-string v1, "oneshot"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_72
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->h:Z
if-eqz v0, :cond_72
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->g:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_72
if-nez p1, :cond_72
.line 460
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "asr_nomatch_error"
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v0
if-eqz v0, :cond_72
.line 462
new-instance p1, Lcom/iflytek/cloud/SpeechError;
const/16 v0, 0x2786
invoke-direct {p1, v0}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
.line 465
:cond_72
const-string v0, "SessionEndBegin"
invoke-static {v0, v3}, Lcom/iflytek/cloud/msc/util/log/PerfLogger;->appendInfo(Ljava/lang/String;Ljava/lang/String;)V
.line 466
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->mUserCancel:Z
if-eqz v0, :cond_b3
.line 467
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
const-string v1, "user abort"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/j;->sessionEnd(Ljava/lang/String;)V
.line 472
:goto_82
const-string v0, "SessionEndEnd"
invoke-static {v0, v3}, Lcom/iflytek/cloud/msc/util/log/PerfLogger;->appendInfo(Ljava/lang/String;Ljava/lang/String;)V
.line 474
invoke-super {p0, p1}, Lcom/iflytek/thirdparty/s;->onEnd(Lcom/iflytek/cloud/SpeechError;)V
.line 476
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v0, :cond_97
.line 478
iget-boolean v0, p0, Lcom/iflytek/thirdparty/k;->mUserCancel:Z
if-eqz v0, :cond_da
.line 480
const-string v0, "WakeuperListener#onCancel"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 488
:cond_97
:goto_97
iput-object v3, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
.line 489
return-void
.line 454
:cond_9a
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "save ivw audio failed: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->l:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/String;)V
goto :goto_46
.line 468
:cond_b3
if-eqz p1, :cond_d2
.line 469
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "error"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {p1}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/j;->sessionEnd(Ljava/lang/String;)V
goto :goto_82
.line 471
:cond_d2
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->e:Lcom/iflytek/thirdparty/j;
const-string v1, "success"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/j;->sessionEnd(Ljava/lang/String;)V
goto :goto_82
.line 483
:cond_da
const-string v0, "WakeuperListener#onEnd"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 484
if-eqz p1, :cond_97
.line 485
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
invoke-interface {v0, p1}, Lcom/iflytek/cloud/WakeuperListener;->onError(Lcom/iflytek/cloud/SpeechError;)V
goto :goto_97
.end method
.method public onError(Lcom/iflytek/cloud/SpeechError;)V
.registers 2
.prologue
.line 725
invoke-virtual {p0, p1}, Lcom/iflytek/thirdparty/k;->exit(Lcom/iflytek/cloud/SpeechError;)V
.line 726
return-void
.end method
.method protected onMsgProcess(Landroid/os/Message;)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;,
Lcom/iflytek/cloud/SpeechError;
}
.end annotation
.prologue
.line 140
invoke-super {p0, p1}, Lcom/iflytek/thirdparty/s;->onMsgProcess(Landroid/os/Message;)V
.line 142
iget v0, p1, Landroid/os/Message;->what:I
packed-switch v0, :pswitch_data_1e
.line 164
:goto_8
:pswitch_8
return-void
.line 145
:pswitch_9
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->b()V
goto :goto_8
.line 148
:pswitch_d
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->a()V
goto :goto_8
.line 151
:pswitch_11
invoke-virtual {p0, p1}, Lcom/iflytek/thirdparty/k;->a(Landroid/os/Message;)V
goto :goto_8
.line 154
:pswitch_15
invoke-direct {p0}, Lcom/iflytek/thirdparty/k;->f()V
goto :goto_8
.line 157
:pswitch_19
invoke-virtual {p0, p1}, Lcom/iflytek/thirdparty/k;->b(Landroid/os/Message;)V
goto :goto_8
.line 142
nop
:pswitch_data_1e
.packed-switch 0x0
:pswitch_9
:pswitch_d
:pswitch_11
:pswitch_15
:pswitch_19
:pswitch_8
:pswitch_8
:pswitch_8
.end packed-switch
.end method
.method protected onParseParam()V
.registers 6
.prologue
const/4 v4, 0x0
.line 619
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "sst"
const-string v2, "wakeup"
invoke-virtual {v0, v1, v2}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/iflytek/thirdparty/k;->a:Ljava/lang/String;
.line 621
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "keep_alive"
invoke-virtual {v0, v1, v4}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/iflytek/thirdparty/k;->i:Z
.line 623
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "audio_source"
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Lcom/iflytek/thirdparty/k;->d:I
.line 625
iget-object v0, p0, Lcom/iflytek/thirdparty/k;->mContext:Landroid/content/Context;
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/Config;->getConfig(Landroid/content/Context;)Lcom/iflytek/cloud/msc/util/Config;
move-result-object v0
const-string v1, "ivw_netval"
const/16 v2, 0x14
invoke-virtual {v0, v1, v2}, Lcom/iflytek/cloud/msc/util/Config;->getInt(Ljava/lang/String;I)I
move-result v0
.line 626
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v1
const-string v2, "ivw_netval"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v3, ""
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0, v4}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 627
invoke-super {p0}, Lcom/iflytek/thirdparty/s;->onParseParam()V
.line 628
return-void
.end method
.method public onRecordBuffer([BII)V
.registers 8
.prologue
.line 703
array-length v0, p1
if-lt v0, p3, :cond_7
if-eqz p1, :cond_7
if-gtz p3, :cond_8
.line 717
:cond_7
:goto_7
return-void
.line 705
:cond_8
if-lez p3, :cond_7
invoke-virtual {p0}, Lcom/iflytek/thirdparty/k;->isRunning()Z
move-result v0
if-eqz v0, :cond_7
.line 706
iget-wide v0, p0, Lcom/iflytek/thirdparty/k;->s:J
int-to-long v2, p3
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/iflytek/thirdparty/k;->s:J
.line 709
new-array v0, p3, [B
.line 710
const/4 v1, 0x0
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 711
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
if-eqz v1, :cond_2a
.line 712
invoke-direct {p0, p3, v0}, Lcom/iflytek/thirdparty/k;->a(I[B)D
move-result-wide v2
.line 713
iget-object v1, p0, Lcom/iflytek/thirdparty/k;->b:Lcom/iflytek/cloud/WakeuperListener;
double-to-int v2, v2
invoke-interface {v1, v2}, Lcom/iflytek/cloud/WakeuperListener;->onVolumeChanged(I)V
.line 715
:cond_2a
const/4 v1, 0x2
invoke-virtual {p0, v1, v0}, Lcom/iflytek/thirdparty/k;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/k;->sendMsg(Landroid/os/Message;)V
goto :goto_7
.end method
.method public onRecordReleased()V
.registers 1
.prologue
.line 749
return-void
.end method
.method public onRecordStarted(Z)V
.registers 2
.prologue
.line 743
return-void
.end method