package io.flutter.plugin.platform; import android.app.AlertDialog; import android.app.Presentation; import android.content.Context; import android.content.ContextWrapper; import android.content.MutableContextWrapper; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.media.AudioTrack; import android.os.Bundle; import android.os.Process; import android.os.SystemClock; import android.telephony.cdma.CdmaCellLocation; import android.text.TextUtils; import android.view.Display; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.view.WindowManager; import android.view.accessibility.AccessibilityEvent; import android.view.inputmethod.InputMethodManager; import android.widget.ExpandableListView; import android.widget.FrameLayout; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.pingan.ai.p; import io.flutter.Log; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import o.GuL; import o.Nhs; import o.xzZ; import org.bouncycastle.asn1.cmp.PKIFailureInfo; import org.bouncycastle.crypto.tls.CipherSuite; import org.jmrtd.lds.CVCAFile; /* loaded from: classes6.dex */ class SingleViewPresentation extends Presentation { private static final String TAG = "PlatformViewsController"; private final AccessibilityEventsDelegate accessibilityEventsDelegate; private FrameLayout container; private final View.OnFocusChangeListener focusChangeListener; private final Context outerContext; private AccessibilityDelegatingFrameLayout rootView; private boolean startFocused; private final PresentationState state; private int viewId; /* loaded from: classes6.dex */ static class PresentationState { private FakeWindowViewGroup fakeWindowViewGroup; private PlatformView platformView; private WindowManagerHandler windowManagerHandler; PresentationState() { } } /* loaded from: classes6.dex */ static class PresentationContext extends ContextWrapper { private final Context flutterAppWindowContext; private WindowManager windowManager; private final WindowManagerHandler windowManagerHandler; private static final byte[] $$a = {29, 33, 79, 109}; private static final int $$b = CipherSuite.TLS_DHE_RSA_WITH_SEED_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int d = 1; private static long b = 1651397101342523633L; /* 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:0x002b). 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 e(int r7, int r8, int r9, java.lang.Object[] r10) { /* int r9 = r9 * 4 int r9 = r9 + 1 int r7 = r7 * 2 int r7 = 4 - r7 byte[] r0 = io.flutter.plugin.platform.SingleViewPresentation.PresentationContext.$$a int r8 = r8 * 2 int r8 = 121 - r8 byte[] r1 = new byte[r9] r2 = 0 if (r0 != 0) goto L16 r3 = r9 r4 = r2 goto L2b L16: r3 = r2 L17: int r4 = r3 + 1 byte r5 = (byte) r8 r1[r3] = r5 if (r4 != r9) goto L26 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L26: r3 = r0[r7] r6 = r3 r3 = r8 r8 = r6 L2b: int r8 = -r8 int r7 = r7 + 1 int r8 = r8 + r3 r3 = r4 goto L17 */ throw new UnsupportedOperationException("Method not decompiled: io.flutter.plugin.platform.SingleViewPresentation.PresentationContext.e(int, int, int, java.lang.Object[]):void"); } private static void c(char[] cArr, int i, Object[] objArr) { Object obj; int i2 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(b ^ (-7538262848231253921L), cArr, i); int i3 = 4; guL.a = 4; while (true) { obj = null; if (guL.a >= a2.length) { break; } int i4 = $10 + 39; $11 = i4 % 128; int i5 = i4 % 2; guL.c = guL.a - i3; int i6 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(b)}; Object obj2 = xzZ.y.get(428080616); if (obj2 == null) { Class cls = (Class) xzZ.c(208 - KeyEvent.normalizeMetaState(0), 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.indexOf("", "", 0) + 1706)); byte b2 = (byte) 0; byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; e(b2, b3, (byte) (b3 - 1), objArr3); obj2 = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj2); } a2[i6] = ((Character) ((Method) obj2).invoke(null, objArr2)).charValue(); Object[] objArr4 = {guL, guL}; Object obj3 = xzZ.y.get(-1875914398); if (obj3 == null) { Class cls2 = (Class) xzZ.c(392 - Color.red(0), 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), (char) (ViewConfiguration.getScrollBarSize() >> 8)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; e(b4, b5, b5, objArr5); obj3 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj3); } ((Method) obj3).invoke(null, objArr4); i3 = 4; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(a2, 4, a2.length - 4); int i7 = $10 + 89; $11 = i7 % 128; if (i7 % 2 != 0) { objArr[0] = str; } else { obj.hashCode(); throw null; } } PresentationContext(Context context, WindowManagerHandler windowManagerHandler, Context context2) { super(context); this.windowManagerHandler = windowManagerHandler; this.flutterAppWindowContext = context2; } @Override // android.content.ContextWrapper, android.content.Context public Object getSystemService(String str) { if ("window".equals(str)) { if (isCalledFromAlertDialog()) { return this.flutterAppWindowContext.getSystemService(str); } return getWindowManager(); } return super.getSystemService(str); } private WindowManager getWindowManager() { if (this.windowManager == null) { this.windowManager = this.windowManagerHandler.getWindowManager(); } return this.windowManager; } private boolean isCalledFromAlertDialog() { StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); for (int i = 0; i < stackTrace.length && i < 11; i++) { if (stackTrace[i].getClassName().equals(AlertDialog.class.getCanonicalName()) && stackTrace[i].getMethodName().equals("")) { return true; } } return false; } @Override // android.content.ContextWrapper public void attachBaseContext(Context context) { Context context2; int i = 2 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; c(new char[]{36727, 36630, 13824, 55839, 28352, 48092, 27431, 60832, 45476, 54735, 32599, 56648, 19048, 28845, 7621, 32398, 42797, 61049, 45760, 33779, 1508, 36157}, ViewConfiguration.getFadingEdgeLength() >> 16, objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; c(new char[]{12608, 12589, 23399, 25052, 944, 18915, 53461, 21404, 17280}, Drawable.resolveOpacity(0, 0), objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue >= 99000) { int i2 = d + 37; a = i2 % 128; int i3 = i2 % 2; if (intValue <= 99999) { return; } } if (context != null) { context2 = context.getApplicationContext(); int i4 = d + 65; a = i4 % 128; int i5 = i4 % 2; } else { context2 = context; } if (context2 != null) { int i6 = a + 3; d = i6 % 128; int i7 = i6 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 491, Color.blue(0) + 5, (char) ((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = new Object[1]; c(new char[]{34810, 34763, 15263, 43718, 25350, 60472, 7086, 58737, 58960, 55299, 4060, 35571, 17128, 32033, 27984, 10571, 45025, 58290, 49689, 54362, 3448, 32955, 10144, 29314, 27217, 9588, 34107, 4555, 55244, 52174, 6753, 48191, 13457, 26761, 32686, 23411, 37387, 3421, 56458, 63915, 65508, 45637, 12824, 25776, 23800, 20716, 38683, 863, 47729, 62888, 62607, 41366}, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; c(new char[]{1825, 1860, 49245, 31092, 39057, 28253, 51230, 26031, 25650, 9109, 56382, 2249, 49716, 34490, 48864, 43902, 12091, 6257, 4525, 22065, 36343, 31531, 62483, 61674, 60122, 57057, 22155, 37796, 22338, 12377, 51586, 15883, 46107, 37662, 44106, 55576, 4822, 63176, 3895, 31641, 32620, 18831, 57768, 59090, 56359, 43821, 17651, 33086, 15100, 3638, 10092, 9122, 42981, 25063, 39300, 52911, 1050, 50351, 31903, 26930, 24841, 9804, 57155, 5136, 53215, 47493, 45659, 46725}, View.getDefaultSize(0, 0), objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; c(new char[]{39213, 39244, 34447, 32805, 56857, 29348, 12617, 64500, 30877, 25932, 9528, 5178, 23663, 49214, 18358, 46978, 45415, 24315, 59645, 19095, 5036, 15861, 3347, 60487, 29828, 39023, 44938, 36621, 51486, 30431, 12419, 8866, 10781, 54681, 21780, 50667, 36057, 45077, 63028, 26466, 57696, 3853, 6316, 64046, 16936, 60919, 48624, 40340, 42147, 18668, 56891, 16138, 14831, 10034, 24711, 53775, 39491, 33318, 34253, 30105, 65293, 24774, 9795, 2278, 20944, 65367, 19214, 43640}, (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1, objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; c(new char[]{14693, 14605, 2882, 46772, 21400, 53594, 1948, 23470, 56096, 59588, 5031, 47053, 64614, 19951, 28977, 5175, 4398, 54049, 56949, 59775, 46048, 45156, 15299, 20387, 54428, 5554, 39178, 11491, 26971, 64269, 1566, 33038, 35333, 22620, 25501, 26195, 11473, 15765, 49377, 50329, 16745, 33424, 11823, 22999, 57908, 24628, 35700, 15977, 1276, 50555, 59577, 40096, 39328, 43768, 22019, 29157, 14928, 4017, 45897, 54834, 24348, 60681, 4249, 43860, 61898, 29323, 32203, 2438, 4810, 55232, 56178, 61061, 46904, 46344, 14445, 17164, 51681, 6773}, ViewConfiguration.getDoubleTapTimeout() >> 16, objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; c(new char[]{8603, 8610, 31721, 58349, 9065, 58662, 21129, 17171, 61186}, (Process.getThreadPriority(0) + 20) >> 6, objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; c(new char[]{56106, 56143, 23315, 51333, 988, 14164, 31211, 47606, 15722, 47235, 28107, 20888, 7799, 7668, 3863, 62069, 62304, 33575, 41051, 3946, 20987, 57443, 17914, 43489, 14032, 17919, 59260, 51941, 35656, 43841, 30837, 26449, 26645, 2063, 7660, 32845, 52958, 28039, 48838, 8901}, ViewConfiguration.getTouchSlop() >> 8, objArr8); Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c((Process.myPid() >> 22) + 487, Color.green(0) + 5, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr9); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } } public SingleViewPresentation(Context context, Display display, PlatformView platformView, AccessibilityEventsDelegate accessibilityEventsDelegate, int i, View.OnFocusChangeListener onFocusChangeListener) { super(new ImmContext(context), display); this.startFocused = false; this.accessibilityEventsDelegate = accessibilityEventsDelegate; this.viewId = i; this.focusChangeListener = onFocusChangeListener; this.outerContext = context; PresentationState presentationState = new PresentationState(); this.state = presentationState; presentationState.platformView = platformView; getWindow().setFlags(8, 8); getWindow().setType(2030); } /* loaded from: classes6.dex */ static class ImmContext extends ContextWrapper { private final InputMethodManager inputMethodManager; private static final byte[] $$a = {CVCAFile.CAR_TAG, 74, -6, Ascii.DEL}; private static final int $$b = CipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384; private static int $10 = 0; private static int $11 = 1; private static int a = 0; private static int c = 1; private static long e = 9051040786702654117L; private static int b = 452713125; private static char d = 30376; /* JADX WARN: Removed duplicated region for block: B:10:0x0022 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001a */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0022 -> B:4:0x0026). 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 g(short r6, short r7, short r8, java.lang.Object[] r9) { /* int r8 = r8 * 3 int r8 = r8 + 1 byte[] r0 = io.flutter.plugin.platform.SingleViewPresentation.ImmContext.$$a int r6 = 115 - r6 int r7 = r7 + 4 byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L12 r3 = r8 r4 = r2 goto L26 L12: r3 = r2 L13: int r4 = r3 + 1 byte r5 = (byte) r6 r1[r3] = r5 if (r4 != r8) goto L22 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L22: int r7 = r7 + 1 r3 = r0[r7] L26: int r6 = r6 + r3 r3 = r4 goto L13 */ throw new UnsupportedOperationException("Method not decompiled: io.flutter.plugin.platform.SingleViewPresentation.ImmContext.g(short, short, short, java.lang.Object[]):void"); } private static void f(char c2, char[] cArr, char[] cArr2, char[] cArr3, int i, Object[] objArr) { int i2 = 2 % 2; Nhs nhs = new Nhs(); int length = cArr2.length; char[] cArr4 = new char[length]; int length2 = cArr3.length; char[] cArr5 = new char[length2]; System.arraycopy(cArr2, 0, cArr4, 0, length); System.arraycopy(cArr3, 0, cArr5, 0, length2); cArr4[0] = (char) (cArr4[0] ^ c2); cArr5[2] = (char) (cArr5[2] + ((char) i)); int length3 = cArr.length; char[] cArr6 = new char[length3]; nhs.a = 0; while (nhs.a < length3) { int i3 = $11 + 67; $10 = i3 % 128; int i4 = i3 % 2; try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c(45 - TextUtils.getOffsetBefore("", 0), (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) KeyEvent.normalizeMetaState(0))).getMethod("t", Object.class); xzZ.y.put(263693715, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); Object[] objArr3 = {nhs}; Object obj2 = xzZ.y.get(-484664112); if (obj2 == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 352, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) ((ViewConfiguration.getKeyRepeatDelay() >> 16) + 52128)); byte b2 = (byte) 0; byte b3 = (byte) (b2 - 1); Object[] objArr4 = new Object[1]; g(b2, b3, (byte) (b3 + 1), objArr4); obj2 = cls.getMethod((String) objArr4[0], Object.class); xzZ.y.put(-484664112, obj2); } int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj3 = xzZ.y.get(430099516); if (obj3 == null) { obj3 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 747, 5 - KeyEvent.getDeadChar(0, 0), (char) (ViewConfiguration.getPressedStateDuration() >> 16))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE); xzZ.y.put(430099516, obj3); } ((Method) obj3).invoke(null, objArr5); Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj4 = xzZ.y.get(1019894806); if (obj4 == null) { Class cls2 = (Class) xzZ.c(402 - TextUtils.getOffsetBefore("", 0), (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 4, (char) (TextUtils.getOffsetBefore("", 0) + 21608)); byte b4 = (byte) ($$b & 1); byte b5 = (byte) (-b4); Object[] objArr7 = new Object[1]; g(b4, b5, (byte) (b5 + 1), objArr7); obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(1019894806, obj4); } cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue(); cArr4[intValue2] = nhs.c; cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr[nhs.a]) ^ (e ^ 9051040786702654117L)) ^ ((int) (b ^ 9051040786702654117L))) ^ ((char) (d ^ 9051040786702654117L))); nhs.a++; int i5 = $11 + 9; $10 = i5 % 128; int i6 = i5 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } objArr[0] = new String(cArr6); } ImmContext(Context context) { this(context, null); } private ImmContext(Context context, InputMethodManager inputMethodManager) { super(context); this.inputMethodManager = inputMethodManager == null ? (InputMethodManager) context.getSystemService("input_method") : inputMethodManager; } @Override // android.content.ContextWrapper, android.content.Context public Object getSystemService(String str) { return "input_method".equals(str) ? this.inputMethodManager : super.getSystemService(str); } @Override // android.content.ContextWrapper, android.content.Context public Context createDisplayContext(Display display) { return new ImmContext(super.createDisplayContext(display), this.inputMethodManager); } @Override // android.content.ContextWrapper public void attachBaseContext(Context context) { Context context2; int i = 2 % 2; super.attachBaseContext(context); Object[] objArr = new Object[1]; f((char) (26067 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), new char[]{26687, 59012, 65526, 20025, 49567, 6864, 51417, 51485, 45412, 4787, 27526, 14792, 25021, 24460, 24250, 14057, 45959, 57074}, new char[]{61330, 45367, 54206, 7781}, new char[]{0, 0, 0, 0}, (-1) - TextUtils.lastIndexOf("", '0', 0), objArr); Class cls = Class.forName((String) objArr[0]); Object[] objArr2 = new Object[1]; f((char) ((Process.myTid() >> 22) + 23260), new char[]{29334, 19694, 8284, 58655, 44118}, new char[]{10607, 52414, 56504, 61274}, new char[]{0, 0, 0, 0}, Color.alpha(0) - 1194541527, objArr2); int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000; if (intValue < 99000 || intValue > 99999) { if (context != null) { int i2 = a + 119; c = i2 % 128; int i3 = i2 % 2; context2 = context.getApplicationContext(); } else { context2 = context; } if (context2 != null) { int i4 = c + 119; a = i4 % 128; int i5 = i4 % 2; try { Object obj = xzZ.y.get(125943855); if (obj == null) { obj = ((Class) xzZ.c(TextUtils.getTrimmedLength("") + 492, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) (ImageFormat.getBitsPerPixel(0) + 1))).getMethod("a", null); xzZ.y.put(125943855, obj); } Object invoke = ((Method) obj).invoke(null, null); Object[] objArr3 = new Object[1]; f((char) Color.argb(0, 0, 0, 0), new char[]{38156, 9049, 56385, 21389, 26045, 61740, 24923, 27974, 56069, 7071, 30965, 58166, 61570, 47625, 44930, 55269, 32399, 55631, 46689, 38737, 42078, 64556, 4780, 49836, 36332, 36306, 27119, 53154, 33996, 52241, 25338, 11011, 46780, 3724, 9475, 60256, 25084, 10567, 10381, 45001, 20176, 6383, 8656, 19660, 42528, 44463, 30342, 58502}, new char[]{26845, 7544, 1675, 33903}, new char[]{0, 0, 0, 0}, (Process.getThreadPriority(0) + 20) >> 6, objArr3); String str = (String) objArr3[0]; Object[] objArr4 = new Object[1]; f((char) (ViewConfiguration.getPressedStateDuration() >> 16), new char[]{18060, 23973, 46550, 7446, 9519, 23940, 35470, 10060, 48405, 58429, 11464, 40350, 29860, 13540, 42681, 29187, 42422, 20469, 32452, 'F', 52920, 38291, 13406, 57574, 39978, 28596, 5030, 44154, 31276, 10070, 61950, 55015, 41030, 26019, 10715, 26814, 28204, 3721, 63883, 6075, 18162, 26962, 21495, 59629, 5739, 9393, 48945, 21508, 38761, 679, 5920, 3279, 5830, 51813, 7056, 59790, 11258, 30334, 39993, 13626, 21659, 54947, 63542, 43185}, new char[]{25264, 14746, 37853, 10828}, new char[]{0, 0, 0, 0}, 1 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr4); String str2 = (String) objArr4[0]; Object[] objArr5 = new Object[1]; f((char) (ViewConfiguration.getPressedStateDuration() >> 16), new char[]{42317, 41776, 2831, 4492, 1362, 7292, 62727, 13746, 58864, 9538, 13316, 52089, 5132, 6589, 31487, 34946, 46631, 30990, 27998, 31116, 58325, 40198, 13470, 49383, 51667, 2084, 41168, 35965, 20696, 37019, 12774, 12863, 64305, 22116, 11496, 54933, 55683, 65003, 59510, 20565, 50825, 43607, 30307, 44279, 60648, 53487, 61550, 57290, 49461, 27099, 19969, 42281, 54092, 56155, 13306, 59187, 49219, 30436, 1638, 63806, 18462, 30896, 16835, 39771}, new char[]{17164, 813, 8576, 22677}, new char[]{0, 0, 0, 0}, TextUtils.indexOf("", ""), objArr5); String str3 = (String) objArr5[0]; Object[] objArr6 = new Object[1]; f((char) (ViewConfiguration.getScrollBarFadeDuration() >> 16), new char[]{58611, 49632, 43790, 40938, 52912, 40590, 4312, 17651, 26255, 2739, 14551, 3319, 7654, 36718, 27033, 23090, 9531, 15530, 56346, 63819, 21953, 10858, 58312, 56684, 4911, 14762, 50549, 34324, 60734, 44339, 15045, 48413, 30850, 53857, 36132, 12537, 33999, 22210, 55004, 40220, 59167, 63093, 23561, 35334, 987, 1684, 4315, 44394, 43546, 62985, 13227, 45897, 15673, 12962, 2624, 6284, 50644, 35532, 32256, 20282, 32546, 10796, 12787, 8717, 55138, 57058, 6977, 54674, 12826, 28412, 7678, 5138, 46073, 21512}, new char[]{34709, 31099, 10241, 54853}, new char[]{0, 0, 0, 0}, ExpandableListView.getPackedPositionChild(0L) + 1, objArr6); String str4 = (String) objArr6[0]; Object[] objArr7 = new Object[1]; f((char) (8700 - Gravity.getAbsoluteGravity(0, 0)), new char[]{52713, 5302, 41318, 27890, 57646}, new char[]{39872, 23140, 64623, 26145}, new char[]{0, 0, 0, 0}, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 1868194970, objArr7); String str5 = (String) objArr7[0]; Object[] objArr8 = new Object[1]; f((char) Gravity.getAbsoluteGravity(0, 0), new char[]{2867, 8161, 2336, 54779, 35991, 18906, 25264, 23926, 27447, 3305, 59046, 50284, 62418, 55934, 40777, 36382, 64662, 37286, 36240, 11475, 35800, 2270, 5591, 20166, 51914, 1540, 57001, 22568, 53661, 42808, 46545, 49514, 58817, 26751, 19977, 4927}, new char[]{9726, 44090, 45582, 462}, new char[]{0, 0, 0, 0}, ViewConfiguration.getKeyRepeatTimeout() >> 16, objArr8); Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]}; Object obj2 = xzZ.y.get(1656189573); if (obj2 == null) { obj2 = ((Class) xzZ.c(488 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - KeyEvent.normalizeMetaState(0), (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class); xzZ.y.put(1656189573, obj2); } ((Method) obj2).invoke(invoke, objArr9); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } } int i6 = c + 43; a = i6 % 128; if (i6 % 2 == 0) { return; } Object obj3 = null; obj3.hashCode(); throw null; } } public SingleViewPresentation(Context context, Display display, AccessibilityEventsDelegate accessibilityEventsDelegate, PresentationState presentationState, View.OnFocusChangeListener onFocusChangeListener, boolean z) { super(new ImmContext(context), display); this.startFocused = false; this.accessibilityEventsDelegate = accessibilityEventsDelegate; this.state = presentationState; this.focusChangeListener = onFocusChangeListener; this.outerContext = context; getWindow().setFlags(8, 8); this.startFocused = z; } @Override // android.app.Dialog protected void onCreate(Bundle bundle) { super.onCreate(bundle); getWindow().setBackgroundDrawable(new ColorDrawable(0)); if (this.state.fakeWindowViewGroup == null) { this.state.fakeWindowViewGroup = new FakeWindowViewGroup(getContext()); } if (this.state.windowManagerHandler == null) { WindowManager windowManager = (WindowManager) getContext().getSystemService("window"); PresentationState presentationState = this.state; presentationState.windowManagerHandler = new WindowManagerHandler(windowManager, presentationState.fakeWindowViewGroup); } this.container = new FrameLayout(getContext()); PresentationContext presentationContext = new PresentationContext(getContext(), this.state.windowManagerHandler, this.outerContext); View view = this.state.platformView.getView(); if (view.getContext() instanceof MutableContextWrapper) { ((MutableContextWrapper) view.getContext()).setBaseContext(presentationContext); } else { Log.w(TAG, "Unexpected platform view context for view ID " + this.viewId + "; some functionality may not work correctly. When constructing a platform view in the factory, ensure that the view returned from PlatformViewFactory#create returns the provided context from getContext(). If you are unable to associate the view with that context, consider using Hybrid Composition instead."); } this.container.addView(view); AccessibilityDelegatingFrameLayout accessibilityDelegatingFrameLayout = new AccessibilityDelegatingFrameLayout(getContext(), this.accessibilityEventsDelegate, view); this.rootView = accessibilityDelegatingFrameLayout; accessibilityDelegatingFrameLayout.addView(this.container); this.rootView.addView(this.state.fakeWindowViewGroup); view.setOnFocusChangeListener(this.focusChangeListener); this.rootView.setFocusableInTouchMode(true); if (this.startFocused) { view.requestFocus(); } else { this.rootView.requestFocus(); } setContentView(this.rootView); } public PresentationState detachState() { this.container.removeAllViews(); this.rootView.removeAllViews(); return this.state; } public PlatformView getView() { if (this.state.platformView == null) { return null; } return this.state.platformView; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes6.dex */ public static class FakeWindowViewGroup extends ViewGroup { private final Rect childRect; private final Rect viewBounds; public FakeWindowViewGroup(Context context) { super(context); this.viewBounds = new Rect(); this.childRect = new Rect(); } @Override // android.view.ViewGroup, android.view.View protected void onLayout(boolean z, int i, int i2, int i3, int i4) { for (int i5 = 0; i5 < getChildCount(); i5++) { View childAt = getChildAt(i5); WindowManager.LayoutParams layoutParams = (WindowManager.LayoutParams) childAt.getLayoutParams(); this.viewBounds.set(i, i2, i3, i4); Gravity.apply(layoutParams.gravity, childAt.getMeasuredWidth(), childAt.getMeasuredHeight(), this.viewBounds, layoutParams.x, layoutParams.y, this.childRect); childAt.layout(this.childRect.left, this.childRect.top, this.childRect.right, this.childRect.bottom); } } @Override // android.view.View protected void onMeasure(int i, int i2) { for (int i3 = 0; i3 < getChildCount(); i3++) { getChildAt(i3).measure(atMost(i), atMost(i2)); } super.onMeasure(i, i2); } private static int atMost(int i) { return View.MeasureSpec.makeMeasureSpec(View.MeasureSpec.getSize(i), PKIFailureInfo.systemUnavail); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes6.dex */ public static class WindowManagerHandler implements InvocationHandler { private static final String TAG = "PlatformViewsController"; private final WindowManager delegate; FakeWindowViewGroup fakeWindowRootView; WindowManagerHandler(WindowManager windowManager, FakeWindowViewGroup fakeWindowViewGroup) { this.delegate = windowManager; this.fakeWindowRootView = fakeWindowViewGroup; } public WindowManager getWindowManager() { return (WindowManager) Proxy.newProxyInstance(WindowManager.class.getClassLoader(), new Class[]{WindowManager.class}, this); } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ @Override // java.lang.reflect.InvocationHandler public Object invoke(Object obj, Method method, Object[] objArr) throws Throwable { char c; String name = method.getName(); name.hashCode(); switch (name.hashCode()) { case -1148522778: if (name.equals("addView")) { c = 0; break; } c = 65535; break; case 542766184: if (name.equals("removeViewImmediate")) { c = 1; break; } c = 65535; break; case 931413976: if (name.equals("updateViewLayout")) { c = 2; break; } c = 65535; break; case 1098630473: if (name.equals("removeView")) { c = 3; break; } c = 65535; break; default: c = 65535; break; } if (c == 0) { addView(objArr); return null; } if (c == 1) { removeViewImmediate(objArr); return null; } if (c == 2) { updateViewLayout(objArr); return null; } if (c == 3) { removeView(objArr); return null; } try { return method.invoke(this.delegate, objArr); } catch (InvocationTargetException e) { throw e.getCause(); } } private void addView(Object[] objArr) { FakeWindowViewGroup fakeWindowViewGroup = this.fakeWindowRootView; if (fakeWindowViewGroup == null) { Log.w(TAG, "Embedded view called addView while detached from presentation"); } else { fakeWindowViewGroup.addView((View) objArr[0], (WindowManager.LayoutParams) objArr[1]); } } private void removeView(Object[] objArr) { FakeWindowViewGroup fakeWindowViewGroup = this.fakeWindowRootView; if (fakeWindowViewGroup == null) { Log.w(TAG, "Embedded view called removeView while detached from presentation"); } else { fakeWindowViewGroup.removeView((View) objArr[0]); } } private void removeViewImmediate(Object[] objArr) { if (this.fakeWindowRootView == null) { Log.w(TAG, "Embedded view called removeViewImmediate while detached from presentation"); return; } View view = (View) objArr[0]; view.clearAnimation(); this.fakeWindowRootView.removeView(view); } private void updateViewLayout(Object[] objArr) { FakeWindowViewGroup fakeWindowViewGroup = this.fakeWindowRootView; if (fakeWindowViewGroup == null) { Log.w(TAG, "Embedded view called updateViewLayout while detached from presentation"); } else { fakeWindowViewGroup.updateViewLayout((View) objArr[0], (WindowManager.LayoutParams) objArr[1]); } } } /* loaded from: classes6.dex */ static class AccessibilityDelegatingFrameLayout extends FrameLayout { private final AccessibilityEventsDelegate accessibilityEventsDelegate; private final View embeddedView; public AccessibilityDelegatingFrameLayout(Context context, AccessibilityEventsDelegate accessibilityEventsDelegate, View view) { super(context); this.accessibilityEventsDelegate = accessibilityEventsDelegate; this.embeddedView = view; } @Override // android.view.ViewGroup, android.view.ViewParent public boolean requestSendAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) { return this.accessibilityEventsDelegate.requestSendAccessibilityEvent(this.embeddedView, view, accessibilityEvent); } } }