185 lines
6.7 KiB
Java
185 lines
6.7 KiB
Java
package o;
|
|
|
|
import androidx.window.sidecar.SidecarDeviceState;
|
|
import androidx.window.sidecar.SidecarDisplayFeature;
|
|
import androidx.window.sidecar.SidecarWindowLayoutInfo;
|
|
import java.lang.reflect.InvocationTargetException;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class DcR {
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x00ae A[SYNTHETIC] */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x0015 A[SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static java.util.List<o.VIk> d(java.util.List<androidx.window.sidecar.SidecarDisplayFeature> r8, androidx.window.sidecar.SidecarDeviceState r9) {
|
|
/*
|
|
java.lang.String r0 = ""
|
|
o.C14957gcv.e(r8, r0)
|
|
o.C14957gcv.e(r9, r0)
|
|
java.lang.Iterable r8 = (java.lang.Iterable) r8
|
|
java.util.ArrayList r1 = new java.util.ArrayList
|
|
r1.<init>()
|
|
java.util.Collection r1 = (java.util.Collection) r1
|
|
java.util.Iterator r8 = r8.iterator()
|
|
L15:
|
|
boolean r2 = r8.hasNext()
|
|
if (r2 == 0) goto Lb3
|
|
java.lang.Object r2 = r8.next()
|
|
androidx.window.sidecar.SidecarDisplayFeature r2 = (androidx.window.sidecar.SidecarDisplayFeature) r2
|
|
o.C14957gcv.e(r2, r0)
|
|
o.C14957gcv.e(r9, r0)
|
|
android.graphics.Rect r3 = r2.getRect()
|
|
o.C14957gcv.c(r3, r0)
|
|
int r4 = r3.width()
|
|
if (r4 != 0) goto L3a
|
|
int r4 = r3.height()
|
|
if (r4 == 0) goto Lab
|
|
L3a:
|
|
int r4 = r2.getType()
|
|
r5 = 1
|
|
if (r4 != r5) goto L4d
|
|
int r4 = r3.width()
|
|
if (r4 == 0) goto L4d
|
|
int r4 = r3.height()
|
|
if (r4 != 0) goto Lab
|
|
L4d:
|
|
int r4 = r2.getType()
|
|
r6 = 2
|
|
if (r4 == r6) goto L5a
|
|
int r4 = r2.getType()
|
|
if (r4 != r5) goto L62
|
|
L5a:
|
|
int r4 = r3.left
|
|
if (r4 == 0) goto L62
|
|
int r3 = r3.top
|
|
if (r3 != 0) goto Lab
|
|
L62:
|
|
int r3 = r2.getType()
|
|
if (r3 == r5) goto L71
|
|
if (r3 != r6) goto Lab
|
|
o.LOF$IeS$HBt r3 = o.LOF.IeS.c
|
|
o.LOF$IeS r3 = o.LOF.IeS.c()
|
|
goto L77
|
|
L71:
|
|
o.LOF$IeS$HBt r3 = o.LOF.IeS.c
|
|
o.LOF$IeS r3 = o.LOF.IeS.d()
|
|
L77:
|
|
o.C14957gcv.e(r9, r0)
|
|
int r4 = o.DcR.RVV.d(r9)
|
|
r7 = 4
|
|
if (r4 < 0) goto L83
|
|
if (r4 <= r7) goto L84
|
|
L83:
|
|
r4 = 0
|
|
L84:
|
|
if (r4 == 0) goto Lab
|
|
if (r4 == r5) goto Lab
|
|
if (r4 == r6) goto L95
|
|
r5 = 3
|
|
if (r4 == r5) goto L92
|
|
if (r4 == r7) goto Lab
|
|
o.bWE$RVV r4 = o.bWE.RVV.d
|
|
goto L97
|
|
L92:
|
|
o.bWE$RVV r4 = o.bWE.RVV.d
|
|
goto L97
|
|
L95:
|
|
o.bWE$RVV r4 = o.bWE.RVV.b
|
|
L97:
|
|
android.graphics.Rect r2 = r2.getRect()
|
|
o.C14957gcv.c(r2, r0)
|
|
o.LOF r5 = new o.LOF
|
|
o.nPm r6 = new o.nPm
|
|
r6.<init>(r2)
|
|
r5.<init>(r6, r3, r4)
|
|
o.VIk r5 = (o.VIk) r5
|
|
goto Lac
|
|
Lab:
|
|
r5 = 0
|
|
Lac:
|
|
if (r5 == 0) goto L15
|
|
r1.add(r5)
|
|
goto L15
|
|
Lb3:
|
|
java.util.List r1 = (java.util.List) r1
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.DcR.d(java.util.List, androidx.window.sidecar.SidecarDeviceState):java.util.List");
|
|
}
|
|
|
|
public static oEt e(SidecarWindowLayoutInfo sidecarWindowLayoutInfo, SidecarDeviceState sidecarDeviceState) {
|
|
C14957gcv.e(sidecarDeviceState, "");
|
|
if (sidecarWindowLayoutInfo == null) {
|
|
return new oEt(C14851gaI.c);
|
|
}
|
|
SidecarDeviceState sidecarDeviceState2 = new SidecarDeviceState();
|
|
C14957gcv.e(sidecarDeviceState, "");
|
|
int d = RVV.d(sidecarDeviceState);
|
|
if (d < 0 || d > 4) {
|
|
d = 0;
|
|
}
|
|
C14957gcv.e(sidecarDeviceState2, "");
|
|
try {
|
|
sidecarDeviceState2.posture = d;
|
|
} catch (NoSuchFieldError unused) {
|
|
try {
|
|
SidecarDeviceState.class.getMethod("setPosture", Integer.TYPE).invoke(sidecarDeviceState2, Integer.valueOf(d));
|
|
} catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
|
|
}
|
|
}
|
|
return new oEt(d(RVV.a(sidecarWindowLayoutInfo), sidecarDeviceState2));
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public static List<SidecarDisplayFeature> a(SidecarWindowLayoutInfo sidecarWindowLayoutInfo) {
|
|
C14957gcv.e(sidecarWindowLayoutInfo, "");
|
|
try {
|
|
List<SidecarDisplayFeature> list = sidecarWindowLayoutInfo.displayFeatures;
|
|
return list == null ? C14851gaI.c : list;
|
|
} catch (NoSuchFieldError unused) {
|
|
try {
|
|
Object invoke = SidecarWindowLayoutInfo.class.getMethod("getDisplayFeatures", new Class[0]).invoke(sidecarWindowLayoutInfo, new Object[0]);
|
|
if (invoke != null) {
|
|
return (List) invoke;
|
|
}
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.collections.List<androidx.window.sidecar.SidecarDisplayFeature>");
|
|
} catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
|
|
return C14851gaI.c;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static int d(SidecarDeviceState sidecarDeviceState) {
|
|
C14957gcv.e(sidecarDeviceState, "");
|
|
try {
|
|
return sidecarDeviceState.posture;
|
|
} catch (NoSuchFieldError unused) {
|
|
try {
|
|
Object invoke = SidecarDeviceState.class.getMethod("getPosture", new Class[0]).invoke(sidecarDeviceState, new Object[0]);
|
|
if (invoke != null) {
|
|
return ((Integer) invoke).intValue();
|
|
}
|
|
throw new NullPointerException("null cannot be cast to non-null type kotlin.Int");
|
|
} catch (IllegalAccessException | NoSuchMethodException | InvocationTargetException unused2) {
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
static {
|
|
new RVV((byte) 0);
|
|
}
|
|
}
|