package com.google.android.flexbox; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.os.Parcel; import android.os.Parcelable; import android.util.AttributeSet; import android.util.SparseIntArray; import android.view.View; import android.view.ViewGroup; import androidx.core.view.ViewCompat; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import o.C16445oSd; import o.C3223atU; import o.DNa; import o.EiS; import o.rqd; import okhttp3.internal.http2.Http2Connection; import org.bouncycastle.asn1.cmp.PKIFailureInfo; /* loaded from: classes.dex */ public class FlexboxLayout extends ViewGroup implements DNa { private Drawable a; private int b; private int c; private Drawable d; private int e; private int f; private int g; private EiS.RVV h; private int i; private List j; private int k; private int[] l; private int m; private SparseIntArray n; /* renamed from: o, reason: collision with root package name */ private EiS f6462o; private int q; private int t; @Override // o.DNa public final void c(int i, View view) { } @Override // o.DNa public final int d(View view) { return 0; } public FlexboxLayout(Context context) { this(context, null); } public FlexboxLayout(Context context, AttributeSet attributeSet) { this(context, attributeSet, 0); } public FlexboxLayout(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); this.k = -1; this.f6462o = new EiS(this); this.j = new ArrayList(); this.h = new EiS.RVV(); TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C16445oSd.RVV.FlexboxLayout, i, 0); this.i = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_flexDirection, 0); this.g = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_flexWrap, 0); this.m = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_justifyContent, 0); this.b = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_alignItems, 4); this.c = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_alignContent, 5); this.k = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_maxLine, -1); Drawable drawable = obtainStyledAttributes.getDrawable(C16445oSd.RVV.FlexboxLayout_dividerDrawable); if (drawable != null) { setDividerDrawableHorizontal(drawable); setDividerDrawableVertical(drawable); } Drawable drawable2 = obtainStyledAttributes.getDrawable(C16445oSd.RVV.FlexboxLayout_dividerDrawableHorizontal); if (drawable2 != null) { setDividerDrawableHorizontal(drawable2); } Drawable drawable3 = obtainStyledAttributes.getDrawable(C16445oSd.RVV.FlexboxLayout_dividerDrawableVertical); if (drawable3 != null) { setDividerDrawableVertical(drawable3); } int i2 = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_showDivider, 0); if (i2 != 0) { this.q = i2; this.t = i2; } int i3 = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_showDividerVertical, 0); if (i3 != 0) { this.q = i3; } int i4 = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_showDividerHorizontal, 0); if (i4 != 0) { this.t = i4; } obtainStyledAttributes.recycle(); } /* JADX WARN: Removed duplicated region for block: B:30:0x00e4 */ /* JADX WARN: Removed duplicated region for block: B:46:0x0124 */ /* JADX WARN: Removed duplicated region for block: B:49:0x013e */ @Override // android.view.View /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ protected void onMeasure(int r14, int r15) { /* Method dump skipped, instructions count: 383 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.flexbox.FlexboxLayout.onMeasure(int, int):void"); } @Override // o.DNa public final int j() { return getChildCount(); } @Override // o.DNa public final View d(int i) { return getChildAt(i); } @Override // o.DNa public final View c(int i) { if (i < 0) { return null; } int[] iArr = this.l; if (i < iArr.length) { return getChildAt(iArr[i]); } return null; } /* JADX WARN: Multi-variable type inference failed */ @Override // android.view.ViewGroup public void addView(View view, int i, ViewGroup.LayoutParams layoutParams) { if (this.n == null) { this.n = new SparseIntArray(getChildCount()); } EiS eiS = this.f6462o; SparseIntArray sparseIntArray = this.n; int j = eiS.d.j(); List e = eiS.e(j); EiS.IeS ieS = new EiS.IeS((byte) 0); if (view != null && (layoutParams instanceof rqd)) { ieS.a = ((rqd) layoutParams).m(); } else { ieS.a = 1; } if (i == -1 || i == j) { ieS.b = j; } else if (i < eiS.d.j()) { ieS.b = i; for (int i2 = i; i2 < j; i2++) { e.get(i2).b++; } } else { ieS.b = j; } e.add(ieS); this.l = EiS.Ht_(j + 1, e, sparseIntArray); super.addView(view, i, layoutParams); } private void b(int i, int i2, int i3, int i4) { int o2; int f; int resolveSizeAndState; int resolveSizeAndState2; int mode = View.MeasureSpec.getMode(i2); int size = View.MeasureSpec.getSize(i2); int mode2 = View.MeasureSpec.getMode(i3); int size2 = View.MeasureSpec.getSize(i3); if (i == 0 || i == 1) { o2 = o() + getPaddingTop() + getPaddingBottom(); f = f(); } else if (i == 2 || i == 3) { o2 = f(); f = o() + getPaddingLeft() + getPaddingRight(); } else { throw new IllegalArgumentException("Invalid flex direction: ".concat(String.valueOf(i))); } if (mode == Integer.MIN_VALUE) { if (size < f) { i4 = View.combineMeasuredStates(i4, Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE); } else { size = f; } resolveSizeAndState = View.resolveSizeAndState(size, i2, i4); } else if (mode == 0) { resolveSizeAndState = View.resolveSizeAndState(f, i2, i4); } else if (mode == 1073741824) { if (size < f) { i4 = View.combineMeasuredStates(i4, Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE); } resolveSizeAndState = View.resolveSizeAndState(size, i2, i4); } else { throw new IllegalStateException("Unknown width mode is set: ".concat(String.valueOf(mode))); } if (mode2 == Integer.MIN_VALUE) { if (size2 < o2) { i4 = View.combineMeasuredStates(i4, 256); } else { size2 = o2; } resolveSizeAndState2 = View.resolveSizeAndState(size2, i3, i4); } else if (mode2 == 0) { resolveSizeAndState2 = View.resolveSizeAndState(o2, i3, i4); } else if (mode2 == 1073741824) { if (size2 < o2) { i4 = View.combineMeasuredStates(i4, 256); } resolveSizeAndState2 = View.resolveSizeAndState(size2, i3, i4); } else { throw new IllegalStateException("Unknown height mode is set: ".concat(String.valueOf(mode2))); } setMeasuredDimension(resolveSizeAndState, resolveSizeAndState2); } @Override // o.DNa public final int f() { Iterator it = this.j.iterator(); int i = PKIFailureInfo.systemUnavail; while (it.hasNext()) { i = Math.max(i, it.next().i); } return i; } @Override // o.DNa public final int o() { int size = this.j.size(); int i = 0; for (int i2 = 0; i2 < size; i2++) { C3223atU c3223atU = this.j.get(i2); if (a(i2)) { int i3 = this.i; i += (i3 == 0 || i3 == 1) ? this.e : this.f; } if (b(i2)) { int i4 = this.i; i += (i4 == 0 || i4 == 1) ? this.e : this.f; } i += c3223atU.b; } return i; } @Override // android.view.ViewGroup, android.view.View protected void onLayout(boolean z, int i, int i2, int i3, int i4) { boolean z2; int m = ViewCompat.m(this); int i5 = this.i; if (i5 == 0) { e(m == 1, i, i2, i3, i4); return; } if (i5 == 1) { e(m != 1, i, i2, i3, i4); return; } if (i5 == 2) { z2 = m == 1; d(this.g == 2 ? !z2 : z2, false, i, i2, i3, i4); } else if (i5 == 3) { z2 = m == 1; d(this.g == 2 ? !z2 : z2, true, i, i2, i3, i4); } else { StringBuilder sb = new StringBuilder("Invalid flex direction is set: "); sb.append(this.i); throw new IllegalStateException(sb.toString()); } } /* JADX WARN: Removed duplicated region for block: B:23:0x00d7 */ /* JADX WARN: Removed duplicated region for block: B:42:0x0133 */ /* JADX WARN: Removed duplicated region for block: B:46:0x01f2 */ /* JADX WARN: Removed duplicated region for block: B:50:0x0204 */ /* JADX WARN: Removed duplicated region for block: B:52:0x0193 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void e(boolean r29, int r30, int r31, int r32, int r33) { /* Method dump skipped, instructions count: 573 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.flexbox.FlexboxLayout.e(boolean, int, int, int, int):void"); } /* JADX WARN: Removed duplicated region for block: B:23:0x00d8 */ /* JADX WARN: Removed duplicated region for block: B:41:0x0136 */ /* JADX WARN: Removed duplicated region for block: B:45:0x01f2 */ /* JADX WARN: Removed duplicated region for block: B:49:0x020d */ /* JADX WARN: Removed duplicated region for block: B:51:0x0195 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void d(boolean r29, boolean r30, int r31, int r32, int r33, int r34) { /* Method dump skipped, instructions count: 587 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.flexbox.FlexboxLayout.d(boolean, boolean, int, int, int, int):void"); } @Override // android.view.View protected void onDraw(Canvas canvas) { if (this.a == null && this.d == null) { return; } if (this.t == 0 && this.q == 0) { return; } int m = ViewCompat.m(this); int i = this.i; if (i == 0) { Hu_(canvas, m == 1, this.g == 2); return; } if (i == 1) { Hu_(canvas, m != 1, this.g == 2); return; } if (i == 2) { boolean z = m == 1; if (this.g == 2) { z = !z; } Hv_(canvas, z, false); return; } if (i == 3) { boolean z2 = m == 1; if (this.g == 2) { z2 = !z2; } Hv_(canvas, z2, true); } } /* JADX WARN: Removed duplicated region for block: B:16:0x0051 */ /* JADX WARN: Removed duplicated region for block: B:25:0x007a */ /* JADX WARN: Removed duplicated region for block: B:29:0x0085 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void Hu_(android.graphics.Canvas r13, boolean r14, boolean r15) { /* r12 = this; int r0 = r12.getPaddingLeft() int r1 = r12.getPaddingRight() int r2 = r12.getWidth() int r2 = r2 - r1 int r2 = r2 - r0 r1 = 0 int r2 = java.lang.Math.max(r1, r2) java.util.List r3 = r12.j int r3 = r3.size() r4 = r1 L1a: if (r4 >= r3) goto Lc6 java.util.List r5 = r12.j java.lang.Object r5 = r5.get(r4) o.atU r5 = (o.C3223atU) r5 r6 = r1 L25: int r7 = r5.h if (r6 >= r7) goto L96 int r7 = r5.e int r7 = r7 + r6 if (r7 < 0) goto L3a int[] r8 = r12.l int r9 = r8.length if (r7 >= r9) goto L3a r8 = r8[r7] android.view.View r8 = r12.getChildAt(r8) goto L3b L3a: r8 = 0 L3b: if (r8 == 0) goto L93 int r9 = r8.getVisibility() r10 = 8 if (r9 == r10) goto L93 android.view.ViewGroup$LayoutParams r9 = r8.getLayoutParams() com.google.android.flexbox.FlexboxLayout$RVV r9 = (com.google.android.flexbox.FlexboxLayout.RVV) r9 boolean r7 = r12.d(r7, r6) if (r7 == 0) goto L6c if (r14 == 0) goto L5b int r7 = r8.getRight() int r10 = r9.rightMargin int r7 = r7 + r10 goto L65 L5b: int r7 = r8.getLeft() int r10 = r9.leftMargin int r7 = r7 - r10 int r10 = r12.f int r7 = r7 - r10 L65: int r10 = r5.k int r11 = r5.b r12.Hx_(r13, r7, r10, r11) L6c: int r7 = r5.h int r7 = r7 + (-1) if (r6 != r7) goto L93 int r7 = r12.q r7 = r7 & 4 if (r7 <= 0) goto L93 if (r14 == 0) goto L85 int r7 = r8.getLeft() int r8 = r9.leftMargin int r7 = r7 - r8 int r8 = r12.f int r7 = r7 - r8 goto L8c L85: int r7 = r8.getRight() int r8 = r9.rightMargin int r7 = r7 + r8 L8c: int r8 = r5.k int r9 = r5.b r12.Hx_(r13, r7, r8, r9) L93: int r6 = r6 + 1 goto L25 L96: boolean r6 = r12.a(r4) if (r6 == 0) goto La9 if (r15 == 0) goto La1 int r6 = r5.a goto La6 La1: int r6 = r5.k int r7 = r12.e int r6 = r6 - r7 La6: r12.Hw_(r13, r0, r6, r2) La9: boolean r6 = r12.b(r4) if (r6 == 0) goto Lc2 int r6 = r12.t r6 = r6 & 4 if (r6 <= 0) goto Lc2 if (r15 == 0) goto Lbd int r5 = r5.k int r6 = r12.e int r5 = r5 - r6 goto Lbf Lbd: int r5 = r5.a Lbf: r12.Hw_(r13, r0, r5, r2) Lc2: int r4 = r4 + 1 goto L1a Lc6: return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.flexbox.FlexboxLayout.Hu_(android.graphics.Canvas, boolean, boolean):void"); } /* JADX WARN: Removed duplicated region for block: B:16:0x0051 */ /* JADX WARN: Removed duplicated region for block: B:25:0x007a */ /* JADX WARN: Removed duplicated region for block: B:29:0x0085 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void Hv_(android.graphics.Canvas r13, boolean r14, boolean r15) { /* r12 = this; int r0 = r12.getPaddingTop() int r1 = r12.getPaddingBottom() int r2 = r12.getHeight() int r2 = r2 - r1 int r2 = r2 - r0 r1 = 0 int r2 = java.lang.Math.max(r1, r2) java.util.List r3 = r12.j int r3 = r3.size() r4 = r1 L1a: if (r4 >= r3) goto Lc6 java.util.List r5 = r12.j java.lang.Object r5 = r5.get(r4) o.atU r5 = (o.C3223atU) r5 r6 = r1 L25: int r7 = r5.h if (r6 >= r7) goto L96 int r7 = r5.e int r7 = r7 + r6 if (r7 < 0) goto L3a int[] r8 = r12.l int r9 = r8.length if (r7 >= r9) goto L3a r8 = r8[r7] android.view.View r8 = r12.getChildAt(r8) goto L3b L3a: r8 = 0 L3b: if (r8 == 0) goto L93 int r9 = r8.getVisibility() r10 = 8 if (r9 == r10) goto L93 android.view.ViewGroup$LayoutParams r9 = r8.getLayoutParams() com.google.android.flexbox.FlexboxLayout$RVV r9 = (com.google.android.flexbox.FlexboxLayout.RVV) r9 boolean r7 = r12.d(r7, r6) if (r7 == 0) goto L6c if (r15 == 0) goto L5b int r7 = r8.getBottom() int r10 = r9.bottomMargin int r7 = r7 + r10 goto L65 L5b: int r7 = r8.getTop() int r10 = r9.topMargin int r7 = r7 - r10 int r10 = r12.e int r7 = r7 - r10 L65: int r10 = r5.g int r11 = r5.b r12.Hw_(r13, r10, r7, r11) L6c: int r7 = r5.h int r7 = r7 + (-1) if (r6 != r7) goto L93 int r7 = r12.t r7 = r7 & 4 if (r7 <= 0) goto L93 if (r15 == 0) goto L85 int r7 = r8.getTop() int r8 = r9.topMargin int r7 = r7 - r8 int r8 = r12.e int r7 = r7 - r8 goto L8c L85: int r7 = r8.getBottom() int r8 = r9.bottomMargin int r7 = r7 + r8 L8c: int r8 = r5.g int r9 = r5.b r12.Hw_(r13, r8, r7, r9) L93: int r6 = r6 + 1 goto L25 L96: boolean r6 = r12.a(r4) if (r6 == 0) goto La9 if (r14 == 0) goto La1 int r6 = r5.f8526o goto La6 La1: int r6 = r5.g int r7 = r12.f int r6 = r6 - r7 La6: r12.Hx_(r13, r6, r0, r2) La9: boolean r6 = r12.b(r4) if (r6 == 0) goto Lc2 int r6 = r12.q r6 = r6 & 4 if (r6 <= 0) goto Lc2 if (r14 == 0) goto Lbd int r5 = r5.g int r6 = r12.f int r5 = r5 - r6 goto Lbf Lbd: int r5 = r5.f8526o Lbf: r12.Hx_(r13, r5, r0, r2) Lc2: int r4 = r4 + 1 goto L1a Lc6: return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.flexbox.FlexboxLayout.Hv_(android.graphics.Canvas, boolean, boolean):void"); } private void Hx_(Canvas canvas, int i, int i2, int i3) { Drawable drawable = this.a; if (drawable == null) { return; } drawable.setBounds(i, i2, this.f + i, i3 + i2); this.a.draw(canvas); } private void Hw_(Canvas canvas, int i, int i2, int i3) { Drawable drawable = this.d; if (drawable == null) { return; } drawable.setBounds(i, i2, i3 + i, this.e + i2); this.d.draw(canvas); } @Override // android.view.ViewGroup protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) { return layoutParams instanceof RVV; } @Override // android.view.ViewGroup protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) { if (layoutParams instanceof RVV) { return new RVV((RVV) layoutParams); } if (layoutParams instanceof ViewGroup.MarginLayoutParams) { return new RVV((ViewGroup.MarginLayoutParams) layoutParams); } return new RVV(layoutParams); } public void setFlexDirection(int i) { if (this.i != i) { this.i = i; requestLayout(); } } public void setFlexWrap(int i) { if (this.g != i) { this.g = i; requestLayout(); } } public void setJustifyContent(int i) { if (this.m != i) { this.m = i; requestLayout(); } } public void setAlignItems(int i) { if (this.b != i) { this.b = i; requestLayout(); } } public void setAlignContent(int i) { if (this.c != i) { this.c = i; requestLayout(); } } public void setMaxLine(int i) { if (this.k != i) { this.k = i; requestLayout(); } } @Override // o.DNa public final int e(int i, int i2, int i3) { return getChildMeasureSpec(i, i2, i3); } @Override // o.DNa public final int c(int i, int i2, int i3) { return getChildMeasureSpec(i, i2, i3); } @Override // o.DNa public final void d(View view, int i, int i2, C3223atU c3223atU) { if (d(i, i2)) { int i3 = this.i; if (i3 == 0 || i3 == 1) { c3223atU.i += this.f; c3223atU.d += this.f; } else { c3223atU.i += this.e; c3223atU.d += this.e; } } } public void setDividerDrawable(Drawable drawable) { setDividerDrawableHorizontal(drawable); setDividerDrawableVertical(drawable); } public void setDividerDrawableHorizontal(Drawable drawable) { if (drawable == this.d) { return; } this.d = drawable; if (drawable != null) { this.e = drawable.getIntrinsicHeight(); } else { this.e = 0; } if (this.d == null && this.a == null) { setWillNotDraw(true); } else { setWillNotDraw(false); } requestLayout(); } public void setDividerDrawableVertical(Drawable drawable) { if (drawable == this.a) { return; } this.a = drawable; if (drawable != null) { this.f = drawable.getIntrinsicWidth(); } else { this.f = 0; } if (this.d == null && this.a == null) { setWillNotDraw(true); } else { setWillNotDraw(false); } requestLayout(); } public void setShowDivider(int i) { setShowDividerVertical(i); setShowDividerHorizontal(i); } public void setShowDividerVertical(int i) { if (i != this.q) { this.q = i; requestLayout(); } } public void setShowDividerHorizontal(int i) { if (i != this.t) { this.t = i; requestLayout(); } } private boolean d(int i, int i2) { if (b(i, i2)) { int i3 = this.i; return (i3 == 0 || i3 == 1) ? (this.q & 1) != 0 : (this.t & 1) != 0; } int i4 = this.i; return (i4 == 0 || i4 == 1) ? (this.q & 2) != 0 : (this.t & 2) != 0; } private boolean b(int i, int i2) { View view; for (int i3 = 1; i3 <= i2; i3++) { int i4 = i - i3; if (i4 >= 0) { int[] iArr = this.l; if (i4 < iArr.length) { view = getChildAt(iArr[i4]); if (view == null && view.getVisibility() != 8) { return false; } } } view = null; if (view == null) { } } return true; } private boolean a(int i) { if (i < 0 || i >= this.j.size()) { return false; } if (e(i)) { int i2 = this.i; return (i2 == 0 || i2 == 1) ? (this.t & 1) != 0 : (this.q & 1) != 0; } int i3 = this.i; return (i3 == 0 || i3 == 1) ? (this.t & 2) != 0 : (this.q & 2) != 0; } private boolean e(int i) { for (int i2 = 0; i2 < i; i2++) { C3223atU c3223atU = this.j.get(i2); if (c3223atU.h - c3223atU.c > 0) { return false; } } return true; } private boolean b(int i) { if (i < 0 || i >= this.j.size()) { return false; } for (int i2 = i + 1; i2 < this.j.size(); i2++) { C3223atU c3223atU = this.j.get(i2); if (c3223atU.h - c3223atU.c > 0) { return false; } } int i3 = this.i; return (i3 == 0 || i3 == 1) ? (this.t & 4) != 0 : (this.q & 4) != 0; } /* loaded from: classes.dex */ public static class RVV extends ViewGroup.MarginLayoutParams implements rqd { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: com.google.android.flexbox.FlexboxLayout.RVV.5 @Override // android.os.Parcelable.Creator public final /* synthetic */ RVV createFromParcel(Parcel parcel) { return new RVV(parcel); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ RVV[] newArray(int i) { return new RVV[i]; } }; private float a; private int b; private int c; private float d; private float e; private int f; private int g; private boolean h; private int i; private int j; @Override // android.os.Parcelable public final int describeContents() { return 0; } public RVV(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.j = 1; this.d = BitmapDescriptorFactory.HUE_RED; this.e = 1.0f; this.b = -1; this.a = -1.0f; this.i = 16777215; this.c = 16777215; TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C16445oSd.RVV.FlexboxLayout_Layout); this.j = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_Layout_layout_order, 1); this.d = obtainStyledAttributes.getFloat(C16445oSd.RVV.FlexboxLayout_Layout_layout_flexGrow, BitmapDescriptorFactory.HUE_RED); this.e = obtainStyledAttributes.getFloat(C16445oSd.RVV.FlexboxLayout_Layout_layout_flexShrink, 1.0f); this.b = obtainStyledAttributes.getInt(C16445oSd.RVV.FlexboxLayout_Layout_layout_alignSelf, -1); this.a = obtainStyledAttributes.getFraction(C16445oSd.RVV.FlexboxLayout_Layout_layout_flexBasisPercent, 1, 1, -1.0f); this.g = obtainStyledAttributes.getDimensionPixelSize(C16445oSd.RVV.FlexboxLayout_Layout_layout_minWidth, 0); this.f = obtainStyledAttributes.getDimensionPixelSize(C16445oSd.RVV.FlexboxLayout_Layout_layout_minHeight, 0); this.i = obtainStyledAttributes.getDimensionPixelSize(C16445oSd.RVV.FlexboxLayout_Layout_layout_maxWidth, 16777215); this.c = obtainStyledAttributes.getDimensionPixelSize(C16445oSd.RVV.FlexboxLayout_Layout_layout_maxHeight, 16777215); this.h = obtainStyledAttributes.getBoolean(C16445oSd.RVV.FlexboxLayout_Layout_layout_wrapBefore, false); obtainStyledAttributes.recycle(); } public RVV(RVV rvv) { super((ViewGroup.MarginLayoutParams) rvv); this.j = 1; this.d = BitmapDescriptorFactory.HUE_RED; this.e = 1.0f; this.b = -1; this.a = -1.0f; this.i = 16777215; this.c = 16777215; this.j = rvv.j; this.d = rvv.d; this.e = rvv.e; this.b = rvv.b; this.a = rvv.a; this.g = rvv.g; this.f = rvv.f; this.i = rvv.i; this.c = rvv.c; this.h = rvv.h; } public RVV(ViewGroup.LayoutParams layoutParams) { super(layoutParams); this.j = 1; this.d = BitmapDescriptorFactory.HUE_RED; this.e = 1.0f; this.b = -1; this.a = -1.0f; this.i = 16777215; this.c = 16777215; } public RVV(ViewGroup.MarginLayoutParams marginLayoutParams) { super(marginLayoutParams); this.j = 1; this.d = BitmapDescriptorFactory.HUE_RED; this.e = 1.0f; this.b = -1; this.a = -1.0f; this.i = 16777215; this.c = 16777215; } @Override // o.rqd public final int l() { return ((ViewGroup.LayoutParams) this).width; } @Override // o.rqd public final int d() { return ((ViewGroup.LayoutParams) this).height; } @Override // o.rqd public final int f() { return ((ViewGroup.MarginLayoutParams) this).leftMargin; } @Override // o.rqd public final int i() { return ((ViewGroup.MarginLayoutParams) this).topMargin; } @Override // o.rqd public final int h() { return ((ViewGroup.MarginLayoutParams) this).rightMargin; } @Override // o.rqd public final int g() { return ((ViewGroup.MarginLayoutParams) this).bottomMargin; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { parcel.writeInt(this.j); parcel.writeFloat(this.d); parcel.writeFloat(this.e); parcel.writeInt(this.b); parcel.writeFloat(this.a); parcel.writeInt(this.g); parcel.writeInt(this.f); parcel.writeInt(this.i); parcel.writeInt(this.c); parcel.writeByte(this.h ? (byte) 1 : (byte) 0); parcel.writeInt(((ViewGroup.MarginLayoutParams) this).bottomMargin); parcel.writeInt(((ViewGroup.MarginLayoutParams) this).leftMargin); parcel.writeInt(((ViewGroup.MarginLayoutParams) this).rightMargin); parcel.writeInt(((ViewGroup.MarginLayoutParams) this).topMargin); parcel.writeInt(((ViewGroup.LayoutParams) this).height); parcel.writeInt(((ViewGroup.LayoutParams) this).width); } protected RVV(Parcel parcel) { super(0, 0); this.j = 1; this.d = BitmapDescriptorFactory.HUE_RED; this.e = 1.0f; this.b = -1; this.a = -1.0f; this.i = 16777215; this.c = 16777215; this.j = parcel.readInt(); this.d = parcel.readFloat(); this.e = parcel.readFloat(); this.b = parcel.readInt(); this.a = parcel.readFloat(); this.g = parcel.readInt(); this.f = parcel.readInt(); this.i = parcel.readInt(); this.c = parcel.readInt(); this.h = parcel.readByte() != 0; ((ViewGroup.MarginLayoutParams) this).bottomMargin = parcel.readInt(); ((ViewGroup.MarginLayoutParams) this).leftMargin = parcel.readInt(); ((ViewGroup.MarginLayoutParams) this).rightMargin = parcel.readInt(); ((ViewGroup.MarginLayoutParams) this).topMargin = parcel.readInt(); ((ViewGroup.LayoutParams) this).height = parcel.readInt(); ((ViewGroup.LayoutParams) this).width = parcel.readInt(); } @Override // o.rqd public final boolean p() { return this.h; } @Override // o.rqd public final int m() { return this.j; } @Override // o.rqd public final int o() { return this.g; } @Override // o.rqd public final int k() { return this.f; } @Override // o.rqd public final int n() { return this.i; } @Override // o.rqd public final int j() { return this.c; } @Override // o.rqd public final float e() { return this.e; } @Override // o.rqd public final float b() { return this.d; } @Override // o.rqd public final float c() { return this.a; } @Override // o.rqd public final int a() { return this.b; } } @Override // o.DNa public final int e(View view, int i, int i2) { int i3; int i4; int i5 = this.i; boolean z = true; if (i5 != 0 && i5 != 1) { z = false; } if (z) { i3 = d(i, i2) ? this.f : 0; if ((this.q & 4) <= 0) { return i3; } i4 = this.f; } else { i3 = d(i, i2) ? this.e : 0; if ((this.t & 4) <= 0) { return i3; } i4 = this.e; } return i3 + i4; } @Override // android.view.ViewGroup public /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) { return new RVV(getContext(), attributeSet); } @Override // o.DNa public final void b(C3223atU c3223atU) { int i = this.i; if (i == 0 || i == 1) { if ((this.q & 4) > 0) { c3223atU.i += this.f; c3223atU.d += this.f; return; } return; } if ((this.t & 4) > 0) { c3223atU.i += this.e; c3223atU.d += this.e; } } @Override // o.DNa public void setFlexLines(List list) { this.j = list; } @Override // o.DNa public final boolean l() { int i = this.i; return i == 0 || i == 1; } @Override // o.DNa public final int n() { return this.k; } @Override // o.DNa public final int g() { return this.g; } @Override // o.DNa public final List h() { return this.j; } @Override // o.DNa public final int i() { return this.i; } @Override // o.DNa public final int a() { return this.b; } @Override // o.DNa public final int b() { return this.c; } }