package com.seewo.factoryaging.mic;

import android.content.Context;
import android.util.Log;
import android.view.View;
import com.cvte.vman.R;
import com.seewo.factoryaging.s0.j;
import j.p0.d.r;

/* JADX INFO: compiled from: MicTestModelView.kt */
/* JADX INFO: loaded from: classes.dex */
public final class f implements j {
    private final Context a;

    public f(Context context) {
        r.f(context, "context");
        this.a = context;
    }

    @Override // com.seewo.factoryaging.s0.j
    public boolean a() {
        return false;
    }

    @Override // com.seewo.factoryaging.s0.j
    public boolean e() {
        if (h.c.d.d.b.e()) {
            return com.seewo.factoryaging.e1.f.a.m();
        }
        if (com.seewo.factoryaging.e1.f.a.m()) {
            return true;
        }
        if (!this.a.getResources().getBoolean(R.bool.showMicFragment)) {
            return false;
        }
        if (!this.a.getResources().getBoolean(R.bool.enableCheckDevice) && !h.c.d.d.b.d()) {
            return true;
        }
        boolean zG = g.a.g(this.a);
        Log.i("FactoryAging", "mic open result status true is success: the result is =" + zG);
        return zG;
    }

    @Override // com.seewo.factoryaging.s0.j
    public View i() {
        View viewInflate = View.inflate(this.a, R.layout.view_mic_fragment, null);
        r.e(viewInflate, "inflate(mContext, R.layo….view_mic_fragment, null)");
        return viewInflate;
    }

    @Override // com.seewo.factoryaging.s0.j
    public float j() {
        return 1.0f;
    }
}
