package o; import android.graphics.Rect; import o.bWE; /* loaded from: classes.dex */ public final class LOF implements bWE { private final IeS b; private final bWE.RVV c; private final nPm d; public LOF(nPm npm, IeS ieS, bWE.RVV rvv) { C14957gcv.e(npm, ""); C14957gcv.e(ieS, ""); C14957gcv.e(rvv, ""); this.d = npm; this.b = ieS; this.c = rvv; C14957gcv.e(npm, ""); if (npm.e - npm.d == 0 && npm.a - npm.c == 0) { throw new IllegalArgumentException("Bounds must be non zero".toString()); } if (npm.d != 0 && npm.c != 0) { throw new IllegalArgumentException("Bounding rectangle must start at the top or left window edge for folding features".toString()); } } public final String toString() { StringBuilder sb = new StringBuilder("HardwareFoldingFeature { "); sb.append(this.d); sb.append(", type="); sb.append(this.b); sb.append(", state="); sb.append(this.c); sb.append(" }"); return sb.toString(); } public final boolean equals(Object obj) { if (this == obj) { return true; } if (!C14957gcv.b(getClass(), obj == null ? null : obj.getClass())) { return false; } if (obj != null) { LOF lof = (LOF) obj; return C14957gcv.b(this.d, lof.d) && C14957gcv.b(this.b, lof.b) && C14957gcv.b(this.c, lof.c); } throw new NullPointerException("null cannot be cast to non-null type androidx.window.layout.HardwareFoldingFeature"); } public final int hashCode() { return (((this.d.hashCode() * 31) + this.b.hashCode()) * 31) + this.c.hashCode(); } /* loaded from: classes.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } /* loaded from: classes.dex */ public static final class IeS { private final String b; public static final HBt c = new HBt(0); private static final IeS a = new IeS("FOLD"); private static final IeS e = new IeS("HINGE"); private IeS(String str) { this.b = str; } /* loaded from: classes.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } public final String toString() { return this.b; } } @Override // o.VIk public final Rect CL_() { nPm npm = this.d; return new Rect(npm.d, npm.c, npm.e, npm.a); } @Override // o.bWE public final bWE.LWm e() { nPm npm = this.d; if (npm.e - npm.d != 0) { nPm npm2 = this.d; if (npm2.a - npm2.c != 0) { return bWE.LWm.b; } } return bWE.LWm.c; } @Override // o.bWE public final bWE.RVV a() { return this.c; } static { new Sts((byte) 0); } }