Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package E2;
import android.graphics.RectF;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class a implements c {
/* renamed from: a, reason: collision with root package name */
public final float f380a;
public a(float f2) {
this.f380a = f2;
}
@Override // E2.c
public final float a(RectF rectF) {
return this.f380a;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof a) && this.f380a == ((a) obj).f380a;
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{Float.valueOf(this.f380a)});
}
}

View File

@@ -0,0 +1,44 @@
package E2;
import android.graphics.RectF;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class b implements c {
/* renamed from: a, reason: collision with root package name */
public final c f381a;
/* renamed from: b, reason: collision with root package name */
public final float f382b;
public b(float f2, c cVar) {
while (cVar instanceof b) {
cVar = ((b) cVar).f381a;
f2 += ((b) cVar).f382b;
}
this.f381a = cVar;
this.f382b = f2;
}
@Override // E2.c
public final float a(RectF rectF) {
return Math.max(BitmapDescriptorFactory.HUE_RED, this.f381a.a(rectF) + this.f382b);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof b)) {
return false;
}
b bVar = (b) obj;
return this.f381a.equals(bVar.f381a) && this.f382b == bVar.f382b;
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{this.f381a, Float.valueOf(this.f382b)});
}
}

View File

@@ -0,0 +1,8 @@
package E2;
import android.graphics.RectF;
/* loaded from: classes3.dex */
public interface c {
float a(RectF rectF);
}

View File

@@ -0,0 +1,15 @@
package E2;
import a.AbstractC0106b;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes3.dex */
public final class d extends AbstractC0106b {
@Override // a.AbstractC0106b
public final void l(t tVar, float f2, float f4) {
tVar.d(f4 * f2, 180.0f, 90.0f);
double d4 = f4;
double d5 = f2;
tVar.c((float) (Math.sin(Math.toRadians(90.0f)) * d4 * d5), (float) (Math.sin(Math.toRadians(BitmapDescriptorFactory.HUE_RED)) * d4 * d5));
}
}

View File

@@ -0,0 +1,186 @@
package E2;
import a.AbstractC0105a;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.graphics.fonts.Font;
import android.graphics.fonts.FontFamily;
import android.graphics.fonts.FontStyle;
import android.os.Build;
import android.view.View;
import com.google.android.material.tabs.TabLayout;
import h2.AbstractC0379a;
import i2.AbstractC0396a;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListMap;
/* loaded from: classes3.dex */
public class e implements Q0.i, R0.f, S2.p, l0.b {
/* renamed from: b, reason: collision with root package name */
public static e f383b;
/* renamed from: c, reason: collision with root package name */
public static e f384c;
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f385a;
public /* synthetic */ e(int i) {
this.f385a = i;
}
public static RectF f(TabLayout tabLayout, View view) {
if (view == null) {
return new RectF();
}
if (tabLayout.f5767D || !(view instanceof H2.k)) {
return new RectF(view.getLeft(), view.getTop(), view.getRight(), view.getBottom());
}
H2.k kVar = (H2.k) view;
int contentWidth = kVar.getContentWidth();
int contentHeight = kVar.getContentHeight();
int e4 = (int) x2.m.e(kVar.getContext(), 24);
if (contentWidth < e4) {
contentWidth = e4;
}
int right = (kVar.getRight() + kVar.getLeft()) / 2;
int bottom = (kVar.getBottom() + kVar.getTop()) / 2;
int i = contentWidth / 2;
return new RectF(right - i, bottom - (contentHeight / 2), i + right, (right / 2) + bottom);
}
public static e g(Context context, int i) {
m3.d.f(i != 0, "Cannot create a CalendarItemStyle with a styleResId of 0");
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(i, AbstractC0379a.f6767o);
Rect rect = new Rect(obtainStyledAttributes.getDimensionPixelOffset(0, 0), obtainStyledAttributes.getDimensionPixelOffset(2, 0), obtainStyledAttributes.getDimensionPixelOffset(1, 0), obtainStyledAttributes.getDimensionPixelOffset(3, 0));
AbstractC0105a.w(context, obtainStyledAttributes, 4);
AbstractC0105a.w(context, obtainStyledAttributes, 9);
AbstractC0105a.w(context, obtainStyledAttributes, 7);
obtainStyledAttributes.getDimensionPixelSize(8, 0);
k.a(context, obtainStyledAttributes.getResourceId(5, 0), obtainStyledAttributes.getResourceId(6, 0), new a(0)).a();
obtainStyledAttributes.recycle();
e eVar = new e(26);
m3.d.g(rect.left);
m3.d.g(rect.top);
m3.d.g(rect.right);
m3.d.g(rect.bottom);
return eVar;
}
public static Font h(FontFamily fontFamily, int i) {
FontStyle fontStyle = new FontStyle((i & 1) != 0 ? 700 : 400, (i & 2) != 0 ? 1 : 0);
Font font = fontFamily.getFont(0);
int i4 = i(fontStyle, font.getStyle());
for (int i5 = 1; i5 < fontFamily.getSize(); i5++) {
Font font2 = fontFamily.getFont(i5);
int i6 = i(fontStyle, font2.getStyle());
if (i6 < i4) {
font = font2;
i4 = i6;
}
}
return font;
}
public static int i(FontStyle fontStyle, FontStyle fontStyle2) {
return (Math.abs(fontStyle.getWeight() - fontStyle2.getWeight()) / 100) + (fontStyle.getSlant() == fontStyle2.getSlant() ? 0 : 2);
}
public static Path k(float f2, float f4, float f5, float f6) {
Path path = new Path();
path.moveTo(f2, f4);
path.lineTo(f5, f6);
return path;
}
@Override // Q0.i
public boolean a(Q0.b bVar) {
return false;
}
@Override // Q0.i
public Q0.c b(Q0.b bVar) {
return null;
}
@Override // Q0.i
public void c(int i) {
}
@Override // R0.f
public boolean d() {
return true;
}
@Override // Q0.i
public void e(Q0.b bVar, Bitmap bitmap, Map map, int i) {
}
@Override // S2.p
public Object j() {
switch (this.f385a) {
case 8:
return new TreeSet();
case 9:
return new LinkedHashSet();
case 10:
return new ArrayDeque();
case 11:
return new ArrayList();
case 12:
return new ConcurrentSkipListMap();
case 13:
return new ConcurrentHashMap();
case 14:
return new TreeMap();
case 15:
return new LinkedHashMap();
default:
return new S2.o(true);
}
}
public void l(TabLayout tabLayout, View view, View view2, float f2, Drawable drawable) {
RectF f4 = f(tabLayout, view);
RectF f5 = f(tabLayout, view2);
drawable.setBounds(AbstractC0396a.c(f2, (int) f4.left, (int) f5.left), drawable.getBounds().top, AbstractC0396a.c(f2, (int) f4.right, (int) f5.right), drawable.getBounds().bottom);
}
@Override // R0.f
public void shutdown() {
}
public e() {
this.f385a = 2;
new ConcurrentHashMap();
}
public e(View view, int i) {
this.f385a = i;
switch (i) {
case 5:
if (Build.VERSION.SDK_INT >= 30) {
new e(view, 4);
return;
} else {
new e(view, 4);
return;
}
default:
return;
}
}
}

View File

@@ -0,0 +1,120 @@
package E2;
import android.content.res.ColorStateList;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import kotlin.KotlinVersion;
import w2.C0651a;
/* loaded from: classes3.dex */
public class f extends Drawable.ConstantState {
/* renamed from: a, reason: collision with root package name */
public k f386a;
/* renamed from: b, reason: collision with root package name */
public C0651a f387b;
/* renamed from: c, reason: collision with root package name */
public ColorStateList f388c;
/* renamed from: d, reason: collision with root package name */
public ColorStateList f389d;
/* renamed from: e, reason: collision with root package name */
public ColorStateList f390e;
/* renamed from: f, reason: collision with root package name */
public PorterDuff.Mode f391f;
/* renamed from: g, reason: collision with root package name */
public Rect f392g;
public final float h;
public float i;
/* renamed from: j, reason: collision with root package name */
public float f393j;
/* renamed from: k, reason: collision with root package name */
public int f394k;
/* renamed from: l, reason: collision with root package name */
public float f395l;
/* renamed from: m, reason: collision with root package name */
public float f396m;
/* renamed from: n, reason: collision with root package name */
public int f397n;
/* renamed from: o, reason: collision with root package name */
public int f398o;
public final Paint.Style p;
public f(k kVar) {
this.f388c = null;
this.f389d = null;
this.f390e = null;
this.f391f = PorterDuff.Mode.SRC_IN;
this.f392g = null;
this.h = 1.0f;
this.i = 1.0f;
this.f394k = KotlinVersion.MAX_COMPONENT_VALUE;
this.f395l = BitmapDescriptorFactory.HUE_RED;
this.f396m = BitmapDescriptorFactory.HUE_RED;
this.f397n = 0;
this.f398o = 0;
this.p = Paint.Style.FILL_AND_STROKE;
this.f386a = kVar;
this.f387b = null;
}
@Override // android.graphics.drawable.Drawable.ConstantState
public final int getChangingConfigurations() {
return 0;
}
@Override // android.graphics.drawable.Drawable.ConstantState
public Drawable newDrawable() {
g gVar = new g(this);
gVar.f404e = true;
return gVar;
}
public f(f fVar) {
this.f388c = null;
this.f389d = null;
this.f390e = null;
this.f391f = PorterDuff.Mode.SRC_IN;
this.f392g = null;
this.h = 1.0f;
this.i = 1.0f;
this.f394k = KotlinVersion.MAX_COMPONENT_VALUE;
this.f395l = BitmapDescriptorFactory.HUE_RED;
this.f396m = BitmapDescriptorFactory.HUE_RED;
this.f397n = 0;
this.f398o = 0;
this.p = Paint.Style.FILL_AND_STROKE;
this.f386a = fVar.f386a;
this.f387b = fVar.f387b;
this.f393j = fVar.f393j;
this.f388c = fVar.f388c;
this.f389d = fVar.f389d;
this.f391f = fVar.f391f;
this.f390e = fVar.f390e;
this.f394k = fVar.f394k;
this.h = fVar.h;
this.f398o = fVar.f398o;
this.i = fVar.i;
this.f395l = fVar.f395l;
this.f396m = fVar.f396m;
this.f397n = fVar.f397n;
this.p = fVar.p;
if (fVar.f392g != null) {
this.f392g = new Rect(fVar.f392g);
}
}
}

View File

@@ -0,0 +1,479 @@
package E2;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Outline;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Looper;
import android.util.AttributeSet;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.BitSet;
import java.util.Objects;
import v2.AbstractC0641a;
import v2.AbstractC0642b;
import w2.C0651a;
/* loaded from: classes3.dex */
public class g extends Drawable implements u {
/* renamed from: u, reason: collision with root package name */
public static final /* synthetic */ int f399u = 0;
/* renamed from: a, reason: collision with root package name */
public f f400a;
/* renamed from: b, reason: collision with root package name */
public final s[] f401b;
/* renamed from: c, reason: collision with root package name */
public final s[] f402c;
/* renamed from: d, reason: collision with root package name */
public final BitSet f403d;
/* renamed from: e, reason: collision with root package name */
public boolean f404e;
/* renamed from: f, reason: collision with root package name */
public final Matrix f405f;
/* renamed from: g, reason: collision with root package name */
public final Path f406g;
public final Path h;
public final RectF i;
/* renamed from: j, reason: collision with root package name */
public final RectF f407j;
/* renamed from: k, reason: collision with root package name */
public final Region f408k;
/* renamed from: l, reason: collision with root package name */
public final Region f409l;
/* renamed from: m, reason: collision with root package name */
public k f410m;
/* renamed from: n, reason: collision with root package name */
public final Paint f411n;
/* renamed from: o, reason: collision with root package name */
public final Paint f412o;
public final A.a p;
/* renamed from: q, reason: collision with root package name */
public final m f413q;
/* renamed from: r, reason: collision with root package name */
public PorterDuffColorFilter f414r;
/* renamed from: s, reason: collision with root package name */
public PorterDuffColorFilter f415s;
/* renamed from: t, reason: collision with root package name */
public final RectF f416t;
static {
Paint paint = new Paint(1);
paint.setColor(-1);
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OUT));
}
public g() {
this(new k());
}
public final void b(RectF rectF, Path path) {
f fVar = this.f400a;
this.f413q.a(fVar.f386a, fVar.i, rectF, this.p, path);
if (this.f400a.h != 1.0f) {
Matrix matrix = this.f405f;
matrix.reset();
float f2 = this.f400a.h;
matrix.setScale(f2, f2, rectF.width() / 2.0f, rectF.height() / 2.0f);
path.transform(matrix);
}
path.computeBounds(this.f416t, true);
}
public final int c(int i) {
f fVar = this.f400a;
float f2 = fVar.f396m + BitmapDescriptorFactory.HUE_RED + fVar.f395l;
C0651a c0651a = fVar.f387b;
return c0651a != null ? c0651a.a(i, f2) : i;
}
public final void d(Canvas canvas, Paint paint, Path path, k kVar, RectF rectF) {
if (!kVar.d(rectF)) {
canvas.drawPath(path, paint);
} else {
float a2 = kVar.f433f.a(rectF) * this.f400a.i;
canvas.drawRoundRect(rectF, a2, a2, paint);
}
}
@Override // android.graphics.drawable.Drawable
public void draw(Canvas canvas) {
Paint paint = this.f411n;
paint.setColorFilter(this.f414r);
int alpha = paint.getAlpha();
int i = this.f400a.f394k;
paint.setAlpha(((i + (i >>> 7)) * alpha) >>> 8);
Paint paint2 = this.f412o;
paint2.setColorFilter(this.f415s);
paint2.setStrokeWidth(this.f400a.f393j);
int alpha2 = paint2.getAlpha();
int i4 = this.f400a.f394k;
paint2.setAlpha(((i4 + (i4 >>> 7)) * alpha2) >>> 8);
boolean z3 = this.f404e;
Path path = this.f406g;
if (z3) {
boolean g4 = g();
float f2 = BitmapDescriptorFactory.HUE_RED;
float f4 = -(g4 ? paint2.getStrokeWidth() / 2.0f : 0.0f);
k kVar = this.f400a.f386a;
j e4 = kVar.e();
c cVar = kVar.f432e;
if (!(cVar instanceof h)) {
cVar = new b(f4, cVar);
}
e4.f422e = cVar;
c cVar2 = kVar.f433f;
if (!(cVar2 instanceof h)) {
cVar2 = new b(f4, cVar2);
}
e4.f423f = cVar2;
c cVar3 = kVar.h;
if (!(cVar3 instanceof h)) {
cVar3 = new b(f4, cVar3);
}
e4.h = cVar3;
c cVar4 = kVar.f434g;
if (!(cVar4 instanceof h)) {
cVar4 = new b(f4, cVar4);
}
e4.f424g = cVar4;
k a2 = e4.a();
this.f410m = a2;
float f5 = this.f400a.i;
RectF rectF = this.f407j;
rectF.set(f());
if (g()) {
f2 = paint2.getStrokeWidth() / 2.0f;
}
rectF.inset(f2, f2);
this.f413q.a(a2, f5, rectF, null, this.h);
b(f(), path);
this.f404e = false;
}
f fVar = this.f400a;
fVar.getClass();
if (fVar.f397n > 0 && !this.f400a.f386a.d(f())) {
path.isConvex();
}
f fVar2 = this.f400a;
Paint.Style style = fVar2.p;
if (style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.FILL) {
d(canvas, paint, path, fVar2.f386a, f());
}
if (g()) {
e(canvas);
}
paint.setAlpha(alpha);
paint2.setAlpha(alpha2);
}
public void e(Canvas canvas) {
Paint paint = this.f412o;
Path path = this.h;
k kVar = this.f410m;
RectF rectF = this.f407j;
rectF.set(f());
float strokeWidth = g() ? paint.getStrokeWidth() / 2.0f : BitmapDescriptorFactory.HUE_RED;
rectF.inset(strokeWidth, strokeWidth);
d(canvas, paint, path, kVar, rectF);
}
public final RectF f() {
RectF rectF = this.i;
rectF.set(getBounds());
return rectF;
}
public final boolean g() {
Paint.Style style = this.f400a.p;
return (style == Paint.Style.FILL_AND_STROKE || style == Paint.Style.STROKE) && this.f412o.getStrokeWidth() > BitmapDescriptorFactory.HUE_RED;
}
@Override // android.graphics.drawable.Drawable
public int getAlpha() {
return this.f400a.f394k;
}
@Override // android.graphics.drawable.Drawable
public final Drawable.ConstantState getConstantState() {
return this.f400a;
}
@Override // android.graphics.drawable.Drawable
public int getOpacity() {
return -3;
}
@Override // android.graphics.drawable.Drawable
public void getOutline(Outline outline) {
this.f400a.getClass();
if (this.f400a.f386a.d(f())) {
outline.setRoundRect(getBounds(), this.f400a.f386a.f432e.a(f()) * this.f400a.i);
return;
}
RectF f2 = f();
Path path = this.f406g;
b(f2, path);
if (Build.VERSION.SDK_INT >= 30) {
AbstractC0642b.a(outline, path);
} else {
try {
AbstractC0641a.a(outline, path);
} catch (IllegalArgumentException unused) {
}
}
}
@Override // android.graphics.drawable.Drawable
public final boolean getPadding(Rect rect) {
Rect rect2 = this.f400a.f392g;
if (rect2 == null) {
return super.getPadding(rect);
}
rect.set(rect2);
return true;
}
@Override // android.graphics.drawable.Drawable
public final Region getTransparentRegion() {
Rect bounds = getBounds();
Region region = this.f408k;
region.set(bounds);
RectF f2 = f();
Path path = this.f406g;
b(f2, path);
Region region2 = this.f409l;
region2.setPath(path, region);
region.op(region2, Region.Op.DIFFERENCE);
return region;
}
public final void h(Context context) {
this.f400a.f387b = new C0651a(context);
m();
}
public final void i(float f2) {
f fVar = this.f400a;
if (fVar.f396m != f2) {
fVar.f396m = f2;
m();
}
}
@Override // android.graphics.drawable.Drawable
public final void invalidateSelf() {
this.f404e = true;
super.invalidateSelf();
}
@Override // android.graphics.drawable.Drawable
public boolean isStateful() {
if (super.isStateful()) {
return true;
}
ColorStateList colorStateList = this.f400a.f390e;
if (colorStateList != null && colorStateList.isStateful()) {
return true;
}
this.f400a.getClass();
ColorStateList colorStateList2 = this.f400a.f389d;
if (colorStateList2 != null && colorStateList2.isStateful()) {
return true;
}
ColorStateList colorStateList3 = this.f400a.f388c;
return colorStateList3 != null && colorStateList3.isStateful();
}
public final void j(ColorStateList colorStateList) {
f fVar = this.f400a;
if (fVar.f388c != colorStateList) {
fVar.f388c = colorStateList;
onStateChange(getState());
}
}
public final boolean k(int[] iArr) {
boolean z3;
Paint paint;
int color;
int colorForState;
Paint paint2;
int color2;
int colorForState2;
if (this.f400a.f388c == null || color2 == (colorForState2 = this.f400a.f388c.getColorForState(iArr, (color2 = (paint2 = this.f411n).getColor())))) {
z3 = false;
} else {
paint2.setColor(colorForState2);
z3 = true;
}
if (this.f400a.f389d == null || color == (colorForState = this.f400a.f389d.getColorForState(iArr, (color = (paint = this.f412o).getColor())))) {
return z3;
}
paint.setColor(colorForState);
return true;
}
public final boolean l() {
PorterDuffColorFilter porterDuffColorFilter;
PorterDuffColorFilter porterDuffColorFilter2 = this.f414r;
PorterDuffColorFilter porterDuffColorFilter3 = this.f415s;
f fVar = this.f400a;
ColorStateList colorStateList = fVar.f390e;
PorterDuff.Mode mode = fVar.f391f;
Paint paint = this.f411n;
if (colorStateList == null || mode == null) {
int color = paint.getColor();
int c4 = c(color);
porterDuffColorFilter = c4 != color ? new PorterDuffColorFilter(c4, PorterDuff.Mode.SRC_IN) : null;
} else {
porterDuffColorFilter = new PorterDuffColorFilter(c(colorStateList.getColorForState(getState(), 0)), mode);
}
this.f414r = porterDuffColorFilter;
this.f400a.getClass();
this.f415s = null;
this.f400a.getClass();
return (Objects.equals(porterDuffColorFilter2, this.f414r) && Objects.equals(porterDuffColorFilter3, this.f415s)) ? false : true;
}
public final void m() {
f fVar = this.f400a;
float f2 = fVar.f396m + BitmapDescriptorFactory.HUE_RED;
fVar.f397n = (int) Math.ceil(0.75f * f2);
this.f400a.f398o = (int) Math.ceil(f2 * 0.25f);
l();
super.invalidateSelf();
}
@Override // android.graphics.drawable.Drawable
public Drawable mutate() {
this.f400a = new f(this.f400a);
return this;
}
@Override // android.graphics.drawable.Drawable
public final void onBoundsChange(Rect rect) {
this.f404e = true;
super.onBoundsChange(rect);
}
@Override // android.graphics.drawable.Drawable
public boolean onStateChange(int[] iArr) {
boolean z3 = k(iArr) || l();
if (z3) {
invalidateSelf();
}
return z3;
}
@Override // android.graphics.drawable.Drawable
public void setAlpha(int i) {
f fVar = this.f400a;
if (fVar.f394k != i) {
fVar.f394k = i;
super.invalidateSelf();
}
}
@Override // android.graphics.drawable.Drawable
public void setColorFilter(ColorFilter colorFilter) {
this.f400a.getClass();
super.invalidateSelf();
}
@Override // E2.u
public final void setShapeAppearanceModel(k kVar) {
this.f400a.f386a = kVar;
invalidateSelf();
}
@Override // android.graphics.drawable.Drawable
public final void setTint(int i) {
setTintList(ColorStateList.valueOf(i));
}
@Override // android.graphics.drawable.Drawable
public void setTintList(ColorStateList colorStateList) {
this.f400a.f390e = colorStateList;
l();
super.invalidateSelf();
}
@Override // android.graphics.drawable.Drawable
public void setTintMode(PorterDuff.Mode mode) {
f fVar = this.f400a;
if (fVar.f391f != mode) {
fVar.f391f = mode;
l();
super.invalidateSelf();
}
}
public g(Context context, AttributeSet attributeSet, int i, int i4) {
this(k.b(context, attributeSet, i, i4).a());
}
public g(k kVar) {
this(new f(kVar));
}
public g(f fVar) {
m mVar;
this.f401b = new s[4];
this.f402c = new s[4];
this.f403d = new BitSet(8);
this.f405f = new Matrix();
this.f406g = new Path();
this.h = new Path();
this.i = new RectF();
this.f407j = new RectF();
this.f408k = new Region();
this.f409l = new Region();
Paint paint = new Paint(1);
this.f411n = paint;
Paint paint2 = new Paint(1);
this.f412o = paint2;
new D2.a();
if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
mVar = l.f438a;
} else {
mVar = new m();
}
this.f413q = mVar;
this.f416t = new RectF();
this.f400a = fVar;
paint2.setStyle(Paint.Style.STROKE);
paint.setStyle(Paint.Style.FILL);
l();
k(getState());
this.p = new A.a(this, 2);
}
}

View File

@@ -0,0 +1,31 @@
package E2;
import android.graphics.RectF;
import java.util.Arrays;
/* loaded from: classes3.dex */
public final class h implements c {
/* renamed from: a, reason: collision with root package name */
public final float f417a;
public h(float f2) {
this.f417a = f2;
}
@Override // E2.c
public final float a(RectF rectF) {
return Math.min(rectF.width(), rectF.height()) * this.f417a;
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof h) && this.f417a == ((h) obj).f417a;
}
public final int hashCode() {
return Arrays.hashCode(new Object[]{Float.valueOf(this.f417a)});
}
}

View File

@@ -0,0 +1,26 @@
package E2;
import a.AbstractC0106b;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes3.dex */
public final class i extends AbstractC0106b {
@Override // a.AbstractC0106b
public final void l(t tVar, float f2, float f4) {
tVar.d(f4 * f2, 180.0f, 90.0f);
float f5 = f4 * 2.0f * f2;
p pVar = new p(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, f5, f5);
pVar.f456f = 180.0f;
pVar.f457g = 90.0f;
tVar.f466f.add(pVar);
n nVar = new n(pVar);
tVar.a(180.0f);
tVar.f467g.add(nVar);
tVar.f464d = 270.0f;
float f6 = (BitmapDescriptorFactory.HUE_RED + f5) * 0.5f;
float f7 = (f5 - BitmapDescriptorFactory.HUE_RED) / 2.0f;
double d4 = 270.0f;
tVar.f462b = (((float) Math.cos(Math.toRadians(d4))) * f7) + f6;
tVar.f463c = (f7 * ((float) Math.sin(Math.toRadians(d4)))) + f6;
}
}

View File

@@ -0,0 +1,66 @@
package E2;
import a.AbstractC0106b;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
/* loaded from: classes3.dex */
public final class j {
/* renamed from: a, reason: collision with root package name */
public AbstractC0106b f418a = new Object();
/* renamed from: b, reason: collision with root package name */
public AbstractC0106b f419b = new Object();
/* renamed from: c, reason: collision with root package name */
public AbstractC0106b f420c = new Object();
/* renamed from: d, reason: collision with root package name */
public AbstractC0106b f421d = new Object();
/* renamed from: e, reason: collision with root package name */
public c f422e = new a(BitmapDescriptorFactory.HUE_RED);
/* renamed from: f, reason: collision with root package name */
public c f423f = new a(BitmapDescriptorFactory.HUE_RED);
/* renamed from: g, reason: collision with root package name */
public c f424g = new a(BitmapDescriptorFactory.HUE_RED);
public c h = new a(BitmapDescriptorFactory.HUE_RED);
public e i = new e(0);
/* renamed from: j, reason: collision with root package name */
public e f425j = new e(0);
/* renamed from: k, reason: collision with root package name */
public e f426k = new e(0);
/* renamed from: l, reason: collision with root package name */
public e f427l = new e(0);
public static void b(AbstractC0106b abstractC0106b) {
if (abstractC0106b instanceof i) {
((i) abstractC0106b).getClass();
} else if (abstractC0106b instanceof d) {
((d) abstractC0106b).getClass();
}
}
/* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, E2.k] */
public final k a() {
?? obj = new Object();
obj.f428a = this.f418a;
obj.f429b = this.f419b;
obj.f430c = this.f420c;
obj.f431d = this.f421d;
obj.f432e = this.f422e;
obj.f433f = this.f423f;
obj.f434g = this.f424g;
obj.h = this.h;
obj.i = this.i;
obj.f435j = this.f425j;
obj.f436k = this.f426k;
obj.f437l = this.f427l;
return obj;
}
}

View File

@@ -0,0 +1,134 @@
package E2;
import a.AbstractC0106b;
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 h2.AbstractC0379a;
/* loaded from: classes3.dex */
public final class k {
/* renamed from: a, reason: collision with root package name */
public AbstractC0106b f428a = new Object();
/* renamed from: b, reason: collision with root package name */
public AbstractC0106b f429b = new Object();
/* renamed from: c, reason: collision with root package name */
public AbstractC0106b f430c = new Object();
/* renamed from: d, reason: collision with root package name */
public AbstractC0106b f431d = new Object();
/* renamed from: e, reason: collision with root package name */
public c f432e = new a(BitmapDescriptorFactory.HUE_RED);
/* renamed from: f, reason: collision with root package name */
public c f433f = new a(BitmapDescriptorFactory.HUE_RED);
/* renamed from: g, reason: collision with root package name */
public c f434g = new a(BitmapDescriptorFactory.HUE_RED);
public c h = new a(BitmapDescriptorFactory.HUE_RED);
public e i = new e(0);
/* renamed from: j, reason: collision with root package name */
public e f435j = new e(0);
/* renamed from: k, reason: collision with root package name */
public e f436k = new e(0);
/* renamed from: l, reason: collision with root package name */
public e f437l = new e(0);
public static j a(Context context, int i, int i4, a aVar) {
ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(context, i);
if (i4 != 0) {
contextThemeWrapper = new ContextThemeWrapper(contextThemeWrapper, i4);
}
TypedArray obtainStyledAttributes = contextThemeWrapper.obtainStyledAttributes(AbstractC0379a.f6777z);
try {
int i5 = obtainStyledAttributes.getInt(0, 0);
int i6 = obtainStyledAttributes.getInt(3, i5);
int i7 = obtainStyledAttributes.getInt(4, i5);
int i8 = obtainStyledAttributes.getInt(2, i5);
int i9 = obtainStyledAttributes.getInt(1, i5);
c c4 = c(obtainStyledAttributes, 5, aVar);
c c5 = c(obtainStyledAttributes, 8, c4);
c c6 = c(obtainStyledAttributes, 9, c4);
c c7 = c(obtainStyledAttributes, 7, c4);
c c8 = c(obtainStyledAttributes, 6, c4);
j jVar = new j();
AbstractC0106b m4 = m3.d.m(i6);
jVar.f418a = m4;
j.b(m4);
jVar.f422e = c5;
AbstractC0106b m5 = m3.d.m(i7);
jVar.f419b = m5;
j.b(m5);
jVar.f423f = c6;
AbstractC0106b m6 = m3.d.m(i8);
jVar.f420c = m6;
j.b(m6);
jVar.f424g = c7;
AbstractC0106b m7 = m3.d.m(i9);
jVar.f421d = m7;
j.b(m7);
jVar.h = c8;
return jVar;
} finally {
obtainStyledAttributes.recycle();
}
}
public static j b(Context context, AttributeSet attributeSet, int i, int i4) {
a aVar = new a(0);
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6769r, i, i4);
int resourceId = obtainStyledAttributes.getResourceId(0, 0);
int resourceId2 = obtainStyledAttributes.getResourceId(1, 0);
obtainStyledAttributes.recycle();
return a(context, resourceId, resourceId2, aVar);
}
public static c c(TypedArray typedArray, int i, c cVar) {
TypedValue peekValue = typedArray.peekValue(i);
if (peekValue != null) {
int i4 = peekValue.type;
if (i4 == 5) {
return new a(TypedValue.complexToDimensionPixelSize(peekValue.data, typedArray.getResources().getDisplayMetrics()));
}
if (i4 == 6) {
return new h(peekValue.getFraction(1.0f, 1.0f));
}
}
return cVar;
}
public final boolean d(RectF rectF) {
boolean z3 = this.f437l.getClass().equals(e.class) && this.f435j.getClass().equals(e.class) && this.i.getClass().equals(e.class) && this.f436k.getClass().equals(e.class);
float a2 = this.f432e.a(rectF);
return z3 && ((this.f433f.a(rectF) > a2 ? 1 : (this.f433f.a(rectF) == a2 ? 0 : -1)) == 0 && (this.h.a(rectF) > a2 ? 1 : (this.h.a(rectF) == a2 ? 0 : -1)) == 0 && (this.f434g.a(rectF) > a2 ? 1 : (this.f434g.a(rectF) == a2 ? 0 : -1)) == 0) && ((this.f429b instanceof i) && (this.f428a instanceof i) && (this.f430c instanceof i) && (this.f431d instanceof i));
}
/* JADX WARN: Type inference failed for: r0v0, types: [E2.j, java.lang.Object] */
public final j e() {
?? obj = new Object();
obj.f418a = this.f428a;
obj.f419b = this.f429b;
obj.f420c = this.f430c;
obj.f421d = this.f431d;
obj.f422e = this.f432e;
obj.f423f = this.f433f;
obj.f424g = this.f434g;
obj.h = this.h;
obj.i = this.i;
obj.f425j = this.f435j;
obj.f426k = this.f436k;
obj.f427l = this.f437l;
return obj;
}
}

View File

@@ -0,0 +1,8 @@
package E2;
/* loaded from: classes3.dex */
public abstract class l {
/* renamed from: a, reason: collision with root package name */
public static final m f438a = new m();
}

View File

@@ -0,0 +1,223 @@
package E2;
import a.AbstractC0106b;
import android.graphics.Matrix;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
import java.util.BitSet;
/* loaded from: classes3.dex */
public final class m {
/* renamed from: a, reason: collision with root package name */
public final t[] f439a = new t[4];
/* renamed from: b, reason: collision with root package name */
public final Matrix[] f440b = new Matrix[4];
/* renamed from: c, reason: collision with root package name */
public final Matrix[] f441c = new Matrix[4];
/* renamed from: d, reason: collision with root package name */
public final PointF f442d = new PointF();
/* renamed from: e, reason: collision with root package name */
public final Path f443e = new Path();
/* renamed from: f, reason: collision with root package name */
public final Path f444f = new Path();
/* renamed from: g, reason: collision with root package name */
public final t f445g = new t();
public final float[] h = new float[2];
public final float[] i = new float[2];
/* renamed from: j, reason: collision with root package name */
public final Path f446j = new Path();
/* renamed from: k, reason: collision with root package name */
public final Path f447k = new Path();
/* renamed from: l, reason: collision with root package name */
public final boolean f448l = true;
public m() {
for (int i = 0; i < 4; i++) {
this.f439a[i] = new t();
this.f440b[i] = new Matrix();
this.f441c[i] = new Matrix();
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r16v0 */
/* JADX WARN: Type inference failed for: r16v1 */
/* JADX WARN: Type inference failed for: r16v6 */
public final void a(k kVar, float f2, RectF rectF, A.a aVar, Path path) {
Matrix[] matrixArr;
Matrix[] matrixArr2;
t[] tVarArr;
int i;
boolean z3;
float[] fArr;
float f4;
boolean z4;
int i4;
m mVar = this;
path.rewind();
Path path2 = mVar.f443e;
path2.rewind();
Path path3 = mVar.f444f;
path3.rewind();
path3.addRect(rectF, Path.Direction.CW);
int i5 = 0;
while (true) {
matrixArr = mVar.f441c;
matrixArr2 = mVar.f440b;
tVarArr = mVar.f439a;
i = 4;
z3 = 0;
fArr = mVar.h;
if (i5 >= 4) {
break;
}
c cVar = i5 != 1 ? i5 != 2 ? i5 != 3 ? kVar.f433f : kVar.f432e : kVar.h : kVar.f434g;
AbstractC0106b abstractC0106b = i5 != 1 ? i5 != 2 ? i5 != 3 ? kVar.f429b : kVar.f428a : kVar.f431d : kVar.f430c;
t tVar = tVarArr[i5];
abstractC0106b.getClass();
abstractC0106b.l(tVar, f2, cVar.a(rectF));
int i6 = i5 + 1;
float f5 = (i6 % 4) * 90;
matrixArr2[i5].reset();
PointF pointF = mVar.f442d;
if (i5 == 1) {
i4 = i5;
pointF.set(rectF.right, rectF.bottom);
} else if (i5 == 2) {
i4 = i5;
pointF.set(rectF.left, rectF.bottom);
} else if (i5 != 3) {
i4 = i5;
pointF.set(rectF.right, rectF.top);
} else {
i4 = i5;
pointF.set(rectF.left, rectF.top);
}
matrixArr2[i4].setTranslate(pointF.x, pointF.y);
matrixArr2[i4].preRotate(f5);
t tVar2 = tVarArr[i4];
fArr[0] = tVar2.f462b;
fArr[1] = tVar2.f463c;
matrixArr2[i4].mapPoints(fArr);
matrixArr[i4].reset();
matrixArr[i4].setTranslate(fArr[0], fArr[1]);
matrixArr[i4].preRotate(f5);
i5 = i6;
}
int i7 = 0;
while (i7 < i) {
t tVar3 = tVarArr[i7];
tVar3.getClass();
fArr[z3] = 0.0f;
fArr[1] = tVar3.f461a;
matrixArr2[i7].mapPoints(fArr);
if (i7 == 0) {
path.moveTo(fArr[z3], fArr[1]);
} else {
path.lineTo(fArr[z3], fArr[1]);
}
tVarArr[i7].b(matrixArr2[i7], path);
if (aVar != null) {
t tVar4 = tVarArr[i7];
Matrix matrix = matrixArr2[i7];
g gVar = (g) aVar.f7b;
BitSet bitSet = gVar.f403d;
tVar4.getClass();
f4 = 0.0f;
bitSet.set(i7, z3);
tVar4.a(tVar4.f465e);
gVar.f401b[i7] = new n(new ArrayList(tVar4.f467g), new Matrix(matrix));
} else {
f4 = 0.0f;
}
int i8 = i7 + 1;
int i9 = i8 % 4;
t tVar5 = tVarArr[i7];
fArr[0] = tVar5.f462b;
fArr[1] = tVar5.f463c;
matrixArr2[i7].mapPoints(fArr);
t tVar6 = tVarArr[i9];
tVar6.getClass();
float[] fArr2 = mVar.i;
fArr2[0] = f4;
fArr2[1] = tVar6.f461a;
matrixArr2[i9].mapPoints(fArr2);
Matrix[] matrixArr3 = matrixArr2;
t[] tVarArr2 = tVarArr;
float max = Math.max(((float) Math.hypot(fArr[0] - fArr2[0], fArr[1] - fArr2[1])) - 0.001f, f4);
t tVar7 = tVarArr2[i7];
fArr[0] = tVar7.f462b;
fArr[1] = tVar7.f463c;
matrixArr3[i7].mapPoints(fArr);
if (i7 == 1 || i7 == 3) {
Math.abs(rectF.centerX() - fArr[0]);
} else {
Math.abs(rectF.centerY() - fArr[1]);
}
t tVar8 = mVar.f445g;
tVar8.d(BitmapDescriptorFactory.HUE_RED, 270.0f, BitmapDescriptorFactory.HUE_RED);
(i7 != 1 ? i7 != 2 ? i7 != 3 ? kVar.f435j : kVar.i : kVar.f437l : kVar.f436k).getClass();
tVar8.c(max, BitmapDescriptorFactory.HUE_RED);
Path path4 = mVar.f446j;
path4.reset();
tVar8.b(matrixArr[i7], path4);
if (mVar.f448l && (mVar.b(path4, i7) || mVar.b(path4, i9))) {
path4.op(path4, path3, Path.Op.DIFFERENCE);
fArr[0] = 0.0f;
fArr[1] = tVar8.f461a;
matrixArr[i7].mapPoints(fArr);
path2.moveTo(fArr[0], fArr[1]);
tVar8.b(matrixArr[i7], path2);
} else {
tVar8.b(matrixArr[i7], path);
}
if (aVar != null) {
Matrix matrix2 = matrixArr[i7];
g gVar2 = (g) aVar.f7b;
z4 = false;
gVar2.f403d.set(i7 + 4, false);
tVar8.a(tVar8.f465e);
gVar2.f402c[i7] = new n(new ArrayList(tVar8.f467g), new Matrix(matrix2));
} else {
z4 = false;
}
z3 = z4;
i7 = i8;
tVarArr = tVarArr2;
matrixArr2 = matrixArr3;
i = 4;
mVar = this;
}
path.close();
path2.close();
if (path2.isEmpty()) {
return;
}
path.op(path2, Path.Op.UNION);
}
public final boolean b(Path path, int i) {
Path path2 = this.f447k;
path2.reset();
this.f439a[i].b(this.f440b[i], path2);
RectF rectF = new RectF();
path.computeBounds(rectF, true);
path2.computeBounds(rectF, true);
path.op(path2, Path.Op.INTERSECT);
path.computeBounds(rectF, true);
return !rectF.isEmpty() || (rectF.width() > 1.0f && rectF.height() > 1.0f);
}
}

View File

@@ -0,0 +1,13 @@
package E2;
import android.graphics.Matrix;
import java.util.ArrayList;
/* loaded from: classes3.dex */
public final class n extends s {
public n(ArrayList arrayList, Matrix matrix) {
}
public n(p pVar) {
}
}

View File

@@ -0,0 +1,25 @@
package E2;
/* loaded from: classes3.dex */
public final class o extends s {
/* renamed from: a, reason: collision with root package name */
public final q f449a;
/* renamed from: b, reason: collision with root package name */
public final float f450b;
/* renamed from: c, reason: collision with root package name */
public final float f451c;
public o(q qVar, float f2, float f4) {
this.f449a = qVar;
this.f450b = f2;
this.f451c = f4;
}
public final float a() {
q qVar = this.f449a;
return (float) Math.toDegrees(Math.atan((qVar.f459c - this.f451c) / (qVar.f458b - this.f450b)));
}
}

View File

@@ -0,0 +1,46 @@
package E2;
import android.graphics.Matrix;
import android.graphics.Path;
import android.graphics.RectF;
/* loaded from: classes3.dex */
public final class p extends r {
public static final RectF h = new RectF();
/* renamed from: b, reason: collision with root package name */
public final float f452b;
/* renamed from: c, reason: collision with root package name */
public final float f453c;
/* renamed from: d, reason: collision with root package name */
public final float f454d;
/* renamed from: e, reason: collision with root package name */
public final float f455e;
/* renamed from: f, reason: collision with root package name */
public float f456f;
/* renamed from: g, reason: collision with root package name */
public float f457g;
public p(float f2, float f4, float f5, float f6) {
this.f452b = f2;
this.f453c = f4;
this.f454d = f5;
this.f455e = f6;
}
@Override // E2.r
public final void a(Matrix matrix, Path path) {
Matrix matrix2 = this.f460a;
matrix.invert(matrix2);
path.transform(matrix2);
RectF rectF = h;
rectF.set(this.f452b, this.f453c, this.f454d, this.f455e);
path.arcTo(rectF, this.f456f, this.f457g, false);
path.transform(matrix);
}
}

View File

@@ -0,0 +1,23 @@
package E2;
import android.graphics.Matrix;
import android.graphics.Path;
/* loaded from: classes3.dex */
public final class q extends r {
/* renamed from: b, reason: collision with root package name */
public float f458b;
/* renamed from: c, reason: collision with root package name */
public float f459c;
@Override // E2.r
public final void a(Matrix matrix, Path path) {
Matrix matrix2 = this.f460a;
matrix.invert(matrix2);
path.transform(matrix2);
path.lineTo(this.f458b, this.f459c);
path.transform(matrix);
}
}

View File

@@ -0,0 +1,13 @@
package E2;
import android.graphics.Matrix;
import android.graphics.Path;
/* loaded from: classes3.dex */
public abstract class r {
/* renamed from: a, reason: collision with root package name */
public final Matrix f460a = new Matrix();
public abstract void a(Matrix matrix, Path path);
}

View File

@@ -0,0 +1,14 @@
package E2;
import android.graphics.Matrix;
/* loaded from: classes3.dex */
public abstract class s {
static {
new Matrix();
}
public s() {
new Matrix();
}
}

View File

@@ -0,0 +1,87 @@
package E2;
import android.graphics.Matrix;
import android.graphics.Path;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.util.ArrayList;
/* loaded from: classes3.dex */
public final class t {
/* renamed from: a, reason: collision with root package name */
public float f461a;
/* renamed from: b, reason: collision with root package name */
public float f462b;
/* renamed from: c, reason: collision with root package name */
public float f463c;
/* renamed from: d, reason: collision with root package name */
public float f464d;
/* renamed from: e, reason: collision with root package name */
public float f465e;
/* renamed from: f, reason: collision with root package name */
public final ArrayList f466f = new ArrayList();
/* renamed from: g, reason: collision with root package name */
public final ArrayList f467g = new ArrayList();
public t() {
d(BitmapDescriptorFactory.HUE_RED, 270.0f, BitmapDescriptorFactory.HUE_RED);
}
public final void a(float f2) {
float f4 = this.f464d;
if (f4 == f2) {
return;
}
float f5 = ((f2 - f4) + 360.0f) % 360.0f;
if (f5 > 180.0f) {
return;
}
float f6 = this.f462b;
float f7 = this.f463c;
p pVar = new p(f6, f7, f6, f7);
pVar.f456f = this.f464d;
pVar.f457g = f5;
this.f467g.add(new n(pVar));
this.f464d = f2;
}
public final void b(Matrix matrix, Path path) {
ArrayList arrayList = this.f466f;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
((r) arrayList.get(i)).a(matrix, path);
}
}
/* JADX WARN: Type inference failed for: r0v0, types: [E2.q, E2.r, java.lang.Object] */
public final void c(float f2, float f4) {
?? rVar = new r();
rVar.f458b = f2;
rVar.f459c = f4;
this.f466f.add(rVar);
o oVar = new o(rVar, this.f462b, this.f463c);
float a2 = oVar.a() + 270.0f;
float a4 = oVar.a() + 270.0f;
a(a2);
this.f467g.add(oVar);
this.f464d = a4;
this.f462b = f2;
this.f463c = f4;
}
public final void d(float f2, float f4, float f5) {
this.f461a = f2;
this.f462b = BitmapDescriptorFactory.HUE_RED;
this.f463c = f2;
this.f464d = f4;
this.f465e = (f4 + f5) % 360.0f;
this.f466f.clear();
this.f467g.clear();
}
}

View File

@@ -0,0 +1,6 @@
package E2;
/* loaded from: classes3.dex */
public interface u {
void setShapeAppearanceModel(k kVar);
}