what-the-bank/sources/com/facetec/sdk/co.java

1503 lines
55 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.LayerDrawable;
import android.graphics.drawable.ScaleDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.LinearInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.vectordrawable.graphics.drawable.Animatable2Compat;
import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat;
import com.facetec.sdk.FaceTecCancelButtonCustomization;
import com.facetec.sdk.aq;
import com.facetec.sdk.co;
import com.google.android.gms.auth.api.proxy.AuthApiStatusCodes;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import o.nMh;
import org.jmrtd.cbeff.ISO781611;
/* loaded from: classes.dex */
public final class co extends aq {
private AnimatedVectorDrawableCompat H;
private Animatable2Compat.AnimationCallback I;
RelativeLayout a;
TextView b;
View c;
RelativeLayout d;
ImageView e;
protected AnimatedVectorDrawableCompat f;
private ImageView g;
private TextView h;
a i;
ImageView j;
private RelativeLayout k;
private ImageView l;
private ImageView m;
private ProgressBar n;
/* renamed from: o, reason: collision with root package name */
private TextView f6424o;
private RelativeLayout p;
private TextView q;
private ObjectAnimator r;
private LinearLayout s;
private ImageView t;
private Handler v;
private boolean y = false;
private boolean x = false;
private boolean w = false;
private boolean u = false;
private boolean z = false;
private long A = -1;
private c B = c.UPLOAD_STARTED;
private e C = e.DEFAULT;
private final Handler D = new Handler(Looper.getMainLooper());
private final aq.e E = new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda32
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.s();
}
{
this.f$0 = this;
}
});
private ViewTreeObserver.OnGlobalLayoutListener F = new ViewTreeObserver.OnGlobalLayoutListener(this) { // from class: com.facetec.sdk.co.3
private co e;
{
this.e = this;
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public final void onGlobalLayout() {
if (this.e.y) {
return;
}
co.c(this.e);
this.e.a();
float e2 = db.e();
float d = db.d();
int a = db.a();
int b = (int) (av.b(35) * d * e2);
float f = a / 2.0f;
int round = Math.round(f);
int round2 = Math.round(f);
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.e.j.getLayoutParams();
layoutParams.setMargins(round, round, 0, 0);
layoutParams.setMarginStart(round);
layoutParams.setMarginEnd(round);
this.e.j.setLayoutParams(layoutParams);
this.e.j.setPadding(round2, round2, round2, round2);
this.e.j.getLayoutParams().height = b;
this.e.j.getLayoutParams().width = b;
this.e.j.requestLayout();
}
};
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum c {
UPLOAD_STARTED,
STILL_UPLOADING,
UPLOAD_COMPLETE_AWAITING_RESPONSE,
UPLOAD_COMPLETE_AWAITING_PROCESSING
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public enum e {
DEFAULT,
FRONT_SIDE,
BACK_SIDE,
USER_CONFIRMED_INFO,
NFC,
SKIPPED_NFC
}
static /* synthetic */ boolean c(co coVar) {
coVar.y = true;
return true;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void s() {
be beVar = (be) getActivity();
if (beVar != null) {
beVar.q();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static co d(boolean z, e eVar) {
co coVar = new co();
Bundle bundle = new Bundle();
bundle.putBoolean("isIDScan", z);
bundle.putSerializable("uploadType", eVar);
coVar.setArguments(bundle);
return coVar;
}
@Override // com.facetec.sdk.aq, android.app.Fragment
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
Handler handler = new Handler();
this.v = handler;
handler.postDelayed(this.E, 600000L);
}
@Override // android.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(R.layout.facetec_results_fragment, viewGroup, false);
}
@Override // android.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
super.onViewCreated(view, bundle);
this.x = getArguments().getBoolean("isIDScan");
this.C = (e) getArguments().get("uploadType");
this.B = c.UPLOAD_STARTED;
this.g = (ImageView) view.findViewById(R.id.activityIndicatorImageView);
this.n = (ProgressBar) view.findViewById(R.id.uploadProgressBar);
this.h = (TextView) view.findViewById(R.id.progressTextView);
this.f6424o = (TextView) view.findViewById(R.id.resultTextView);
this.c = view.findViewById(R.id.zoomResultBackground);
this.p = (RelativeLayout) view.findViewById(R.id.progressBarLayout);
this.a = (RelativeLayout) view.findViewById(R.id.zoomResultLayout);
this.k = (RelativeLayout) view.findViewById(R.id.zoomResultContainer);
this.m = (ImageView) view.findViewById(R.id.resultAnimationBackground);
this.l = (ImageView) view.findViewById(R.id.resultAnimationForeground);
this.s = (LinearLayout) view.findViewById(R.id.devModeTagLayout);
this.q = (TextView) view.findViewById(R.id.devModeTagTextView);
this.t = (ImageView) view.findViewById(R.id.devModeTagImageView);
this.e = (ImageView) view.findViewById(R.id.nfcIcon);
this.b = (TextView) view.findViewById(R.id.nfcStatus);
this.d = (RelativeLayout) view.findViewById(R.id.nfcLayout);
ImageView imageView = (ImageView) view.findViewById(R.id.nfcBackButton);
this.j = imageView;
imageView.setEnabled(true);
if (FaceTecSDK.c.k.b != FaceTecCancelButtonCustomization.ButtonLocation.DISABLED) {
this.j.setImageDrawable(nMh.getDrawable(getActivity(), db.aL()));
}
int i = AnonymousClass4.e[FaceTecSDK.c.k.b.ordinal()];
if (i == 2) {
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.j.getLayoutParams();
layoutParams.removeRule(20);
layoutParams.addRule(21);
this.j.setLayoutParams(layoutParams);
} else if (i == 3 || i == 4) {
this.j.setVisibility(8);
}
this.j.getViewTreeObserver().addOnGlobalLayoutListener(this.F);
this.j.setOnClickListener(new View.OnClickListener(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda33
public final co f$0;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
this.f$0.c(view2);
}
{
this.f$0 = this;
}
});
this.j.setOnTouchListener(new View.OnTouchListener(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda1
public final co f$0;
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view2, MotionEvent motionEvent) {
boolean e2;
e2 = this.f$0.e(view2, motionEvent);
return e2;
}
{
this.f$0 = this;
}
});
if (bf.e() && FaceTecSDK.c.b && !getActivity().getPackageName().contains("com.facetec.zoomlogin") && !getActivity().getPackageName().contains("om.facetec.photoidmatchtester")) {
float e2 = db.e() * db.d();
this.q.setTypeface(FaceTecSDK.c.j.messageFont);
this.q.setTextSize(2, 14.0f * e2);
db.e(this.q);
this.t.setColorFilter(db.M(), PorterDuff.Mode.SRC_IN);
this.t.getLayoutParams().height = (int) (av.b(18) * e2);
this.t.getLayoutParams().width = (int) (av.b(18) * e2);
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.s.getLayoutParams();
((ViewGroup.MarginLayoutParams) layoutParams2).bottomMargin = db.a();
((ViewGroup.LayoutParams) layoutParams2).height = (int) (av.b(26) * e2);
this.s.setLayoutParams(layoutParams2);
this.s.requestLayout();
this.s.setOnClickListener(new View.OnClickListener(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda2
public final co f$0;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
this.f$0.b(view2);
}
{
this.f$0 = this;
}
});
this.s.setOnTouchListener(new View.OnTouchListener(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda3
public final co f$0;
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view2, MotionEvent motionEvent) {
boolean d;
d = this.f$0.d(view2, motionEvent);
return d;
}
{
this.f$0 = this;
}
});
this.s.setVisibility(0);
}
db.f(this.c);
if (!this.x) {
this.c.getBackground().setAlpha(db.aU());
}
float e3 = db.e() * db.d();
float bj = db.bj();
int a = db.a();
int round = Math.round(av.b(80) * bj * e3);
int round2 = Math.round(av.b(ISO781611.BIOMETRIC_SUBTYPE_TAG) * e3);
int round3 = Math.round(av.b(-55) * e3);
int round4 = Math.round(av.b(6) * e3);
int round5 = Math.round(av.b(50) * e3);
a aVar = (a) view.findViewById(R.id.nfcSkipButton);
this.i = aVar;
aVar.b();
this.i.setText(cx.d(R.string.FaceTec_action_skip_nfc));
this.i.setEnabled(false);
this.i.c(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda4
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.q();
}
{
this.f$0 = this;
}
}));
RelativeLayout.LayoutParams layoutParams3 = (RelativeLayout.LayoutParams) this.i.getLayoutParams();
((ViewGroup.LayoutParams) layoutParams3).height = round5;
layoutParams3.setMargins(a, 0, a, a);
this.i.setLayoutParams(layoutParams3);
this.k.setTranslationY(round3);
FrameLayout frameLayout = (FrameLayout) view.findViewById(R.id.resultFrame);
frameLayout.getLayoutParams().height = round;
frameLayout.getLayoutParams().width = round;
this.m.setColorFilter(db.m(getActivity()), PorterDuff.Mode.SRC_IN);
this.l.setColorFilter(db.o(getActivity()), PorterDuff.Mode.SRC_IN);
this.e.getLayoutParams().height = round2;
LayerDrawable layerDrawable = (LayerDrawable) getResources().getDrawable(R.drawable.facetec_progress_bar);
layerDrawable.mutate();
Drawable drawable = layerDrawable.getDrawable(0);
LayerDrawable layerDrawable2 = (LayerDrawable) ((ScaleDrawable) layerDrawable.getDrawable(1)).getDrawable();
Drawable findDrawableByLayerId = layerDrawable2.findDrawableByLayerId(R.id.progressFill);
Drawable findDrawableByLayerId2 = layerDrawable2.findDrawableByLayerId(R.id.progressGlow);
float f = round4 / 2.0f;
((GradientDrawable) drawable).setCornerRadius(f);
((GradientDrawable) findDrawableByLayerId).setCornerRadius(f);
((GradientDrawable) findDrawableByLayerId2).setCornerRadius(f);
db.b(this.n, drawable);
db.d(this.n, findDrawableByLayerId, findDrawableByLayerId2);
this.n.setProgressDrawable(layerDrawable);
LinearLayout.LayoutParams layoutParams4 = (LinearLayout.LayoutParams) this.n.getLayoutParams();
((ViewGroup.LayoutParams) layoutParams4).height = round4;
((ViewGroup.MarginLayoutParams) layoutParams4).topMargin = a;
this.n.setLayoutParams(layoutParams4);
this.n.setVisibility(0);
db.e(this.h);
db.e(this.f6424o);
db.e(this.b);
this.h.setTypeface(FaceTecSDK.c.j.messageFont);
this.f6424o.setTypeface(FaceTecSDK.c.j.messageFont);
this.b.setTypeface(FaceTecSDK.c.j.messageFont);
if (this.x) {
this.h.setText(e(this.B, this.C));
} else {
cx.e(this.h, R.string.FaceTec_result_facescan_upload_message);
this.f6424o.setImportantForAccessibility(1);
this.h.setImportantForAccessibility(1);
TextView textView = this.h;
textView.setContentDescription(textView.getText().toString());
this.h.performAccessibilityAction(64, null);
this.h.sendAccessibilityEvent(8);
}
float f2 = e3 * 24.0f;
this.h.setTextSize(2, f2);
this.b.setTextSize(2, f2);
this.f6424o.setTextSize(2, f2);
LinearLayout.LayoutParams layoutParams5 = (LinearLayout.LayoutParams) this.h.getLayoutParams();
((ViewGroup.MarginLayoutParams) layoutParams5).topMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams5).leftMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams5).rightMargin = a;
this.h.setLayoutParams(layoutParams5);
LinearLayout.LayoutParams layoutParams6 = (LinearLayout.LayoutParams) this.f6424o.getLayoutParams();
((ViewGroup.MarginLayoutParams) layoutParams6).topMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams6).leftMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams6).rightMargin = a;
this.f6424o.setLayoutParams(layoutParams6);
RelativeLayout.LayoutParams layoutParams7 = (RelativeLayout.LayoutParams) this.b.getLayoutParams();
((ViewGroup.MarginLayoutParams) layoutParams7).topMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams7).leftMargin = a;
((ViewGroup.MarginLayoutParams) layoutParams7).rightMargin = a;
this.b.setLayoutParams(layoutParams7);
ViewGroup.LayoutParams layoutParams8 = this.g.getLayoutParams();
layoutParams8.height = round;
layoutParams8.width = round;
this.g.setLayoutParams(layoutParams8);
int aM = db.aM();
int bc = db.bc();
if (bc != 0) {
this.f = av.e(getActivity(), bc);
}
if (this.f != null) {
c(new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda5
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.c();
}
{
this.f$0 = this;
}
});
this.g.setVisibility(0);
} else if (aM != 0) {
this.g.setImageResource(aM);
this.g.clearAnimation();
this.g.setVisibility(0);
RotateAnimation rotateAnimation = new RotateAnimation(BitmapDescriptorFactory.HUE_RED, 360.0f, 1, 0.5f, 1, 0.5f);
rotateAnimation.setInterpolator(new LinearInterpolator());
rotateAnimation.setDuration(FaceTecSDK.c.j.customActivityIndicatorRotationInterval);
rotateAnimation.setRepeatCount(-1);
this.g.startAnimation(rotateAnimation);
} else {
c(new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda6
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b();
}
{
this.f$0 = this;
}
});
}
boolean z = this.x && FaceTecCustomization.s != null;
this.w = z;
if (z) {
this.D.post(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda7
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.p();
}
{
this.f$0 = this;
}
}));
}
if (FaceTecSDK.c.j.showUploadProgressBar) {
this.n.setVisibility(0);
c(new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda8
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.k();
}
{
this.f$0 = this;
}
});
} else {
this.n.setVisibility(4);
}
c(new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda9
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.o();
}
{
this.f$0 = this;
}
});
t.e(ct.RESULT_UPLOAD);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void q() {
FaceTecSessionActivity faceTecSessionActivity = (FaceTecSessionActivity) getActivity();
if (faceTecSessionActivity != null) {
faceTecSessionActivity.G();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void k() {
ProgressBar progressBar = this.n;
ObjectAnimator ofInt = ObjectAnimator.ofInt(progressBar, "progress", progressBar.getProgress(), AuthApiStatusCodes.AUTH_API_INVALID_CREDENTIALS);
this.r = ofInt;
ofInt.setDuration(3000L);
this.r.start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void o() {
this.k.animate().alpha(1.0f).setDuration(800L).setStartDelay(0L).setInterpolator(new DecelerateInterpolator()).setListener(null).start();
this.s.animate().alpha(1.0f).setDuration(800L).setStartDelay(0L).setInterpolator(new DecelerateInterpolator()).setListener(null).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c(View view) {
((FaceTecSessionActivity) getActivity()).l();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean e(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == 0) {
this.j.setAlpha(0.4f);
} else if (motionEvent.getAction() == 3 || motionEvent.getX() < BitmapDescriptorFactory.HUE_RED || motionEvent.getX() > this.j.getWidth() + this.j.getLeft() + 10 || motionEvent.getY() < BitmapDescriptorFactory.HUE_RED || motionEvent.getY() > this.j.getHeight() + this.j.getTop() + 10) {
this.j.setAlpha(1.0f);
} else if (motionEvent.getAction() == 1) {
this.j.setAlpha(1.0f);
this.j.performClick();
}
return true;
}
@Override // android.app.Fragment
public final void onDestroy() {
super.onDestroy();
a();
}
final void a() {
ImageView imageView = this.j;
if (imageView != null) {
imageView.getViewTreeObserver().removeOnGlobalLayoutListener(this.F);
}
this.F = null;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(View view) {
this.s.setEnabled(false);
this.s.setClickable(false);
startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse("https://dev.facetec.com/removing-development-mode-watermark")));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ boolean d(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == 0) {
this.s.setAlpha(0.4f);
} else if (motionEvent.getAction() == 3 || motionEvent.getX() < BitmapDescriptorFactory.HUE_RED || motionEvent.getX() > this.s.getWidth() + this.s.getLeft() + 10 || motionEvent.getY() < BitmapDescriptorFactory.HUE_RED || motionEvent.getY() > this.s.getHeight() + 10) {
this.s.setAlpha(1.0f);
} else if (motionEvent.getAction() == 1) {
this.s.performClick();
}
return true;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(final String str) {
if (this.h == null || this.w) {
return;
}
a(new aq.e(this, new Runnable(this, str) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda24
public final co f$0;
public final String f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e(this.f$1);
}
{
this.f$0 = this;
this.f$1 = str;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(String str) {
if (this.z) {
return;
}
if (this.n == null || r0.getProgress() / this.n.getMax() < 0.9d) {
this.h.setText(str);
this.A = System.nanoTime() / 1000000;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(float f) {
if (this.n == null) {
return;
}
float progress = r0.getProgress() / this.n.getMax();
if (f > 1.0f || progress >= f) {
return;
}
if (f == 1.0f && !this.u) {
this.u = true;
if (this.w) {
this.D.post(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda14
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.m();
}
{
this.f$0 = this;
}
}));
}
}
float f2 = (f * 10000.0f) - 1000.0f;
if (f2 > this.n.getProgress()) {
ObjectAnimator objectAnimator = this.r;
if (objectAnimator != null) {
objectAnimator.end();
this.r = null;
}
this.n.setProgress(Math.round(f2), true);
}
this.v.removeCallbacks(this.E);
this.v.postDelayed(this.E, 600000L);
}
private long d() {
if (this.A != -1) {
long nanoTime = (System.nanoTime() / 1000000) - this.A;
if (nanoTime < 1000) {
return 1000 - nanoTime;
}
}
return 0L;
}
private void a(aq.e eVar) {
this.D.postDelayed(eVar, d());
}
private void c(final boolean z) {
this.D.removeCallbacksAndMessages(null);
a(new aq.e(this, new Runnable(this, z) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda22
public final co f$0;
public final boolean f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b(this.f$1);
}
{
this.f$0 = this;
this.f$1 = z;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(boolean z) {
if (this.h != null) {
String e2 = e(this.B, this.C);
if (e2.equals(this.h.getText().toString())) {
return;
}
if (!z) {
this.h.setText(e2);
this.A = System.nanoTime() / 1000000;
} else {
this.A = (System.nanoTime() / 1000000) + 1000;
this.h.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setListener(null).withEndAction(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda16
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.n();
}
{
this.f$0 = this;
}
})).start();
}
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void n() {
this.h.setText(e(this.B, this.C));
this.h.animate().alpha(1.0f).setDuration(500L).setListener(null).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void i() {
if (this.z) {
return;
}
this.D.removeCallbacksAndMessages(null);
this.D.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda30
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.f();
}
{
this.f$0 = this;
}
}), 500L);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void f() {
this.B = c.UPLOAD_COMPLETE_AWAITING_RESPONSE;
a(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda17
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.j();
}
{
this.f$0 = this;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void j() {
if (this.D == null || this.z) {
return;
}
c(true);
if (this.n != null && FaceTecSDK.c.j.showUploadProgressBar) {
final aq.e eVar = null;
c(new Runnable(this, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda10
public final co f$0;
public final aq.e f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.b(this.f$1);
}
{
this.f$0 = this;
this.f$1 = eVar;
}
});
}
this.D.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda12
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.h();
}
{
this.f$0 = this;
}
}), 3000L);
}
private String e(c cVar, e eVar) {
if (!this.x) {
return cx.d(R.string.FaceTec_result_facescan_upload_message);
}
if (FaceTecCustomization.s == null) {
return cx.d(R.string.FaceTec_result_idscan_upload_message);
}
dd ddVar = dd.UNKNOWN;
int i = AnonymousClass4.d[eVar.ordinal()];
if (i == 2) {
int i2 = AnonymousClass4.a[cVar.ordinal()];
if (i2 == 1) {
ddVar = dd.IDSCAN_FRONT_SIDE_UPLOAD_STARTED;
} else if (i2 == 2) {
ddVar = dd.IDSCAN_FRONT_SIDE_STILL_UPLOADING;
} else if (i2 == 3) {
ddVar = dd.IDSCAN_FRONT_SIDE_UPLOAD_COMPLETE_AWAITING_RESPONSE;
} else if (i2 == 4) {
ddVar = dd.IDSCAN_FRONT_SIDE_UPLOAD_COMPLETE_AWAITING_PROCESSING;
}
} else if (i == 3) {
int i3 = AnonymousClass4.a[cVar.ordinal()];
if (i3 == 1) {
ddVar = dd.IDSCAN_BACK_SIDE_UPLOAD_STARTED;
} else if (i3 == 2) {
ddVar = dd.IDSCAN_BACK_SIDE_STILL_UPLOADING;
} else if (i3 == 3) {
ddVar = dd.IDSCAN_BACK_SIDE_UPLOAD_COMPLETE_AWAITING_RESPONSE;
} else if (i3 == 4) {
ddVar = dd.IDSCAN_BACK_SIDE_UPLOAD_COMPLETE_AWAITING_PROCESSING;
}
} else if (i == 4) {
int i4 = AnonymousClass4.a[cVar.ordinal()];
if (i4 == 1) {
ddVar = dd.IDSCAN_USER_CONFIRMED_INFO_UPLOAD_STARTED;
} else if (i4 == 2) {
ddVar = dd.IDSCAN_USER_CONFIRMED_INFO_STILL_UPLOADING;
} else if (i4 == 3) {
ddVar = dd.IDSCAN_USER_CONFIRMED_INFO_UPLOAD_COMPLETE_AWAITING_RESPONSE;
} else if (i4 == 4) {
ddVar = dd.IDSCAN_USER_CONFIRMED_INFO_UPLOAD_COMPLETE_AWAITING_PROCESSING;
}
} else if (i == 5) {
int i5 = AnonymousClass4.a[cVar.ordinal()];
if (i5 == 1) {
ddVar = dd.NFC_UPLOAD_STARTED;
} else if (i5 == 2) {
ddVar = dd.NFC_STILL_UPLOADING;
} else if (i5 == 3) {
ddVar = dd.NFC_UPLOAD_COMPLETE_AWAITING_RESPONSE;
} else if (i5 == 4) {
ddVar = dd.NFC_UPLOAD_COMPLETE_AWAITING_PROCESSING;
}
} else if (i == 6) {
int i6 = AnonymousClass4.a[cVar.ordinal()];
if (i6 == 1) {
ddVar = dd.SKIPPED_NFC_UPLOAD_STARTED;
} else if (i6 == 2) {
ddVar = dd.SKIPPED_NFC_STILL_UPLOADING;
} else if (i6 == 3) {
ddVar = dd.SKIPPED_NFC_UPLOAD_COMPLETE_AWAITING_RESPONSE;
} else if (i6 == 4) {
ddVar = dd.SKIPPED_NFC_UPLOAD_COMPLETE_AWAITING_PROCESSING;
}
}
String e2 = db.e(ddVar);
if (e2 != null) {
return e2;
}
if (cVar == c.UPLOAD_COMPLETE_AWAITING_PROCESSING) {
return e(c.UPLOAD_COMPLETE_AWAITING_RESPONSE, eVar);
}
if (cVar == c.UPLOAD_COMPLETE_AWAITING_RESPONSE || cVar == c.STILL_UPLOADING) {
return e(c.UPLOAD_STARTED, eVar);
}
if (this.x) {
if (eVar == e.NFC) {
return cx.d(R.string.FaceTec_result_nfc_upload_message);
}
return cx.d(R.string.FaceTec_result_idscan_upload_message);
}
return cx.d(R.string.FaceTec_result_facescan_upload_message);
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.co$4, reason: invalid class name */
/* loaded from: classes.dex */
public static final /* synthetic */ class AnonymousClass4 {
static final int[] a;
static final int[] d;
static final int[] e;
static {
int[] iArr = new int[e.values().length];
d = iArr;
try {
iArr[e.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
d[e.FRONT_SIDE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
d[e.BACK_SIDE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
d[e.USER_CONFIRMED_INFO.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
d[e.NFC.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
d[e.SKIPPED_NFC.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
int[] iArr2 = new int[c.values().length];
a = iArr2;
try {
iArr2[c.UPLOAD_STARTED.ordinal()] = 1;
} catch (NoSuchFieldError unused7) {
}
try {
a[c.STILL_UPLOADING.ordinal()] = 2;
} catch (NoSuchFieldError unused8) {
}
try {
a[c.UPLOAD_COMPLETE_AWAITING_RESPONSE.ordinal()] = 3;
} catch (NoSuchFieldError unused9) {
}
try {
a[c.UPLOAD_COMPLETE_AWAITING_PROCESSING.ordinal()] = 4;
} catch (NoSuchFieldError unused10) {
}
int[] iArr3 = new int[FaceTecCancelButtonCustomization.ButtonLocation.values().length];
e = iArr3;
try {
iArr3[FaceTecCancelButtonCustomization.ButtonLocation.TOP_LEFT.ordinal()] = 1;
} catch (NoSuchFieldError unused11) {
}
try {
e[FaceTecCancelButtonCustomization.ButtonLocation.TOP_RIGHT.ordinal()] = 2;
} catch (NoSuchFieldError unused12) {
}
try {
e[FaceTecCancelButtonCustomization.ButtonLocation.CUSTOM.ordinal()] = 3;
} catch (NoSuchFieldError unused13) {
}
try {
e[FaceTecCancelButtonCustomization.ButtonLocation.DISABLED.ordinal()] = 4;
} catch (NoSuchFieldError unused14) {
}
}
}
private void c(final aq.e eVar) {
ProgressBar progressBar = this.n;
if (progressBar == null || progressBar.getProgress() == this.n.getMax() || !FaceTecSDK.c.j.showUploadProgressBar) {
eVar.run();
} else {
c(new Runnable(this, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda25
public final co f$0;
public final aq.e f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e(this.f$1);
}
{
this.f$0 = this;
this.f$1 = eVar;
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(final aq.e eVar) {
ObjectAnimator objectAnimator = this.r;
if (objectAnimator != null) {
objectAnimator.end();
this.r = null;
}
ProgressBar progressBar = this.n;
ObjectAnimator ofInt = ObjectAnimator.ofInt(progressBar, "progress", progressBar.getProgress(), this.n.getMax());
ofInt.setDuration(500L);
ofInt.addListener(new com.facetec.sdk.e(eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda29
public final aq.e f$0;
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
co.d(this.f$0, animator);
}
{
this.f$0 = eVar;
}
});
ofInt.start();
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void d(aq.e eVar, Animator animator) {
if (eVar != null) {
eVar.run();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(aq.e eVar) {
this.n.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(500L).setListener(null).withEndAction(eVar).start();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(boolean z, String str, Runnable runnable) {
e(z, false, str, runnable);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(final boolean z, final boolean z2, String str, final Runnable runnable) {
this.h.setImportantForAccessibility(2);
if (getActivity() == null) {
return;
}
this.v.removeCallbacks(this.E);
this.D.removeCallbacksAndMessages(null);
if (!this.x) {
if (str == null) {
str = cx.d(R.string.FaceTec_result_success_message);
}
this.f6424o.setText(str);
if (z) {
this.f6424o.setContentDescription(str);
this.f6424o.performAccessibilityAction(64, null);
this.f6424o.sendAccessibilityEvent(8);
this.f6424o.announceForAccessibility(str);
}
} else if (z) {
if (str == null) {
str = cx.d(R.string.FaceTec_result_success_message);
}
this.f6424o.setText(str);
} else {
if (str == null) {
str = cx.d(R.string.FaceTec_result_idscan_unsuccess_message);
}
this.f6424o.setText(str);
}
this.z = true;
a(new aq.e(this, new Runnable(this, z, runnable, z2) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda15
public final co f$0;
public final boolean f$1;
public final Runnable f$2;
public final boolean f$3;
@Override // java.lang.Runnable
public final void run() {
this.f$0.d(this.f$1, this.f$2, this.f$3);
}
{
this.f$0 = this;
this.f$1 = z;
this.f$2 = runnable;
this.f$3 = z2;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d(final boolean z, final Runnable runnable, final boolean z2) {
c(new aq.e(this, new Runnable(this, z, runnable, z2) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda19
public final co f$0;
public final boolean f$1;
public final Runnable f$2;
public final boolean f$3;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e(this.f$1, this.f$2, this.f$3);
}
{
this.f$0 = this;
this.f$1 = z;
this.f$2 = runnable;
this.f$3 = z2;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(boolean z, Runnable runnable, boolean z2) {
if (z) {
c(true, new aq.e(this, runnable));
return;
}
if (!z2) {
if (this.x) {
c(false, new aq.e(this, runnable));
return;
} else {
a((Runnable) new aq.e(this, runnable));
return;
}
}
final aq.e eVar = new aq.e(this, runnable);
if (getActivity() != null) {
final int aW = db.aW();
int bb = db.bb();
if (bb == 0) {
bb = R.drawable.facetec_internal_warning;
}
final int i = bb;
final boolean z3 = aW != 0;
c(new Runnable(this, z3, aW, i, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda11
public final co f$0;
public final boolean f$1;
public final int f$2;
public final int f$3;
public final aq.e f$4;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e(this.f$1, this.f$2, this.f$3, this.f$4);
}
{
this.f$0 = this;
this.f$1 = z3;
this.f$2 = aW;
this.f$3 = i;
this.f$4 = eVar;
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c() {
this.g.setImageDrawable(this.f);
AnonymousClass5 anonymousClass5 = new AnonymousClass5(this);
this.I = anonymousClass5;
this.f.a(anonymousClass5);
this.f.start();
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.facetec.sdk.co$5, reason: invalid class name */
/* loaded from: classes.dex */
public final class AnonymousClass5 extends Animatable2Compat.AnimationCallback {
private co c;
AnonymousClass5(co coVar) {
this.c = coVar;
}
@Override // androidx.vectordrawable.graphics.drawable.Animatable2Compat.AnimationCallback
public final void onAnimationEnd(Drawable drawable) {
this.c.c(new Runnable(this) { // from class: com.facetec.sdk.co$5$$ExternalSyntheticLambda0
public final co.AnonymousClass5 f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e();
}
{
this.f$0 = this;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e() {
if (this.c.f == null) {
return;
}
this.c.f.start();
}
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b() {
this.H = av.e(getActivity(), R.drawable.facetec_animated_activity_indicator_vector_drawable);
this.g.setColorFilter(db.S(), PorterDuff.Mode.SRC_IN);
this.g.setImageDrawable(this.H);
this.H.start();
this.g.setVisibility(0);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(boolean z, int i, int i2, final aq.e eVar) {
this.a.setVisibility(0);
this.m.setImageDrawable(null);
this.m.clearColorFilter();
this.m.invalidate();
this.l.clearColorFilter();
this.l.invalidate();
if (z) {
this.l.setImageDrawable(av.e(getActivity(), i));
((AnimatedVectorDrawableCompat) this.l.getDrawable()).start();
} else {
this.l.setImageDrawable(nMh.getDrawable(getActivity(), i2));
}
RelativeLayout relativeLayout = this.p;
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(relativeLayout, "alpha", relativeLayout.getAlpha(), BitmapDescriptorFactory.HUE_RED);
RelativeLayout relativeLayout2 = this.a;
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(relativeLayout2, "alpha", relativeLayout2.getAlpha(), 1.0f);
ofFloat2.setDuration(800L);
ofFloat.setDuration(800L);
ofFloat.addListener(new com.facetec.sdk.e(this, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda0
public final co f$0;
public final aq.e f$1;
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
this.f$0.b(this.f$1, animator);
}
{
this.f$0 = this;
this.f$1 = eVar;
}
});
ofFloat2.start();
ofFloat.start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void b(aq.e eVar, Animator animator) {
this.f6424o.animate().alpha(1.0f).setDuration(1500L).setStartDelay(0L).setListener(null).start();
b(eVar, 2500L);
}
private void c(final boolean z, final aq.e eVar) {
if (getActivity() == null) {
return;
}
final int aQ = z ? db.aQ() : db.aP();
final boolean z2 = aQ != 0;
final int bd = z ? db.bd() : db.bk();
final boolean z3 = bd != 0;
final int bi = z ? db.bi() : db.bh();
if (z2 || z3) {
this.m.setImageDrawable(null);
this.m.clearColorFilter();
this.m.invalidate();
}
final boolean z4 = false;
c(new Runnable(this, z3, bd, z2, aQ, z, z4, bi, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda13
public final co f$0;
public final boolean f$1;
public final int f$2;
public final boolean f$3;
public final int f$4;
public final boolean f$5;
public final boolean f$6;
public final int f$7;
public final aq.e f$8;
@Override // java.lang.Runnable
public final void run() {
this.f$0.c(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, this.f$8);
}
{
this.f$0 = this;
this.f$1 = z3;
this.f$2 = bd;
this.f$3 = z2;
this.f$4 = aQ;
this.f$5 = z;
this.f$6 = z4;
this.f$7 = bi;
this.f$8 = eVar;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void c(boolean z, int i, boolean z2, int i2, boolean z3, boolean z4, int i3, final aq.e eVar) {
Activity activity;
this.a.setVisibility(0);
if (z) {
this.l.clearColorFilter();
this.l.invalidate();
activity = getActivity();
} else {
if (z2) {
this.m.setImageResource(i2);
this.m.animate().alpha(BitmapDescriptorFactory.HUE_RED).scaleX(1.0f).scaleY(1.0f).setDuration(0L).setStartDelay(0L).setListener(null).start();
this.m.animate().alpha(1.0f).scaleX(1.0f).scaleY(1.0f).setDuration(1000L).setStartDelay(0L).setInterpolator(new DecelerateInterpolator()).setListener(null).start();
} else {
this.m.setImageDrawable(av.e(getActivity(), R.drawable.facetec_animated_result_background));
((AnimatedVectorDrawableCompat) this.m.getDrawable()).start();
}
activity = getActivity();
i = z3 ? R.drawable.facetec_animated_success_foreground : R.drawable.facetec_animated_unsuccess_foreground;
}
this.l.setImageDrawable(av.e(activity, i));
((AnimatedVectorDrawableCompat) this.l.getDrawable()).start();
RelativeLayout relativeLayout = this.p;
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(relativeLayout, "alpha", relativeLayout.getAlpha(), BitmapDescriptorFactory.HUE_RED);
RelativeLayout relativeLayout2 = this.a;
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(relativeLayout2, "alpha", relativeLayout2.getAlpha(), 1.0f);
ofFloat2.setDuration(800L);
ofFloat.setDuration(800L);
ofFloat.addListener(new com.facetec.sdk.e(this, eVar) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda26
public final co f$0;
public final aq.e f$1;
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
this.f$0.e(this.f$1, animator);
}
{
this.f$0 = this;
this.f$1 = eVar;
}
});
ofFloat2.start();
ofFloat.start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(aq.e eVar, Animator animator) {
Animatable2Compat.AnimationCallback animationCallback;
AnimatedVectorDrawableCompat animatedVectorDrawableCompat = this.f;
if (animatedVectorDrawableCompat != null && (animationCallback = this.I) != null) {
animatedVectorDrawableCompat.e(animationCallback);
this.f.stop();
this.f = null;
this.I = null;
}
AnimatedVectorDrawableCompat animatedVectorDrawableCompat2 = this.H;
if (animatedVectorDrawableCompat2 != null) {
animatedVectorDrawableCompat2.stop();
this.H = null;
}
this.f6424o.animate().alpha(1.0f).setDuration(1500L).setStartDelay(0L).setListener(null).start();
b(eVar, 2500L);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void a(final Runnable runnable) {
if (getActivity() == null) {
return;
}
c(new Runnable(this, runnable) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda20
public final co f$0;
public final Runnable f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.f(this.f$1);
}
{
this.f$0 = this;
this.f$1 = runnable;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void f(final Runnable runnable) {
this.s.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setStartDelay(0L).setInterpolator(new DecelerateInterpolator()).setListener(null).start();
RelativeLayout relativeLayout = this.k;
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(relativeLayout, "alpha", relativeLayout.getAlpha(), BitmapDescriptorFactory.HUE_RED);
ofFloat.setDuration(800L);
ofFloat.addListener(new com.facetec.sdk.e(this, runnable) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda23
public final co f$0;
public final Runnable f$1;
@Override // android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
this.f$0.d(this.f$1, animator);
}
{
this.f$0 = this;
this.f$1 = runnable;
}
});
ofFloat.start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void d(final Runnable runnable, Animator animator) {
c(new Runnable(this, runnable) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda21
public final co f$0;
public final Runnable f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.h(this.f$1);
}
{
this.f$0 = this;
this.f$1 = runnable;
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void h(Runnable runnable) {
RelativeLayout relativeLayout = this.k;
if (relativeLayout != null) {
relativeLayout.setVisibility(8);
}
if (runnable != null) {
runnable.run();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(Runnable runnable) {
this.a.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setStartDelay(0L).setListener(null).withEndAction(new aq.e(this, runnable)).start();
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void d(final Runnable runnable) {
this.s.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setListener(null).start();
this.a.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setListener(null).start();
this.h.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setListener(null).start();
this.g.animate().alpha(BitmapDescriptorFactory.HUE_RED).setDuration(800L).setListener(null).withEndAction(new aq.e(this, new Runnable(this, runnable) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda27
public final co f$0;
public final Runnable f$1;
@Override // java.lang.Runnable
public final void run() {
this.f$0.e(this.f$1);
}
{
this.f$0 = this;
this.f$1 = runnable;
}
})).start();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void e(Runnable runnable) {
this.s.setVisibility(8);
this.a.setVisibility(8);
this.h.setVisibility(8);
this.g.setVisibility(4);
this.d.setAlpha(BitmapDescriptorFactory.HUE_RED);
this.p.setAlpha(BitmapDescriptorFactory.HUE_RED);
this.p.setVisibility(0);
this.d.setVisibility(0);
this.i.setVisibility(0);
runnable.run();
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void g() {
this.D.removeCallbacksAndMessages(null);
this.z = true;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void h() {
this.D.removeCallbacksAndMessages(null);
if (this.z) {
return;
}
this.B = c.UPLOAD_COMPLETE_AWAITING_PROCESSING;
c(true);
this.D.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda31
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.g();
}
{
this.f$0 = this;
}
}), 1000L);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void l() {
if (this.z) {
return;
}
this.D.removeCallbacksAndMessages(null);
this.B = c.STILL_UPLOADING;
c(true);
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void m() {
if (this.z) {
return;
}
this.D.removeCallbacksAndMessages(null);
c(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda18
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.i();
}
{
this.f$0 = this;
}
}));
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void p() {
if (this.z) {
return;
}
this.D.removeCallbacksAndMessages(null);
this.B = c.UPLOAD_STARTED;
c(false);
this.D.postDelayed(new aq.e(this, new Runnable(this) { // from class: com.facetec.sdk.co$$ExternalSyntheticLambda28
public final co f$0;
@Override // java.lang.Runnable
public final void run() {
this.f$0.l();
}
{
this.f$0 = this;
}
}), this.x ? 8000L : 6000L);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final RelativeLayout e() {
return this.p;
}
}