package o; import android.os.Handler; import android.os.Message; import io.beid.beidk.processor.FaceProcessor; /* renamed from: o.fQF, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C13082fQF extends fQH implements fQG { private Integer a; private Integer b; Integer c; fQE d; private Integer e; private Runnable g; private Integer h; private Handler i; private Integer j; @Override // o.fQG public final void b() { this.g = new Runnable(this) { // from class: o.fQF.3 private C13082fQF e; @Override // java.lang.Runnable public final void run() { this.e.c = -1; this.e.d.b(new Throwable("timeout")); } { this.e = this; } }; Handler handler = new Handler(); this.i = handler; handler.postDelayed(this.g, this.a.intValue()); this.c = 0; } @Override // o.fQG public final void c(C13099fQm c13099fQm) { this.h = Integer.valueOf(this.h.intValue() + 1); if (this.c.intValue() == -1) { return; } if ((c13099fQm.b ? c13099fQm.d.getRightEyeOpenProbability() : c13099fQm.d.getLeftEyeOpenProbability()) == -1.0f) { if ((c13099fQm.b ? c13099fQm.d.getLeftEyeOpenProbability() : c13099fQm.d.getRightEyeOpenProbability()) == -1.0f) { return; } } if (this.c.intValue() == 0 && c13099fQm.c * c13099fQm.d.getHeadEulerAngleZ() < 12.0f && c13099fQm.c * c13099fQm.d.getHeadEulerAngleZ() > -12.0f && !a(c13099fQm).booleanValue() && !e(c13099fQm).booleanValue()) { this.c = 3; } if (this.c.intValue() == 3) { this.c = 0; this.j = Integer.valueOf(this.j.intValue() + 1); } if (this.j.intValue() >= this.e.intValue()) { this.i.removeCallbacks(this.g); this.i.postDelayed(new Runnable(this) { // from class: o.fQF.1 private C13082fQF b; @Override // java.lang.Runnable public final void run() { fQE fqe = this.b.d; new Message(); fqe.b(); } { this.b = this; } }, 1000L); this.c = -1; } } @Override // o.fQG public final String a() { return "straight"; } @Override // o.fQG public final Integer e() { return this.b; } @Override // o.fQG public final void e(fQE fqe) { this.d = fqe; } public C13082fQF(Integer num, Integer num2) { this.b = FaceProcessor.LivenessActivity.STRAIGHT; this.e = num; this.a = num2; this.c = 0; this.j = 0; this.h = -1; } public C13082fQF() { this(1, 5000); } }