package o; import android.app.Activity; import android.graphics.Rect; import androidx.window.extensions.layout.FoldingFeature; import androidx.window.extensions.layout.WindowLayoutInfo; import java.util.ArrayList; import java.util.List; import o.LOF; import o.bWE; /* renamed from: o.eas, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C11203eas { public static final C11203eas d = new C11203eas(); private C11203eas() { } public static oEt CK_(Activity activity, WindowLayoutInfo windowLayoutInfo) { LOF.IeS ieS; bWE.RVV rvv; C14957gcv.e(activity, ""); C14957gcv.e(windowLayoutInfo, ""); List displayFeatures = windowLayoutInfo.getDisplayFeatures(); C14957gcv.c(displayFeatures, ""); ArrayList arrayList = new ArrayList(); for (FoldingFeature foldingFeature : displayFeatures) { LOF lof = null; if (foldingFeature instanceof FoldingFeature) { C14957gcv.c(foldingFeature, ""); FoldingFeature foldingFeature2 = foldingFeature; C14957gcv.e(activity, ""); C14957gcv.e(foldingFeature2, ""); int type = foldingFeature2.getType(); if (type == 1) { LOF.IeS.HBt hBt = LOF.IeS.c; ieS = LOF.IeS.a; } else if (type == 2) { LOF.IeS.HBt hBt2 = LOF.IeS.c; ieS = LOF.IeS.e; } int state = foldingFeature2.getState(); if (state == 1) { rvv = bWE.RVV.d; } else if (state == 2) { rvv = bWE.RVV.b; } Rect bounds = foldingFeature2.getBounds(); C14957gcv.c(bounds, ""); nPm npm = new nPm(bounds); nPm npm2 = smP.b.Db_(activity).d; Rect rect = new Rect(npm2.d, npm2.c, npm2.e, npm2.a); if ((npm.a - npm.c != 0 || npm.e - npm.d != 0) && ((npm.e - npm.d == rect.width() || npm.a - npm.c == rect.height()) && ((npm.e - npm.d >= rect.width() || npm.a - npm.c >= rect.height()) && (npm.e - npm.d != rect.width() || npm.a - npm.c != rect.height())))) { Rect bounds2 = foldingFeature2.getBounds(); C14957gcv.c(bounds2, ""); lof = new LOF(new nPm(bounds2), ieS, rvv); } } if (lof != null) { arrayList.add(lof); } } return new oEt(arrayList); } }