Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.

This commit is contained in:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,61 @@
package I2;
import O.X;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import com.google.android.material.textfield.TextInputLayout;
import java.util.WeakHashMap;
/* loaded from: classes3.dex */
public final class A implements TextWatcher {
/* renamed from: a, reason: collision with root package name */
public int f794a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ EditText f795b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ TextInputLayout f796c;
public A(TextInputLayout textInputLayout, EditText editText) {
this.f796c = textInputLayout;
this.f795b = editText;
this.f794a = editText.getLineCount();
}
@Override // android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
TextInputLayout textInputLayout = this.f796c;
textInputLayout.u(!textInputLayout.A0, false);
if (textInputLayout.f5851k) {
textInputLayout.n(editable);
}
if (textInputLayout.f5866s) {
textInputLayout.v(editable);
}
EditText editText = this.f795b;
int lineCount = editText.getLineCount();
int i = this.f794a;
if (lineCount != i) {
if (lineCount < i) {
WeakHashMap weakHashMap = X.f1226a;
int minimumHeight = editText.getMinimumHeight();
int i4 = textInputLayout.f5869t0;
if (minimumHeight != i4) {
editText.setMinimumHeight(i4);
}
}
this.f794a = lineCount;
}
}
@Override // android.text.TextWatcher
public final void beforeTextChanged(CharSequence charSequence, int i, int i4, int i5) {
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i, int i4, int i5) {
}
}

View File

@@ -0,0 +1,86 @@
package I2;
import O.C0056b;
import android.text.Editable;
import android.text.TextUtils;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.EditText;
import com.google.android.material.textfield.TextInputLayout;
import m.W;
/* loaded from: classes3.dex */
public final class B extends C0056b {
/* renamed from: d, reason: collision with root package name */
public final TextInputLayout f797d;
public B(TextInputLayout textInputLayout) {
this.f797d = textInputLayout;
}
@Override // O.C0056b
public final void d(View view, P.k kVar) {
View.AccessibilityDelegate accessibilityDelegate = this.f1232a;
AccessibilityNodeInfo accessibilityNodeInfo = kVar.f1341a;
accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
TextInputLayout textInputLayout = this.f797d;
EditText editText = textInputLayout.getEditText();
Editable text = editText != null ? editText.getText() : null;
CharSequence hint = textInputLayout.getHint();
CharSequence error = textInputLayout.getError();
CharSequence placeholderText = textInputLayout.getPlaceholderText();
int counterMaxLength = textInputLayout.getCounterMaxLength();
CharSequence counterOverflowDescription = textInputLayout.getCounterOverflowDescription();
boolean isEmpty = TextUtils.isEmpty(text);
boolean isEmpty2 = TextUtils.isEmpty(hint);
boolean z3 = textInputLayout.f5871u0;
boolean isEmpty3 = TextUtils.isEmpty(error);
boolean z4 = (isEmpty3 && TextUtils.isEmpty(counterOverflowDescription)) ? false : true;
String charSequence = !isEmpty2 ? hint.toString() : "";
z zVar = textInputLayout.f5835b;
W w3 = zVar.f912b;
if (w3.getVisibility() == 0) {
accessibilityNodeInfo.setLabelFor(w3);
accessibilityNodeInfo.setTraversalAfter(w3);
} else {
accessibilityNodeInfo.setTraversalAfter(zVar.f914d);
}
if (!isEmpty) {
accessibilityNodeInfo.setText(text);
} else if (!TextUtils.isEmpty(charSequence)) {
accessibilityNodeInfo.setText(charSequence);
if (!z3 && placeholderText != null) {
accessibilityNodeInfo.setText(charSequence + ", " + ((Object) placeholderText));
}
} else if (placeholderText != null) {
accessibilityNodeInfo.setText(placeholderText);
}
if (!TextUtils.isEmpty(charSequence)) {
accessibilityNodeInfo.setHintText(charSequence);
accessibilityNodeInfo.setShowingHintText(isEmpty);
}
if (text == null || text.length() != counterMaxLength) {
counterMaxLength = -1;
}
accessibilityNodeInfo.setMaxTextLength(counterMaxLength);
if (z4) {
if (isEmpty3) {
error = counterOverflowDescription;
}
accessibilityNodeInfo.setError(error);
}
W w4 = textInputLayout.f5849j.f895y;
if (w4 != null) {
accessibilityNodeInfo.setLabelFor(w4);
}
textInputLayout.f5837c.b().n(kVar);
}
@Override // O.C0056b
public final void e(View view, AccessibilityEvent accessibilityEvent) {
super.e(view, accessibilityEvent);
this.f797d.f5837c.b().o(accessibilityEvent);
}
}

View File

@@ -0,0 +1,5 @@
package I2;
/* loaded from: classes3.dex */
public interface C {
}

View File

@@ -0,0 +1,44 @@
package I2;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
/* renamed from: I2.c, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0052c extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f804a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0053d f805b;
public /* synthetic */ C0052c(C0053d c0053d, int i) {
this.f804a = i;
this.f805b = c0053d;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public void onAnimationEnd(Animator animator) {
switch (this.f804a) {
case 1:
this.f805b.f863b.h(false);
return;
default:
super.onAnimationEnd(animator);
return;
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public void onAnimationStart(Animator animator) {
switch (this.f804a) {
case 0:
this.f805b.f863b.h(true);
return;
default:
super.onAnimationStart(animator);
return;
}
}
}

View File

@@ -0,0 +1,238 @@
package I2;
import a.AbstractC0106b;
import android.animation.AnimatorSet;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.view.View;
import android.widget.EditText;
import com.adif.elcanomovil.R;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.internal.CheckableImageButton;
import i2.AbstractC0396a;
/* renamed from: I2.d, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C0053d extends r {
/* renamed from: e, reason: collision with root package name */
public final int f806e;
/* renamed from: f, reason: collision with root package name */
public final int f807f;
/* renamed from: g, reason: collision with root package name */
public final TimeInterpolator f808g;
public final TimeInterpolator h;
public EditText i;
/* renamed from: j, reason: collision with root package name */
public final D1.a f809j;
/* renamed from: k, reason: collision with root package name */
public final ViewOnFocusChangeListenerC0050a f810k;
/* renamed from: l, reason: collision with root package name */
public AnimatorSet f811l;
/* renamed from: m, reason: collision with root package name */
public ValueAnimator f812m;
public C0053d(q qVar) {
super(qVar);
this.f809j = new D1.a(this, 3);
this.f810k = new ViewOnFocusChangeListenerC0050a(this, 0);
this.f806e = AbstractC0106b.E(qVar.getContext(), R.attr.motionDurationShort3, 100);
this.f807f = AbstractC0106b.E(qVar.getContext(), R.attr.motionDurationShort3, 150);
this.f808g = AbstractC0106b.F(qVar.getContext(), R.attr.motionEasingLinearInterpolator, AbstractC0396a.f6815a);
this.h = AbstractC0106b.F(qVar.getContext(), R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6818d);
}
@Override // I2.r
public final void a() {
if (this.f863b.p != null) {
return;
}
t(u());
}
@Override // I2.r
public final int c() {
return R.string.clear_text_end_icon_content_description;
}
@Override // I2.r
public final int d() {
return R.drawable.mtrl_ic_cancel;
}
@Override // I2.r
public final View.OnFocusChangeListener e() {
return this.f810k;
}
@Override // I2.r
public final View.OnClickListener f() {
return this.f809j;
}
@Override // I2.r
public final View.OnFocusChangeListener g() {
return this.f810k;
}
@Override // I2.r
public final void m(EditText editText) {
this.i = editText;
this.f862a.setEndIconVisible(u());
}
@Override // I2.r
public final void p(boolean z3) {
if (this.f863b.p == null) {
return;
}
t(z3);
}
@Override // I2.r
public final void r() {
final int i = 1;
final int i4 = 0;
ValueAnimator ofFloat = ValueAnimator.ofFloat(0.8f, 1.0f);
ofFloat.setInterpolator(this.h);
ofFloat.setDuration(this.f807f);
ofFloat.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: I2.b
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0053d f803b;
{
this.f803b = this;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
int i5 = i;
C0053d c0053d = this.f803b;
c0053d.getClass();
switch (i5) {
case 0:
c0053d.f865d.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue());
return;
default:
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
CheckableImageButton checkableImageButton = c0053d.f865d;
checkableImageButton.setScaleX(floatValue);
checkableImageButton.setScaleY(floatValue);
return;
}
}
});
ValueAnimator ofFloat2 = ValueAnimator.ofFloat(BitmapDescriptorFactory.HUE_RED, 1.0f);
TimeInterpolator timeInterpolator = this.f808g;
ofFloat2.setInterpolator(timeInterpolator);
int i5 = this.f806e;
ofFloat2.setDuration(i5);
ofFloat2.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: I2.b
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0053d f803b;
{
this.f803b = this;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
int i52 = i4;
C0053d c0053d = this.f803b;
c0053d.getClass();
switch (i52) {
case 0:
c0053d.f865d.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue());
return;
default:
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
CheckableImageButton checkableImageButton = c0053d.f865d;
checkableImageButton.setScaleX(floatValue);
checkableImageButton.setScaleY(floatValue);
return;
}
}
});
AnimatorSet animatorSet = new AnimatorSet();
this.f811l = animatorSet;
animatorSet.playTogether(ofFloat, ofFloat2);
this.f811l.addListener(new C0052c(this, i4));
ValueAnimator ofFloat3 = ValueAnimator.ofFloat(1.0f, BitmapDescriptorFactory.HUE_RED);
ofFloat3.setInterpolator(timeInterpolator);
ofFloat3.setDuration(i5);
ofFloat3.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: I2.b
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0053d f803b;
{
this.f803b = this;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
int i52 = i4;
C0053d c0053d = this.f803b;
c0053d.getClass();
switch (i52) {
case 0:
c0053d.f865d.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue());
return;
default:
float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
CheckableImageButton checkableImageButton = c0053d.f865d;
checkableImageButton.setScaleX(floatValue);
checkableImageButton.setScaleY(floatValue);
return;
}
}
});
this.f812m = ofFloat3;
ofFloat3.addListener(new C0052c(this, i));
}
@Override // I2.r
public final void s() {
EditText editText = this.i;
if (editText != null) {
editText.post(new F2.f(this, 1));
}
}
public final void t(boolean z3) {
boolean z4 = this.f863b.d() == z3;
if (z3 && !this.f811l.isRunning()) {
this.f812m.cancel();
this.f811l.start();
if (z4) {
this.f811l.end();
return;
}
return;
}
if (z3) {
return;
}
this.f811l.cancel();
this.f812m.start();
if (z4) {
this.f812m.end();
}
}
public final boolean u() {
EditText editText = this.i;
if (editText != null) {
return (editText.hasFocus() || this.f865d.hasFocus()) && this.i.getText().length() > 0;
}
return false;
}
}

View File

@@ -0,0 +1,33 @@
package I2;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
/* loaded from: classes3.dex */
public final class D extends W.b {
public static final Parcelable.Creator<D> CREATOR = new A.g(4);
/* renamed from: c, reason: collision with root package name */
public CharSequence f798c;
/* renamed from: d, reason: collision with root package name */
public boolean f799d;
public D(Parcel parcel, ClassLoader classLoader) {
super(parcel, classLoader);
this.f798c = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel);
this.f799d = parcel.readInt() == 1;
}
public final String toString() {
return "TextInputLayout.SavedState{" + Integer.toHexString(System.identityHashCode(this)) + " error=" + ((Object) this.f798c) + "}";
}
@Override // W.b, android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
super.writeToParcel(parcel, i);
TextUtils.writeToParcel(this.f798c, parcel, i);
parcel.writeInt(this.f799d ? 1 : 0);
}
}

View File

@@ -0,0 +1,39 @@
package I2;
import android.view.View;
/* renamed from: I2.a, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final /* synthetic */ class ViewOnFocusChangeListenerC0050a implements View.OnFocusChangeListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f800a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ r f801b;
public /* synthetic */ ViewOnFocusChangeListenerC0050a(r rVar, int i) {
this.f800a = i;
this.f801b = rVar;
}
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view, boolean z3) {
switch (this.f800a) {
case 0:
C0053d c0053d = (C0053d) this.f801b;
c0053d.t(c0053d.u());
return;
default:
l lVar = (l) this.f801b;
lVar.f829l = z3;
lVar.q();
if (z3) {
return;
}
lVar.t(false);
lVar.f830m = false;
return;
}
}
}

View File

@@ -0,0 +1,32 @@
package I2;
import a.AbstractC0105a;
import com.google.android.material.internal.CheckableImageButton;
/* loaded from: classes3.dex */
public final class e extends r {
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ int f813e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public /* synthetic */ e(q qVar, int i) {
super(qVar);
this.f813e = i;
}
@Override // I2.r
public void r() {
switch (this.f813e) {
case 0:
q qVar = this.f863b;
qVar.f855o = null;
CheckableImageButton checkableImageButton = qVar.f849g;
checkableImageButton.setOnLongClickListener(null);
AbstractC0105a.P(checkableImageButton, null);
return;
default:
return;
}
}
}

View File

@@ -0,0 +1,30 @@
package I2;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
/* loaded from: classes3.dex */
public final class f extends E2.f {
/* renamed from: q, reason: collision with root package name */
public final RectF f814q;
public f(E2.k kVar, RectF rectF) {
super(kVar);
this.f814q = rectF;
}
/* JADX WARN: Type inference failed for: r0v0, types: [I2.g, E2.g, android.graphics.drawable.Drawable] */
@Override // E2.f, android.graphics.drawable.Drawable.ConstantState
public final Drawable newDrawable() {
?? gVar = new E2.g(this);
gVar.f816v = this;
gVar.invalidateSelf();
return gVar;
}
public f(f fVar) {
super(fVar);
this.f814q = fVar.f814q;
}
}

View File

@@ -0,0 +1,42 @@
package I2;
import android.graphics.Canvas;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
/* loaded from: classes3.dex */
public final class g extends E2.g {
/* renamed from: w, reason: collision with root package name */
public static final /* synthetic */ int f815w = 0;
/* renamed from: v, reason: collision with root package name */
public f f816v;
@Override // E2.g
public final void e(Canvas canvas) {
if (this.f816v.f814q.isEmpty()) {
super.e(canvas);
return;
}
canvas.save();
canvas.clipOutRect(this.f816v.f814q);
super.e(canvas);
canvas.restore();
}
@Override // E2.g, android.graphics.drawable.Drawable
public final Drawable mutate() {
this.f816v = new f(this.f816v);
return this;
}
public final void n(float f2, float f4, float f5, float f6) {
RectF rectF = this.f816v.f814q;
if (f2 == rectF.left && f4 == rectF.top && f5 == rectF.right && f6 == rectF.bottom) {
return;
}
rectF.set(f2, f4, f5, f6);
invalidateSelf();
}
}

View File

@@ -0,0 +1,37 @@
package I2;
import android.animation.ValueAnimator;
import android.view.View;
import g.T;
/* loaded from: classes3.dex */
public final /* synthetic */ class h implements ValueAnimator.AnimatorUpdateListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f817a = 1;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f818b;
public /* synthetic */ h(A.a aVar, View view) {
this.f818b = aVar;
}
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
switch (this.f817a) {
case 0:
l lVar = (l) this.f818b;
lVar.getClass();
lVar.f865d.setAlpha(((Float) valueAnimator.getAnimatedValue()).floatValue());
return;
default:
((View) ((T) ((A.a) this.f818b).f7b).f6581d.getParent()).invalidate();
return;
}
}
public /* synthetic */ h(l lVar) {
this.f818b = lVar;
}
}

View File

@@ -0,0 +1,43 @@
package I2;
import android.view.MotionEvent;
import android.view.View;
import com.adif.elcanomovil.uiMoreAdif.wizard.WizardActivity;
/* loaded from: classes3.dex */
public final /* synthetic */ class i implements View.OnTouchListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f819a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f820b;
public /* synthetic */ i(Object obj, int i) {
this.f819a = i;
this.f820b = obj;
}
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view, MotionEvent motionEvent) {
int i = this.f819a;
Object obj = this.f820b;
switch (i) {
case 0:
l lVar = (l) obj;
lVar.getClass();
if (motionEvent.getAction() == 1) {
long currentTimeMillis = System.currentTimeMillis() - lVar.f832o;
if (currentTimeMillis < 0 || currentTimeMillis > 300) {
lVar.f830m = false;
}
lVar.u();
lVar.f830m = true;
lVar.f832o = System.currentTimeMillis();
}
return false;
default:
return WizardActivity.h((WizardActivity) obj, view, motionEvent);
}
}
}

View File

@@ -0,0 +1,318 @@
package I2;
import B0.C0031i;
import a.AbstractC0105a;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Base64;
import android.util.Log;
import c1.C0283c;
import com.adif.elcanomovil.uiAvisa.components.create.NewIssueFragment;
import com.adif.elcanomovil.uiHome.HomeFragment;
import com.adif.elcanomovil.uiStations.main.MyCustomMapFragment;
import com.adif.elcanomovil.uiStations.main.StationsPageServicesFragment;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.SuccessContinuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.crashlytics.internal.CrashlyticsNativeComponentDeferredProxy;
import com.google.firebase.crashlytics.internal.CrashlyticsRemoteConfigListener;
import com.google.firebase.crashlytics.internal.RemoteConfigDeferredProxy;
import com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator;
import com.google.firebase.crashlytics.internal.common.Utils;
import com.google.firebase.encoders.EncodingException;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
import com.google.firebase.messaging.ServiceStarter;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigInfo;
import com.google.firebase.remoteconfig.internal.ConfigFetchHandler;
import com.google.firebase.sessions.EventGDTLogger;
import com.google.firebase.sessions.SessionEvent;
import d.InterfaceC0293b;
import e2.InterfaceC0313b;
import g2.AbstractC0377a;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.ConnectException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.CountDownLatch;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import kotlin.jvm.internal.Intrinsics;
import z2.InterfaceC0678h;
import z2.InterfaceC0679i;
/* loaded from: classes3.dex */
public final /* synthetic */ class k implements InterfaceC0293b, InterfaceC0313b, InterfaceC0678h, U.j, MyCustomMapFragment.OnTouchListener, Deferred.DeferredHandler, Continuation, SuccessContinuation, T1.e, InterfaceC0679i {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f822a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f823b;
public /* synthetic */ k(Object obj, int i) {
this.f822a = i;
this.f823b = obj;
}
@Override // d.InterfaceC0293b
public void a(Object obj) {
switch (this.f822a) {
case 3:
Boolean bool = (Boolean) obj;
C0283c this$0 = (C0283c) this.f823b;
Intrinsics.checkNotNullParameter(this$0, "this$0");
Intrinsics.checkNotNull(bool);
boolean booleanValue = bool.booleanValue();
com.adif.elcanomovil.uiAvisa.components.create.y yVar = this$0.f4233c;
this$0.f4233c = null;
this$0.f4234d.post(new com.google.firebase.installations.a(booleanValue, 2, yVar));
return;
case 9:
NewIssueFragment.requestCameraPermissions$lambda$0((NewIssueFragment) this.f823b, (Map) obj);
return;
default:
HomeFragment.g((HomeFragment) this.f823b, (Map) obj);
return;
}
}
@Override // T1.e
public Object apply(Object obj) {
return EventGDTLogger.a((EventGDTLogger) this.f823b, (SessionEvent) obj);
}
public U1.b b(R0.h hVar) {
U1.c cVar = (U1.c) this.f823b;
String concat = "TRuntime.".concat("CctTransportBackend");
boolean isLoggable = Log.isLoggable(concat, 4);
URL url = (URL) hVar.f1413a;
if (isLoggable) {
Log.i(concat, String.format("Making request to: %s", url));
}
HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();
httpURLConnection.setConnectTimeout(30000);
httpURLConnection.setReadTimeout(cVar.f1790g);
httpURLConnection.setDoOutput(true);
httpURLConnection.setInstanceFollowRedirects(false);
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setRequestProperty("User-Agent", "datatransport/3.1.9 android/");
httpURLConnection.setRequestProperty("Content-Encoding", "gzip");
httpURLConnection.setRequestProperty("Content-Type", "application/json");
httpURLConnection.setRequestProperty("Accept-Encoding", "gzip");
String str = (String) hVar.f1415c;
if (str != null) {
httpURLConnection.setRequestProperty("X-Goog-Api-Key", str);
}
try {
OutputStream outputStream = httpURLConnection.getOutputStream();
try {
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(outputStream);
try {
cVar.f1784a.encode((V1.j) hVar.f1414b, new BufferedWriter(new OutputStreamWriter(gZIPOutputStream)));
gZIPOutputStream.close();
if (outputStream != null) {
outputStream.close();
}
int responseCode = httpURLConnection.getResponseCode();
Integer valueOf = Integer.valueOf(responseCode);
String concat2 = "TRuntime.".concat("CctTransportBackend");
if (Log.isLoggable(concat2, 4)) {
Log.i(concat2, String.format("Status Code: %d", valueOf));
}
AbstractC0105a.p("CctTransportBackend", "Content-Type: %s", httpURLConnection.getHeaderField("Content-Type"));
AbstractC0105a.p("CctTransportBackend", "Content-Encoding: %s", httpURLConnection.getHeaderField("Content-Encoding"));
if (responseCode == 302 || responseCode == 301 || responseCode == 307) {
return new U1.b(responseCode, new URL(httpURLConnection.getHeaderField("Location")), 0L);
}
if (responseCode != 200) {
return new U1.b(responseCode, null, 0L);
}
InputStream inputStream = httpURLConnection.getInputStream();
try {
InputStream gZIPInputStream = "gzip".equals(httpURLConnection.getHeaderField("Content-Encoding")) ? new GZIPInputStream(inputStream) : inputStream;
try {
U1.b bVar = new U1.b(responseCode, null, V1.o.a(new BufferedReader(new InputStreamReader(gZIPInputStream))).f1863a);
if (gZIPInputStream != null) {
gZIPInputStream.close();
}
if (inputStream != null) {
inputStream.close();
}
return bVar;
} finally {
}
} catch (Throwable th) {
if (inputStream != null) {
try {
inputStream.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
}
throw th;
}
} finally {
}
} catch (Throwable th3) {
if (outputStream != null) {
try {
outputStream.close();
} catch (Throwable th4) {
th3.addSuppressed(th4);
}
}
throw th3;
}
} catch (EncodingException | IOException e4) {
AbstractC0105a.s("CctTransportBackend", "Couldn't encode request, returning with 400", e4);
return new U1.b(400, null, 0L);
} catch (ConnectException | UnknownHostException e5) {
AbstractC0105a.s("CctTransportBackend", "Couldn't open connection, returning with 500", e5);
return new U1.b(ServiceStarter.ERROR_UNKNOWN, null, 0L);
}
}
/* JADX WARN: Type inference failed for: r9v9, types: [java.lang.Object, A.j] */
@Override // e2.InterfaceC0313b
public Object execute() {
SQLiteDatabase d4;
Cursor rawQuery;
Object obj = this.f823b;
switch (this.f822a) {
case 4:
d2.h hVar = (d2.h) ((c2.l) obj).i;
d4 = hVar.d();
d4.beginTransaction();
try {
d4.compileStatement("DELETE FROM log_event_dropped").execute();
d4.compileStatement("UPDATE global_log_event_state SET last_metrics_upload_ms=" + hVar.f6186b.q()).execute();
d4.setTransactionSuccessful();
return null;
} finally {
}
case 5:
d2.h hVar2 = (d2.h) ((d2.c) obj);
hVar2.getClass();
int i = Z1.a.f2168e;
?? obj2 = new Object();
obj2.f27a = null;
obj2.f29c = new ArrayList();
obj2.f28b = null;
obj2.f30d = "";
HashMap hashMap = new HashMap();
d4 = hVar2.d();
d4.beginTransaction();
try {
Z1.a aVar = (Z1.a) d2.h.a0(d4.rawQuery("SELECT log_source, reason, events_dropped_count FROM log_event_dropped", new String[0]), new C0031i(hVar2, hashMap, obj2, 6));
d4.setTransactionSuccessful();
return aVar;
} finally {
}
case 6:
d2.h hVar3 = (d2.h) ((d2.d) obj);
long q4 = hVar3.f6186b.q() - hVar3.f6188d.f6175d;
d4 = hVar3.d();
d4.beginTransaction();
try {
String[] strArr = {String.valueOf(q4)};
rawQuery = d4.rawQuery("SELECT COUNT(*), transport_name FROM events WHERE timestamp_ms < ? GROUP BY transport_name", strArr);
while (rawQuery.moveToNext()) {
try {
hVar3.O(rawQuery.getInt(0), Z1.c.MESSAGE_TOO_OLD, rawQuery.getString(1));
} finally {
}
}
rawQuery.close();
int delete = d4.delete("events", "timestamp_ms < ?", strArr);
d4.setTransactionSuccessful();
d4.endTransaction();
return Integer.valueOf(delete);
} finally {
}
default:
c2.n nVar = (c2.n) obj;
d4 = ((d2.h) nVar.f4282b).d();
d4.beginTransaction();
try {
rawQuery = d4.rawQuery("SELECT distinct t._id, t.backend_name, t.priority, t.extras FROM transport_contexts AS t, events AS e WHERE e.context_id = t._id", new String[0]);
try {
ArrayList arrayList = new ArrayList();
while (rawQuery.moveToNext()) {
R0.h a2 = W1.j.a();
a2.o(rawQuery.getString(1));
a2.f1415c = AbstractC0377a.b(rawQuery.getInt(2));
String string = rawQuery.getString(3);
a2.f1414b = string == null ? null : Base64.decode(string, 0);
arrayList.add(a2.b());
}
rawQuery.close();
d4.setTransactionSuccessful();
d4.endTransaction();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
nVar.f4283c.a((W1.j) it.next(), 1, false);
}
return null;
} finally {
}
} finally {
}
}
}
@Override // com.google.firebase.inject.Deferred.DeferredHandler
public void handle(Provider provider) {
int i = this.f822a;
Object obj = this.f823b;
switch (i) {
case 15:
CrashlyticsNativeComponentDeferredProxy.b((CrashlyticsNativeComponentDeferredProxy) obj, provider);
return;
default:
RemoteConfigDeferredProxy.a((CrashlyticsRemoteConfigListener) obj, provider);
return;
}
}
@Override // com.adif.elcanomovil.uiStations.main.MyCustomMapFragment.OnTouchListener
public void onTouch() {
StationsPageServicesFragment.configureMap$lambda$6$lambda$5((StationsPageServicesFragment) this.f823b);
}
@Override // com.google.android.gms.tasks.SuccessContinuation
public Task then(Object obj) {
Task forResult;
forResult = Tasks.forResult((ConfigFetchHandler.FetchResponse) this.f823b);
return forResult;
}
@Override // com.google.android.gms.tasks.Continuation
public Object then(Task task) {
FirebaseRemoteConfigInfo lambda$ensureInitialized$0;
int i = this.f822a;
Object obj = this.f823b;
switch (i) {
case 17:
return Boolean.valueOf(SessionReportingCoordinator.b((SessionReportingCoordinator) obj, task));
case 18:
return Utils.b((CountDownLatch) obj, task);
default:
lambda$ensureInitialized$0 = FirebaseRemoteConfig.lambda$ensureInitialized$0((Task) obj, task);
return lambda$ensureInitialized$0;
}
}
}

View File

@@ -0,0 +1,225 @@
package I2;
import O.X;
import a.AbstractC0106b;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import android.widget.Spinner;
import com.adif.elcanomovil.R;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.textfield.TextInputLayout;
import i2.AbstractC0396a;
import java.util.WeakHashMap;
import kotlin.jvm.internal.LongCompanionObject;
/* loaded from: classes3.dex */
public final class l extends r {
/* renamed from: e, reason: collision with root package name */
public final int f824e;
/* renamed from: f, reason: collision with root package name */
public final int f825f;
/* renamed from: g, reason: collision with root package name */
public final TimeInterpolator f826g;
public AutoCompleteTextView h;
public final D1.a i;
/* renamed from: j, reason: collision with root package name */
public final ViewOnFocusChangeListenerC0050a f827j;
/* renamed from: k, reason: collision with root package name */
public final k f828k;
/* renamed from: l, reason: collision with root package name */
public boolean f829l;
/* renamed from: m, reason: collision with root package name */
public boolean f830m;
/* renamed from: n, reason: collision with root package name */
public boolean f831n;
/* renamed from: o, reason: collision with root package name */
public long f832o;
public AccessibilityManager p;
/* renamed from: q, reason: collision with root package name */
public ValueAnimator f833q;
/* renamed from: r, reason: collision with root package name */
public ValueAnimator f834r;
public l(q qVar) {
super(qVar);
this.i = new D1.a(this, 4);
this.f827j = new ViewOnFocusChangeListenerC0050a(this, 1);
this.f828k = new k(this, 0);
this.f832o = LongCompanionObject.MAX_VALUE;
this.f825f = AbstractC0106b.E(qVar.getContext(), R.attr.motionDurationShort3, 67);
this.f824e = AbstractC0106b.E(qVar.getContext(), R.attr.motionDurationShort3, 50);
this.f826g = AbstractC0106b.F(qVar.getContext(), R.attr.motionEasingLinearInterpolator, AbstractC0396a.f6815a);
}
@Override // I2.r
public final void a() {
if (this.p.isTouchExplorationEnabled() && m3.l.E(this.h) && !this.f865d.hasFocus()) {
this.h.dismissDropDown();
}
this.h.post(new F2.f(this, 2));
}
@Override // I2.r
public final int c() {
return R.string.exposed_dropdown_menu_content_description;
}
@Override // I2.r
public final int d() {
return R.drawable.mtrl_dropdown_arrow;
}
@Override // I2.r
public final View.OnFocusChangeListener e() {
return this.f827j;
}
@Override // I2.r
public final View.OnClickListener f() {
return this.i;
}
@Override // I2.r
public final k h() {
return this.f828k;
}
@Override // I2.r
public final boolean i(int i) {
return i != 0;
}
@Override // I2.r
public final boolean j() {
return this.f829l;
}
@Override // I2.r
public final boolean l() {
return this.f831n;
}
@Override // I2.r
public final void m(EditText editText) {
if (!(editText instanceof AutoCompleteTextView)) {
throw new RuntimeException("EditText needs to be an AutoCompleteTextView if an Exposed Dropdown Menu is being used.");
}
AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) editText;
this.h = autoCompleteTextView;
autoCompleteTextView.setOnTouchListener(new i(this, 0));
this.h.setOnDismissListener(new AutoCompleteTextView.OnDismissListener() { // from class: I2.j
@Override // android.widget.AutoCompleteTextView.OnDismissListener
public final void onDismiss() {
l lVar = l.this;
lVar.f830m = true;
lVar.f832o = System.currentTimeMillis();
lVar.t(false);
}
});
this.h.setThreshold(0);
TextInputLayout textInputLayout = this.f862a;
textInputLayout.setErrorIconDrawable((Drawable) null);
if (!m3.l.E(editText) && this.p.isTouchExplorationEnabled()) {
WeakHashMap weakHashMap = X.f1226a;
this.f865d.setImportantForAccessibility(2);
}
textInputLayout.setEndIconVisible(true);
}
@Override // I2.r
public final void n(P.k kVar) {
if (!m3.l.E(this.h)) {
kVar.h(Spinner.class.getName());
}
AccessibilityNodeInfo accessibilityNodeInfo = kVar.f1341a;
if (accessibilityNodeInfo.isShowingHintText()) {
accessibilityNodeInfo.setHintText(null);
}
}
@Override // I2.r
public final void o(AccessibilityEvent accessibilityEvent) {
if (!this.p.isEnabled() || m3.l.E(this.h)) {
return;
}
boolean z3 = (accessibilityEvent.getEventType() == 32768 || accessibilityEvent.getEventType() == 8) && this.f831n && !this.h.isPopupShowing();
if (accessibilityEvent.getEventType() == 1 || z3) {
u();
this.f830m = true;
this.f832o = System.currentTimeMillis();
}
}
@Override // I2.r
public final void r() {
ValueAnimator ofFloat = ValueAnimator.ofFloat(BitmapDescriptorFactory.HUE_RED, 1.0f);
TimeInterpolator timeInterpolator = this.f826g;
ofFloat.setInterpolator(timeInterpolator);
ofFloat.setDuration(this.f825f);
ofFloat.addUpdateListener(new h(this));
this.f834r = ofFloat;
ValueAnimator ofFloat2 = ValueAnimator.ofFloat(1.0f, BitmapDescriptorFactory.HUE_RED);
ofFloat2.setInterpolator(timeInterpolator);
ofFloat2.setDuration(this.f824e);
ofFloat2.addUpdateListener(new h(this));
this.f833q = ofFloat2;
ofFloat2.addListener(new B0.q(this, 3));
this.p = (AccessibilityManager) this.f864c.getSystemService("accessibility");
}
@Override // I2.r
public final void s() {
AutoCompleteTextView autoCompleteTextView = this.h;
if (autoCompleteTextView != null) {
autoCompleteTextView.setOnTouchListener(null);
this.h.setOnDismissListener(null);
}
}
public final void t(boolean z3) {
if (this.f831n != z3) {
this.f831n = z3;
this.f834r.cancel();
this.f833q.start();
}
}
public final void u() {
if (this.h == null) {
return;
}
long currentTimeMillis = System.currentTimeMillis() - this.f832o;
if (currentTimeMillis < 0 || currentTimeMillis > 300) {
this.f830m = false;
}
if (this.f830m) {
this.f830m = false;
return;
}
t(!this.f831n);
if (!this.f831n) {
this.h.dismissDropDown();
} else {
this.h.requestFocus();
this.h.showDropDown();
}
}
}

View File

@@ -0,0 +1,24 @@
package I2;
import android.text.Editable;
/* loaded from: classes3.dex */
public final class m extends x2.l {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ q f835a;
public m(q qVar) {
this.f835a = qVar;
}
@Override // android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
this.f835a.b().a();
}
@Override // x2.l, android.text.TextWatcher
public final void beforeTextChanged(CharSequence charSequence, int i, int i4, int i5) {
this.f835a.b().b();
}
}

View File

@@ -0,0 +1,37 @@
package I2;
import android.widget.EditText;
import com.google.android.material.textfield.TextInputLayout;
/* loaded from: classes3.dex */
public final class n {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ q f836a;
public n(q qVar) {
this.f836a = qVar;
}
public final void a(TextInputLayout textInputLayout) {
q qVar = this.f836a;
if (qVar.f858s == textInputLayout.getEditText()) {
return;
}
EditText editText = qVar.f858s;
m mVar = qVar.f861v;
if (editText != null) {
editText.removeTextChangedListener(mVar);
if (qVar.f858s.getOnFocusChangeListener() == qVar.b().e()) {
qVar.f858s.setOnFocusChangeListener(null);
}
}
EditText editText2 = textInputLayout.getEditText();
qVar.f858s = editText2;
if (editText2 != null) {
editText2.addTextChangedListener(mVar);
}
qVar.b().m(qVar.f858s);
qVar.j(qVar.b());
}
}

View File

@@ -0,0 +1,88 @@
package I2;
import O.X;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.accessibility.AccessibilityManager;
import java.util.WeakHashMap;
import l.ViewOnKeyListenerC0421D;
import l.ViewOnKeyListenerC0429g;
/* loaded from: classes3.dex */
public final class o implements View.OnAttachStateChangeListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f837a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f838b;
public /* synthetic */ o(Object obj, int i) {
this.f837a = i;
this.f838b = obj;
}
private final void a(View view) {
}
private final void b(View view) {
}
@Override // android.view.View.OnAttachStateChangeListener
public final void onViewAttachedToWindow(View view) {
AccessibilityManager accessibilityManager;
switch (this.f837a) {
case 0:
q qVar = (q) this.f838b;
if (qVar.f860u == null || (accessibilityManager = qVar.f859t) == null) {
return;
}
WeakHashMap weakHashMap = X.f1226a;
if (qVar.isAttachedToWindow()) {
accessibilityManager.addTouchExplorationStateChangeListener(new P.b(qVar.f860u));
return;
}
return;
case 1:
default:
return;
}
}
@Override // android.view.View.OnAttachStateChangeListener
public final void onViewDetachedFromWindow(View view) {
AccessibilityManager accessibilityManager;
switch (this.f837a) {
case 0:
q qVar = (q) this.f838b;
k kVar = qVar.f860u;
if (kVar == null || (accessibilityManager = qVar.f859t) == null) {
return;
}
accessibilityManager.removeTouchExplorationStateChangeListener(new P.b(kVar));
return;
case 1:
ViewOnKeyListenerC0429g viewOnKeyListenerC0429g = (ViewOnKeyListenerC0429g) this.f838b;
ViewTreeObserver viewTreeObserver = viewOnKeyListenerC0429g.f7223x;
if (viewTreeObserver != null) {
if (!viewTreeObserver.isAlive()) {
viewOnKeyListenerC0429g.f7223x = view.getViewTreeObserver();
}
viewOnKeyListenerC0429g.f7223x.removeGlobalOnLayoutListener(viewOnKeyListenerC0429g.i);
}
view.removeOnAttachStateChangeListener(this);
return;
default:
ViewOnKeyListenerC0421D viewOnKeyListenerC0421D = (ViewOnKeyListenerC0421D) this.f838b;
ViewTreeObserver viewTreeObserver2 = viewOnKeyListenerC0421D.f7173o;
if (viewTreeObserver2 != null) {
if (!viewTreeObserver2.isAlive()) {
viewOnKeyListenerC0421D.f7173o = view.getViewTreeObserver();
}
viewOnKeyListenerC0421D.f7173o.removeGlobalOnLayoutListener(viewOnKeyListenerC0421D.i);
}
view.removeOnAttachStateChangeListener(this);
return;
}
}
}

View File

@@ -0,0 +1,27 @@
package I2;
import android.content.res.TypedArray;
import android.util.SparseArray;
/* loaded from: classes3.dex */
public final class p {
/* renamed from: a, reason: collision with root package name */
public final SparseArray f839a = new SparseArray();
/* renamed from: b, reason: collision with root package name */
public final q f840b;
/* renamed from: c, reason: collision with root package name */
public final int f841c;
/* renamed from: d, reason: collision with root package name */
public final int f842d;
public p(q qVar, R0.h hVar) {
this.f840b = qVar;
TypedArray typedArray = (TypedArray) hVar.f1414b;
this.f841c = typedArray.getResourceId(28, 0);
this.f842d = typedArray.getResourceId(52, 0);
}
}

View File

@@ -0,0 +1,419 @@
package I2;
import O.X;
import a.AbstractC0105a;
import a.AbstractC0106b;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityManager;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.adif.elcanomovil.R;
import com.google.android.material.internal.CheckableImageButton;
import com.google.android.material.textfield.TextInputLayout;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.WeakHashMap;
import m.W;
/* loaded from: classes3.dex */
public final class q extends LinearLayout {
/* renamed from: a, reason: collision with root package name */
public final TextInputLayout f843a;
/* renamed from: b, reason: collision with root package name */
public final FrameLayout f844b;
/* renamed from: c, reason: collision with root package name */
public final CheckableImageButton f845c;
/* renamed from: d, reason: collision with root package name */
public ColorStateList f846d;
/* renamed from: e, reason: collision with root package name */
public PorterDuff.Mode f847e;
/* renamed from: f, reason: collision with root package name */
public View.OnLongClickListener f848f;
/* renamed from: g, reason: collision with root package name */
public final CheckableImageButton f849g;
public final p h;
public int i;
/* renamed from: j, reason: collision with root package name */
public final LinkedHashSet f850j;
/* renamed from: k, reason: collision with root package name */
public ColorStateList f851k;
/* renamed from: l, reason: collision with root package name */
public PorterDuff.Mode f852l;
/* renamed from: m, reason: collision with root package name */
public int f853m;
/* renamed from: n, reason: collision with root package name */
public ImageView.ScaleType f854n;
/* renamed from: o, reason: collision with root package name */
public View.OnLongClickListener f855o;
public CharSequence p;
/* renamed from: q, reason: collision with root package name */
public final W f856q;
/* renamed from: r, reason: collision with root package name */
public boolean f857r;
/* renamed from: s, reason: collision with root package name */
public EditText f858s;
/* renamed from: t, reason: collision with root package name */
public final AccessibilityManager f859t;
/* renamed from: u, reason: collision with root package name */
public k f860u;
/* renamed from: v, reason: collision with root package name */
public final m f861v;
public q(TextInputLayout textInputLayout, R0.h hVar) {
super(textInputLayout.getContext());
CharSequence text;
int i = 0;
this.i = 0;
this.f850j = new LinkedHashSet();
this.f861v = new m(this);
n nVar = new n(this);
this.f859t = (AccessibilityManager) getContext().getSystemService("accessibility");
this.f843a = textInputLayout;
setVisibility(8);
setOrientation(0);
setLayoutParams(new FrameLayout.LayoutParams(-2, -1, 8388613));
FrameLayout frameLayout = new FrameLayout(getContext());
this.f844b = frameLayout;
frameLayout.setVisibility(8);
frameLayout.setLayoutParams(new LinearLayout.LayoutParams(-2, -1));
LayoutInflater from = LayoutInflater.from(getContext());
CheckableImageButton a2 = a(this, from, R.id.text_input_error_icon);
this.f845c = a2;
CheckableImageButton a4 = a(frameLayout, from, R.id.text_input_end_icon);
this.f849g = a4;
this.h = new p(this, hVar);
W w3 = new W(getContext(), null);
this.f856q = w3;
TypedArray typedArray = (TypedArray) hVar.f1414b;
if (typedArray.hasValue(38)) {
this.f846d = AbstractC0105a.v(getContext(), hVar, 38);
}
if (typedArray.hasValue(39)) {
this.f847e = x2.m.j(typedArray.getInt(39, -1), null);
}
if (typedArray.hasValue(37)) {
i(hVar.f(37));
}
a2.setContentDescription(getResources().getText(R.string.error_icon_content_description));
WeakHashMap weakHashMap = X.f1226a;
a2.setImportantForAccessibility(2);
a2.setClickable(false);
a2.setPressable(false);
a2.setFocusable(false);
if (!typedArray.hasValue(53)) {
if (typedArray.hasValue(32)) {
this.f851k = AbstractC0105a.v(getContext(), hVar, 32);
}
if (typedArray.hasValue(33)) {
this.f852l = x2.m.j(typedArray.getInt(33, -1), null);
}
}
if (typedArray.hasValue(30)) {
g(typedArray.getInt(30, 0));
if (typedArray.hasValue(27) && a4.getContentDescription() != (text = typedArray.getText(27))) {
a4.setContentDescription(text);
}
a4.setCheckable(typedArray.getBoolean(26, true));
} else if (typedArray.hasValue(53)) {
if (typedArray.hasValue(54)) {
this.f851k = AbstractC0105a.v(getContext(), hVar, 54);
}
if (typedArray.hasValue(55)) {
this.f852l = x2.m.j(typedArray.getInt(55, -1), null);
}
g(typedArray.getBoolean(53, false) ? 1 : 0);
CharSequence text2 = typedArray.getText(51);
if (a4.getContentDescription() != text2) {
a4.setContentDescription(text2);
}
}
int dimensionPixelSize = typedArray.getDimensionPixelSize(29, getResources().getDimensionPixelSize(R.dimen.mtrl_min_touch_target_size));
if (dimensionPixelSize < 0) {
throw new IllegalArgumentException("endIconSize cannot be less than 0");
}
if (dimensionPixelSize != this.f853m) {
this.f853m = dimensionPixelSize;
a4.setMinimumWidth(dimensionPixelSize);
a4.setMinimumHeight(dimensionPixelSize);
a2.setMinimumWidth(dimensionPixelSize);
a2.setMinimumHeight(dimensionPixelSize);
}
if (typedArray.hasValue(31)) {
ImageView.ScaleType l4 = AbstractC0105a.l(typedArray.getInt(31, -1));
this.f854n = l4;
a4.setScaleType(l4);
a2.setScaleType(l4);
}
w3.setVisibility(8);
w3.setId(R.id.textinput_suffix_text);
w3.setLayoutParams(new LinearLayout.LayoutParams(-2, -2, 80.0f));
w3.setAccessibilityLiveRegion(1);
w3.setTextAppearance(typedArray.getResourceId(72, 0));
if (typedArray.hasValue(73)) {
w3.setTextColor(hVar.e(73));
}
CharSequence text3 = typedArray.getText(71);
this.p = TextUtils.isEmpty(text3) ? null : text3;
w3.setText(text3);
n();
frameLayout.addView(a4);
addView(w3);
addView(frameLayout);
addView(a2);
textInputLayout.f5842e0.add(nVar);
if (textInputLayout.f5839d != null) {
nVar.a(textInputLayout);
}
addOnAttachStateChangeListener(new o(this, i));
}
public final CheckableImageButton a(ViewGroup viewGroup, LayoutInflater layoutInflater, int i) {
CheckableImageButton checkableImageButton = (CheckableImageButton) layoutInflater.inflate(R.layout.design_text_input_end_icon, viewGroup, false);
checkableImageButton.setId(i);
if (AbstractC0105a.H(getContext())) {
((ViewGroup.MarginLayoutParams) checkableImageButton.getLayoutParams()).setMarginStart(0);
}
return checkableImageButton;
}
public final r b() {
r eVar;
int i = this.i;
p pVar = this.h;
SparseArray sparseArray = pVar.f839a;
r rVar = (r) sparseArray.get(i);
if (rVar != null) {
return rVar;
}
q qVar = pVar.f840b;
if (i == -1) {
eVar = new e(qVar, 0);
} else if (i == 0) {
eVar = new e(qVar, 1);
} else if (i == 1) {
eVar = new y(qVar, pVar.f842d);
} else if (i == 2) {
eVar = new C0053d(qVar);
} else {
if (i != 3) {
throw new IllegalArgumentException(com.google.android.gms.measurement.internal.a.l(i, "Invalid end icon mode: "));
}
eVar = new l(qVar);
}
sparseArray.append(i, eVar);
return eVar;
}
public final int c() {
int marginStart;
if (d() || e()) {
CheckableImageButton checkableImageButton = this.f849g;
marginStart = ((ViewGroup.MarginLayoutParams) checkableImageButton.getLayoutParams()).getMarginStart() + checkableImageButton.getMeasuredWidth();
} else {
marginStart = 0;
}
WeakHashMap weakHashMap = X.f1226a;
return this.f856q.getPaddingEnd() + getPaddingEnd() + marginStart;
}
public final boolean d() {
return this.f844b.getVisibility() == 0 && this.f849g.getVisibility() == 0;
}
public final boolean e() {
return this.f845c.getVisibility() == 0;
}
public final void f(boolean z3) {
boolean z4;
boolean isActivated;
boolean z5;
r b4 = b();
boolean k4 = b4.k();
CheckableImageButton checkableImageButton = this.f849g;
boolean z6 = true;
if (!k4 || (z5 = checkableImageButton.f5718d) == b4.l()) {
z4 = false;
} else {
checkableImageButton.setChecked(!z5);
z4 = true;
}
if (!(b4 instanceof l) || (isActivated = checkableImageButton.isActivated()) == b4.j()) {
z6 = z4;
} else {
checkableImageButton.setActivated(!isActivated);
}
if (z3 || z6) {
AbstractC0105a.N(this.f843a, checkableImageButton, this.f851k);
}
}
public final void g(int i) {
if (this.i == i) {
return;
}
r b4 = b();
k kVar = this.f860u;
AccessibilityManager accessibilityManager = this.f859t;
if (kVar != null && accessibilityManager != null) {
accessibilityManager.removeTouchExplorationStateChangeListener(new P.b(kVar));
}
this.f860u = null;
b4.s();
this.i = i;
Iterator it = this.f850j.iterator();
if (it.hasNext()) {
throw C.w.g(it);
}
h(i != 0);
r b5 = b();
int i4 = this.h.f841c;
if (i4 == 0) {
i4 = b5.d();
}
Drawable m4 = i4 != 0 ? AbstractC0106b.m(getContext(), i4) : null;
CheckableImageButton checkableImageButton = this.f849g;
checkableImageButton.setImageDrawable(m4);
TextInputLayout textInputLayout = this.f843a;
if (m4 != null) {
AbstractC0105a.b(textInputLayout, checkableImageButton, this.f851k, this.f852l);
AbstractC0105a.N(textInputLayout, checkableImageButton, this.f851k);
}
int c4 = b5.c();
CharSequence text = c4 != 0 ? getResources().getText(c4) : null;
if (checkableImageButton.getContentDescription() != text) {
checkableImageButton.setContentDescription(text);
}
checkableImageButton.setCheckable(b5.k());
if (!b5.i(textInputLayout.getBoxBackgroundMode())) {
throw new IllegalStateException("The current box background mode " + textInputLayout.getBoxBackgroundMode() + " is not supported by the end icon mode " + i);
}
b5.r();
k h = b5.h();
this.f860u = h;
if (h != null && accessibilityManager != null) {
WeakHashMap weakHashMap = X.f1226a;
if (isAttachedToWindow()) {
accessibilityManager.addTouchExplorationStateChangeListener(new P.b(this.f860u));
}
}
View.OnClickListener f2 = b5.f();
View.OnLongClickListener onLongClickListener = this.f855o;
checkableImageButton.setOnClickListener(f2);
AbstractC0105a.P(checkableImageButton, onLongClickListener);
EditText editText = this.f858s;
if (editText != null) {
b5.m(editText);
j(b5);
}
AbstractC0105a.b(textInputLayout, checkableImageButton, this.f851k, this.f852l);
f(true);
}
public final void h(boolean z3) {
if (d() != z3) {
this.f849g.setVisibility(z3 ? 0 : 8);
k();
m();
this.f843a.q();
}
}
public final void i(Drawable drawable) {
CheckableImageButton checkableImageButton = this.f845c;
checkableImageButton.setImageDrawable(drawable);
l();
AbstractC0105a.b(this.f843a, checkableImageButton, this.f846d, this.f847e);
}
public final void j(r rVar) {
if (this.f858s == null) {
return;
}
if (rVar.e() != null) {
this.f858s.setOnFocusChangeListener(rVar.e());
}
if (rVar.g() != null) {
this.f849g.setOnFocusChangeListener(rVar.g());
}
}
public final void k() {
this.f844b.setVisibility((this.f849g.getVisibility() != 0 || e()) ? 8 : 0);
setVisibility((d() || e() || !((this.p == null || this.f857r) ? 8 : false)) ? 0 : 8);
}
public final void l() {
CheckableImageButton checkableImageButton = this.f845c;
Drawable drawable = checkableImageButton.getDrawable();
TextInputLayout textInputLayout = this.f843a;
checkableImageButton.setVisibility((drawable != null && textInputLayout.f5849j.f887q && textInputLayout.m()) ? 0 : 8);
k();
m();
if (this.i != 0) {
return;
}
textInputLayout.q();
}
public final void m() {
int i;
TextInputLayout textInputLayout = this.f843a;
if (textInputLayout.f5839d == null) {
return;
}
if (d() || e()) {
i = 0;
} else {
EditText editText = textInputLayout.f5839d;
WeakHashMap weakHashMap = X.f1226a;
i = editText.getPaddingEnd();
}
int dimensionPixelSize = getContext().getResources().getDimensionPixelSize(R.dimen.material_input_text_to_prefix_suffix_padding);
int paddingTop = textInputLayout.f5839d.getPaddingTop();
int paddingBottom = textInputLayout.f5839d.getPaddingBottom();
WeakHashMap weakHashMap2 = X.f1226a;
this.f856q.setPaddingRelative(dimensionPixelSize, paddingTop, i, paddingBottom);
}
public final void n() {
W w3 = this.f856q;
int visibility = w3.getVisibility();
int i = (this.p == null || this.f857r) ? 8 : 0;
if (visibility != i) {
b().p(i == 0);
}
k();
w3.setVisibility(i);
this.f843a.q();
}
}

View File

@@ -0,0 +1,99 @@
package I2;
import android.content.Context;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.widget.EditText;
import com.google.android.material.internal.CheckableImageButton;
import com.google.android.material.textfield.TextInputLayout;
/* loaded from: classes3.dex */
public abstract class r {
/* renamed from: a, reason: collision with root package name */
public final TextInputLayout f862a;
/* renamed from: b, reason: collision with root package name */
public final q f863b;
/* renamed from: c, reason: collision with root package name */
public final Context f864c;
/* renamed from: d, reason: collision with root package name */
public final CheckableImageButton f865d;
public r(q qVar) {
this.f862a = qVar.f843a;
this.f863b = qVar;
this.f864c = qVar.getContext();
this.f865d = qVar.f849g;
}
public void a() {
}
public void b() {
}
public int c() {
return 0;
}
public int d() {
return 0;
}
public View.OnFocusChangeListener e() {
return null;
}
public View.OnClickListener f() {
return null;
}
public View.OnFocusChangeListener g() {
return null;
}
public k h() {
return null;
}
public boolean i(int i) {
return true;
}
public boolean j() {
return false;
}
public boolean k() {
return this instanceof l;
}
public boolean l() {
return false;
}
public void m(EditText editText) {
}
public void n(P.k kVar) {
}
public void o(AccessibilityEvent accessibilityEvent) {
}
public void p(boolean z3) {
}
public final void q() {
this.f863b.f(false);
}
public void r() {
}
public void s() {
}
}

View File

@@ -0,0 +1,64 @@
package I2;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.widget.TextView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import m.W;
/* loaded from: classes3.dex */
public final class s extends AnimatorListenerAdapter {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f866a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ TextView f867b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ int f868c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ TextView f869d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ u f870e;
public s(u uVar, int i, TextView textView, int i4, TextView textView2) {
this.f870e = uVar;
this.f866a = i;
this.f867b = textView;
this.f868c = i4;
this.f869d = textView2;
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationEnd(Animator animator) {
W w3;
int i = this.f866a;
u uVar = this.f870e;
uVar.f885n = i;
uVar.f883l = null;
TextView textView = this.f867b;
if (textView != null) {
textView.setVisibility(4);
if (this.f868c == 1 && (w3 = uVar.f888r) != null) {
w3.setText((CharSequence) null);
}
}
TextView textView2 = this.f869d;
if (textView2 != null) {
textView2.setTranslationY(BitmapDescriptorFactory.HUE_RED);
textView2.setAlpha(1.0f);
}
}
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
public final void onAnimationStart(Animator animator) {
TextView textView = this.f869d;
if (textView != null) {
textView.setVisibility(0);
textView.setAlpha(BitmapDescriptorFactory.HUE_RED);
}
}
}

View File

@@ -0,0 +1,25 @@
package I2;
import android.view.View;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.EditText;
/* loaded from: classes3.dex */
public final class t extends View.AccessibilityDelegate {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ u f871a;
public t(u uVar) {
this.f871a = uVar;
}
@Override // android.view.View.AccessibilityDelegate
public final void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfo accessibilityNodeInfo) {
super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
EditText editText = this.f871a.h.getEditText();
if (editText != null) {
accessibilityNodeInfo.setLabeledBy(editText);
}
}
}

View File

@@ -0,0 +1,304 @@
package I2;
import O.X;
import a.AbstractC0105a;
import a.AbstractC0106b;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Typeface;
import android.text.TextUtils;
import android.util.Property;
import android.view.View;
import android.view.animation.LinearInterpolator;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.adif.elcanomovil.R;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.material.textfield.TextInputLayout;
import i2.AbstractC0396a;
import java.util.ArrayList;
import java.util.WeakHashMap;
import m.W;
/* loaded from: classes3.dex */
public final class u {
/* renamed from: A, reason: collision with root package name */
public ColorStateList f872A;
/* renamed from: B, reason: collision with root package name */
public Typeface f873B;
/* renamed from: a, reason: collision with root package name */
public final int f874a;
/* renamed from: b, reason: collision with root package name */
public final int f875b;
/* renamed from: c, reason: collision with root package name */
public final int f876c;
/* renamed from: d, reason: collision with root package name */
public final TimeInterpolator f877d;
/* renamed from: e, reason: collision with root package name */
public final TimeInterpolator f878e;
/* renamed from: f, reason: collision with root package name */
public final TimeInterpolator f879f;
/* renamed from: g, reason: collision with root package name */
public final Context f880g;
public final TextInputLayout h;
public LinearLayout i;
/* renamed from: j, reason: collision with root package name */
public int f881j;
/* renamed from: k, reason: collision with root package name */
public FrameLayout f882k;
/* renamed from: l, reason: collision with root package name */
public AnimatorSet f883l;
/* renamed from: m, reason: collision with root package name */
public final float f884m;
/* renamed from: n, reason: collision with root package name */
public int f885n;
/* renamed from: o, reason: collision with root package name */
public int f886o;
public CharSequence p;
/* renamed from: q, reason: collision with root package name */
public boolean f887q;
/* renamed from: r, reason: collision with root package name */
public W f888r;
/* renamed from: s, reason: collision with root package name */
public CharSequence f889s;
/* renamed from: t, reason: collision with root package name */
public int f890t;
/* renamed from: u, reason: collision with root package name */
public int f891u;
/* renamed from: v, reason: collision with root package name */
public ColorStateList f892v;
/* renamed from: w, reason: collision with root package name */
public CharSequence f893w;
/* renamed from: x, reason: collision with root package name */
public boolean f894x;
/* renamed from: y, reason: collision with root package name */
public W f895y;
/* renamed from: z, reason: collision with root package name */
public int f896z;
public u(TextInputLayout textInputLayout) {
Context context = textInputLayout.getContext();
this.f880g = context;
this.h = textInputLayout;
this.f884m = context.getResources().getDimensionPixelSize(R.dimen.design_textinput_caption_translate_y);
this.f874a = AbstractC0106b.E(context, R.attr.motionDurationShort4, 217);
this.f875b = AbstractC0106b.E(context, R.attr.motionDurationMedium4, 167);
this.f876c = AbstractC0106b.E(context, R.attr.motionDurationShort4, 167);
this.f877d = AbstractC0106b.F(context, R.attr.motionEasingEmphasizedDecelerateInterpolator, AbstractC0396a.f6818d);
LinearInterpolator linearInterpolator = AbstractC0396a.f6815a;
this.f878e = AbstractC0106b.F(context, R.attr.motionEasingEmphasizedDecelerateInterpolator, linearInterpolator);
this.f879f = AbstractC0106b.F(context, R.attr.motionEasingLinearInterpolator, linearInterpolator);
}
public final void a(W w3, int i) {
if (this.i == null && this.f882k == null) {
Context context = this.f880g;
LinearLayout linearLayout = new LinearLayout(context);
this.i = linearLayout;
linearLayout.setOrientation(0);
LinearLayout linearLayout2 = this.i;
TextInputLayout textInputLayout = this.h;
textInputLayout.addView(linearLayout2, -1, -2);
this.f882k = new FrameLayout(context);
this.i.addView(this.f882k, new LinearLayout.LayoutParams(0, -2, 1.0f));
if (textInputLayout.getEditText() != null) {
b();
}
}
if (i == 0 || i == 1) {
this.f882k.setVisibility(0);
this.f882k.addView(w3);
} else {
this.i.addView(w3, new LinearLayout.LayoutParams(-2, -2));
}
this.i.setVisibility(0);
this.f881j++;
}
public final void b() {
if (this.i != null) {
TextInputLayout textInputLayout = this.h;
if (textInputLayout.getEditText() != null) {
EditText editText = textInputLayout.getEditText();
Context context = this.f880g;
boolean H3 = AbstractC0105a.H(context);
LinearLayout linearLayout = this.i;
WeakHashMap weakHashMap = X.f1226a;
int paddingStart = editText.getPaddingStart();
if (H3) {
paddingStart = context.getResources().getDimensionPixelSize(R.dimen.material_helper_text_font_1_3_padding_horizontal);
}
int dimensionPixelSize = context.getResources().getDimensionPixelSize(R.dimen.material_helper_text_default_padding_top);
if (H3) {
dimensionPixelSize = context.getResources().getDimensionPixelSize(R.dimen.material_helper_text_font_1_3_padding_top);
}
int paddingEnd = editText.getPaddingEnd();
if (H3) {
paddingEnd = context.getResources().getDimensionPixelSize(R.dimen.material_helper_text_font_1_3_padding_horizontal);
}
linearLayout.setPaddingRelative(paddingStart, dimensionPixelSize, paddingEnd, 0);
}
}
}
public final void c() {
AnimatorSet animatorSet = this.f883l;
if (animatorSet != null) {
animatorSet.cancel();
}
}
public final void d(ArrayList arrayList, boolean z3, W w3, int i, int i4, int i5) {
if (w3 == null || !z3) {
return;
}
if (i == i5 || i == i4) {
boolean z4 = i5 == i;
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(w3, (Property<W, Float>) View.ALPHA, z4 ? 1.0f : 0.0f);
int i6 = this.f876c;
ofFloat.setDuration(z4 ? this.f875b : i6);
ofFloat.setInterpolator(z4 ? this.f878e : this.f879f);
if (i == i5 && i4 != 0) {
ofFloat.setStartDelay(i6);
}
arrayList.add(ofFloat);
if (i5 != i || i4 == 0) {
return;
}
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(w3, (Property<W, Float>) View.TRANSLATION_Y, -this.f884m, BitmapDescriptorFactory.HUE_RED);
ofFloat2.setDuration(this.f874a);
ofFloat2.setInterpolator(this.f877d);
ofFloat2.setStartDelay(i6);
arrayList.add(ofFloat2);
}
}
public final TextView e(int i) {
if (i == 1) {
return this.f888r;
}
if (i != 2) {
return null;
}
return this.f895y;
}
public final void f() {
this.p = null;
c();
if (this.f885n == 1) {
if (!this.f894x || TextUtils.isEmpty(this.f893w)) {
this.f886o = 0;
} else {
this.f886o = 2;
}
}
i(this.f885n, this.f886o, h(this.f888r, ""));
}
public final void g(W w3, int i) {
FrameLayout frameLayout;
LinearLayout linearLayout = this.i;
if (linearLayout == null) {
return;
}
if ((i == 0 || i == 1) && (frameLayout = this.f882k) != null) {
frameLayout.removeView(w3);
} else {
linearLayout.removeView(w3);
}
int i4 = this.f881j - 1;
this.f881j = i4;
LinearLayout linearLayout2 = this.i;
if (i4 == 0) {
linearLayout2.setVisibility(8);
}
}
public final boolean h(W w3, CharSequence charSequence) {
WeakHashMap weakHashMap = X.f1226a;
TextInputLayout textInputLayout = this.h;
if (textInputLayout.isLaidOut() && textInputLayout.isEnabled()) {
return (this.f886o == this.f885n && w3 != null && TextUtils.equals(w3.getText(), charSequence)) ? false : true;
}
return false;
}
public final void i(int i, int i4, boolean z3) {
TextView e4;
TextView e5;
u uVar = this;
if (i == i4) {
return;
}
if (z3) {
AnimatorSet animatorSet = new AnimatorSet();
uVar.f883l = animatorSet;
ArrayList arrayList = new ArrayList();
uVar.d(arrayList, uVar.f894x, uVar.f895y, 2, i, i4);
uVar.d(arrayList, uVar.f887q, uVar.f888r, 1, i, i4);
int size = arrayList.size();
long j4 = 0;
for (int i5 = 0; i5 < size; i5++) {
Animator animator = (Animator) arrayList.get(i5);
j4 = Math.max(j4, animator.getDuration() + animator.getStartDelay());
}
ValueAnimator ofInt = ValueAnimator.ofInt(0, 0);
ofInt.setDuration(j4);
arrayList.add(0, ofInt);
animatorSet.playTogether(arrayList);
s sVar = new s(this, i4, e(i), i, uVar.e(i4));
uVar = this;
animatorSet.addListener(sVar);
animatorSet.start();
} else if (i != i4) {
if (i4 != 0 && (e5 = uVar.e(i4)) != null) {
e5.setVisibility(0);
e5.setAlpha(1.0f);
}
if (i != 0 && (e4 = e(i)) != null) {
e4.setVisibility(4);
if (i == 1) {
e4.setText((CharSequence) null);
}
}
uVar.f885n = i4;
}
TextInputLayout textInputLayout = uVar.h;
textInputLayout.r();
textInputLayout.u(z3, false);
textInputLayout.x();
}
}

View File

@@ -0,0 +1,59 @@
package I2;
import android.view.View;
import android.widget.AdapterView;
import m.C0496x0;
import m.K;
import m.N;
/* loaded from: classes3.dex */
public final class v implements AdapterView.OnItemClickListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f897a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f898b;
public /* synthetic */ v(Object obj, int i) {
this.f897a = i;
this.f898b = obj;
}
@Override // android.widget.AdapterView.OnItemClickListener
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
Object item;
switch (this.f897a) {
case 0:
x xVar = (x) this.f898b;
if (i < 0) {
C0496x0 c0496x0 = xVar.f902e;
item = !c0496x0.f7782z.isShowing() ? null : c0496x0.f7762c.getSelectedItem();
} else {
item = xVar.getAdapter().getItem(i);
}
x.a(xVar, item);
AdapterView.OnItemClickListener onItemClickListener = xVar.getOnItemClickListener();
C0496x0 c0496x02 = xVar.f902e;
if (onItemClickListener != null) {
if (view == null || i < 0) {
view = c0496x02.f7782z.isShowing() ? c0496x02.f7762c.getSelectedView() : null;
i = !c0496x02.f7782z.isShowing() ? -1 : c0496x02.f7762c.getSelectedItemPosition();
j4 = !c0496x02.f7782z.isShowing() ? Long.MIN_VALUE : c0496x02.f7762c.getSelectedItemId();
}
onItemClickListener.onItemClick(c0496x02.f7762c, view, i, j4);
}
c0496x02.dismiss();
return;
default:
K k4 = (K) this.f898b;
k4.f7580E.setSelection(i);
N n4 = k4.f7580E;
if (n4.getOnItemClickListener() != null) {
n4.performItemClick(view, i, k4.f7577B.getItemId(i));
}
k4.dismiss();
return;
}
}
}

View File

@@ -0,0 +1,76 @@
package I2;
import O.X;
import android.R;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.WeakHashMap;
/* loaded from: classes3.dex */
public final class w extends ArrayAdapter {
/* renamed from: a, reason: collision with root package name */
public ColorStateList f899a;
/* renamed from: b, reason: collision with root package name */
public ColorStateList f900b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ x f901c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public w(x xVar, Context context, int i, String[] strArr) {
super(context, i, strArr);
this.f901c = xVar;
a();
}
public final void a() {
ColorStateList colorStateList;
x xVar = this.f901c;
ColorStateList colorStateList2 = xVar.f907l;
ColorStateList colorStateList3 = null;
if (colorStateList2 != null) {
int[] iArr = {R.attr.state_pressed};
colorStateList = new ColorStateList(new int[][]{iArr, new int[0]}, new int[]{colorStateList2.getColorForState(iArr, 0), 0});
} else {
colorStateList = null;
}
this.f900b = colorStateList;
if (xVar.f906k != 0 && xVar.f907l != null) {
int[] iArr2 = {R.attr.state_hovered, -16842919};
int[] iArr3 = {R.attr.state_selected, -16842919};
colorStateList3 = new ColorStateList(new int[][]{iArr3, iArr2, new int[0]}, new int[]{G.a.b(xVar.f907l.getColorForState(iArr3, 0), xVar.f906k), G.a.b(xVar.f907l.getColorForState(iArr2, 0), xVar.f906k), xVar.f906k});
}
this.f899a = colorStateList3;
}
@Override // android.widget.ArrayAdapter, android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
View view2 = super.getView(i, view, viewGroup);
if (view2 instanceof TextView) {
TextView textView = (TextView) view2;
x xVar = this.f901c;
Drawable drawable = null;
if (xVar.getText().toString().contentEquals(textView.getText()) && xVar.f906k != 0) {
ColorDrawable colorDrawable = new ColorDrawable(xVar.f906k);
if (this.f900b != null) {
H.a.h(colorDrawable, this.f899a);
drawable = new RippleDrawable(this.f900b, colorDrawable, null);
} else {
drawable = colorDrawable;
}
}
WeakHashMap weakHashMap = X.f1226a;
textView.setBackground(drawable);
}
return view2;
}
}

View File

@@ -0,0 +1,279 @@
package I2;
import a.AbstractC0105a;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.accessibility.AccessibilityManager;
import android.widget.AdapterView;
import android.widget.Filterable;
import android.widget.ListAdapter;
import com.adif.elcanomovil.R;
import com.google.android.material.textfield.TextInputLayout;
import h2.AbstractC0379a;
import java.util.List;
import java.util.Locale;
import m.C0480p;
import m.C0496x0;
/* loaded from: classes3.dex */
public final class x extends C0480p {
/* renamed from: e, reason: collision with root package name */
public final C0496x0 f902e;
/* renamed from: f, reason: collision with root package name */
public final AccessibilityManager f903f;
/* renamed from: g, reason: collision with root package name */
public final Rect f904g;
public final int h;
public final float i;
/* renamed from: j, reason: collision with root package name */
public ColorStateList f905j;
/* renamed from: k, reason: collision with root package name */
public int f906k;
/* renamed from: l, reason: collision with root package name */
public ColorStateList f907l;
public x(Context context, AttributeSet attributeSet) {
super(K2.a.a(context, attributeSet, R.attr.autoCompleteTextViewStyle, 0), attributeSet);
this.f904g = new Rect();
Context context2 = getContext();
TypedArray h = x2.m.h(context2, attributeSet, AbstractC0379a.f6763k, R.attr.autoCompleteTextViewStyle, 2132018018, new int[0]);
if (h.hasValue(0) && h.getInt(0, 0) == 0) {
setKeyListener(null);
}
this.h = h.getResourceId(3, R.layout.mtrl_auto_complete_simple_item);
this.i = h.getDimensionPixelOffset(1, R.dimen.mtrl_exposed_dropdown_menu_popup_elevation);
if (h.hasValue(2)) {
this.f905j = ColorStateList.valueOf(h.getColor(2, 0));
}
this.f906k = h.getColor(4, 0);
this.f907l = AbstractC0105a.w(context2, h, 5);
this.f903f = (AccessibilityManager) context2.getSystemService("accessibility");
C0496x0 c0496x0 = new C0496x0(context2, null, R.attr.listPopupWindowStyle);
this.f902e = c0496x0;
c0496x0.f7781y = true;
c0496x0.f7782z.setFocusable(true);
c0496x0.f7772o = this;
c0496x0.f7782z.setInputMethodMode(2);
c0496x0.p(getAdapter());
c0496x0.p = new v(this, 0);
if (h.hasValue(6)) {
setSimpleItems(h.getResourceId(6, 0));
}
h.recycle();
}
public static void a(x xVar, Object obj) {
xVar.setText(xVar.convertSelectionToString(obj), false);
}
public final TextInputLayout b() {
for (ViewParent parent = getParent(); parent != null; parent = parent.getParent()) {
if (parent instanceof TextInputLayout) {
return (TextInputLayout) parent;
}
}
return null;
}
public final boolean c() {
List<AccessibilityServiceInfo> enabledAccessibilityServiceList;
AccessibilityManager accessibilityManager = this.f903f;
if (accessibilityManager != null && accessibilityManager.isTouchExplorationEnabled()) {
return true;
}
if (accessibilityManager == null || !accessibilityManager.isEnabled() || (enabledAccessibilityServiceList = accessibilityManager.getEnabledAccessibilityServiceList(16)) == null) {
return false;
}
for (AccessibilityServiceInfo accessibilityServiceInfo : enabledAccessibilityServiceList) {
if (accessibilityServiceInfo.getSettingsActivityName() != null && accessibilityServiceInfo.getSettingsActivityName().contains("SwitchAccess")) {
return true;
}
}
return false;
}
@Override // android.widget.AutoCompleteTextView
public final void dismissDropDown() {
if (c()) {
this.f902e.dismiss();
} else {
super.dismissDropDown();
}
}
public ColorStateList getDropDownBackgroundTintList() {
return this.f905j;
}
@Override // android.widget.TextView
public CharSequence getHint() {
TextInputLayout b4 = b();
return (b4 == null || !b4.f5815E) ? super.getHint() : b4.getHint();
}
public float getPopupElevation() {
return this.i;
}
public int getSimpleItemSelectedColor() {
return this.f906k;
}
public ColorStateList getSimpleItemSelectedRippleColor() {
return this.f907l;
}
@Override // android.widget.AutoCompleteTextView, android.widget.TextView, android.view.View
public final void onAttachedToWindow() {
super.onAttachedToWindow();
TextInputLayout b4 = b();
if (b4 != null && b4.f5815E && super.getHint() == null) {
String str = Build.MANUFACTURER;
if ((str != null ? str.toLowerCase(Locale.ENGLISH) : "").equals("meizu")) {
setHint("");
}
}
}
@Override // android.widget.AutoCompleteTextView, android.view.View
public final void onDetachedFromWindow() {
super.onDetachedFromWindow();
this.f902e.dismiss();
}
@Override // android.widget.TextView, android.view.View
public final void onMeasure(int i, int i4) {
super.onMeasure(i, i4);
if (View.MeasureSpec.getMode(i) == Integer.MIN_VALUE) {
int measuredWidth = getMeasuredWidth();
ListAdapter adapter = getAdapter();
TextInputLayout b4 = b();
int i5 = 0;
if (adapter != null && b4 != null) {
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(getMeasuredWidth(), 0);
int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(getMeasuredHeight(), 0);
C0496x0 c0496x0 = this.f902e;
int min = Math.min(adapter.getCount(), Math.max(0, !c0496x0.f7782z.isShowing() ? -1 : c0496x0.f7762c.getSelectedItemPosition()) + 15);
View view = null;
int i6 = 0;
for (int max = Math.max(0, min - 15); max < min; max++) {
int itemViewType = adapter.getItemViewType(max);
if (itemViewType != i5) {
view = null;
i5 = itemViewType;
}
view = adapter.getView(max, view, b4);
if (view.getLayoutParams() == null) {
view.setLayoutParams(new ViewGroup.LayoutParams(-2, -2));
}
view.measure(makeMeasureSpec, makeMeasureSpec2);
i6 = Math.max(i6, view.getMeasuredWidth());
}
Drawable background = c0496x0.f7782z.getBackground();
if (background != null) {
Rect rect = this.f904g;
background.getPadding(rect);
i6 += rect.left + rect.right;
}
i5 = b4.getEndIconView().getMeasuredWidth() + i6;
}
setMeasuredDimension(Math.min(Math.max(measuredWidth, i5), View.MeasureSpec.getSize(i)), getMeasuredHeight());
}
}
@Override // android.widget.AutoCompleteTextView, android.widget.TextView, android.view.View
public final void onWindowFocusChanged(boolean z3) {
if (c()) {
return;
}
super.onWindowFocusChanged(z3);
}
@Override // android.widget.AutoCompleteTextView
public <T extends ListAdapter & Filterable> void setAdapter(T t2) {
super.setAdapter(t2);
this.f902e.p(getAdapter());
}
@Override // android.widget.AutoCompleteTextView
public void setDropDownBackgroundDrawable(Drawable drawable) {
super.setDropDownBackgroundDrawable(drawable);
C0496x0 c0496x0 = this.f902e;
if (c0496x0 != null) {
c0496x0.h(drawable);
}
}
public void setDropDownBackgroundTint(int i) {
setDropDownBackgroundTintList(ColorStateList.valueOf(i));
}
public void setDropDownBackgroundTintList(ColorStateList colorStateList) {
this.f905j = colorStateList;
Drawable dropDownBackground = getDropDownBackground();
if (dropDownBackground instanceof E2.g) {
((E2.g) dropDownBackground).j(this.f905j);
}
}
@Override // android.widget.AutoCompleteTextView
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener onItemSelectedListener) {
super.setOnItemSelectedListener(onItemSelectedListener);
this.f902e.f7773q = getOnItemSelectedListener();
}
@Override // android.widget.TextView
public void setRawInputType(int i) {
super.setRawInputType(i);
TextInputLayout b4 = b();
if (b4 != null) {
b4.s();
}
}
public void setSimpleItemSelectedColor(int i) {
this.f906k = i;
if (getAdapter() instanceof w) {
((w) getAdapter()).a();
}
}
public void setSimpleItemSelectedRippleColor(ColorStateList colorStateList) {
this.f907l = colorStateList;
if (getAdapter() instanceof w) {
((w) getAdapter()).a();
}
}
public void setSimpleItems(int i) {
setSimpleItems(getResources().getStringArray(i));
}
@Override // android.widget.AutoCompleteTextView
public final void showDropDown() {
if (c()) {
this.f902e.c();
} else {
super.showDropDown();
}
}
public void setSimpleItems(String[] strArr) {
setAdapter(new w(this, getContext(), this.h, strArr));
}
}

View File

@@ -0,0 +1,83 @@
package I2;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import android.widget.EditText;
import com.adif.elcanomovil.R;
/* loaded from: classes3.dex */
public final class y extends r {
/* renamed from: e, reason: collision with root package name */
public final int f908e;
/* renamed from: f, reason: collision with root package name */
public EditText f909f;
/* renamed from: g, reason: collision with root package name */
public final D1.a f910g;
public y(q qVar, int i) {
super(qVar);
this.f908e = R.drawable.design_password_eye;
this.f910g = new D1.a(this, 5);
if (i != 0) {
this.f908e = i;
}
}
@Override // I2.r
public final void b() {
q();
}
@Override // I2.r
public final int c() {
return R.string.password_toggle_content_description;
}
@Override // I2.r
public final int d() {
return this.f908e;
}
@Override // I2.r
public final View.OnClickListener f() {
return this.f910g;
}
@Override // I2.r
public final boolean k() {
return true;
}
@Override // I2.r
public final boolean l() {
EditText editText = this.f909f;
return !(editText != null && (editText.getTransformationMethod() instanceof PasswordTransformationMethod));
}
@Override // I2.r
public final void m(EditText editText) {
this.f909f = editText;
q();
}
@Override // I2.r
public final void r() {
EditText editText = this.f909f;
if (editText != null) {
if (editText.getInputType() == 16 || editText.getInputType() == 128 || editText.getInputType() == 144 || editText.getInputType() == 224) {
this.f909f.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
}
}
@Override // I2.r
public final void s() {
EditText editText = this.f909f;
if (editText != null) {
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
}
}
}

View File

@@ -0,0 +1,193 @@
package I2;
import O.X;
import a.AbstractC0105a;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.adif.elcanomovil.R;
import com.google.android.material.internal.CheckableImageButton;
import com.google.android.material.textfield.TextInputLayout;
import java.util.WeakHashMap;
import m.W;
/* loaded from: classes3.dex */
public final class z extends LinearLayout {
/* renamed from: a, reason: collision with root package name */
public final TextInputLayout f911a;
/* renamed from: b, reason: collision with root package name */
public final W f912b;
/* renamed from: c, reason: collision with root package name */
public CharSequence f913c;
/* renamed from: d, reason: collision with root package name */
public final CheckableImageButton f914d;
/* renamed from: e, reason: collision with root package name */
public ColorStateList f915e;
/* renamed from: f, reason: collision with root package name */
public PorterDuff.Mode f916f;
/* renamed from: g, reason: collision with root package name */
public int f917g;
public ImageView.ScaleType h;
public View.OnLongClickListener i;
/* renamed from: j, reason: collision with root package name */
public boolean f918j;
public z(TextInputLayout textInputLayout, R0.h hVar) {
super(textInputLayout.getContext());
CharSequence text;
this.f911a = textInputLayout;
setVisibility(8);
setOrientation(0);
setLayoutParams(new FrameLayout.LayoutParams(-2, -1, 8388611));
CheckableImageButton checkableImageButton = (CheckableImageButton) LayoutInflater.from(getContext()).inflate(R.layout.design_text_input_start_icon, (ViewGroup) this, false);
this.f914d = checkableImageButton;
W w3 = new W(getContext(), null);
this.f912b = w3;
if (AbstractC0105a.H(getContext())) {
((ViewGroup.MarginLayoutParams) checkableImageButton.getLayoutParams()).setMarginEnd(0);
}
View.OnLongClickListener onLongClickListener = this.i;
checkableImageButton.setOnClickListener(null);
AbstractC0105a.P(checkableImageButton, onLongClickListener);
this.i = null;
checkableImageButton.setOnLongClickListener(null);
AbstractC0105a.P(checkableImageButton, null);
TypedArray typedArray = (TypedArray) hVar.f1414b;
if (typedArray.hasValue(69)) {
this.f915e = AbstractC0105a.v(getContext(), hVar, 69);
}
if (typedArray.hasValue(70)) {
this.f916f = x2.m.j(typedArray.getInt(70, -1), null);
}
if (typedArray.hasValue(66)) {
b(hVar.f(66));
if (typedArray.hasValue(65) && checkableImageButton.getContentDescription() != (text = typedArray.getText(65))) {
checkableImageButton.setContentDescription(text);
}
checkableImageButton.setCheckable(typedArray.getBoolean(64, true));
}
int dimensionPixelSize = typedArray.getDimensionPixelSize(67, getResources().getDimensionPixelSize(R.dimen.mtrl_min_touch_target_size));
if (dimensionPixelSize < 0) {
throw new IllegalArgumentException("startIconSize cannot be less than 0");
}
if (dimensionPixelSize != this.f917g) {
this.f917g = dimensionPixelSize;
checkableImageButton.setMinimumWidth(dimensionPixelSize);
checkableImageButton.setMinimumHeight(dimensionPixelSize);
}
if (typedArray.hasValue(68)) {
ImageView.ScaleType l4 = AbstractC0105a.l(typedArray.getInt(68, -1));
this.h = l4;
checkableImageButton.setScaleType(l4);
}
w3.setVisibility(8);
w3.setId(R.id.textinput_prefix_text);
w3.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
WeakHashMap weakHashMap = X.f1226a;
w3.setAccessibilityLiveRegion(1);
w3.setTextAppearance(typedArray.getResourceId(60, 0));
if (typedArray.hasValue(61)) {
w3.setTextColor(hVar.e(61));
}
CharSequence text2 = typedArray.getText(59);
this.f913c = TextUtils.isEmpty(text2) ? null : text2;
w3.setText(text2);
e();
addView(checkableImageButton);
addView(w3);
}
public final int a() {
int i;
CheckableImageButton checkableImageButton = this.f914d;
if (checkableImageButton.getVisibility() == 0) {
i = ((ViewGroup.MarginLayoutParams) checkableImageButton.getLayoutParams()).getMarginEnd() + checkableImageButton.getMeasuredWidth();
} else {
i = 0;
}
WeakHashMap weakHashMap = X.f1226a;
return this.f912b.getPaddingStart() + getPaddingStart() + i;
}
public final void b(Drawable drawable) {
CheckableImageButton checkableImageButton = this.f914d;
checkableImageButton.setImageDrawable(drawable);
if (drawable != null) {
ColorStateList colorStateList = this.f915e;
PorterDuff.Mode mode = this.f916f;
TextInputLayout textInputLayout = this.f911a;
AbstractC0105a.b(textInputLayout, checkableImageButton, colorStateList, mode);
c(true);
AbstractC0105a.N(textInputLayout, checkableImageButton, this.f915e);
return;
}
c(false);
View.OnLongClickListener onLongClickListener = this.i;
checkableImageButton.setOnClickListener(null);
AbstractC0105a.P(checkableImageButton, onLongClickListener);
this.i = null;
checkableImageButton.setOnLongClickListener(null);
AbstractC0105a.P(checkableImageButton, null);
if (checkableImageButton.getContentDescription() != null) {
checkableImageButton.setContentDescription(null);
}
}
public final void c(boolean z3) {
CheckableImageButton checkableImageButton = this.f914d;
if ((checkableImageButton.getVisibility() == 0) != z3) {
checkableImageButton.setVisibility(z3 ? 0 : 8);
d();
e();
}
}
public final void d() {
int paddingStart;
EditText editText = this.f911a.f5839d;
if (editText == null) {
return;
}
if (this.f914d.getVisibility() == 0) {
paddingStart = 0;
} else {
WeakHashMap weakHashMap = X.f1226a;
paddingStart = editText.getPaddingStart();
}
int compoundPaddingTop = editText.getCompoundPaddingTop();
int dimensionPixelSize = getContext().getResources().getDimensionPixelSize(R.dimen.material_input_text_to_prefix_suffix_padding);
int compoundPaddingBottom = editText.getCompoundPaddingBottom();
WeakHashMap weakHashMap2 = X.f1226a;
this.f912b.setPaddingRelative(paddingStart, compoundPaddingTop, dimensionPixelSize, compoundPaddingBottom);
}
public final void e() {
int i = (this.f913c == null || this.f918j) ? 8 : 0;
setVisibility((this.f914d.getVisibility() == 0 || i == 0) ? 0 : 8);
this.f912b.setVisibility(i);
this.f911a.q();
}
@Override // android.widget.LinearLayout, android.view.View
public final void onMeasure(int i, int i4) {
super.onMeasure(i, i4);
d();
}
}