what-the-bank/sources/com/pingan/ai/l.java

87 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.pingan.ai;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.pingan.ai.face.utils.PaFaceLogger;
/* loaded from: classes3.dex */
public class l {
public float a = BitmapDescriptorFactory.HUE_RED;
public int b = 0;
public void a(int i, float f, m mVar) {
double d;
double d2;
float f2;
int b = mVar != null ? mVar.b() : 8;
if (f != -1.0f) {
this.a = f / ((this.b == 0 || i != 1001) ? 1 : 2);
StringBuilder sb = new StringBuilder("fixProcess=");
sb.append(f);
sb.append(", tips=");
sb.append(i);
sb.append(", process=");
sb.append(this.a);
sb.append("processNum=");
sb.append(this.b);
PaFaceLogger.i(PaFaceLogger.TAG, sb.toString());
return;
}
StringBuilder sb2 = new StringBuilder("fixProcess=-1processNum=");
sb2.append(this.b);
sb2.append(", tips=");
sb2.append(i);
sb2.append(", process=");
sb2.append(this.a);
PaFaceLogger.i(PaFaceLogger.TAG, sb2.toString());
int i2 = this.b;
if (i2 == 0) {
float f3 = (float) (this.a + (1.0d / (b > 0 ? b : 8)));
this.a = f3;
if (f3 > 0.98d) {
f3 = 0.98f;
}
this.a = f3;
StringBuilder sb3 = new StringBuilder("calProcesscurrent process=");
sb3.append(this.a);
PaFaceLogger.i(PaFaceLogger.TAG, sb3.toString());
return;
}
double d3 = 0.5d;
if (i == 1001) {
f2 = (float) (this.a + (0.5d / (b > 0 ? b : 8)));
this.a = f2;
if (f2 > 0.48d) {
f2 = 0.48f;
}
} else {
if (i == 1006) {
d = this.a;
d3 = 0.5d / i2;
d2 = 5.0d;
} else {
d = this.a;
d2 = i2;
}
f2 = (float) (d + (d3 / d2));
}
this.a = f2;
StringBuilder sb4 = new StringBuilder("calProcess--");
sb4.append(this.b);
sb4.append("process=");
sb4.append(this.a);
PaFaceLogger.i(PaFaceLogger.TAG, sb4.toString());
}
public void a(n nVar) {
this.a = BitmapDescriptorFactory.HUE_RED;
this.b = nVar != null ? nVar.a() : 0;
StringBuilder sb = new StringBuilder("processNum=");
sb.append(this.b);
PaFaceLogger.i(PaFaceLogger.TAG, sb.toString());
}
public float a() {
return this.a;
}
}