what-the-bank/sources/o/ZRp.java

1324 lines
47 KiB
Java

package o;
import android.app.SearchableInfo;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.ComponentInfo;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Bundle;
import android.os.Process;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.style.TextAppearanceSpan;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.SearchView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.List;
import java.util.WeakHashMap;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.SYO;
import org.jmrtd.cbeff.ISO781611;
/* loaded from: classes.dex */
public final class ZRp extends VNe implements View.OnClickListener {
private boolean a;
private int b;
private final int e;
private final Context f;
private final WeakHashMap<String, Drawable.ConstantState> g;
private int h;
private int i;
private int j;
private int k;
private final SearchableInfo l;
private final SearchView m;
private int n;
/* renamed from: o, reason: collision with root package name */
private int f8482o;
private ColorStateList t;
private static final byte[] $$a = {116, ISOFileInfo.SECURITY_ATTR_EXP, 37, 13};
private static final int $$b = ISO781611.BIOMETRIC_SUBTYPE_TAG;
private static int $10 = 0;
private static int $11 = 1;
private static int r = 0;
private static int q = 1;
private static int[] s = {-99381888, -2125469651, -733607066, 648002427, 2038031903, 77100224, 1297589948, 2052628734, -685108666, -1690474069, -1172519835, 2131943427, -436550894, 487610381, 105895111, -715689044, 725204269, -1712650324};
public static /* synthetic */ Object e(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i2;
int i5 = ~(i4 | i);
int i6 = ~i3;
int i7 = ~(i6 | i);
int i8 = (i * (-711)) + (i2 * 713) + ((i5 | i7) * (-712)) + (((~(i | i2 | i3)) | (~(i4 | i6 | i))) * (-712)) + ((i4 | i7) * 712);
if (i8 == 1) {
return e(objArr);
}
if (i8 != 2) {
return i8 != 3 ? i8 != 4 ? b(objArr) : c(objArr) : a(objArr);
}
int i9 = 2 % 2;
int i10 = q + 49;
int i11 = i10 % 128;
r = i11;
int i12 = i10 % 2;
int i13 = i11 + 99;
q = i13 % 128;
int i14 = i13 % 2;
return false;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x0028). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void u(short r5, int r6, byte r7, java.lang.Object[] r8) {
/*
int r7 = r7 * 2
int r0 = r7 + 1
int r6 = r6 * 2
int r6 = r6 + 102
int r5 = r5 * 4
int r5 = 4 - r5
byte[] r1 = o.ZRp.$$a
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L16
r3 = r7
r4 = r2
goto L28
L16:
r3 = r2
L17:
byte r4 = (byte) r6
r0[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L26
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L26:
r3 = r1[r5]
L28:
int r3 = -r3
int r5 = r5 + 1
int r6 = r6 + r3
r3 = r4
goto L17
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZRp.u(short, int, byte, java.lang.Object[]):void");
}
private static void p(int[] iArr, int i, Object[] objArr) {
char c;
int i2;
int i3 = 2 % 2;
C4403bZM c4403bZM = new C4403bZM();
char[] cArr = new char[4];
char[] cArr2 = new char[iArr.length * 2];
int[] iArr2 = s;
int i4 = 16;
int i5 = 1;
int i6 = 0;
if (iArr2 != null) {
int length = iArr2.length;
int[] iArr3 = new int[length];
int i7 = 0;
while (i7 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[0] = Integer.valueOf(iArr2[i7]);
Object obj = xzZ.y.get(729798706);
if (obj == null) {
obj = ((Class) xzZ.c(15 - (ViewConfiguration.getKeyRepeatDelay() >> i4), 5 - View.resolveSize(0, 0), (char) (((Process.getThreadPriority(0) + 20) >> 6) + 58134))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj);
}
iArr3[i7] = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
i7++;
int i8 = $11 + 17;
$10 = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 4 % 3;
}
i4 = 16;
i5 = 1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
iArr2 = iArr3;
}
int length2 = iArr2.length;
int[] iArr4 = new int[length2];
int[] iArr5 = s;
if (iArr5 != null) {
int length3 = iArr5.length;
int[] iArr6 = new int[length3];
int i10 = 0;
while (i10 < length3) {
int i11 = $11 + 103;
$10 = i11 % 128;
if (i11 % 2 != 0) {
Object[] objArr3 = new Object[1];
objArr3[i6] = Integer.valueOf(iArr5[i10]);
Object obj2 = xzZ.y.get(729798706);
if (obj2 != null) {
i2 = length3;
} else {
i2 = length3;
obj2 = ((Class) xzZ.c(15 - (ViewConfiguration.getKeyRepeatDelay() >> 16), 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (58134 - TextUtils.getOffsetAfter("", 0)))).getMethod("i", Integer.TYPE);
xzZ.y.put(729798706, obj2);
}
iArr6[i10] = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
i10--;
length3 = i2;
} else {
int i12 = length3;
Object[] objArr4 = {Integer.valueOf(iArr5[i10])};
Object obj3 = xzZ.y.get(729798706);
if (obj3 != null) {
c = 55346;
} else {
obj3 = ((Class) xzZ.c(16 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (TextUtils.indexOf("", "", 0) + 58134))).getMethod("i", Integer.TYPE);
c = 55346;
xzZ.y.put(729798706, obj3);
}
iArr6[i10] = ((Integer) ((Method) obj3).invoke(null, objArr4)).intValue();
i10++;
length3 = i12;
}
i6 = 0;
}
iArr5 = iArr6;
}
int i13 = i6;
System.arraycopy(iArr5, i13, iArr4, i13, length2);
c4403bZM.b = i13;
while (c4403bZM.b < iArr.length) {
int i14 = $11 + 111;
$10 = i14 % 128;
int i15 = i14 % 2;
cArr[0] = (char) (iArr[c4403bZM.b] >> 16);
cArr[1] = (char) iArr[c4403bZM.b];
cArr[2] = (char) (iArr[c4403bZM.b + 1] >> 16);
cArr[3] = (char) iArr[c4403bZM.b + 1];
c4403bZM.e = (cArr[0] << 16) + cArr[1];
c4403bZM.a = (cArr[2] << 16) + cArr[3];
C4403bZM.d(iArr4);
int i16 = 0;
for (int i17 = 16; i16 < i17; i17 = 16) {
c4403bZM.e ^= iArr4[i16];
try {
Object[] objArr5 = {c4403bZM, Integer.valueOf(C4403bZM.d(c4403bZM.e)), c4403bZM, c4403bZM};
Object obj4 = xzZ.y.get(-1196964548);
if (obj4 == null) {
Class cls = (Class) xzZ.c(KeyEvent.keyCodeFromString("") + 118, 4 - TextUtils.lastIndexOf("", '0', 0), (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1));
byte b = (byte) 0;
byte b2 = (byte) (b + 1);
Object[] objArr6 = new Object[1];
u(b, b2, (byte) (b2 - 1), objArr6);
obj4 = cls.getMethod((String) objArr6[0], Object.class, Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1196964548, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr5)).intValue();
c4403bZM.e = c4403bZM.a;
c4403bZM.a = intValue;
i16++;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
int i18 = c4403bZM.e;
c4403bZM.e = c4403bZM.a;
c4403bZM.a = i18;
c4403bZM.a ^= iArr4[16];
c4403bZM.e ^= iArr4[17];
int i19 = c4403bZM.e;
int i20 = c4403bZM.a;
cArr[0] = (char) (c4403bZM.e >>> 16);
cArr[1] = (char) c4403bZM.e;
cArr[2] = (char) (c4403bZM.a >>> 16);
cArr[3] = (char) c4403bZM.a;
C4403bZM.d(iArr4);
cArr2[c4403bZM.b * 2] = cArr[0];
cArr2[(c4403bZM.b * 2) + 1] = cArr[1];
cArr2[(c4403bZM.b * 2) + 2] = cArr[2];
cArr2[(c4403bZM.b * 2) + 3] = cArr[3];
Object[] objArr7 = {c4403bZM, c4403bZM};
Object obj5 = xzZ.y.get(1914371176);
if (obj5 == null) {
Class cls2 = (Class) xzZ.c(98 - (ViewConfiguration.getJumpTapTimeout() >> 16), 5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) (ViewConfiguration.getTapTimeout() >> 16));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr8 = new Object[1];
u(b3, b4, b4, objArr8);
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
xzZ.y.put(1914371176, obj5);
}
((Method) obj5).invoke(null, objArr7);
}
objArr[0] = new String(cArr2, 0, i);
}
@Override // o.BEC, o.yQj.LWm
public final Cursor wT_(CharSequence charSequence) {
String obj;
int i = 2 % 2;
if (charSequence == null) {
int i2 = q + 11;
r = i2 % 128;
int i3 = i2 % 2;
obj = "";
} else {
obj = charSequence.toString();
}
if (this.m.getVisibility() != 0 || this.m.getWindowVisibility() != 0) {
return null;
}
try {
Cursor jC_ = jC_(this.l, obj);
if (jC_ == null) {
return null;
}
jC_.getCount();
int i4 = r + 41;
q = i4 % 128;
int i5 = i4 % 2;
return jC_;
} catch (RuntimeException unused) {
return null;
}
}
@Override // android.widget.BaseAdapter
public final void notifyDataSetChanged() {
int i = 2 % 2;
int i2 = r + 11;
q = i2 % 128;
int i3 = i2 % 2;
super.notifyDataSetChanged();
jx_(this.d);
int i4 = q + 115;
r = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.widget.BaseAdapter
public final void notifyDataSetInvalidated() {
int i = 2 % 2;
int i2 = r + 59;
q = i2 % 128;
if (i2 % 2 == 0) {
super.notifyDataSetInvalidated();
jx_(this.d);
int i3 = 55 / 0;
} else {
super.notifyDataSetInvalidated();
jx_(this.d);
}
int i4 = r + 103;
q = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
private static void jx_(Cursor cursor) {
int i = 2 % 2;
Bundle bundle = null;
if (cursor != null) {
int i2 = r + 63;
q = i2 % 128;
if (i2 % 2 == 0) {
cursor.getExtras();
bundle.hashCode();
throw null;
}
bundle = cursor.getExtras();
} else {
int i3 = r + 117;
q = i3 % 128;
int i4 = i3 % 2;
}
if (bundle != null) {
bundle.getBoolean("in_progress");
}
}
/* JADX WARN: Code restructure failed: missing block: B:14:0x001b, code lost:
if (r4 != null) goto L10;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0015, code lost:
if (r4 != null) goto L10;
*/
@Override // o.BEC, o.yQj.LWm
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void wQ_(android.database.Cursor r4) {
/*
r3 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.ZRp.r
int r1 = r1 + 115
int r2 = r1 % 128
o.ZRp.q = r2
int r1 = r1 % r0
if (r1 != 0) goto L18
super.wQ_(r4) // Catch: java.lang.Exception -> L4e
r1 = 38
int r1 = r1 / 0
if (r4 == 0) goto L4e
goto L1d
L18:
super.wQ_(r4) // Catch: java.lang.Exception -> L4e
if (r4 == 0) goto L4e
L1d:
java.lang.String r1 = "suggest_text_1"
int r1 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.f8482o = r1 // Catch: java.lang.Exception -> L4e
java.lang.String r1 = "suggest_text_2"
int r1 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.k = r1 // Catch: java.lang.Exception -> L4e
java.lang.String r1 = "suggest_text_2_url"
int r1 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.n = r1 // Catch: java.lang.Exception -> L4e
java.lang.String r1 = "suggest_icon_1"
int r1 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.h = r1 // Catch: java.lang.Exception -> L4e
java.lang.String r1 = "suggest_icon_2"
int r1 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.i = r1 // Catch: java.lang.Exception -> L4e
java.lang.String r1 = "suggest_flags"
int r4 = r4.getColumnIndex(r1) // Catch: java.lang.Exception -> L4e
r3.b = r4 // Catch: java.lang.Exception -> L4e
return
L4e:
int r4 = o.ZRp.r
int r4 = r4 + 43
int r1 = r4 % 128
o.ZRp.q = r1
int r4 = r4 % r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZRp.wQ_(android.database.Cursor):void");
}
@Override // o.VNe, o.BEC
public final View wV_(Context context, Cursor cursor, ViewGroup viewGroup) {
int i = 2 % 2;
View wV_ = super.wV_(context, cursor, viewGroup);
wV_.setTag(new RVV(wV_));
((ImageView) wV_.findViewById(SYO.saX.edit_query)).setImageResource(this.e);
int i2 = q + 125;
r = i2 % 128;
int i3 = i2 % 2;
return wV_;
}
/* loaded from: classes.dex */
static final class RVV {
public final ImageView a;
public final ImageView b;
public final TextView c;
public final ImageView d;
public final TextView e;
public RVV(View view) {
this.e = (TextView) view.findViewById(android.R.id.text1);
this.c = (TextView) view.findViewById(android.R.id.text2);
this.a = (ImageView) view.findViewById(android.R.id.icon1);
this.d = (ImageView) view.findViewById(android.R.id.icon2);
this.b = (ImageView) view.findViewById(SYO.saX.edit_query);
}
}
@Override // o.BEC
public final void wJ_(View view, Cursor cursor) {
CharSequence jt_;
int i = 2 % 2;
RVV rvv = (RVV) view.getTag();
int i2 = this.b;
int i3 = i2 != -1 ? cursor.getInt(i2) : 0;
if (rvv.e != null) {
jv_(rvv.e, jt_(cursor, this.f8482o));
}
if (rvv.c != null) {
int i4 = r + 67;
q = i4 % 128;
int i5 = i4 % 2;
String jt_2 = jt_(cursor, this.n);
if (jt_2 != null) {
int i6 = q + 107;
r = i6 % 128;
int i7 = i6 % 2;
jt_ = (CharSequence) e(new Object[]{this, jt_2}, -2042947454, 2042947457, System.identityHashCode(this));
} else {
jt_ = jt_(cursor, this.k);
}
if (TextUtils.isEmpty(jt_)) {
if (rvv.e != null) {
int i8 = r + 15;
q = i8 % 128;
if (i8 % 2 == 0) {
rvv.e.setSingleLine(false);
rvv.e.setMaxLines(3);
} else {
rvv.e.setSingleLine(false);
rvv.e.setMaxLines(2);
}
}
} else if (rvv.e != null) {
int i9 = q + 59;
r = i9 % 128;
int i10 = i9 % 2;
rvv.e.setSingleLine(true);
rvv.e.setMaxLines(1);
}
jv_(rvv.c, jt_);
}
if (rvv.a != null) {
int i11 = q + 57;
r = i11 % 128;
int i12 = i11 % 2;
ju_(rvv.a, jr_(cursor), 4);
}
if (rvv.d != null) {
ju_(rvv.d, js_(cursor), 8);
}
int i13 = this.j;
if (i13 != 2 && (i13 != 1 || (i3 & 1) == 0)) {
rvv.b.setVisibility(8);
return;
}
rvv.b.setVisibility(0);
rvv.b.setTag(rvv.e.getText());
rvv.b.setOnClickListener(this);
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = 2 % 2;
Object tag = view.getTag();
if (!(!(tag instanceof CharSequence))) {
this.m.a((CharSequence) tag);
int i2 = q + 37;
r = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 5 / 2;
}
}
int i4 = q + 25;
r = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object a(Object[] objArr) {
ZRp zRp = (ZRp) objArr[0];
CharSequence charSequence = (CharSequence) objArr[1];
int i = 2 % 2;
int i2 = r + 39;
q = i2 % 128;
int i3 = i2 % 2;
if (zRp.t == null) {
TypedValue typedValue = new TypedValue();
zRp.f.getTheme().resolveAttribute(SYO.IeS.textColorSearchUrl, typedValue, true);
zRp.t = zRp.f.getResources().getColorStateList(typedValue.resourceId);
}
SpannableString spannableString = new SpannableString(charSequence);
spannableString.setSpan(new TextAppearanceSpan(null, 0, 0, zRp.t, null), 0, charSequence.length(), 33);
int i4 = q + 67;
r = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 29 / 0;
}
return spannableString;
}
private static void jv_(TextView textView, CharSequence charSequence) {
int i = 2 % 2;
int i2 = r + 33;
q = i2 % 128;
int i3 = i2 % 2;
textView.setText(charSequence);
if (!(!TextUtils.isEmpty(charSequence))) {
int i4 = r + 11;
q = i4 % 128;
int i5 = i4 % 2;
textView.setVisibility(8);
return;
}
textView.setVisibility(0);
}
private Drawable jr_(Cursor cursor) {
int i = 2 % 2;
int i2 = this.h;
Object obj = null;
if (i2 != -1) {
Drawable jq_ = jq_(cursor.getString(i2));
if (jq_ == null) {
return jo_();
}
int i3 = r + 75;
q = i3 % 128;
if (i3 % 2 != 0) {
return jq_;
}
obj.hashCode();
throw null;
}
int i4 = q + 97;
r = i4 % 128;
if (i4 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
private Drawable js_(Cursor cursor) {
int i = 2 % 2;
int i2 = q;
int i3 = i2 + 91;
r = i3 % 128;
int i4 = i3 % 2;
int i5 = this.i;
if (i5 == -1) {
int i6 = i2 + 53;
r = i6 % 128;
Object obj = null;
if (i6 % 2 != 0) {
obj.hashCode();
throw null;
}
int i7 = i2 + 115;
r = i7 % 128;
int i8 = i7 % 2;
return null;
}
Drawable jq_ = jq_(cursor.getString(i5));
int i9 = r + 47;
q = i9 % 128;
if (i9 % 2 == 0) {
int i10 = 30 / 0;
}
return jq_;
}
private static void ju_(ImageView imageView, Drawable drawable, int i) {
int i2 = 2 % 2;
imageView.setImageDrawable(drawable);
if (drawable != null) {
imageView.setVisibility(0);
drawable.setVisible(false, false);
drawable.setVisible(true, false);
return;
}
int i3 = r + 7;
q = i3 % 128;
int i4 = i3 % 2;
imageView.setVisibility(i);
int i5 = r + 71;
q = i5 % 128;
int i6 = i5 % 2;
}
/* JADX WARN: Removed duplicated region for block: B:22:0x0060 A[RETURN] */
@Override // o.BEC, o.yQj.LWm
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.CharSequence wR_(android.database.Cursor r5) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
r1 = 0
if (r5 != 0) goto L10
int r5 = o.ZRp.q
int r5 = r5 + 41
int r2 = r5 % 128
o.ZRp.r = r2
int r5 = r5 % r0
return r1
L10:
java.lang.String r2 = "suggest_intent_query"
java.lang.String r2 = jn_(r5, r2)
if (r2 == 0) goto L22
int r5 = o.ZRp.q
int r5 = r5 + 57
int r1 = r5 % 128
o.ZRp.r = r1
int r5 = r5 % r0
return r2
L22:
android.app.SearchableInfo r2 = r4.l
boolean r2 = r2.shouldRewriteQueryFromData()
if (r2 == 0) goto L3c
java.lang.String r2 = "suggest_intent_data"
java.lang.String r2 = jn_(r5, r2)
if (r2 == 0) goto L3c
int r5 = o.ZRp.r
int r5 = r5 + 125
int r1 = r5 % 128
o.ZRp.q = r1
int r5 = r5 % r0
return r2
L3c:
android.app.SearchableInfo r2 = r4.l
boolean r2 = r2.shouldRewriteQueryFromText()
r3 = 1
if (r2 == r3) goto L46
goto L61
L46:
int r2 = o.ZRp.r
int r2 = r2 + 105
int r3 = r2 % 128
o.ZRp.q = r3
int r2 = r2 % r0
java.lang.String r0 = "suggest_text_1"
java.lang.String r5 = jn_(r5, r0)
if (r2 != 0) goto L5e
r0 = 60
int r0 = r0 / 0
if (r5 == 0) goto L61
goto L60
L5e:
if (r5 == 0) goto L61
L60:
return r5
L61:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZRp.wR_(android.database.Cursor):java.lang.CharSequence");
}
@Override // o.BEC, android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
int i2 = 2 % 2;
int i3 = r + 9;
q = i3 % 128;
int i4 = i3 % 2;
try {
return super.getView(i, view, viewGroup);
} catch (RuntimeException e) {
View wV_ = wV_(this.f, this.d, viewGroup);
if (wV_ != null) {
((RVV) wV_.getTag()).e.setText(e.toString());
int i5 = q + 83;
r = i5 % 128;
int i6 = i5 % 2;
}
return wV_;
}
}
@Override // o.BEC, android.widget.BaseAdapter, android.widget.SpinnerAdapter
public final View getDropDownView(int i, View view, ViewGroup viewGroup) {
int i2 = 2 % 2;
try {
return super.getDropDownView(i, view, viewGroup);
} catch (RuntimeException e) {
View wU_ = wU_(this.f, this.d, viewGroup);
if (wU_ != null) {
((RVV) wU_.getTag()).e.setText(e.toString());
int i3 = q + 37;
r = i3 % 128;
int i4 = i3 % 2;
}
int i5 = r + 107;
q = i5 % 128;
int i6 = i5 % 2;
return wU_;
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x006a, code lost:
r4 = java.lang.Integer.parseInt(r9);
r5 = new java.lang.StringBuilder("android.resource://");
r5.append(r8.f.getPackageName());
r5.append("/");
r5.append(r4);
r5 = r5.toString();
r6 = (android.graphics.drawable.Drawable) e(new java.lang.Object[]{r8, r5}, 1002219623, -1002219622, java.lang.System.identityHashCode(r8));
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0098, code lost:
if (r6 == null) goto L21;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x009a, code lost:
r9 = o.ZRp.q + 97;
o.ZRp.r = r9 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x00a3, code lost:
if ((r9 % 2) != 0) goto L20;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x00a5, code lost:
return r6;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x00a6, code lost:
throw null;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x00a7, code lost:
r0 = o.nMh.getDrawable(r8.f, r4);
jw_(r5, r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x00b0, code lost:
return r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x00b1, code lost:
return null;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x00b2, code lost:
r0 = (android.graphics.drawable.Drawable) e(new java.lang.Object[]{r8, r9}, 1002219623, -1002219622, java.lang.System.identityHashCode(r8));
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x00c0, code lost:
if (r0 != null) goto L26;
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x00c2, code lost:
return r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x00c3, code lost:
r0 = jp_(android.net.Uri.parse(r9));
jw_(r9, r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x00ce, code lost:
return r0;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0062, code lost:
if (((java.lang.String) r3[0]).intern().equals(r9) == false) goto L14;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0045, code lost:
if (((java.lang.String) r3[0]).intern().equals(r9) == false) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private android.graphics.drawable.Drawable jq_(java.lang.String r9) {
/*
r8 = this;
r0 = 2
int r1 = r0 % r0
int r1 = o.ZRp.q
int r1 = r1 + 81
int r2 = r1 % 128
o.ZRp.r = r2
int r1 = r1 % r0
r1 = 0
if (r9 == 0) goto Lcf
boolean r2 = r9.isEmpty()
r3 = 1
r2 = r2 ^ r3
if (r2 == r3) goto L19
goto Lcf
L19:
int r2 = o.ZRp.q
int r2 = r2 + 83
int r4 = r2 % 128
o.ZRp.r = r4
int r2 = r2 % r0
java.lang.String r4 = ""
r5 = 1015066750(0x3c80b07e, float:0.015709158)
r6 = 1346420094(0x5040bd7e, float:1.2934576E10)
r7 = 0
if (r2 == 0) goto L48
int[] r2 = new int[]{r6, r5}
android.text.TextUtils.getOffsetBefore(r4, r7)
java.lang.Object[] r3 = new java.lang.Object[r3]
p(r2, r7, r3)
r2 = r3[r7]
java.lang.String r2 = (java.lang.String) r2
java.lang.String r2 = r2.intern()
boolean r2 = r2.equals(r9)
if (r2 != 0) goto Lcf
goto L64
L48:
int[] r2 = new int[]{r6, r5}
int r4 = android.text.TextUtils.getOffsetBefore(r4, r7)
int r4 = r4 + r3
java.lang.Object[] r3 = new java.lang.Object[r3]
p(r2, r4, r3)
r2 = r3[r7]
java.lang.String r2 = (java.lang.String) r2
java.lang.String r2 = r2.intern()
boolean r2 = r2.equals(r9)
if (r2 != 0) goto Lcf
L64:
r2 = -1002219622(0xffffffffc443579a, float:-781.3688)
r3 = 1002219623(0x3bbca867, float:0.00575738)
int r4 = java.lang.Integer.parseInt(r9) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.String r6 = "android.resource://"
r5.<init>(r6) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
android.content.Context r6 = r8.f // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.String r6 = r6.getPackageName() // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
r5.append(r6) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.String r6 = "/"
r5.append(r6) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
r5.append(r4) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.String r5 = r5.toString() // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.Object[] r6 = new java.lang.Object[]{r8, r5} // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
int r7 = java.lang.System.identityHashCode(r8) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
java.lang.Object r6 = e(r6, r3, r2, r7) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
android.graphics.drawable.Drawable r6 = (android.graphics.drawable.Drawable) r6 // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
if (r6 == 0) goto La7
int r9 = o.ZRp.q
int r9 = r9 + 97
int r2 = r9 % 128
o.ZRp.r = r2
int r9 = r9 % r0
if (r9 != 0) goto La6
return r6
La6:
throw r1
La7:
android.content.Context r0 = r8.f // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
android.graphics.drawable.Drawable r0 = o.nMh.getDrawable(r0, r4) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
r8.jw_(r5, r0) // Catch: android.content.res.Resources.NotFoundException -> Lb1 java.lang.NumberFormatException -> Lb2
return r0
Lb1:
return r1
Lb2:
java.lang.Object[] r0 = new java.lang.Object[]{r8, r9}
int r1 = java.lang.System.identityHashCode(r8)
java.lang.Object r0 = e(r0, r3, r2, r1)
android.graphics.drawable.Drawable r0 = (android.graphics.drawable.Drawable) r0
if (r0 == 0) goto Lc3
return r0
Lc3:
android.net.Uri r0 = android.net.Uri.parse(r9)
android.graphics.drawable.Drawable r0 = r8.jp_(r0)
r8.jw_(r9, r0)
return r0
Lcf:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: o.ZRp.jq_(java.lang.String):android.graphics.drawable.Drawable");
}
private Drawable jp_(Uri uri) {
int i = 2 % 2;
int i2 = r + 121;
q = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
try {
if (!"android.resource".equals(uri.getScheme())) {
InputStream openInputStream = this.f.getContentResolver().openInputStream(uri);
if (openInputStream == null) {
StringBuilder sb = new StringBuilder("Failed to open ");
sb.append(uri);
throw new FileNotFoundException(sb.toString());
}
try {
Drawable createFromStream = Drawable.createFromStream(openInputStream, null);
int i4 = q + 27;
r = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 58 / 0;
}
return createFromStream;
} finally {
try {
openInputStream.close();
} catch (IOException unused) {
}
}
}
int i6 = r + 113;
q = i6 % 128;
try {
if (i6 % 2 == 0) {
jB_(uri);
obj.hashCode();
throw null;
}
Drawable jB_ = jB_(uri);
int i7 = r + 13;
q = i7 % 128;
int i8 = i7 % 2;
return jB_;
} catch (Resources.NotFoundException unused2) {
StringBuilder sb2 = new StringBuilder("Resource does not exist: ");
sb2.append(uri);
throw new FileNotFoundException(sb2.toString());
}
} catch (FileNotFoundException e) {
e.getMessage();
return null;
}
e.getMessage();
return null;
}
private static /* synthetic */ Object e(Object[] objArr) {
ZRp zRp = (ZRp) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
int i2 = q + 19;
r = i2 % 128;
int i3 = i2 % 2;
Drawable.ConstantState constantState = zRp.g.get(str);
if (constantState != null) {
Drawable newDrawable = constantState.newDrawable();
int i4 = r + 33;
q = i4 % 128;
if (i4 % 2 != 0) {
return newDrawable;
}
throw null;
}
int i5 = r;
int i6 = i5 + 29;
q = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 53 / 0;
}
int i8 = i5 + 17;
q = i8 % 128;
int i9 = i8 % 2;
return null;
}
private void jw_(String str, Drawable drawable) {
int i = 2 % 2;
if (drawable != null) {
int i2 = q + 91;
r = i2 % 128;
int i3 = i2 % 2;
this.g.put(str, drawable.getConstantState());
int i4 = r + 123;
q = i4 % 128;
int i5 = i4 % 2;
}
}
private Drawable jo_() {
int i = 2 % 2;
Drawable jm_ = jm_(this.l.getSearchActivity());
if (jm_ != null) {
int i2 = r + 63;
q = i2 % 128;
int i3 = i2 % 2;
return jm_;
}
Drawable defaultActivityIcon = this.f.getPackageManager().getDefaultActivityIcon();
int i4 = r + 71;
q = i4 % 128;
int i5 = i4 % 2;
return defaultActivityIcon;
}
private Drawable jm_(ComponentName componentName) {
int i = 2 % 2;
String flattenToShortString = componentName.flattenToShortString();
Drawable.ConstantState constantState = null;
if (this.g.containsKey(flattenToShortString)) {
int i2 = q + 5;
r = i2 % 128;
if (i2 % 2 != 0) {
this.g.get(flattenToShortString);
throw null;
}
Drawable.ConstantState constantState2 = this.g.get(flattenToShortString);
if (constantState2 == null) {
return null;
}
return constantState2.newDrawable(this.f.getResources());
}
Drawable drawable = (Drawable) e(new Object[]{this, componentName}, -1149350714, 1149350718, System.identityHashCode(this));
if (drawable == null) {
int i3 = r + 49;
q = i3 % 128;
if (i3 % 2 == 0) {
throw null;
}
} else {
constantState = drawable.getConstantState();
}
this.g.put(flattenToShortString, constantState);
return drawable;
}
private static /* synthetic */ Object c(Object[] objArr) {
PackageManager packageManager;
ActivityInfo activityInfo;
ZRp zRp = (ZRp) objArr[0];
ComponentName componentName = (ComponentName) objArr[1];
int i = 2 % 2;
int i2 = r + 17;
q = i2 % 128;
Object obj = null;
try {
if (i2 % 2 == 0) {
packageManager = zRp.f.getPackageManager();
activityInfo = packageManager.getActivityInfo(componentName, 22806);
} else {
packageManager = zRp.f.getPackageManager();
activityInfo = packageManager.getActivityInfo(componentName, 128);
}
try {
int intValue = ((Integer) ComponentInfo.class.getMethod("getIconResource", null).invoke(activityInfo, null)).intValue();
if (intValue == 0) {
int i3 = r + 43;
q = i3 % 128;
int i4 = i3 % 2;
return null;
}
Drawable drawable = packageManager.getDrawable(componentName.getPackageName(), intValue, (ApplicationInfo) ComponentInfo.class.getField("applicationInfo").get(activityInfo));
if (drawable != null) {
int i5 = q + 73;
r = i5 % 128;
if (i5 % 2 == 0) {
return drawable;
}
obj.hashCode();
throw null;
}
componentName.flattenToShortString();
return null;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
} catch (PackageManager.NameNotFoundException unused) {
return null;
}
}
public static String jn_(Cursor cursor, String str) {
int i = 2 % 2;
int i2 = r + 123;
q = i2 % 128;
int i3 = i2 % 2;
String jt_ = jt_(cursor, cursor.getColumnIndex(str));
int i4 = r + 95;
q = i4 % 128;
if (i4 % 2 != 0) {
return jt_;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static String jt_(Cursor cursor, int i) {
int i2 = 2 % 2;
int i3 = r + 7;
int i4 = i3 % 128;
q = i4;
if (i3 % 2 == 0) {
throw null;
}
if (i != -1) {
try {
return cursor.getString(i);
} catch (Exception unused) {
return null;
}
}
int i5 = i4 + 41;
r = i5 % 128;
if (i5 % 2 == 0) {
return null;
}
throw null;
}
private Drawable jB_(Uri uri) throws FileNotFoundException {
String str;
String str2;
int identifier;
int i = 2 % 2;
String authority = uri.getAuthority();
if (TextUtils.isEmpty(authority)) {
throw new FileNotFoundException("No authority: ".concat(String.valueOf(uri)));
}
try {
Resources resourcesForApplication = this.f.getPackageManager().getResourcesForApplication(authority);
List<String> pathSegments = uri.getPathSegments();
if (pathSegments == null) {
throw new FileNotFoundException("No path: ".concat(String.valueOf(uri)));
}
int size = pathSegments.size();
if (size == 1) {
int i2 = r + 71;
q = i2 % 128;
int i3 = i2 % 2;
try {
identifier = Integer.parseInt(pathSegments.get(0));
int i4 = q + 45;
r = i4 % 128;
int i5 = i4 % 2;
} catch (NumberFormatException unused) {
throw new FileNotFoundException("Single path segment is not a resource ID: ".concat(String.valueOf(uri)));
}
} else if (size == 2) {
int i6 = q + 67;
r = i6 % 128;
if (i6 % 2 != 0) {
str = pathSegments.get(1);
str2 = pathSegments.get(1);
} else {
str = pathSegments.get(1);
str2 = pathSegments.get(0);
}
identifier = resourcesForApplication.getIdentifier(str, str2, authority);
} else {
throw new FileNotFoundException("More than two path segments: ".concat(String.valueOf(uri)));
}
if (identifier == 0) {
throw new FileNotFoundException("No resource found for: ".concat(String.valueOf(uri)));
}
return resourcesForApplication.getDrawable(identifier);
} catch (PackageManager.NameNotFoundException unused2) {
throw new FileNotFoundException("No package found for authority: ".concat(String.valueOf(uri)));
}
}
private Cursor jC_(SearchableInfo searchableInfo, String str) {
int i = 2 % 2;
int i2 = q + 101;
r = i2 % 128;
int i3 = i2 % 2;
String[] strArr = null;
if (searchableInfo == null) {
return null;
}
String suggestAuthority = searchableInfo.getSuggestAuthority();
if (suggestAuthority == null) {
int i4 = q + 41;
r = i4 % 128;
int i5 = i4 % 2;
return null;
}
Uri.Builder fragment = new Uri.Builder().scheme("content").authority(suggestAuthority).query("").fragment("");
String suggestPath = searchableInfo.getSuggestPath();
if (suggestPath != null) {
fragment.appendEncodedPath(suggestPath);
}
fragment.appendPath("search_suggest_query");
String suggestSelection = searchableInfo.getSuggestSelection();
if (suggestSelection != null) {
strArr = new String[]{str};
} else {
fragment.appendPath(str);
int i6 = q + 35;
r = i6 % 128;
int i7 = i6 % 2;
}
String[] strArr2 = strArr;
fragment.appendQueryParameter("limit", "50");
return this.f.getContentResolver().query(fragment.build(), null, suggestSelection, strArr2, null);
}
public ZRp(Context context, SearchView searchView, SearchableInfo searchableInfo, WeakHashMap<String, Drawable.ConstantState> weakHashMap) {
super(context, searchView.n);
this.a = false;
this.j = 1;
this.f8482o = -1;
this.k = -1;
this.n = -1;
this.h = -1;
this.i = -1;
this.b = -1;
this.m = searchView;
this.l = searchableInfo;
this.e = searchView.l;
this.f = context;
this.g = weakHashMap;
}
private static /* synthetic */ Object b(Object[] objArr) {
ZRp zRp = (ZRp) objArr[0];
int intValue = ((Number) objArr[1]).intValue();
int i = 2 % 2;
int i2 = q + 125;
r = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
zRp.j = intValue;
if (i3 == 0) {
return null;
}
obj.hashCode();
throw null;
}
public final void c(int i) {
e(new Object[]{this, Integer.valueOf(i)}, 416540722, -416540722, i);
}
@Override // o.BEC, android.widget.BaseAdapter, android.widget.Adapter
public final boolean hasStableIds() {
return ((Boolean) e(new Object[]{this}, 604306026, -604306024, System.identityHashCode(this))).booleanValue();
}
private Drawable jl_(ComponentName componentName) {
return (Drawable) e(new Object[]{this, componentName}, -1149350714, 1149350718, System.identityHashCode(this));
}
private CharSequence c(CharSequence charSequence) {
return (CharSequence) e(new Object[]{this, charSequence}, -2042947454, 2042947457, System.identityHashCode(this));
}
private Drawable jk_(String str) {
return (Drawable) e(new Object[]{this, str}, 1002219623, -1002219622, System.identityHashCode(this));
}
}