1408 lines
48 KiB
Java
1408 lines
48 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import android.animation.Animator;
|
||
|
import android.animation.AnimatorSet;
|
||
|
import android.animation.ObjectAnimator;
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import android.content.res.Resources;
|
||
|
import android.graphics.drawable.GradientDrawable;
|
||
|
import android.os.Build;
|
||
|
import android.os.Bundle;
|
||
|
import android.os.Handler;
|
||
|
import android.os.Looper;
|
||
|
import android.os.Process;
|
||
|
import android.os.SystemClock;
|
||
|
import android.telephony.cdma.CdmaCellLocation;
|
||
|
import android.text.TextUtils;
|
||
|
import android.util.Property;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.MotionEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.view.ViewOutlineProvider;
|
||
|
import android.view.ViewTreeObserver;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import android.widget.FrameLayout;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.RelativeLayout;
|
||
|
import android.widget.TextView;
|
||
|
import com.facetec.sdk.FaceTecCancelButtonCustomization;
|
||
|
import com.facetec.sdk.FaceTecVocalGuidanceCustomization;
|
||
|
import com.facetec.sdk.aq;
|
||
|
import com.facetec.sdk.bg;
|
||
|
import com.facetec.sdk.cd;
|
||
|
import com.facetec.sdk.cp;
|
||
|
import com.facetec.sdk.dp;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import com.google.common.base.Ascii;
|
||
|
import com.prolificinteractive.materialcalendarview.TitleChanger;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.util.concurrent.Semaphore;
|
||
|
import java.util.concurrent.TimeUnit;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
import o.URz;
|
||
|
import o.nMh;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ay extends aq {
|
||
|
private static final byte[] $$a = null;
|
||
|
private static final int $$b = 0;
|
||
|
private static final byte[] $$d = null;
|
||
|
private static final int $$e = 0;
|
||
|
private static long C;
|
||
|
private static char E;
|
||
|
private static final byte[] F = null;
|
||
|
private static int G;
|
||
|
private static final int I = 0;
|
||
|
public static boolean a;
|
||
|
private Handler B;
|
||
|
cj b;
|
||
|
private TextView c;
|
||
|
private LinearLayout d;
|
||
|
public ImageView e;
|
||
|
private d f;
|
||
|
private View g;
|
||
|
private cp i;
|
||
|
private cr j;
|
||
|
private Handler k;
|
||
|
private Handler l;
|
||
|
private Handler m;
|
||
|
private FrameLayout n;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
private TextView f6408o;
|
||
|
private Semaphore u;
|
||
|
private boolean h = false;
|
||
|
private boolean r = false;
|
||
|
private boolean t = false;
|
||
|
private boolean p = false;
|
||
|
private boolean q = false;
|
||
|
private boolean s = false;
|
||
|
private ci x = null;
|
||
|
private boolean w = false;
|
||
|
private final int y = (int) av.b(12);
|
||
|
private boolean v = false;
|
||
|
private boolean A = false;
|
||
|
private final Runnable D = new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda8
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.k();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
};
|
||
|
private final cd.c z = new cd.c(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda9
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.c
|
||
|
public final void onPreSessionProgress(cl clVar, ch chVar, cj cjVar, ck ckVar) {
|
||
|
this.f$0.d(clVar, chVar, cjVar, ckVar);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
|
||
|
/* JADX WARN: Type inference failed for: r8v1, types: [int] */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002d). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void H(int r6, byte r7, short r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r7 = r7 * 3
|
||
|
int r7 = r7 + 4
|
||
|
int r8 = 100 - r8
|
||
|
byte[] r0 = com.facetec.sdk.ay.$$a
|
||
|
int r6 = r6 << 1
|
||
|
int r1 = r6 + 1
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L15
|
||
|
r4 = r8
|
||
|
r3 = r2
|
||
|
r8 = r7
|
||
|
goto L2d
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
byte r4 = (byte) r7
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r6) goto L26
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L26:
|
||
|
int r3 = r3 + 1
|
||
|
r4 = r0[r8]
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
L2d:
|
||
|
int r4 = -r4
|
||
|
int r7 = r7 + 1
|
||
|
int r8 = r8 + r4
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ay.H(int, byte, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002c). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void K(byte r6, byte r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
byte[] r0 = com.facetec.sdk.ay.F
|
||
|
int r8 = 106 - r8
|
||
|
int r7 = r7 * 15
|
||
|
int r7 = 19 - r7
|
||
|
int r6 = r6 << 1
|
||
|
int r1 = r6 + 16
|
||
|
byte[] r1 = new byte[r1]
|
||
|
int r6 = r6 + 15
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L17
|
||
|
r4 = r6
|
||
|
r8 = r7
|
||
|
r3 = r2
|
||
|
goto L2c
|
||
|
L17:
|
||
|
r3 = r2
|
||
|
L18:
|
||
|
byte r4 = (byte) r8
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r6) goto L25
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L25:
|
||
|
r4 = r0[r7]
|
||
|
int r3 = r3 + 1
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
L2c:
|
||
|
int r7 = r7 - r4
|
||
|
int r7 = r7 + 2
|
||
|
int r8 = r8 + 1
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
goto L18
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ay.K(byte, byte, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x002a */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x0022 */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> B:4:0x002e). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void L(short r6, byte r7, short r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r7 = r7 << 2
|
||
|
int r7 = 4 - r7
|
||
|
int r8 = r8 * 3
|
||
|
byte[] r0 = com.facetec.sdk.ay.$$d
|
||
|
int r1 = 1 - r8
|
||
|
byte[] r1 = new byte[r1]
|
||
|
r2 = 0
|
||
|
int r8 = 0 - r8
|
||
|
if (r0 != 0) goto L15
|
||
|
r6 = r7
|
||
|
r4 = r8
|
||
|
r3 = r2
|
||
|
goto L2e
|
||
|
L15:
|
||
|
int r6 = r6 << 2
|
||
|
int r6 = 106 - r6
|
||
|
r3 = r2
|
||
|
r5 = r7
|
||
|
r7 = r6
|
||
|
r6 = r5
|
||
|
L1d:
|
||
|
byte r4 = (byte) r7
|
||
|
r1[r3] = r4
|
||
|
if (r3 != r8) goto L2a
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L2a:
|
||
|
r4 = r0[r6]
|
||
|
int r3 = r3 + 1
|
||
|
L2e:
|
||
|
int r7 = r7 - r4
|
||
|
int r6 = r6 + 1
|
||
|
goto L1d
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ay.L(short, byte, short, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static ay d() {
|
||
|
ay ayVar = new ay();
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putString("reason", null);
|
||
|
ayVar.setArguments(bundle);
|
||
|
return ayVar;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.aq, android.app.Fragment
|
||
|
public final void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
this.t = false;
|
||
|
this.p = false;
|
||
|
this.q = false;
|
||
|
this.u = new Semaphore(1);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
return layoutInflater.inflate(R.layout.facetec_facescan_fragment, viewGroup, false);
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
super.onViewCreated(view, bundle);
|
||
|
final be i = i();
|
||
|
cd f = f();
|
||
|
if (f == null) {
|
||
|
return;
|
||
|
}
|
||
|
t.e = ak.k;
|
||
|
d dVar = new d(this);
|
||
|
this.f = dVar;
|
||
|
f.e(dVar);
|
||
|
cl n = f.n();
|
||
|
cj k = f.k();
|
||
|
if (n != cl.READY_TO_START_FACESCAN_SESSION) {
|
||
|
f.b(this.z);
|
||
|
}
|
||
|
this.d = (LinearLayout) view.findViewById(R.id.zoomLogoContainer);
|
||
|
this.c = (TextView) view.findViewById(R.id.zoomLogoText);
|
||
|
String packageName = i.getPackageName();
|
||
|
ImageView imageView = (ImageView) view.findViewById(R.id.securityWatermark);
|
||
|
int i2 = AnonymousClass1.b[FaceTecSDK.c.securityWatermarkImage.ordinal()];
|
||
|
if (i2 == 1) {
|
||
|
imageView.setImageDrawable(nMh.getDrawable(getActivity(), R.drawable.facetec_internal_zoom_watermark));
|
||
|
} else if (i2 == 2) {
|
||
|
imageView.setImageDrawable(nMh.getDrawable(getActivity(), R.drawable.facetec_internal_facetec_watermark));
|
||
|
}
|
||
|
float e = db.e();
|
||
|
imageView.setLayoutParams(new LinearLayout.LayoutParams(-2, (int) (Resources.getSystem().getDisplayMetrics().heightPixels * db.d() * 0.15f * e)));
|
||
|
this.c.setVisibility(0);
|
||
|
this.c.setTextSize(db.d() * 8.0f * e);
|
||
|
if (packageName.contains("com.facetec.zoomlogin")) {
|
||
|
this.c.setText("v9.6.76");
|
||
|
} else {
|
||
|
this.c.setText("v9.6.76".concat(Build.CPU_ABI.equals("arm64-v8a") ? " 64-bit" : ""));
|
||
|
}
|
||
|
this.d.setPadding(0, 0, 0, 12);
|
||
|
this.j = (cr) view.findViewById(R.id.zoomOval);
|
||
|
this.g = view.findViewById(R.id.instructionsBackground);
|
||
|
this.e = (ImageView) view.findViewById(R.id.zoomBackButton);
|
||
|
this.f6408o = (TextView) view.findViewById(R.id.authReasonText);
|
||
|
cp cpVar = (cp) view.findViewById(R.id.zoomProgressBar);
|
||
|
this.i = cpVar;
|
||
|
cpVar.setVisibility(4);
|
||
|
cpVar.a = (TextView) cpVar.findViewById(R.id.zoomFeedbackText);
|
||
|
cpVar.a.setImportantForAccessibility(2);
|
||
|
URz.vW_(cpVar.a, 1);
|
||
|
URz.vV_(cpVar.a, 5, 50, 1, 2);
|
||
|
int c = cp.c(ce.HOLD_STEADY);
|
||
|
if (n == cl.READY_TO_START_FACESCAN_SESSION) {
|
||
|
cpVar.b = ce.HOLD_STEADY;
|
||
|
} else {
|
||
|
switch (cp.AnonymousClass1.b[k.ordinal()]) {
|
||
|
case 1:
|
||
|
cpVar.c = cj.FRAME_YOUR_FACE;
|
||
|
break;
|
||
|
case 2:
|
||
|
cpVar.c = cj.FRAME_YOUR_FACE;
|
||
|
break;
|
||
|
case 3:
|
||
|
cpVar.c = cj.WEARING_SUNGLASSES;
|
||
|
break;
|
||
|
case 4:
|
||
|
cpVar.c = cj.BAD_POSE;
|
||
|
break;
|
||
|
case 5:
|
||
|
cpVar.c = cj.TOO_BRIGHT;
|
||
|
break;
|
||
|
case 6:
|
||
|
cpVar.c = cj.TOO_DARK;
|
||
|
break;
|
||
|
case 7:
|
||
|
cpVar.c = cj.MAKING_FACE;
|
||
|
break;
|
||
|
case 8:
|
||
|
cpVar.c = cj.HOLD_STEADY_3;
|
||
|
break;
|
||
|
case 9:
|
||
|
cpVar.c = cj.HOLD_STEADY_2;
|
||
|
break;
|
||
|
case 10:
|
||
|
cpVar.c = cj.HOLD_STEADY_1;
|
||
|
break;
|
||
|
case 11:
|
||
|
cpVar.c = cj.MOVE_CLOSER;
|
||
|
break;
|
||
|
case 12:
|
||
|
cpVar.c = cj.MOVE_AWAY;
|
||
|
break;
|
||
|
}
|
||
|
c = cp.c(cpVar.c);
|
||
|
}
|
||
|
dp.e(c);
|
||
|
cx.e(cpVar.a, c);
|
||
|
cpVar.a.setTypeface(FaceTecSDK.c.f6400o.textFont);
|
||
|
db.d(cpVar.a);
|
||
|
GradientDrawable u = db.u(cpVar.getContext());
|
||
|
cpVar.d = cpVar.findViewById(R.id.zoomFeedbackContainer);
|
||
|
cpVar.d.setBackground(u);
|
||
|
cpVar.setPadding(10, 10, 10, 15);
|
||
|
cpVar.d.setElevation(av.b(FaceTecSDK.c.f6400o.elevation));
|
||
|
cpVar.d.setOutlineProvider(ViewOutlineProvider.BACKGROUND);
|
||
|
cpVar.d.setClipToOutline(false);
|
||
|
cpVar.d.requestLayout();
|
||
|
cpVar.h = ObjectAnimator.ofFloat(cpVar.a, (Property<TextView, Float>) View.ALPHA, BitmapDescriptorFactory.HUE_RED);
|
||
|
cpVar.h.setDuration(400L);
|
||
|
cpVar.h.addListener(cpVar.j);
|
||
|
cpVar.g = ObjectAnimator.ofFloat(cpVar.a, (Property<TextView, Float>) View.ALPHA, 1.0f);
|
||
|
cpVar.g.setDuration(400L);
|
||
|
float b = av.b(db.h().height);
|
||
|
float d2 = db.d();
|
||
|
float b2 = av.b(db.h().width);
|
||
|
float d3 = db.d();
|
||
|
cpVar.a.getLayoutParams().height = (int) (b * d2);
|
||
|
cpVar.a.getLayoutParams().width = (int) (b2 * d3);
|
||
|
int round = Math.round(av.b(10) * db.d() * db.e());
|
||
|
cpVar.a.setPadding(round, Math.round(round * 1.1f), round, round);
|
||
|
cpVar.a.requestLayout();
|
||
|
cp cpVar2 = this.i;
|
||
|
if (cpVar2.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {
|
||
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) cpVar2.getLayoutParams();
|
||
|
db.i();
|
||
|
layoutParams.addRule(13, -1);
|
||
|
layoutParams.setMargins(0, 0, 0, 0);
|
||
|
cpVar2.requestLayout();
|
||
|
}
|
||
|
this.f6408o.setTypeface(bk.a);
|
||
|
db.b(this.f6408o);
|
||
|
FrameLayout frameLayout = (FrameLayout) view.findViewById(R.id.transitionView);
|
||
|
this.n = frameLayout;
|
||
|
db.e(frameLayout);
|
||
|
this.k = new Handler(Looper.getMainLooper());
|
||
|
this.m = new Handler();
|
||
|
if (n == cl.READY_TO_START_FACESCAN_SESSION) {
|
||
|
c((Context) i);
|
||
|
}
|
||
|
if (dp.e()) {
|
||
|
((FaceTecSessionActivity) i).setTitle(" ");
|
||
|
this.j.setImportantForAccessibility(1);
|
||
|
this.j.setContentDescription(i.getString(R.string.FaceTec_accessibility_tap_guidance));
|
||
|
this.j.setOnTouchListener(new View.OnTouchListener(i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda2
|
||
|
public final Context f$0;
|
||
|
|
||
|
@Override // android.view.View.OnTouchListener
|
||
|
public final boolean onTouch(View view2, MotionEvent motionEvent) {
|
||
|
boolean b3;
|
||
|
b3 = ay.b(this.f$0, view2, motionEvent);
|
||
|
return b3;
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
this.e.setEnabled(true);
|
||
|
if (FaceTecSDK.c.k.b != FaceTecCancelButtonCustomization.ButtonLocation.DISABLED) {
|
||
|
int aL = db.aL();
|
||
|
if (aL == 0) {
|
||
|
aL = R.drawable.facetec_cancel;
|
||
|
com.facetec.sdk.d dVar2 = com.facetec.sdk.d.CANCEL_BUTTON_RESOURCE_ID_ERROR;
|
||
|
StringBuilder sb = new StringBuilder("Activity State Info: ");
|
||
|
sb.append(t.e((Activity) i));
|
||
|
t.a(i, dVar2, sb.toString());
|
||
|
}
|
||
|
this.e.setImageDrawable(nMh.getDrawable(i, aL));
|
||
|
}
|
||
|
int i3 = AnonymousClass1.c[FaceTecSDK.c.k.b.ordinal()];
|
||
|
if (i3 == 2) {
|
||
|
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.e.getLayoutParams();
|
||
|
layoutParams2.removeRule(20);
|
||
|
layoutParams2.addRule(21);
|
||
|
this.e.setLayoutParams(layoutParams2);
|
||
|
} else if (i3 == 3) {
|
||
|
this.e.setVisibility(8);
|
||
|
} else if (i3 == 4) {
|
||
|
this.e.setVisibility(8);
|
||
|
}
|
||
|
this.e.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda3
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
|
||
|
public final void onGlobalLayout() {
|
||
|
this.f$0.w();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
});
|
||
|
this.e.setOnClickListener(new View.OnClickListener(this, i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda4
|
||
|
public final ay f$0;
|
||
|
public final be f$1;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
this.f$0.e(this.f$1, view2);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
this.f$1 = i;
|
||
|
}
|
||
|
});
|
||
|
this.e.setOnTouchListener(new View.OnTouchListener(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda5
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // android.view.View.OnTouchListener
|
||
|
public final boolean onTouch(View view2, MotionEvent motionEvent) {
|
||
|
boolean c2;
|
||
|
c2 = this.f$0.c(view2, motionEvent);
|
||
|
return c2;
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
});
|
||
|
be i4 = i();
|
||
|
if (i4 != null) {
|
||
|
i4.runOnUiThread(new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda6
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.t();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
this.r = false;
|
||
|
this.j.setVisibility(0);
|
||
|
this.j.setAlpha(1.0f);
|
||
|
this.n.setAlpha(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.e.setAlpha(BitmapDescriptorFactory.HUE_RED);
|
||
|
new Handler().postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda7
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.q();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
}), 0L);
|
||
|
}
|
||
|
|
||
|
/* renamed from: com.facetec.sdk.ay$1, reason: invalid class name */
|
||
|
/* loaded from: classes.dex */
|
||
|
static final /* synthetic */ class AnonymousClass1 {
|
||
|
static final int[] b;
|
||
|
static final int[] c;
|
||
|
|
||
|
static {
|
||
|
int[] iArr = new int[FaceTecCancelButtonCustomization.ButtonLocation.values().length];
|
||
|
c = iArr;
|
||
|
try {
|
||
|
iArr[FaceTecCancelButtonCustomization.ButtonLocation.TOP_LEFT.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused) {
|
||
|
}
|
||
|
try {
|
||
|
c[FaceTecCancelButtonCustomization.ButtonLocation.TOP_RIGHT.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused2) {
|
||
|
}
|
||
|
try {
|
||
|
c[FaceTecCancelButtonCustomization.ButtonLocation.CUSTOM.ordinal()] = 3;
|
||
|
} catch (NoSuchFieldError unused3) {
|
||
|
}
|
||
|
try {
|
||
|
c[FaceTecCancelButtonCustomization.ButtonLocation.DISABLED.ordinal()] = 4;
|
||
|
} catch (NoSuchFieldError unused4) {
|
||
|
}
|
||
|
int[] iArr2 = new int[FaceTecSecurityWatermarkImage.values().length];
|
||
|
b = iArr2;
|
||
|
try {
|
||
|
iArr2[FaceTecSecurityWatermarkImage.FACETEC_ZOOM.ordinal()] = 1;
|
||
|
} catch (NoSuchFieldError unused5) {
|
||
|
}
|
||
|
try {
|
||
|
b[FaceTecSecurityWatermarkImage.FACETEC.ordinal()] = 2;
|
||
|
} catch (NoSuchFieldError unused6) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void w() {
|
||
|
if (this.s) {
|
||
|
return;
|
||
|
}
|
||
|
this.s = true;
|
||
|
float e = db.e();
|
||
|
float d2 = db.d();
|
||
|
int a2 = db.a();
|
||
|
int b = (int) (av.b(35) * d2 * e);
|
||
|
float f = a2 / 2.0f;
|
||
|
int round = Math.round(f);
|
||
|
int round2 = Math.round(f);
|
||
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.e.getLayoutParams();
|
||
|
layoutParams.setMargins(round, round, 0, 0);
|
||
|
layoutParams.setMarginStart(round);
|
||
|
layoutParams.setMarginEnd(round);
|
||
|
this.e.setLayoutParams(layoutParams);
|
||
|
this.e.setPadding(round2, round2, round2, round2);
|
||
|
this.e.getLayoutParams().height = b;
|
||
|
this.e.getLayoutParams().width = b;
|
||
|
this.e.requestLayout();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void e(be beVar, View view) {
|
||
|
if (this.t) {
|
||
|
al.a(beVar, ap.FT_EVENT_FACESCAN_SESSION_FAIL);
|
||
|
}
|
||
|
beVar.l();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ boolean c(View view, MotionEvent motionEvent) {
|
||
|
if (motionEvent.getAction() == 0) {
|
||
|
this.e.setAlpha(0.4f);
|
||
|
} else if (motionEvent.getAction() == 3 || motionEvent.getX() < BitmapDescriptorFactory.HUE_RED || motionEvent.getX() > this.e.getWidth() + this.e.getLeft() + 10 || motionEvent.getY() < BitmapDescriptorFactory.HUE_RED || motionEvent.getY() > this.e.getHeight() + this.e.getTop() + 10) {
|
||
|
this.e.setAlpha(1.0f);
|
||
|
} else if (motionEvent.getAction() == 1) {
|
||
|
this.e.setAlpha(1.0f);
|
||
|
this.e.setEnabled(false);
|
||
|
if (i() == null) {
|
||
|
return false;
|
||
|
}
|
||
|
this.e.performClick();
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Fragment
|
||
|
public final Animator onCreateAnimator(int i, boolean z, int i2) {
|
||
|
if (!z) {
|
||
|
return ObjectAnimator.ofFloat((Object) null, "alpha", 1.0f, BitmapDescriptorFactory.HUE_RED).setDuration(400L);
|
||
|
}
|
||
|
return super.onCreateAnimator(i, z, i2);
|
||
|
}
|
||
|
|
||
|
private be i() {
|
||
|
return (be) getActivity();
|
||
|
}
|
||
|
|
||
|
private cd f() {
|
||
|
be i = i();
|
||
|
if (i != null) {
|
||
|
return i.b;
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void q() {
|
||
|
this.j.setVisibility(0);
|
||
|
this.i.c();
|
||
|
this.j.animate().alpha(1.0f).setDuration(200L).setListener(null).start();
|
||
|
this.n.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(300L).setListener(null).start();
|
||
|
if (FaceTecSDK.c.k.b == FaceTecCancelButtonCustomization.ButtonLocation.TOP_LEFT || FaceTecSDK.c.k.b == FaceTecCancelButtonCustomization.ButtonLocation.TOP_RIGHT) {
|
||
|
this.e.setVisibility(0);
|
||
|
this.e.animate().alpha(1.0f).setDuration(500L).setStartDelay(50L).setListener(null).start();
|
||
|
}
|
||
|
be i = i();
|
||
|
if (i == null) {
|
||
|
return;
|
||
|
}
|
||
|
i.d.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setStartDelay(0L).setListener(null).start();
|
||
|
this.k.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda17
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.x();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
}), 500L);
|
||
|
this.k.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda18
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.p();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
}), 1150L);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void x() {
|
||
|
if (this.h) {
|
||
|
return;
|
||
|
}
|
||
|
this.d.setAlpha(BitmapDescriptorFactory.HUE_RED);
|
||
|
if (!ba.c) {
|
||
|
this.d.setVisibility(0);
|
||
|
} else {
|
||
|
this.d.setVisibility(4);
|
||
|
}
|
||
|
this.c.setAlpha(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.v = false;
|
||
|
this.j.e(false);
|
||
|
int h = this.j.h() - (this.y << 1);
|
||
|
if ((((int) this.j.b.bottom) - this.d.getHeight()) - (this.y << 1) >= h && db.b() < 1.4d) {
|
||
|
this.d.setY(h);
|
||
|
}
|
||
|
this.d.animate().alpha(1.0f).setDuration(500L).setListener(null).start();
|
||
|
}
|
||
|
|
||
|
private void c(final Context context) {
|
||
|
t.e = ak.m;
|
||
|
this.h = false;
|
||
|
final bg bgVar = (bg) getActivity();
|
||
|
if (bgVar != null) {
|
||
|
bgVar.y = bg.a.FACESCAN_SESSION_STARTED;
|
||
|
}
|
||
|
this.k.postDelayed(new aq.e(this, new Runnable(this, context, bgVar) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda19
|
||
|
public final ay f$0;
|
||
|
public final Context f$1;
|
||
|
public final bg f$2;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.b(this.f$1, this.f$2);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
this.f$1 = context;
|
||
|
this.f$2 = bgVar;
|
||
|
}
|
||
|
}), 20L);
|
||
|
t.e(ct.FACE_SCAN_UNZOOMED);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void b(Context context, bg bgVar) {
|
||
|
be i;
|
||
|
cd f = f();
|
||
|
if (f == null || f.d(context, bgVar.f) || (i = i()) == null) {
|
||
|
return;
|
||
|
}
|
||
|
i.e(ak.p);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void t() {
|
||
|
this.e.setImageResource(db.aL());
|
||
|
this.j.j();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void s() {
|
||
|
this.u.release();
|
||
|
}
|
||
|
|
||
|
@Override // android.app.Fragment
|
||
|
public final void onPause() {
|
||
|
super.onPause();
|
||
|
Handler handler = this.k;
|
||
|
if (handler != null) {
|
||
|
handler.removeCallbacksAndMessages(null);
|
||
|
}
|
||
|
Handler handler2 = this.m;
|
||
|
if (handler2 != null) {
|
||
|
handler2.removeCallbacksAndMessages(null);
|
||
|
}
|
||
|
Handler handler3 = this.l;
|
||
|
if (handler3 != null) {
|
||
|
handler3.removeCallbacksAndMessages(null);
|
||
|
}
|
||
|
cp cpVar = this.i;
|
||
|
if (cpVar != null && cpVar.i != null) {
|
||
|
cpVar.i.removeCallbacksAndMessages(null);
|
||
|
cpVar.i = null;
|
||
|
}
|
||
|
Handler handler4 = this.B;
|
||
|
if (handler4 != null) {
|
||
|
handler4.removeCallbacksAndMessages(null);
|
||
|
this.B = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public static /* synthetic */ boolean b(Context context, View view, MotionEvent motionEvent) {
|
||
|
if (motionEvent.getAction() == 1) {
|
||
|
dp.b(context, dp.b.BLIND_USER_ASSIST_FACESCAN_FEEDBACK);
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class d implements cd.e {
|
||
|
private ay d;
|
||
|
|
||
|
protected d(ay ayVar) {
|
||
|
this.d = ayVar;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.e
|
||
|
public final void c(ci ciVar, ce ceVar) {
|
||
|
this.d.a(ciVar, ceVar);
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.e
|
||
|
public final void e() {
|
||
|
ay.a(this.d);
|
||
|
this.d.c();
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.e
|
||
|
public final void a() {
|
||
|
ay.a(this.d);
|
||
|
this.d.e();
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.e
|
||
|
public final void c() {
|
||
|
ay.a(this.d);
|
||
|
this.d.a();
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.cd.e
|
||
|
public final void d() {
|
||
|
ay.a(this.d);
|
||
|
this.d.b();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected final void a(ci ciVar, ce ceVar) {
|
||
|
be i = i();
|
||
|
if (!isAdded() || i == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (this.j.g() && ceVar == ce.HOLD_STEADY && !this.v) {
|
||
|
this.c.animate().alpha(1.0f).setDuration(500L).setStartDelay(0L).setListener(null).start();
|
||
|
this.v = true;
|
||
|
}
|
||
|
if (!this.t && ceVar != ce.FACE_NOT_FOUND) {
|
||
|
this.t = true;
|
||
|
if (!this.p) {
|
||
|
this.p = true;
|
||
|
bt.c(i);
|
||
|
}
|
||
|
i.i();
|
||
|
}
|
||
|
if (!isAdded() || this.h) {
|
||
|
return;
|
||
|
}
|
||
|
ci ciVar2 = this.x;
|
||
|
if (ciVar2 != ciVar) {
|
||
|
if (ciVar2 != null) {
|
||
|
l();
|
||
|
}
|
||
|
this.x = ciVar;
|
||
|
this.w = false;
|
||
|
}
|
||
|
if (ciVar == ci.ZOOM_CLOSE) {
|
||
|
t.e = ak.l;
|
||
|
if (!this.j.g()) {
|
||
|
cy.b(new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda13
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.r();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
});
|
||
|
cr crVar = this.j;
|
||
|
crVar.setOvalHasExpanded(true);
|
||
|
crVar.c(crVar.m);
|
||
|
if (dp.e()) {
|
||
|
dp.a(i(), getString(R.string.FaceTec_accessibility_feedback_move_phone_closer));
|
||
|
}
|
||
|
if (FaceTecSDK.c.vocalGuidanceCustomization.mode == FaceTecVocalGuidanceCustomization.VocalGuidanceMode.FULL_VOCAL_GUIDANCE) {
|
||
|
dp.b(i(), dp.b.FACE_CAPTURE_MOVE_CLOSER_AUTOMATIC);
|
||
|
Handler handler = new Handler();
|
||
|
this.B = handler;
|
||
|
handler.postDelayed(this.D, 4500L);
|
||
|
}
|
||
|
if (FaceTecSDK.c.f6400o.enablePulsatingText) {
|
||
|
Handler handler2 = new Handler();
|
||
|
this.l = handler2;
|
||
|
handler2.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda14
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.o();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
}), 3000L);
|
||
|
}
|
||
|
t.e(ct.FACE_SCAN_ZOOMED);
|
||
|
}
|
||
|
}
|
||
|
e(ciVar, ceVar);
|
||
|
}
|
||
|
|
||
|
protected final void a() {
|
||
|
bg bgVar = (bg) getActivity();
|
||
|
if (bgVar != null) {
|
||
|
bgVar.x();
|
||
|
}
|
||
|
final be i = i();
|
||
|
if (!isAdded() || i == null) {
|
||
|
return;
|
||
|
}
|
||
|
n();
|
||
|
bt.e(i);
|
||
|
if (this.t) {
|
||
|
al.a(i, ap.FT_EVENT_FACESCAN_SESSION_FAIL);
|
||
|
}
|
||
|
a((Runnable) new aq.e(this, new Runnable(this, i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda11
|
||
|
public final ay f$0;
|
||
|
public final be f$1;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.j(this.f$1);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
this.f$1 = i;
|
||
|
}
|
||
|
}), false);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void j(final be beVar) {
|
||
|
this.k.post(new aq.e(this, new Runnable(beVar) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda12
|
||
|
public final be f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.h();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = beVar;
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
protected final void b() {
|
||
|
if (this.A) {
|
||
|
return;
|
||
|
}
|
||
|
this.A = true;
|
||
|
final be i = i();
|
||
|
if (!isAdded() || i == null) {
|
||
|
return;
|
||
|
}
|
||
|
a((Runnable) new aq.e(this, new Runnable(this, i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda1
|
||
|
public final ay f$0;
|
||
|
public final be f$1;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.d(this.f$1);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
this.f$1 = i;
|
||
|
}
|
||
|
}), true);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void d(final be beVar) {
|
||
|
this.k.post(new aq.e(this, new Runnable(beVar) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda0
|
||
|
public final be f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.j();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = beVar;
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
protected final void e() {
|
||
|
this.A = false;
|
||
|
bg bgVar = (bg) getActivity();
|
||
|
if (bgVar != null) {
|
||
|
bgVar.x();
|
||
|
}
|
||
|
final be i = i();
|
||
|
if (i == null) {
|
||
|
return;
|
||
|
}
|
||
|
n();
|
||
|
if (this.p) {
|
||
|
bt.a(i);
|
||
|
this.p = false;
|
||
|
}
|
||
|
if (this.q) {
|
||
|
try {
|
||
|
this.q = false;
|
||
|
} catch (Exception unused) {
|
||
|
}
|
||
|
}
|
||
|
al.a(i, ap.FT_EVENT_FACESCAN_SESSION_SUCCESS);
|
||
|
this.k.post(new Runnable(i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda15
|
||
|
public final be f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.b();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
protected final void c() {
|
||
|
bg bgVar = (bg) getActivity();
|
||
|
if (bgVar != null) {
|
||
|
bgVar.x();
|
||
|
}
|
||
|
final be i = i();
|
||
|
if (!isAdded() || i == null) {
|
||
|
return;
|
||
|
}
|
||
|
n();
|
||
|
bt.e(i);
|
||
|
if (this.t) {
|
||
|
al.a(i, ap.FT_EVENT_FACESCAN_SESSION_FAIL);
|
||
|
}
|
||
|
a((Runnable) new aq.e(this, new Runnable(this, i) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda20
|
||
|
public final ay f$0;
|
||
|
public final be f$1;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.c(this.f$1);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
this.f$1 = i;
|
||
|
}
|
||
|
}), false);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void c(final be beVar) {
|
||
|
this.k.post(new aq.e(this, new Runnable(beVar) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda16
|
||
|
public final be f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.f();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = beVar;
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
|
||
|
private void n() {
|
||
|
cd f = f();
|
||
|
if (f != null) {
|
||
|
f.a(this.f);
|
||
|
this.f = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void l() {
|
||
|
if (this.w || !this.t) {
|
||
|
return;
|
||
|
}
|
||
|
this.j.c();
|
||
|
this.w = true;
|
||
|
}
|
||
|
|
||
|
private void e(ci ciVar, ce ceVar) {
|
||
|
synchronized (this) {
|
||
|
if (ciVar == ci.ZOOM_FAR) {
|
||
|
m();
|
||
|
}
|
||
|
if (ceVar == ce.HOLD_STEADY) {
|
||
|
this.j.c();
|
||
|
this.w = true;
|
||
|
}
|
||
|
cp cpVar = this.i;
|
||
|
if (ceVar != cpVar.b && !cpVar.f) {
|
||
|
cpVar.b = ceVar;
|
||
|
cpVar.e(cp.c(ceVar));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void a(cj cjVar) {
|
||
|
synchronized (this) {
|
||
|
m();
|
||
|
cp cpVar = this.i;
|
||
|
if (cjVar != cpVar.c && !cpVar.f) {
|
||
|
cpVar.c = cjVar;
|
||
|
int c = cp.c(cjVar);
|
||
|
if (!cpVar.f && c != cpVar.e) {
|
||
|
cpVar.e = c;
|
||
|
cpVar.f = false;
|
||
|
dp.e(cpVar.e);
|
||
|
cx.e(cpVar.a, cpVar.e);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void m() {
|
||
|
if (this.j.g()) {
|
||
|
this.j.f();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:11:0x022c */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:14:? A[RETURN, SYNTHETIC] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public /* synthetic */ void r() {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 658
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.facetec.sdk.ay.r():void");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void o() {
|
||
|
this.i.b();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void k() {
|
||
|
if (cg.g() == ci.ZOOM_CLOSE) {
|
||
|
dp.b(i(), dp.b.FACE_CAPTURE_MOVE_CLOSER_DELAYED);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public final void j() {
|
||
|
Semaphore semaphore = this.u;
|
||
|
if (semaphore != null) {
|
||
|
try {
|
||
|
if (semaphore.tryAcquire(2000L, TimeUnit.MILLISECONDS)) {
|
||
|
this.u.release();
|
||
|
}
|
||
|
} catch (InterruptedException unused) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void a(Runnable runnable, boolean z) {
|
||
|
l();
|
||
|
d(z);
|
||
|
runnable.run();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public void d(cl clVar, ch chVar, cj cjVar, ck ckVar) {
|
||
|
if (clVar == cl.TIMEOUT_GO_TO_RETRY) {
|
||
|
cd f = f();
|
||
|
if (f != null) {
|
||
|
f.i();
|
||
|
f.c(this.z);
|
||
|
}
|
||
|
be i = i();
|
||
|
if (i != null) {
|
||
|
i.g();
|
||
|
return;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (this.r && clVar != cl.DETECTING_LIGHT_MODE) {
|
||
|
if (clVar == cl.DETECTING_FACE_FEEDBACK) {
|
||
|
if (!isAdded() || this.h) {
|
||
|
return;
|
||
|
}
|
||
|
this.b = cjVar;
|
||
|
a(cjVar);
|
||
|
return;
|
||
|
}
|
||
|
cd f2 = f();
|
||
|
if (f2 != null) {
|
||
|
f2.i();
|
||
|
f2.c(this.z);
|
||
|
}
|
||
|
c((Context) i());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private void d(boolean z) {
|
||
|
int i = z ? TitleChanger.DEFAULT_ANIMATION_DELAY : 300;
|
||
|
cr crVar = this.j;
|
||
|
if (crVar.m != null) {
|
||
|
crVar.m.cancel();
|
||
|
}
|
||
|
if (crVar.j != null) {
|
||
|
crVar.j.cancel();
|
||
|
}
|
||
|
if (crVar.l != null) {
|
||
|
crVar.l.cancel();
|
||
|
}
|
||
|
this.j.e(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.ay$$ExternalSyntheticLambda10
|
||
|
public final ay f$0;
|
||
|
|
||
|
@Override // java.lang.Runnable
|
||
|
public final void run() {
|
||
|
this.f$0.s();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.f$0 = this;
|
||
|
}
|
||
|
}), z);
|
||
|
try {
|
||
|
this.u.acquire();
|
||
|
} catch (InterruptedException unused) {
|
||
|
}
|
||
|
this.e.setVisibility(4);
|
||
|
this.g.setVisibility(4);
|
||
|
this.f6408o.setVisibility(4);
|
||
|
db.f(this.n);
|
||
|
this.n.animate().alpha(1.0f).setDuration(i + 100).setStartDelay(0L).setListener(null).start();
|
||
|
AnimatorSet duration = new AnimatorSet().setDuration(i);
|
||
|
duration.playTogether(ObjectAnimator.ofFloat(this.d, (Property<LinearLayout, Float>) View.ALPHA, BitmapDescriptorFactory.HUE_RED), ObjectAnimator.ofFloat(this.i, (Property<cp, Float>) View.ALPHA, BitmapDescriptorFactory.HUE_RED), ObjectAnimator.ofFloat(this.e, (Property<ImageView, Float>) View.ALPHA, BitmapDescriptorFactory.HUE_RED), ObjectAnimator.ofFloat(this.i, (Property<cp, Float>) View.TRANSLATION_Y, (-this.i.getHeight()) / 2));
|
||
|
duration.start();
|
||
|
}
|
||
|
|
||
|
static /* synthetic */ void a(ay ayVar) {
|
||
|
dp.a();
|
||
|
ayVar.j.setImportantForAccessibility(2);
|
||
|
ayVar.j.setOnTouchListener(null);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
private static void J(String str, char c, String str2, int i, String str3, Object[] objArr) {
|
||
|
char c2;
|
||
|
char[] charArray = str3 != null ? str3.toCharArray() : str3;
|
||
|
char[] charArray2 = str2 != 0 ? str2.toCharArray() : str2;
|
||
|
char[] charArray3 = str != null ? str.toCharArray() : str;
|
||
|
go goVar = new go();
|
||
|
int length = charArray3.length;
|
||
|
char[] cArr = new char[length];
|
||
|
int length2 = charArray.length;
|
||
|
char[] cArr2 = new char[length2];
|
||
|
byte b = 0;
|
||
|
System.arraycopy(charArray3, 0, cArr, 0, length);
|
||
|
System.arraycopy(charArray, 0, cArr2, 0, length2);
|
||
|
cArr[0] = (char) (cArr[0] ^ c);
|
||
|
cArr2[2] = (char) (cArr2[2] + ((char) i));
|
||
|
int length3 = charArray2.length;
|
||
|
char[] cArr3 = new char[length3];
|
||
|
goVar.e = 0;
|
||
|
while (goVar.e < length3) {
|
||
|
try {
|
||
|
Object[] objArr2 = {goVar};
|
||
|
Object obj = bo.s.get(1464055633);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) bo.e(711 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) TextUtils.getTrimmedLength(""), 24 - (ViewConfiguration.getEdgeSlop() >> 16));
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
L((short) 1, b, b, objArr3);
|
||
|
String str4 = (String) objArr3[b];
|
||
|
Class<?>[] clsArr = new Class[1];
|
||
|
clsArr[b] = Object.class;
|
||
|
obj = cls.getMethod(str4, clsArr);
|
||
|
bo.s.put(1464055633, obj);
|
||
|
}
|
||
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
||
|
try {
|
||
|
Object[] objArr4 = {goVar};
|
||
|
Object obj2 = bo.s.get(-1197337401);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) bo.e(76 - ExpandableListView.getPackedPositionGroup(0L), (char) TextUtils.getOffsetBefore("", b), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 23);
|
||
|
Class<?>[] clsArr2 = new Class[1];
|
||
|
clsArr2[b] = Object.class;
|
||
|
obj2 = cls2.getMethod("i", clsArr2);
|
||
|
bo.s.put(-1197337401, obj2);
|
||
|
}
|
||
|
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
|
||
|
char c3 = cArr[goVar.e % 4];
|
||
|
try {
|
||
|
Object[] objArr5 = new Object[3];
|
||
|
objArr5[2] = Integer.valueOf(cArr2[intValue]);
|
||
|
objArr5[1] = Integer.valueOf(c3 * 32718);
|
||
|
objArr5[b] = goVar;
|
||
|
Object obj3 = bo.s.get(1933927865);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) bo.e((ViewConfiguration.getKeyRepeatDelay() >> 16) + 1020, (char) (ViewConfiguration.getJumpTapTimeout() >> 16), 23 - (CdmaCellLocation.convertQuartSecToDecDegrees(b) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(b) == 0.0d ? 0 : -1)));
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
L(b, b, b, objArr6);
|
||
|
String str5 = (String) objArr6[b];
|
||
|
Class<?>[] clsArr3 = new Class[3];
|
||
|
clsArr3[b] = Object.class;
|
||
|
clsArr3[1] = Integer.TYPE;
|
||
|
clsArr3[2] = Integer.TYPE;
|
||
|
obj3 = cls3.getMethod(str5, clsArr3);
|
||
|
bo.s.put(1933927865, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr5);
|
||
|
char c4 = cArr[intValue2];
|
||
|
try {
|
||
|
Object[] objArr7 = new Object[2];
|
||
|
objArr7[1] = Integer.valueOf(cArr2[intValue]);
|
||
|
objArr7[b] = Integer.valueOf(c4 * 32718);
|
||
|
Object obj4 = bo.s.get(854524359);
|
||
|
if (obj4 == null) {
|
||
|
Class cls4 = (Class) bo.e((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 1877, (char) (23953 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 24 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)));
|
||
|
c2 = 2;
|
||
|
Class<?>[] clsArr4 = new Class[2];
|
||
|
clsArr4[b] = Integer.TYPE;
|
||
|
clsArr4[1] = Integer.TYPE;
|
||
|
obj4 = cls4.getMethod("n", clsArr4);
|
||
|
bo.s.put(854524359, obj4);
|
||
|
} else {
|
||
|
c2 = 2;
|
||
|
}
|
||
|
cArr2[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr7)).charValue();
|
||
|
cArr[intValue2] = goVar.c;
|
||
|
cArr3[goVar.e] = (char) ((((int) (G ^ 7648925806061772164L)) ^ ((cArr[intValue2] ^ charArray2[goVar.e]) ^ (C ^ 7648925806061772164L))) ^ ((char) (E ^ 7648925806061772164L)));
|
||
|
goVar.e++;
|
||
|
b = 0;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
} catch (Throwable th3) {
|
||
|
Throwable cause3 = th3.getCause();
|
||
|
if (cause3 == null) {
|
||
|
throw th3;
|
||
|
}
|
||
|
throw cause3;
|
||
|
}
|
||
|
} catch (Throwable th4) {
|
||
|
Throwable cause4 = th4.getCause();
|
||
|
if (cause4 == null) {
|
||
|
throw th4;
|
||
|
}
|
||
|
throw cause4;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr3);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public /* synthetic */ void p() {
|
||
|
this.r = true;
|
||
|
}
|
||
|
|
||
|
static void init$1() {
|
||
|
$$d = new byte[]{15, -39, Ascii.DC2, 6};
|
||
|
$$e = 210;
|
||
|
}
|
||
|
|
||
|
static void init$0() {
|
||
|
$$a = new byte[]{41, ISO7816.INS_INCREASE, -119, 56};
|
||
|
$$b = 56;
|
||
|
}
|
||
|
|
||
|
static void h() {
|
||
|
F = new byte[]{83, -66, 78, -112, 7, 1, -7, -4, 13, -9, -3, 51, -23, -16, 13, 39, ISO7816.INS_UPDATE_BINARY, 13, 1, 11, -19, Ascii.ETB, 53, -60, 13, -11, 9, 59, -35, ISO7816.INS_UPDATE_RECORD, 8, 1, 17, -6};
|
||
|
I = 65;
|
||
|
}
|
||
|
|
||
|
static void g() {
|
||
|
G = -1348379260;
|
||
|
E = (char) 9720;
|
||
|
C = 7648925806061772164L;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
init$1();
|
||
|
init$0();
|
||
|
h();
|
||
|
g();
|
||
|
a = false;
|
||
|
}
|
||
|
}
|