package com.tencent.mm.pluginsdk.ui;

import android.os.Bundle;
import android.os.Message;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.modelvoiceaddr.g.b;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.List;

class VoiceInputLayout$2 implements b {
    final /* synthetic */ VoiceInputLayout vjt;

    VoiceInputLayout$2(VoiceInputLayout voiceInputLayout) {
        this.vjt = voiceInputLayout;
    }

    public final void ams() {
        AppMethodBeat.i(27580);
        ab.d("MicroMsg.VoiceInputLayout", "onRecordFin() onRecordFin currentState = %s", new Object[]{Integer.valueOf(this.vjt.currentState)});
        if (VoiceInputLayout.c(this.vjt) != null) {
            VoiceInputLayout.c(this.vjt).stopTimer();
        }
        VoiceInputLayout.d(this.vjt).sendEmptyMessage(0);
        AppMethodBeat.o(27580);
    }

    public final void amw() {
        AppMethodBeat.i(27581);
        ab.d("MicroMsg.VoiceInputLayout", "onRecognize Finish");
        VoiceInputLayout.a(this.vjt).removeMessages(0);
        VoiceInputLayout.a(this.vjt).removeMessages(1);
        VoiceInputLayout.e(this.vjt).bBF();
        this.vjt.reset(false);
        AppMethodBeat.o(27581);
    }

    public final void b(String[] strArr, List<String> list) {
        AppMethodBeat.i(138173);
        VoiceInputLayout.e(this.vjt).c(strArr, list);
        VoiceInputLayout.a(this.vjt).removeMessages(0);
        VoiceInputLayout.a(this.vjt).sendEmptyMessageDelayed(0, (long) VoiceInputLayout.f(this.vjt));
        AppMethodBeat.o(138173);
    }

    public final void c(int i, int i2, int i3, long j) {
        AppMethodBeat.i(27583);
        VoiceInputLayout.a(this.vjt).removeMessages(0);
        VoiceInputLayout.a(this.vjt).removeMessages(1);
        Message message = new Message();
        Bundle bundle = new Bundle();
        bundle.putInt("localCode", i);
        bundle.putInt("errType", i2);
        bundle.putInt("errCode", i3);
        message.setData(bundle);
        message.what = 1;
        VoiceInputLayout.d(this.vjt).sendMessage(message);
        AppMethodBeat.o(27583);
    }
}
