175 lines
5.4 KiB
Java
175 lines
5.4 KiB
Java
package o;
|
|
|
|
import android.os.Handler;
|
|
import io.beid.beidk.processor.FaceProcessor;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class fQI extends fQH implements fQG {
|
|
fQE a;
|
|
Integer b;
|
|
private Integer c;
|
|
private Integer d;
|
|
private Integer e;
|
|
private Integer g;
|
|
private Runnable h;
|
|
private Integer i;
|
|
private Handler j;
|
|
|
|
@Override // o.fQG
|
|
public final void b() {
|
|
this.h = new Runnable(this) { // from class: o.fQI.1
|
|
private fQI a;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
this.a.b = -1;
|
|
this.a.a.b(new Throwable("timeout"));
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
};
|
|
Handler handler = new Handler();
|
|
this.j = handler;
|
|
handler.postDelayed(this.h, this.d.intValue());
|
|
this.b = 0;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x0086 */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:0x00a8 */
|
|
/* JADX WARN: Removed duplicated region for block: B:31:? A[RETURN, SYNTHETIC] */
|
|
@Override // o.fQG
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void c(o.C13099fQm r10) {
|
|
/*
|
|
r9 = this;
|
|
java.lang.Integer r0 = r9.i
|
|
int r0 = r0.intValue()
|
|
r1 = 1
|
|
int r0 = r0 + r1
|
|
java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
|
|
r9.i = r0
|
|
java.lang.Integer r0 = r9.b
|
|
int r0 = r0.intValue()
|
|
r2 = -1
|
|
if (r0 != r2) goto L18
|
|
return
|
|
L18:
|
|
boolean r0 = r10.b
|
|
if (r0 == 0) goto L23
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r10.d
|
|
float r0 = r0.getRightEyeOpenProbability()
|
|
goto L29
|
|
L23:
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r10.d
|
|
float r0 = r0.getLeftEyeOpenProbability()
|
|
L29:
|
|
r3 = -1082130432(0xffffffffbf800000, float:-1.0)
|
|
int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
|
|
if (r0 != 0) goto L45
|
|
boolean r0 = r10.b
|
|
if (r0 == 0) goto L3a
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r10.d
|
|
float r0 = r0.getLeftEyeOpenProbability()
|
|
goto L40
|
|
L3a:
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r0 = r10.d
|
|
float r0 = r0.getRightEyeOpenProbability()
|
|
L40:
|
|
int r0 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1))
|
|
if (r0 != 0) goto L45
|
|
return
|
|
L45:
|
|
java.lang.Integer r0 = r9.b
|
|
int r0 = r0.intValue()
|
|
r3 = 3
|
|
r4 = 4603579539098121011(0x3fe3333333333333, double:0.6)
|
|
if (r0 == 0) goto L6d
|
|
r6 = 2
|
|
if (r0 == r1) goto L5d
|
|
if (r0 != r6) goto L7e
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r3)
|
|
goto L7c
|
|
L5d:
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r10 = r10.d
|
|
float r10 = r10.getSmilingProbability()
|
|
double r7 = (double) r10
|
|
int r10 = (r7 > r4 ? 1 : (r7 == r4 ? 0 : -1))
|
|
if (r10 <= 0) goto L7e
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r6)
|
|
goto L7c
|
|
L6d:
|
|
com.google.firebase.ml.vision.face.FirebaseVisionFace r10 = r10.d
|
|
float r10 = r10.getSmilingProbability()
|
|
double r6 = (double) r10
|
|
int r10 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))
|
|
if (r10 >= 0) goto L7e
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r1)
|
|
L7c:
|
|
r9.b = r10
|
|
L7e:
|
|
java.lang.Integer r10 = r9.b
|
|
int r10 = r10.intValue()
|
|
if (r10 != r3) goto L9a
|
|
r10 = 0
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r10)
|
|
r9.b = r10
|
|
java.lang.Integer r10 = r9.g
|
|
int r10 = r10.intValue()
|
|
int r10 = r10 + r1
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r10)
|
|
r9.g = r10
|
|
L9a:
|
|
java.lang.Integer r10 = r9.g
|
|
int r10 = r10.intValue()
|
|
java.lang.Integer r0 = r9.e
|
|
int r0 = r0.intValue()
|
|
if (r10 < r0) goto Lbf
|
|
android.os.Handler r10 = r9.j
|
|
java.lang.Runnable r0 = r9.h
|
|
r10.removeCallbacks(r0)
|
|
o.fQE r10 = r9.a
|
|
android.os.Message r0 = new android.os.Message
|
|
r0.<init>()
|
|
r10.b()
|
|
java.lang.Integer r10 = java.lang.Integer.valueOf(r2)
|
|
r9.b = r10
|
|
Lbf:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.fQI.c(o.fQm):void");
|
|
}
|
|
|
|
@Override // o.fQG
|
|
public final String a() {
|
|
return "smile_with_teeth";
|
|
}
|
|
|
|
@Override // o.fQG
|
|
public final Integer e() {
|
|
return this.c;
|
|
}
|
|
|
|
@Override // o.fQG
|
|
public final void e(fQE fqe) {
|
|
this.a = fqe;
|
|
}
|
|
|
|
public fQI(Integer num, Integer num2) {
|
|
this.c = FaceProcessor.LivenessActivity.SMILE;
|
|
this.e = num;
|
|
this.d = num2;
|
|
this.b = 0;
|
|
this.g = 0;
|
|
this.i = -1;
|
|
}
|
|
|
|
public fQI() {
|
|
this(1, 5000);
|
|
}
|
|
}
|