214 lines
7.8 KiB
Java
214 lines
7.8 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.TypedArray;
|
||
|
import android.graphics.RectF;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.util.TypedValue;
|
||
|
import android.view.ContextThemeWrapper;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import o.C17052tZT;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class FLD {
|
||
|
public static final kdE c = new DRp(0.5f);
|
||
|
public Spl a;
|
||
|
public kdE b;
|
||
|
public Spl d;
|
||
|
C10853eQp e;
|
||
|
C10853eQp f;
|
||
|
public Spl g;
|
||
|
public C10853eQp h;
|
||
|
C10853eQp i;
|
||
|
public kdE j;
|
||
|
public kdE k;
|
||
|
public Spl m;
|
||
|
public kdE n;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public interface LWm {
|
||
|
kdE b(kdE kde);
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ FLD(RVV rvv, byte b) {
|
||
|
this(rvv);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class RVV {
|
||
|
public Spl a;
|
||
|
public Spl b;
|
||
|
C10853eQp c;
|
||
|
public kdE d;
|
||
|
public kdE e;
|
||
|
public kdE f;
|
||
|
C10853eQp g;
|
||
|
public C10853eQp h;
|
||
|
public Spl i;
|
||
|
C10853eQp j;
|
||
|
public kdE k;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
public Spl f8158o;
|
||
|
|
||
|
public RVV() {
|
||
|
this.i = new kJO();
|
||
|
this.f8158o = new kJO();
|
||
|
this.b = new kJO();
|
||
|
this.a = new kJO();
|
||
|
this.f = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.k = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.d = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.e = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.h = new C10853eQp();
|
||
|
this.g = new C10853eQp();
|
||
|
this.c = new C10853eQp();
|
||
|
this.j = new C10853eQp();
|
||
|
}
|
||
|
|
||
|
public RVV(FLD fld) {
|
||
|
this.i = new kJO();
|
||
|
this.f8158o = new kJO();
|
||
|
this.b = new kJO();
|
||
|
this.a = new kJO();
|
||
|
this.f = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.k = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.d = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.e = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.h = new C10853eQp();
|
||
|
this.g = new C10853eQp();
|
||
|
this.c = new C10853eQp();
|
||
|
this.j = new C10853eQp();
|
||
|
this.i = fld.g;
|
||
|
this.f8158o = fld.m;
|
||
|
this.b = fld.d;
|
||
|
this.a = fld.a;
|
||
|
this.f = fld.n;
|
||
|
this.k = fld.k;
|
||
|
this.d = fld.j;
|
||
|
this.e = fld.b;
|
||
|
this.h = fld.h;
|
||
|
this.g = fld.i;
|
||
|
this.c = fld.e;
|
||
|
this.j = fld.f;
|
||
|
}
|
||
|
|
||
|
public static float a(Spl spl) {
|
||
|
if (spl instanceof kJO) {
|
||
|
return ((kJO) spl).e;
|
||
|
}
|
||
|
if (spl instanceof vZD) {
|
||
|
return ((vZD) spl).e;
|
||
|
}
|
||
|
return -1.0f;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static RVV Ll_(Context context, AttributeSet attributeSet, int i, int i2, kdE kde) {
|
||
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C17052tZT.jNh.MaterialShape, i, i2);
|
||
|
int resourceId = obtainStyledAttributes.getResourceId(C17052tZT.jNh.MaterialShape_shapeAppearance, 0);
|
||
|
int resourceId2 = obtainStyledAttributes.getResourceId(C17052tZT.jNh.MaterialShape_shapeAppearanceOverlay, 0);
|
||
|
obtainStyledAttributes.recycle();
|
||
|
return d(context, resourceId, resourceId2, kde);
|
||
|
}
|
||
|
|
||
|
public static RVV d(Context context, int i, int i2, kdE kde) {
|
||
|
ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(context, i);
|
||
|
if (i2 != 0) {
|
||
|
contextThemeWrapper = new ContextThemeWrapper(contextThemeWrapper, i2);
|
||
|
}
|
||
|
TypedArray obtainStyledAttributes = contextThemeWrapper.obtainStyledAttributes(C17052tZT.jNh.ShapeAppearance);
|
||
|
try {
|
||
|
int i3 = obtainStyledAttributes.getInt(C17052tZT.jNh.ShapeAppearance_cornerFamily, 0);
|
||
|
int i4 = obtainStyledAttributes.getInt(C17052tZT.jNh.ShapeAppearance_cornerFamilyTopLeft, i3);
|
||
|
int i5 = obtainStyledAttributes.getInt(C17052tZT.jNh.ShapeAppearance_cornerFamilyTopRight, i3);
|
||
|
int i6 = obtainStyledAttributes.getInt(C17052tZT.jNh.ShapeAppearance_cornerFamilyBottomRight, i3);
|
||
|
int i7 = obtainStyledAttributes.getInt(C17052tZT.jNh.ShapeAppearance_cornerFamilyBottomLeft, i3);
|
||
|
kdE Lm_ = Lm_(obtainStyledAttributes, C17052tZT.jNh.ShapeAppearance_cornerSize, kde);
|
||
|
kdE Lm_2 = Lm_(obtainStyledAttributes, C17052tZT.jNh.ShapeAppearance_cornerSizeTopLeft, Lm_);
|
||
|
kdE Lm_3 = Lm_(obtainStyledAttributes, C17052tZT.jNh.ShapeAppearance_cornerSizeTopRight, Lm_);
|
||
|
kdE Lm_4 = Lm_(obtainStyledAttributes, C17052tZT.jNh.ShapeAppearance_cornerSizeBottomRight, Lm_);
|
||
|
kdE Lm_5 = Lm_(obtainStyledAttributes, C17052tZT.jNh.ShapeAppearance_cornerSizeBottomLeft, Lm_);
|
||
|
RVV rvv = new RVV();
|
||
|
Spl c2 = SZt.c(i4);
|
||
|
rvv.i = c2;
|
||
|
float a = RVV.a(c2);
|
||
|
if (a != -1.0f) {
|
||
|
rvv.f = new C17525xWe(a);
|
||
|
}
|
||
|
rvv.f = Lm_2;
|
||
|
Spl c3 = SZt.c(i5);
|
||
|
rvv.f8158o = c3;
|
||
|
float a2 = RVV.a(c3);
|
||
|
if (a2 != -1.0f) {
|
||
|
rvv.k = new C17525xWe(a2);
|
||
|
}
|
||
|
rvv.k = Lm_3;
|
||
|
Spl c4 = SZt.c(i6);
|
||
|
rvv.b = c4;
|
||
|
float a3 = RVV.a(c4);
|
||
|
if (a3 != -1.0f) {
|
||
|
rvv.d = new C17525xWe(a3);
|
||
|
}
|
||
|
rvv.d = Lm_4;
|
||
|
Spl c5 = SZt.c(i7);
|
||
|
rvv.a = c5;
|
||
|
float a4 = RVV.a(c5);
|
||
|
if (a4 != -1.0f) {
|
||
|
rvv.e = new C17525xWe(a4);
|
||
|
}
|
||
|
rvv.e = Lm_5;
|
||
|
return rvv;
|
||
|
} finally {
|
||
|
obtainStyledAttributes.recycle();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static kdE Lm_(TypedArray typedArray, int i, kdE kde) {
|
||
|
TypedValue peekValue = typedArray.peekValue(i);
|
||
|
if (peekValue == null) {
|
||
|
return kde;
|
||
|
}
|
||
|
if (peekValue.type == 5) {
|
||
|
return new C17525xWe(TypedValue.complexToDimensionPixelSize(peekValue.data, typedArray.getResources().getDisplayMetrics()));
|
||
|
}
|
||
|
return peekValue.type == 6 ? new DRp(peekValue.getFraction(1.0f, 1.0f)) : kde;
|
||
|
}
|
||
|
|
||
|
private FLD(RVV rvv) {
|
||
|
this.g = rvv.i;
|
||
|
this.m = rvv.f8158o;
|
||
|
this.d = rvv.b;
|
||
|
this.a = rvv.a;
|
||
|
this.n = rvv.f;
|
||
|
this.k = rvv.k;
|
||
|
this.j = rvv.d;
|
||
|
this.b = rvv.e;
|
||
|
this.h = rvv.h;
|
||
|
this.i = rvv.g;
|
||
|
this.e = rvv.c;
|
||
|
this.f = rvv.j;
|
||
|
}
|
||
|
|
||
|
public FLD() {
|
||
|
this.g = new kJO();
|
||
|
this.m = new kJO();
|
||
|
this.d = new kJO();
|
||
|
this.a = new kJO();
|
||
|
this.n = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.k = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.j = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.b = new C17525xWe(BitmapDescriptorFactory.HUE_RED);
|
||
|
this.h = new C10853eQp();
|
||
|
this.i = new C10853eQp();
|
||
|
this.e = new C10853eQp();
|
||
|
this.f = new C10853eQp();
|
||
|
}
|
||
|
|
||
|
public final boolean Ln_(RectF rectF) {
|
||
|
boolean z = this.f.getClass().equals(C10853eQp.class) && this.i.getClass().equals(C10853eQp.class) && this.h.getClass().equals(C10853eQp.class) && this.e.getClass().equals(C10853eQp.class);
|
||
|
float Lk_ = this.n.Lk_(rectF);
|
||
|
return z && ((this.k.Lk_(rectF) > Lk_ ? 1 : (this.k.Lk_(rectF) == Lk_ ? 0 : -1)) == 0 && (this.b.Lk_(rectF) > Lk_ ? 1 : (this.b.Lk_(rectF) == Lk_ ? 0 : -1)) == 0 && (this.j.Lk_(rectF) > Lk_ ? 1 : (this.j.Lk_(rectF) == Lk_ ? 0 : -1)) == 0) && ((this.m instanceof kJO) && (this.g instanceof kJO) && (this.d instanceof kJO) && (this.a instanceof kJO));
|
||
|
}
|
||
|
}
|