You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1675 lines
55 KiB
1675 lines
55 KiB
package p072y0;
|
|
|
|
import android.content.res.ColorStateList;
|
|
import android.content.res.Resources;
|
|
import android.content.res.TypedArray;
|
|
import android.content.res.XmlResourceParser;
|
|
import android.graphics.Bitmap;
|
|
import android.graphics.Canvas;
|
|
import android.graphics.Color;
|
|
import android.graphics.ColorFilter;
|
|
import android.graphics.Matrix;
|
|
import android.graphics.Paint;
|
|
import android.graphics.Path;
|
|
import android.graphics.PathMeasure;
|
|
import android.graphics.PorterDuff;
|
|
import android.graphics.PorterDuffColorFilter;
|
|
import android.graphics.Rect;
|
|
import android.graphics.Region;
|
|
import android.graphics.Shader;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.graphics.drawable.VectorDrawable;
|
|
import android.os.Build;
|
|
import android.util.AttributeSet;
|
|
import android.util.Log;
|
|
import android.util.Xml;
|
|
import java.io.IOException;
|
|
import java.util.ArrayDeque;
|
|
import java.util.ArrayList;
|
|
import org.xmlpull.v1.XmlPullParser;
|
|
import org.xmlpull.v1.XmlPullParserException;
|
|
import p001a0.C0012f;
|
|
import p037m.C1444a;
|
|
import p071y.C1810d;
|
|
import p071y.C1821i;
|
|
import p071y.C1838q;
|
|
import p073z.C1885j;
|
|
|
|
/* renamed from: y0.l */
|
|
/* loaded from: classes.dex */
|
|
public class C1855l extends AbstractC1854k {
|
|
|
|
/* renamed from: n */
|
|
public static final PorterDuff.Mode f4609n = PorterDuff.Mode.SRC_IN;
|
|
|
|
/* renamed from: e */
|
|
public C1863h f4610e;
|
|
|
|
/* renamed from: f */
|
|
public PorterDuffColorFilter f4611f;
|
|
|
|
/* renamed from: g */
|
|
public ColorFilter f4612g;
|
|
|
|
/* renamed from: h */
|
|
public boolean f4613h;
|
|
|
|
/* renamed from: i */
|
|
public boolean f4614i;
|
|
|
|
/* renamed from: j */
|
|
public Drawable.ConstantState f4615j;
|
|
|
|
/* renamed from: k */
|
|
public final float[] f4616k;
|
|
|
|
/* renamed from: l */
|
|
public final Matrix f4617l;
|
|
|
|
/* renamed from: m */
|
|
public final Rect f4618m;
|
|
|
|
/* renamed from: y0.l$b */
|
|
/* loaded from: classes.dex */
|
|
public static class C1857b extends AbstractC1861f {
|
|
public C1857b() {
|
|
}
|
|
|
|
public C1857b(C1857b c1857b) {
|
|
super(c1857b);
|
|
}
|
|
|
|
@Override // p072y0.C1855l.AbstractC1861f
|
|
/* renamed from: c */
|
|
public boolean mo179c() {
|
|
return true;
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public void m190e(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
|
|
if (C1838q.m249j(xmlPullParser, "pathData")) {
|
|
TypedArray m248k = C1838q.m248k(resources, theme, attributeSet, C1840a.f4582d);
|
|
m189f(m248k, xmlPullParser);
|
|
m248k.recycle();
|
|
}
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public final void m189f(TypedArray typedArray, XmlPullParser xmlPullParser) {
|
|
String string = typedArray.getString(0);
|
|
if (string != null) {
|
|
this.f4645b = string;
|
|
}
|
|
String string2 = typedArray.getString(1);
|
|
if (string2 != null) {
|
|
this.f4644a = C1885j.m127d(string2);
|
|
}
|
|
this.f4646c = C1838q.m252g(typedArray, xmlPullParser, "fillType", 2, 0);
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$c */
|
|
/* loaded from: classes.dex */
|
|
public static class C1858c extends AbstractC1861f {
|
|
|
|
/* renamed from: e */
|
|
public int[] f4619e;
|
|
|
|
/* renamed from: f */
|
|
public C1810d f4620f;
|
|
|
|
/* renamed from: g */
|
|
public float f4621g;
|
|
|
|
/* renamed from: h */
|
|
public C1810d f4622h;
|
|
|
|
/* renamed from: i */
|
|
public float f4623i;
|
|
|
|
/* renamed from: j */
|
|
public float f4624j;
|
|
|
|
/* renamed from: k */
|
|
public float f4625k;
|
|
|
|
/* renamed from: l */
|
|
public float f4626l;
|
|
|
|
/* renamed from: m */
|
|
public float f4627m;
|
|
|
|
/* renamed from: n */
|
|
public Paint.Cap f4628n;
|
|
|
|
/* renamed from: o */
|
|
public Paint.Join f4629o;
|
|
|
|
/* renamed from: p */
|
|
public float f4630p;
|
|
|
|
public C1858c() {
|
|
this.f4621g = 0.0f;
|
|
this.f4623i = 1.0f;
|
|
this.f4624j = 1.0f;
|
|
this.f4625k = 0.0f;
|
|
this.f4626l = 1.0f;
|
|
this.f4627m = 0.0f;
|
|
this.f4628n = Paint.Cap.BUTT;
|
|
this.f4629o = Paint.Join.MITER;
|
|
this.f4630p = 4.0f;
|
|
}
|
|
|
|
public C1858c(C1858c c1858c) {
|
|
super(c1858c);
|
|
this.f4621g = 0.0f;
|
|
this.f4623i = 1.0f;
|
|
this.f4624j = 1.0f;
|
|
this.f4625k = 0.0f;
|
|
this.f4626l = 1.0f;
|
|
this.f4627m = 0.0f;
|
|
this.f4628n = Paint.Cap.BUTT;
|
|
this.f4629o = Paint.Join.MITER;
|
|
this.f4630p = 4.0f;
|
|
this.f4619e = c1858c.f4619e;
|
|
this.f4620f = c1858c.f4620f;
|
|
this.f4621g = c1858c.f4621g;
|
|
this.f4623i = c1858c.f4623i;
|
|
this.f4622h = c1858c.f4622h;
|
|
this.f4646c = c1858c.f4646c;
|
|
this.f4624j = c1858c.f4624j;
|
|
this.f4625k = c1858c.f4625k;
|
|
this.f4626l = c1858c.f4626l;
|
|
this.f4627m = c1858c.f4627m;
|
|
this.f4628n = c1858c.f4628n;
|
|
this.f4629o = c1858c.f4629o;
|
|
this.f4630p = c1858c.f4630p;
|
|
}
|
|
|
|
@Override // p072y0.C1855l.AbstractC1860e
|
|
/* renamed from: a */
|
|
public boolean mo181a() {
|
|
return this.f4622h.m323i() || this.f4620f.m323i();
|
|
}
|
|
|
|
@Override // p072y0.C1855l.AbstractC1860e
|
|
/* renamed from: b */
|
|
public boolean mo180b(int[] iArr) {
|
|
return this.f4620f.m322j(iArr) | this.f4622h.m322j(iArr);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public final Paint.Cap m188e(int i, Paint.Cap cap) {
|
|
return i != 0 ? i != 1 ? i != 2 ? cap : Paint.Cap.SQUARE : Paint.Cap.ROUND : Paint.Cap.BUTT;
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public final Paint.Join m187f(int i, Paint.Join join) {
|
|
return i != 0 ? i != 1 ? i != 2 ? join : Paint.Join.BEVEL : Paint.Join.ROUND : Paint.Join.MITER;
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public void m186g(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
|
|
TypedArray m248k = C1838q.m248k(resources, theme, attributeSet, C1840a.f4581c);
|
|
m185h(m248k, xmlPullParser, theme);
|
|
m248k.recycle();
|
|
}
|
|
|
|
public float getFillAlpha() {
|
|
return this.f4624j;
|
|
}
|
|
|
|
public int getFillColor() {
|
|
return this.f4622h.m327e();
|
|
}
|
|
|
|
public float getStrokeAlpha() {
|
|
return this.f4623i;
|
|
}
|
|
|
|
public int getStrokeColor() {
|
|
return this.f4620f.m327e();
|
|
}
|
|
|
|
public float getStrokeWidth() {
|
|
return this.f4621g;
|
|
}
|
|
|
|
public float getTrimPathEnd() {
|
|
return this.f4626l;
|
|
}
|
|
|
|
public float getTrimPathOffset() {
|
|
return this.f4627m;
|
|
}
|
|
|
|
public float getTrimPathStart() {
|
|
return this.f4625k;
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public final void m185h(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme) {
|
|
this.f4619e = null;
|
|
if (C1838q.m249j(xmlPullParser, "pathData")) {
|
|
String string = typedArray.getString(0);
|
|
if (string != null) {
|
|
this.f4645b = string;
|
|
}
|
|
String string2 = typedArray.getString(2);
|
|
if (string2 != null) {
|
|
this.f4644a = C1885j.m127d(string2);
|
|
}
|
|
this.f4622h = C1838q.m254e(typedArray, xmlPullParser, theme, "fillColor", 1, 0);
|
|
this.f4624j = C1838q.m253f(typedArray, xmlPullParser, "fillAlpha", 12, this.f4624j);
|
|
this.f4628n = m188e(C1838q.m252g(typedArray, xmlPullParser, "strokeLineCap", 8, -1), this.f4628n);
|
|
this.f4629o = m187f(C1838q.m252g(typedArray, xmlPullParser, "strokeLineJoin", 9, -1), this.f4629o);
|
|
this.f4630p = C1838q.m253f(typedArray, xmlPullParser, "strokeMiterLimit", 10, this.f4630p);
|
|
this.f4620f = C1838q.m254e(typedArray, xmlPullParser, theme, "strokeColor", 3, 0);
|
|
this.f4623i = C1838q.m253f(typedArray, xmlPullParser, "strokeAlpha", 11, this.f4623i);
|
|
this.f4621g = C1838q.m253f(typedArray, xmlPullParser, "strokeWidth", 4, this.f4621g);
|
|
this.f4626l = C1838q.m253f(typedArray, xmlPullParser, "trimPathEnd", 6, this.f4626l);
|
|
this.f4627m = C1838q.m253f(typedArray, xmlPullParser, "trimPathOffset", 7, this.f4627m);
|
|
this.f4625k = C1838q.m253f(typedArray, xmlPullParser, "trimPathStart", 5, this.f4625k);
|
|
this.f4646c = C1838q.m252g(typedArray, xmlPullParser, "fillType", 13, this.f4646c);
|
|
}
|
|
}
|
|
|
|
public void setFillAlpha(float f) {
|
|
this.f4624j = f;
|
|
}
|
|
|
|
public void setFillColor(int i) {
|
|
this.f4622h.m321k(i);
|
|
}
|
|
|
|
public void setStrokeAlpha(float f) {
|
|
this.f4623i = f;
|
|
}
|
|
|
|
public void setStrokeColor(int i) {
|
|
this.f4620f.m321k(i);
|
|
}
|
|
|
|
public void setStrokeWidth(float f) {
|
|
this.f4621g = f;
|
|
}
|
|
|
|
public void setTrimPathEnd(float f) {
|
|
this.f4626l = f;
|
|
}
|
|
|
|
public void setTrimPathOffset(float f) {
|
|
this.f4627m = f;
|
|
}
|
|
|
|
public void setTrimPathStart(float f) {
|
|
this.f4625k = f;
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$d */
|
|
/* loaded from: classes.dex */
|
|
public static class C1859d extends AbstractC1860e {
|
|
|
|
/* renamed from: a */
|
|
public final Matrix f4631a;
|
|
|
|
/* renamed from: b */
|
|
public final ArrayList<AbstractC1860e> f4632b;
|
|
|
|
/* renamed from: c */
|
|
public float f4633c;
|
|
|
|
/* renamed from: d */
|
|
public float f4634d;
|
|
|
|
/* renamed from: e */
|
|
public float f4635e;
|
|
|
|
/* renamed from: f */
|
|
public float f4636f;
|
|
|
|
/* renamed from: g */
|
|
public float f4637g;
|
|
|
|
/* renamed from: h */
|
|
public float f4638h;
|
|
|
|
/* renamed from: i */
|
|
public float f4639i;
|
|
|
|
/* renamed from: j */
|
|
public final Matrix f4640j;
|
|
|
|
/* renamed from: k */
|
|
public int f4641k;
|
|
|
|
/* renamed from: l */
|
|
public int[] f4642l;
|
|
|
|
/* renamed from: m */
|
|
public String f4643m;
|
|
|
|
public C1859d() {
|
|
super();
|
|
this.f4631a = new Matrix();
|
|
this.f4632b = new ArrayList<>();
|
|
this.f4633c = 0.0f;
|
|
this.f4634d = 0.0f;
|
|
this.f4635e = 0.0f;
|
|
this.f4636f = 1.0f;
|
|
this.f4637g = 1.0f;
|
|
this.f4638h = 0.0f;
|
|
this.f4639i = 0.0f;
|
|
this.f4640j = new Matrix();
|
|
this.f4643m = null;
|
|
}
|
|
|
|
public C1859d(C1859d c1859d, C1444a<String, Object> c1444a) {
|
|
super();
|
|
AbstractC1861f c1857b;
|
|
this.f4631a = new Matrix();
|
|
this.f4632b = new ArrayList<>();
|
|
this.f4633c = 0.0f;
|
|
this.f4634d = 0.0f;
|
|
this.f4635e = 0.0f;
|
|
this.f4636f = 1.0f;
|
|
this.f4637g = 1.0f;
|
|
this.f4638h = 0.0f;
|
|
this.f4639i = 0.0f;
|
|
Matrix matrix = new Matrix();
|
|
this.f4640j = matrix;
|
|
this.f4643m = null;
|
|
this.f4633c = c1859d.f4633c;
|
|
this.f4634d = c1859d.f4634d;
|
|
this.f4635e = c1859d.f4635e;
|
|
this.f4636f = c1859d.f4636f;
|
|
this.f4637g = c1859d.f4637g;
|
|
this.f4638h = c1859d.f4638h;
|
|
this.f4639i = c1859d.f4639i;
|
|
this.f4642l = c1859d.f4642l;
|
|
String str = c1859d.f4643m;
|
|
this.f4643m = str;
|
|
this.f4641k = c1859d.f4641k;
|
|
if (str != null) {
|
|
c1444a.put(str, this);
|
|
}
|
|
matrix.set(c1859d.f4640j);
|
|
ArrayList<AbstractC1860e> arrayList = c1859d.f4632b;
|
|
for (int i = 0; i < arrayList.size(); i++) {
|
|
AbstractC1860e abstractC1860e = arrayList.get(i);
|
|
if (abstractC1860e instanceof C1859d) {
|
|
this.f4632b.add(new C1859d((C1859d) abstractC1860e, c1444a));
|
|
} else {
|
|
if (abstractC1860e instanceof C1858c) {
|
|
c1857b = new C1858c((C1858c) abstractC1860e);
|
|
} else if (!(abstractC1860e instanceof C1857b)) {
|
|
throw new IllegalStateException("Unknown object in the tree!");
|
|
} else {
|
|
c1857b = new C1857b((C1857b) abstractC1860e);
|
|
}
|
|
this.f4632b.add(c1857b);
|
|
String str2 = c1857b.f4645b;
|
|
if (str2 != null) {
|
|
c1444a.put(str2, c1857b);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // p072y0.C1855l.AbstractC1860e
|
|
/* renamed from: a */
|
|
public boolean mo181a() {
|
|
for (int i = 0; i < this.f4632b.size(); i++) {
|
|
if (this.f4632b.get(i).mo181a()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // p072y0.C1855l.AbstractC1860e
|
|
/* renamed from: b */
|
|
public boolean mo180b(int[] iArr) {
|
|
boolean z = false;
|
|
for (int i = 0; i < this.f4632b.size(); i++) {
|
|
z |= this.f4632b.get(i).mo180b(iArr);
|
|
}
|
|
return z;
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public void m184c(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
|
|
TypedArray m248k = C1838q.m248k(resources, theme, attributeSet, C1840a.f4580b);
|
|
m182e(m248k, xmlPullParser);
|
|
m248k.recycle();
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public final void m183d() {
|
|
this.f4640j.reset();
|
|
this.f4640j.postTranslate(-this.f4634d, -this.f4635e);
|
|
this.f4640j.postScale(this.f4636f, this.f4637g);
|
|
this.f4640j.postRotate(this.f4633c, 0.0f, 0.0f);
|
|
this.f4640j.postTranslate(this.f4638h + this.f4634d, this.f4639i + this.f4635e);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public final void m182e(TypedArray typedArray, XmlPullParser xmlPullParser) {
|
|
this.f4642l = null;
|
|
this.f4633c = C1838q.m253f(typedArray, xmlPullParser, "rotation", 5, this.f4633c);
|
|
this.f4634d = typedArray.getFloat(1, this.f4634d);
|
|
this.f4635e = typedArray.getFloat(2, this.f4635e);
|
|
this.f4636f = C1838q.m253f(typedArray, xmlPullParser, "scaleX", 3, this.f4636f);
|
|
this.f4637g = C1838q.m253f(typedArray, xmlPullParser, "scaleY", 4, this.f4637g);
|
|
this.f4638h = C1838q.m253f(typedArray, xmlPullParser, "translateX", 6, this.f4638h);
|
|
this.f4639i = C1838q.m253f(typedArray, xmlPullParser, "translateY", 7, this.f4639i);
|
|
String string = typedArray.getString(0);
|
|
if (string != null) {
|
|
this.f4643m = string;
|
|
}
|
|
m183d();
|
|
}
|
|
|
|
public String getGroupName() {
|
|
return this.f4643m;
|
|
}
|
|
|
|
public Matrix getLocalMatrix() {
|
|
return this.f4640j;
|
|
}
|
|
|
|
public float getPivotX() {
|
|
return this.f4634d;
|
|
}
|
|
|
|
public float getPivotY() {
|
|
return this.f4635e;
|
|
}
|
|
|
|
public float getRotation() {
|
|
return this.f4633c;
|
|
}
|
|
|
|
public float getScaleX() {
|
|
return this.f4636f;
|
|
}
|
|
|
|
public float getScaleY() {
|
|
return this.f4637g;
|
|
}
|
|
|
|
public float getTranslateX() {
|
|
return this.f4638h;
|
|
}
|
|
|
|
public float getTranslateY() {
|
|
return this.f4639i;
|
|
}
|
|
|
|
public void setPivotX(float f) {
|
|
if (f != this.f4634d) {
|
|
this.f4634d = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setPivotY(float f) {
|
|
if (f != this.f4635e) {
|
|
this.f4635e = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setRotation(float f) {
|
|
if (f != this.f4633c) {
|
|
this.f4633c = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setScaleX(float f) {
|
|
if (f != this.f4636f) {
|
|
this.f4636f = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setScaleY(float f) {
|
|
if (f != this.f4637g) {
|
|
this.f4637g = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setTranslateX(float f) {
|
|
if (f != this.f4638h) {
|
|
this.f4638h = f;
|
|
m183d();
|
|
}
|
|
}
|
|
|
|
public void setTranslateY(float f) {
|
|
if (f != this.f4639i) {
|
|
this.f4639i = f;
|
|
m183d();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$e */
|
|
/* loaded from: classes.dex */
|
|
public static abstract class AbstractC1860e {
|
|
public AbstractC1860e() {
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public boolean mo181a() {
|
|
return false;
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public boolean mo180b(int[] iArr) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$f */
|
|
/* loaded from: classes.dex */
|
|
public static abstract class AbstractC1861f extends AbstractC1860e {
|
|
|
|
/* renamed from: a */
|
|
public C1885j.C1887b[] f4644a;
|
|
|
|
/* renamed from: b */
|
|
public String f4645b;
|
|
|
|
/* renamed from: c */
|
|
public int f4646c;
|
|
|
|
/* renamed from: d */
|
|
public int f4647d;
|
|
|
|
public AbstractC1861f() {
|
|
super();
|
|
this.f4644a = null;
|
|
this.f4646c = 0;
|
|
}
|
|
|
|
public AbstractC1861f(AbstractC1861f abstractC1861f) {
|
|
super();
|
|
this.f4644a = null;
|
|
this.f4646c = 0;
|
|
this.f4645b = abstractC1861f.f4645b;
|
|
this.f4647d = abstractC1861f.f4647d;
|
|
this.f4644a = C1885j.m125f(abstractC1861f.f4644a);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public boolean mo179c() {
|
|
return false;
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public void m178d(Path path) {
|
|
path.reset();
|
|
C1885j.C1887b[] c1887bArr = this.f4644a;
|
|
if (c1887bArr != null) {
|
|
C1885j.C1887b.m116e(c1887bArr, path);
|
|
}
|
|
}
|
|
|
|
public C1885j.C1887b[] getPathData() {
|
|
return this.f4644a;
|
|
}
|
|
|
|
public String getPathName() {
|
|
return this.f4645b;
|
|
}
|
|
|
|
public void setPathData(C1885j.C1887b[] c1887bArr) {
|
|
if (C1885j.m129b(this.f4644a, c1887bArr)) {
|
|
C1885j.m121j(this.f4644a, c1887bArr);
|
|
} else {
|
|
this.f4644a = C1885j.m125f(c1887bArr);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$g */
|
|
/* loaded from: classes.dex */
|
|
public static class C1862g {
|
|
|
|
/* renamed from: q */
|
|
public static final Matrix f4648q = new Matrix();
|
|
|
|
/* renamed from: a */
|
|
public final Path f4649a;
|
|
|
|
/* renamed from: b */
|
|
public final Path f4650b;
|
|
|
|
/* renamed from: c */
|
|
public final Matrix f4651c;
|
|
|
|
/* renamed from: d */
|
|
public Paint f4652d;
|
|
|
|
/* renamed from: e */
|
|
public Paint f4653e;
|
|
|
|
/* renamed from: f */
|
|
public PathMeasure f4654f;
|
|
|
|
/* renamed from: g */
|
|
public int f4655g;
|
|
|
|
/* renamed from: h */
|
|
public final C1859d f4656h;
|
|
|
|
/* renamed from: i */
|
|
public float f4657i;
|
|
|
|
/* renamed from: j */
|
|
public float f4658j;
|
|
|
|
/* renamed from: k */
|
|
public float f4659k;
|
|
|
|
/* renamed from: l */
|
|
public float f4660l;
|
|
|
|
/* renamed from: m */
|
|
public int f4661m;
|
|
|
|
/* renamed from: n */
|
|
public String f4662n;
|
|
|
|
/* renamed from: o */
|
|
public Boolean f4663o;
|
|
|
|
/* renamed from: p */
|
|
public final C1444a<String, Object> f4664p;
|
|
|
|
public C1862g() {
|
|
this.f4651c = new Matrix();
|
|
this.f4657i = 0.0f;
|
|
this.f4658j = 0.0f;
|
|
this.f4659k = 0.0f;
|
|
this.f4660l = 0.0f;
|
|
this.f4661m = 255;
|
|
this.f4662n = null;
|
|
this.f4663o = null;
|
|
this.f4664p = new C1444a<>();
|
|
this.f4656h = new C1859d();
|
|
this.f4649a = new Path();
|
|
this.f4650b = new Path();
|
|
}
|
|
|
|
public C1862g(C1862g c1862g) {
|
|
this.f4651c = new Matrix();
|
|
this.f4657i = 0.0f;
|
|
this.f4658j = 0.0f;
|
|
this.f4659k = 0.0f;
|
|
this.f4660l = 0.0f;
|
|
this.f4661m = 255;
|
|
this.f4662n = null;
|
|
this.f4663o = null;
|
|
C1444a<String, Object> c1444a = new C1444a<>();
|
|
this.f4664p = c1444a;
|
|
this.f4656h = new C1859d(c1862g.f4656h, c1444a);
|
|
this.f4649a = new Path(c1862g.f4649a);
|
|
this.f4650b = new Path(c1862g.f4650b);
|
|
this.f4657i = c1862g.f4657i;
|
|
this.f4658j = c1862g.f4658j;
|
|
this.f4659k = c1862g.f4659k;
|
|
this.f4660l = c1862g.f4660l;
|
|
this.f4655g = c1862g.f4655g;
|
|
this.f4661m = c1862g.f4661m;
|
|
this.f4662n = c1862g.f4662n;
|
|
String str = c1862g.f4662n;
|
|
if (str != null) {
|
|
c1444a.put(str, this);
|
|
}
|
|
this.f4663o = c1862g.f4663o;
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static float m177a(float f, float f2, float f3, float f4) {
|
|
return (f * f4) - (f2 * f3);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public void m176b(Canvas canvas, int i, int i2, ColorFilter colorFilter) {
|
|
m175c(this.f4656h, f4648q, canvas, i, i2, colorFilter);
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public final void m175c(C1859d c1859d, Matrix matrix, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
|
|
c1859d.f4631a.set(matrix);
|
|
c1859d.f4631a.preConcat(c1859d.f4640j);
|
|
canvas.save();
|
|
for (int i3 = 0; i3 < c1859d.f4632b.size(); i3++) {
|
|
AbstractC1860e abstractC1860e = c1859d.f4632b.get(i3);
|
|
if (abstractC1860e instanceof C1859d) {
|
|
m175c((C1859d) abstractC1860e, c1859d.f4631a, canvas, i, i2, colorFilter);
|
|
} else if (abstractC1860e instanceof AbstractC1861f) {
|
|
m174d(c1859d, (AbstractC1861f) abstractC1860e, canvas, i, i2, colorFilter);
|
|
}
|
|
}
|
|
canvas.restore();
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public final void m174d(C1859d c1859d, AbstractC1861f abstractC1861f, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
|
|
float f = i / this.f4659k;
|
|
float f2 = i2 / this.f4660l;
|
|
float min = Math.min(f, f2);
|
|
Matrix matrix = c1859d.f4631a;
|
|
this.f4651c.set(matrix);
|
|
this.f4651c.postScale(f, f2);
|
|
float m173e = m173e(matrix);
|
|
if (m173e == 0.0f) {
|
|
return;
|
|
}
|
|
abstractC1861f.m178d(this.f4649a);
|
|
Path path = this.f4649a;
|
|
this.f4650b.reset();
|
|
if (abstractC1861f.mo179c()) {
|
|
this.f4650b.setFillType(abstractC1861f.f4646c == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
|
|
this.f4650b.addPath(path, this.f4651c);
|
|
canvas.clipPath(this.f4650b);
|
|
return;
|
|
}
|
|
C1858c c1858c = (C1858c) abstractC1861f;
|
|
float f3 = c1858c.f4625k;
|
|
if (f3 != 0.0f || c1858c.f4626l != 1.0f) {
|
|
float f4 = c1858c.f4627m;
|
|
float f5 = (f3 + f4) % 1.0f;
|
|
float f6 = (c1858c.f4626l + f4) % 1.0f;
|
|
if (this.f4654f == null) {
|
|
this.f4654f = new PathMeasure();
|
|
}
|
|
this.f4654f.setPath(this.f4649a, false);
|
|
float length = this.f4654f.getLength();
|
|
float f7 = f5 * length;
|
|
float f8 = f6 * length;
|
|
path.reset();
|
|
if (f7 > f8) {
|
|
this.f4654f.getSegment(f7, length, path, true);
|
|
this.f4654f.getSegment(0.0f, f8, path, true);
|
|
} else {
|
|
this.f4654f.getSegment(f7, f8, path, true);
|
|
}
|
|
path.rLineTo(0.0f, 0.0f);
|
|
}
|
|
this.f4650b.addPath(path, this.f4651c);
|
|
if (c1858c.f4622h.m320l()) {
|
|
C1810d c1810d = c1858c.f4622h;
|
|
if (this.f4653e == null) {
|
|
Paint paint = new Paint(1);
|
|
this.f4653e = paint;
|
|
paint.setStyle(Paint.Style.FILL);
|
|
}
|
|
Paint paint2 = this.f4653e;
|
|
if (c1810d.m324h()) {
|
|
Shader m326f = c1810d.m326f();
|
|
m326f.setLocalMatrix(this.f4651c);
|
|
paint2.setShader(m326f);
|
|
paint2.setAlpha(Math.round(c1858c.f4624j * 255.0f));
|
|
} else {
|
|
paint2.setShader(null);
|
|
paint2.setAlpha(255);
|
|
paint2.setColor(C1855l.m200a(c1810d.m327e(), c1858c.f4624j));
|
|
}
|
|
paint2.setColorFilter(colorFilter);
|
|
this.f4650b.setFillType(c1858c.f4646c == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
|
|
canvas.drawPath(this.f4650b, paint2);
|
|
}
|
|
if (c1858c.f4620f.m320l()) {
|
|
C1810d c1810d2 = c1858c.f4620f;
|
|
if (this.f4652d == null) {
|
|
Paint paint3 = new Paint(1);
|
|
this.f4652d = paint3;
|
|
paint3.setStyle(Paint.Style.STROKE);
|
|
}
|
|
Paint paint4 = this.f4652d;
|
|
Paint.Join join = c1858c.f4629o;
|
|
if (join != null) {
|
|
paint4.setStrokeJoin(join);
|
|
}
|
|
Paint.Cap cap = c1858c.f4628n;
|
|
if (cap != null) {
|
|
paint4.setStrokeCap(cap);
|
|
}
|
|
paint4.setStrokeMiter(c1858c.f4630p);
|
|
if (c1810d2.m324h()) {
|
|
Shader m326f2 = c1810d2.m326f();
|
|
m326f2.setLocalMatrix(this.f4651c);
|
|
paint4.setShader(m326f2);
|
|
paint4.setAlpha(Math.round(c1858c.f4623i * 255.0f));
|
|
} else {
|
|
paint4.setShader(null);
|
|
paint4.setAlpha(255);
|
|
paint4.setColor(C1855l.m200a(c1810d2.m327e(), c1858c.f4623i));
|
|
}
|
|
paint4.setColorFilter(colorFilter);
|
|
paint4.setStrokeWidth(c1858c.f4621g * min * m173e);
|
|
canvas.drawPath(this.f4650b, paint4);
|
|
}
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public final float m173e(Matrix matrix) {
|
|
float[] fArr = {0.0f, 1.0f, 1.0f, 0.0f};
|
|
matrix.mapVectors(fArr);
|
|
float m177a = m177a(fArr[0], fArr[1], fArr[2], fArr[3]);
|
|
float max = Math.max((float) Math.hypot(fArr[0], fArr[1]), (float) Math.hypot(fArr[2], fArr[3]));
|
|
if (max > 0.0f) {
|
|
return Math.abs(m177a) / max;
|
|
}
|
|
return 0.0f;
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public boolean m172f() {
|
|
if (this.f4663o == null) {
|
|
this.f4663o = Boolean.valueOf(this.f4656h.mo181a());
|
|
}
|
|
return this.f4663o.booleanValue();
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public boolean m171g(int[] iArr) {
|
|
return this.f4656h.mo180b(iArr);
|
|
}
|
|
|
|
public float getAlpha() {
|
|
return getRootAlpha() / 255.0f;
|
|
}
|
|
|
|
public int getRootAlpha() {
|
|
return this.f4661m;
|
|
}
|
|
|
|
public void setAlpha(float f) {
|
|
setRootAlpha((int) (f * 255.0f));
|
|
}
|
|
|
|
public void setRootAlpha(int i) {
|
|
this.f4661m = i;
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$h */
|
|
/* loaded from: classes.dex */
|
|
public static class C1863h extends Drawable.ConstantState {
|
|
|
|
/* renamed from: a */
|
|
public int f4665a;
|
|
|
|
/* renamed from: b */
|
|
public C1862g f4666b;
|
|
|
|
/* renamed from: c */
|
|
public ColorStateList f4667c;
|
|
|
|
/* renamed from: d */
|
|
public PorterDuff.Mode f4668d;
|
|
|
|
/* renamed from: e */
|
|
public boolean f4669e;
|
|
|
|
/* renamed from: f */
|
|
public Bitmap f4670f;
|
|
|
|
/* renamed from: g */
|
|
public ColorStateList f4671g;
|
|
|
|
/* renamed from: h */
|
|
public PorterDuff.Mode f4672h;
|
|
|
|
/* renamed from: i */
|
|
public int f4673i;
|
|
|
|
/* renamed from: j */
|
|
public boolean f4674j;
|
|
|
|
/* renamed from: k */
|
|
public boolean f4675k;
|
|
|
|
/* renamed from: l */
|
|
public Paint f4676l;
|
|
|
|
public C1863h() {
|
|
this.f4667c = null;
|
|
this.f4668d = C1855l.f4609n;
|
|
this.f4666b = new C1862g();
|
|
}
|
|
|
|
public C1863h(C1863h c1863h) {
|
|
this.f4667c = null;
|
|
this.f4668d = C1855l.f4609n;
|
|
if (c1863h != null) {
|
|
this.f4665a = c1863h.f4665a;
|
|
C1862g c1862g = new C1862g(c1863h.f4666b);
|
|
this.f4666b = c1862g;
|
|
if (c1863h.f4666b.f4653e != null) {
|
|
c1862g.f4653e = new Paint(c1863h.f4666b.f4653e);
|
|
}
|
|
if (c1863h.f4666b.f4652d != null) {
|
|
this.f4666b.f4652d = new Paint(c1863h.f4666b.f4652d);
|
|
}
|
|
this.f4667c = c1863h.f4667c;
|
|
this.f4668d = c1863h.f4668d;
|
|
this.f4669e = c1863h.f4669e;
|
|
}
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public boolean m170a(int i, int i2) {
|
|
return i == this.f4670f.getWidth() && i2 == this.f4670f.getHeight();
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public boolean m169b() {
|
|
return !this.f4675k && this.f4671g == this.f4667c && this.f4672h == this.f4668d && this.f4674j == this.f4669e && this.f4673i == this.f4666b.getRootAlpha();
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public void m168c(int i, int i2) {
|
|
if (this.f4670f == null || !m170a(i, i2)) {
|
|
this.f4670f = Bitmap.createBitmap(i, i2, Bitmap.Config.ARGB_8888);
|
|
this.f4675k = true;
|
|
}
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public void m167d(Canvas canvas, ColorFilter colorFilter, Rect rect) {
|
|
canvas.drawBitmap(this.f4670f, (Rect) null, rect, m166e(colorFilter));
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public Paint m166e(ColorFilter colorFilter) {
|
|
if (m165f() || colorFilter != null) {
|
|
if (this.f4676l == null) {
|
|
Paint paint = new Paint();
|
|
this.f4676l = paint;
|
|
paint.setFilterBitmap(true);
|
|
}
|
|
this.f4676l.setAlpha(this.f4666b.getRootAlpha());
|
|
this.f4676l.setColorFilter(colorFilter);
|
|
return this.f4676l;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public boolean m165f() {
|
|
return this.f4666b.getRootAlpha() < 255;
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public boolean m164g() {
|
|
return this.f4666b.m172f();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public int getChangingConfigurations() {
|
|
return this.f4665a;
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public boolean m163h(int[] iArr) {
|
|
boolean m171g = this.f4666b.m171g(iArr);
|
|
this.f4675k |= m171g;
|
|
return m171g;
|
|
}
|
|
|
|
/* renamed from: i */
|
|
public void m162i() {
|
|
this.f4671g = this.f4667c;
|
|
this.f4672h = this.f4668d;
|
|
this.f4673i = this.f4666b.getRootAlpha();
|
|
this.f4674j = this.f4669e;
|
|
this.f4675k = false;
|
|
}
|
|
|
|
/* renamed from: j */
|
|
public void m161j(int i, int i2) {
|
|
this.f4670f.eraseColor(0);
|
|
this.f4666b.m176b(new Canvas(this.f4670f), i, i2, null);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public Drawable newDrawable() {
|
|
return new C1855l(this);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public Drawable newDrawable(Resources resources) {
|
|
return new C1855l(this);
|
|
}
|
|
}
|
|
|
|
/* renamed from: y0.l$i */
|
|
/* loaded from: classes.dex */
|
|
public static class C1864i extends Drawable.ConstantState {
|
|
|
|
/* renamed from: a */
|
|
public final Drawable.ConstantState f4677a;
|
|
|
|
public C1864i(Drawable.ConstantState constantState) {
|
|
this.f4677a = constantState;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public boolean canApplyTheme() {
|
|
boolean canApplyTheme;
|
|
canApplyTheme = this.f4677a.canApplyTheme();
|
|
return canApplyTheme;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public int getChangingConfigurations() {
|
|
return this.f4677a.getChangingConfigurations();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public Drawable newDrawable() {
|
|
C1855l c1855l = new C1855l();
|
|
c1855l.f4608d = (VectorDrawable) this.f4677a.newDrawable();
|
|
return c1855l;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public Drawable newDrawable(Resources resources) {
|
|
C1855l c1855l = new C1855l();
|
|
c1855l.f4608d = (VectorDrawable) this.f4677a.newDrawable(resources);
|
|
return c1855l;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable.ConstantState
|
|
public Drawable newDrawable(Resources resources, Resources.Theme theme) {
|
|
Drawable newDrawable;
|
|
C1855l c1855l = new C1855l();
|
|
newDrawable = this.f4677a.newDrawable(resources, theme);
|
|
c1855l.f4608d = (VectorDrawable) newDrawable;
|
|
return c1855l;
|
|
}
|
|
}
|
|
|
|
public C1855l() {
|
|
this.f4614i = true;
|
|
this.f4616k = new float[9];
|
|
this.f4617l = new Matrix();
|
|
this.f4618m = new Rect();
|
|
this.f4610e = new C1863h();
|
|
}
|
|
|
|
public C1855l(C1863h c1863h) {
|
|
this.f4614i = true;
|
|
this.f4616k = new float[9];
|
|
this.f4617l = new Matrix();
|
|
this.f4618m = new Rect();
|
|
this.f4610e = c1863h;
|
|
this.f4611f = m191j(this.f4611f, c1863h.f4667c, c1863h.f4668d);
|
|
}
|
|
|
|
/* renamed from: a */
|
|
public static int m200a(int i, float f) {
|
|
return (i & 16777215) | (((int) (Color.alpha(i) * f)) << 24);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static C1855l m199b(Resources resources, int i, Resources.Theme theme) {
|
|
int next;
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
C1855l c1855l = new C1855l();
|
|
c1855l.f4608d = C1821i.m288d(resources, i, theme);
|
|
c1855l.f4615j = new C1864i(c1855l.f4608d.getConstantState());
|
|
return c1855l;
|
|
}
|
|
try {
|
|
XmlResourceParser xml = resources.getXml(i);
|
|
AttributeSet asAttributeSet = Xml.asAttributeSet(xml);
|
|
while (true) {
|
|
next = xml.next();
|
|
if (next == 2 || next == 1) {
|
|
break;
|
|
}
|
|
}
|
|
if (next == 2) {
|
|
return m198c(resources, xml, asAttributeSet, theme);
|
|
}
|
|
throw new XmlPullParserException("No start tag found");
|
|
} catch (IOException | XmlPullParserException e) {
|
|
Log.e("VectorDrawableCompat", "parser error", e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/* renamed from: c */
|
|
public static C1855l m198c(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) {
|
|
C1855l c1855l = new C1855l();
|
|
c1855l.inflate(resources, xmlPullParser, attributeSet, theme);
|
|
return c1855l;
|
|
}
|
|
|
|
/* renamed from: g */
|
|
public static PorterDuff.Mode m194g(int i, PorterDuff.Mode mode) {
|
|
if (i != 3) {
|
|
if (i != 5) {
|
|
if (i != 9) {
|
|
switch (i) {
|
|
case 14:
|
|
return PorterDuff.Mode.MULTIPLY;
|
|
case 15:
|
|
return PorterDuff.Mode.SCREEN;
|
|
case 16:
|
|
return PorterDuff.Mode.ADD;
|
|
default:
|
|
return mode;
|
|
}
|
|
}
|
|
return PorterDuff.Mode.SRC_ATOP;
|
|
}
|
|
return PorterDuff.Mode.SRC_IN;
|
|
}
|
|
return PorterDuff.Mode.SRC_OVER;
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void applyTheme(Resources.Theme theme) {
|
|
super.applyTheme(theme);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean canApplyTheme() {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5097b(drawable);
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void clearColorFilter() {
|
|
super.clearColorFilter();
|
|
}
|
|
|
|
/* renamed from: d */
|
|
public Object m197d(String str) {
|
|
return this.f4610e.f4666b.f4664p.get(str);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void draw(Canvas canvas) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.draw(canvas);
|
|
return;
|
|
}
|
|
copyBounds(this.f4618m);
|
|
if (this.f4618m.width() <= 0 || this.f4618m.height() <= 0) {
|
|
return;
|
|
}
|
|
ColorFilter colorFilter = this.f4612g;
|
|
if (colorFilter == null) {
|
|
colorFilter = this.f4611f;
|
|
}
|
|
canvas.getMatrix(this.f4617l);
|
|
this.f4617l.getValues(this.f4616k);
|
|
float abs = Math.abs(this.f4616k[0]);
|
|
float abs2 = Math.abs(this.f4616k[4]);
|
|
float abs3 = Math.abs(this.f4616k[1]);
|
|
float abs4 = Math.abs(this.f4616k[3]);
|
|
if (abs3 != 0.0f || abs4 != 0.0f) {
|
|
abs = 1.0f;
|
|
abs2 = 1.0f;
|
|
}
|
|
int min = Math.min(2048, (int) (this.f4618m.width() * abs));
|
|
int min2 = Math.min(2048, (int) (this.f4618m.height() * abs2));
|
|
if (min <= 0 || min2 <= 0) {
|
|
return;
|
|
}
|
|
int save = canvas.save();
|
|
Rect rect = this.f4618m;
|
|
canvas.translate(rect.left, rect.top);
|
|
if (m195f()) {
|
|
canvas.translate(this.f4618m.width(), 0.0f);
|
|
canvas.scale(-1.0f, 1.0f);
|
|
}
|
|
this.f4618m.offsetTo(0, 0);
|
|
this.f4610e.m168c(min, min2);
|
|
if (!this.f4614i) {
|
|
this.f4610e.m161j(min, min2);
|
|
} else if (!this.f4610e.m169b()) {
|
|
this.f4610e.m161j(min, min2);
|
|
this.f4610e.m162i();
|
|
}
|
|
this.f4610e.m167d(canvas, colorFilter, this.f4618m);
|
|
canvas.restoreToCount(save);
|
|
}
|
|
|
|
/* renamed from: e */
|
|
public final void m196e(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) {
|
|
int i;
|
|
int i2;
|
|
C1863h c1863h = this.f4610e;
|
|
C1862g c1862g = c1863h.f4666b;
|
|
ArrayDeque arrayDeque = new ArrayDeque();
|
|
arrayDeque.push(c1862g.f4656h);
|
|
int eventType = xmlPullParser.getEventType();
|
|
int depth = xmlPullParser.getDepth() + 1;
|
|
boolean z = true;
|
|
while (eventType != 1 && (xmlPullParser.getDepth() >= depth || eventType != 3)) {
|
|
if (eventType == 2) {
|
|
String name = xmlPullParser.getName();
|
|
C1859d c1859d = (C1859d) arrayDeque.peek();
|
|
if ("path".equals(name)) {
|
|
C1858c c1858c = new C1858c();
|
|
c1858c.m186g(resources, attributeSet, theme, xmlPullParser);
|
|
c1859d.f4632b.add(c1858c);
|
|
if (c1858c.getPathName() != null) {
|
|
c1862g.f4664p.put(c1858c.getPathName(), c1858c);
|
|
}
|
|
c1863h.f4665a = c1858c.f4647d | c1863h.f4665a;
|
|
z = false;
|
|
} else {
|
|
if ("clip-path".equals(name)) {
|
|
C1857b c1857b = new C1857b();
|
|
c1857b.m190e(resources, attributeSet, theme, xmlPullParser);
|
|
c1859d.f4632b.add(c1857b);
|
|
if (c1857b.getPathName() != null) {
|
|
c1862g.f4664p.put(c1857b.getPathName(), c1857b);
|
|
}
|
|
i = c1863h.f4665a;
|
|
i2 = c1857b.f4647d;
|
|
} else if ("group".equals(name)) {
|
|
C1859d c1859d2 = new C1859d();
|
|
c1859d2.m184c(resources, attributeSet, theme, xmlPullParser);
|
|
c1859d.f4632b.add(c1859d2);
|
|
arrayDeque.push(c1859d2);
|
|
if (c1859d2.getGroupName() != null) {
|
|
c1862g.f4664p.put(c1859d2.getGroupName(), c1859d2);
|
|
}
|
|
i = c1863h.f4665a;
|
|
i2 = c1859d2.f4641k;
|
|
}
|
|
c1863h.f4665a = i2 | i;
|
|
}
|
|
} else if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
|
|
arrayDeque.pop();
|
|
}
|
|
eventType = xmlPullParser.next();
|
|
}
|
|
if (z) {
|
|
throw new XmlPullParserException("no path defined");
|
|
}
|
|
}
|
|
|
|
/* renamed from: f */
|
|
public final boolean m195f() {
|
|
return Build.VERSION.SDK_INT >= 17 && isAutoMirrored() && C0012f.m5094e(this) == 1;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getAlpha() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? C0012f.m5096c(drawable) : this.f4610e.f4666b.getRootAlpha();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getChangingConfigurations() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? drawable.getChangingConfigurations() : super.getChangingConfigurations() | this.f4610e.getChangingConfigurations();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public ColorFilter getColorFilter() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? C0012f.m5095d(drawable) : this.f4612g;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public Drawable.ConstantState getConstantState() {
|
|
if (this.f4608d == null || Build.VERSION.SDK_INT < 24) {
|
|
this.f4610e.f4665a = getChangingConfigurations();
|
|
return this.f4610e;
|
|
}
|
|
return new C1864i(this.f4608d.getConstantState());
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ Drawable getCurrent() {
|
|
return super.getCurrent();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getIntrinsicHeight() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? drawable.getIntrinsicHeight() : (int) this.f4610e.f4666b.f4658j;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getIntrinsicWidth() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? drawable.getIntrinsicWidth() : (int) this.f4610e.f4666b.f4657i;
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ int getMinimumHeight() {
|
|
return super.getMinimumHeight();
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ int getMinimumWidth() {
|
|
return super.getMinimumWidth();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public int getOpacity() {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
return drawable.getOpacity();
|
|
}
|
|
return -3;
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ boolean getPadding(Rect rect) {
|
|
return super.getPadding(rect);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ int[] getState() {
|
|
return super.getState();
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ Region getTransparentRegion() {
|
|
return super.getTransparentRegion();
|
|
}
|
|
|
|
/* renamed from: h */
|
|
public void m193h(boolean z) {
|
|
this.f4614i = z;
|
|
}
|
|
|
|
/* renamed from: i */
|
|
public final void m192i(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme) {
|
|
C1863h c1863h = this.f4610e;
|
|
C1862g c1862g = c1863h.f4666b;
|
|
c1863h.f4668d = m194g(C1838q.m252g(typedArray, xmlPullParser, "tintMode", 6, -1), PorterDuff.Mode.SRC_IN);
|
|
ColorStateList m256c = C1838q.m256c(typedArray, xmlPullParser, theme, "tint", 1);
|
|
if (m256c != null) {
|
|
c1863h.f4667c = m256c;
|
|
}
|
|
c1863h.f4669e = C1838q.m258a(typedArray, xmlPullParser, "autoMirrored", 5, c1863h.f4669e);
|
|
c1862g.f4659k = C1838q.m253f(typedArray, xmlPullParser, "viewportWidth", 7, c1862g.f4659k);
|
|
float m253f = C1838q.m253f(typedArray, xmlPullParser, "viewportHeight", 8, c1862g.f4660l);
|
|
c1862g.f4660l = m253f;
|
|
if (c1862g.f4659k <= 0.0f) {
|
|
throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
|
|
} else if (m253f <= 0.0f) {
|
|
throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
|
|
} else {
|
|
c1862g.f4657i = typedArray.getDimension(3, c1862g.f4657i);
|
|
float dimension = typedArray.getDimension(2, c1862g.f4658j);
|
|
c1862g.f4658j = dimension;
|
|
if (c1862g.f4657i <= 0.0f) {
|
|
throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires width > 0");
|
|
} else if (dimension <= 0.0f) {
|
|
throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires height > 0");
|
|
} else {
|
|
c1862g.setAlpha(C1838q.m253f(typedArray, xmlPullParser, "alpha", 4, c1862g.getAlpha()));
|
|
String string = typedArray.getString(0);
|
|
if (string != null) {
|
|
c1862g.f4662n = string;
|
|
c1862g.f4664p.put(string, c1862g);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.inflate(resources, xmlPullParser, attributeSet);
|
|
} else {
|
|
inflate(resources, xmlPullParser, attributeSet, null);
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5093f(drawable, resources, xmlPullParser, attributeSet, theme);
|
|
return;
|
|
}
|
|
C1863h c1863h = this.f4610e;
|
|
c1863h.f4666b = new C1862g();
|
|
TypedArray m248k = C1838q.m248k(resources, theme, attributeSet, C1840a.f4579a);
|
|
m192i(m248k, xmlPullParser, theme);
|
|
m248k.recycle();
|
|
c1863h.f4665a = getChangingConfigurations();
|
|
c1863h.f4675k = true;
|
|
m196e(resources, xmlPullParser, attributeSet, theme);
|
|
this.f4611f = m191j(this.f4611f, c1863h.f4667c, c1863h.f4668d);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void invalidateSelf() {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.invalidateSelf();
|
|
} else {
|
|
super.invalidateSelf();
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean isAutoMirrored() {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? C0012f.m5092g(drawable) : this.f4610e.f4669e;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean isStateful() {
|
|
C1863h c1863h;
|
|
ColorStateList colorStateList;
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? drawable.isStateful() : super.isStateful() || ((c1863h = this.f4610e) != null && (c1863h.m164g() || ((colorStateList = this.f4610e.f4667c) != null && colorStateList.isStateful())));
|
|
}
|
|
|
|
/* renamed from: j */
|
|
public PorterDuffColorFilter m191j(PorterDuffColorFilter porterDuffColorFilter, ColorStateList colorStateList, PorterDuff.Mode mode) {
|
|
if (colorStateList == null || mode == null) {
|
|
return null;
|
|
}
|
|
return new PorterDuffColorFilter(colorStateList.getColorForState(getState(), 0), mode);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void jumpToCurrentState() {
|
|
super.jumpToCurrentState();
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public Drawable mutate() {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.mutate();
|
|
return this;
|
|
}
|
|
if (!this.f4613h && super.mutate() == this) {
|
|
this.f4610e = new C1863h(this.f4610e);
|
|
this.f4613h = true;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void onBoundsChange(Rect rect) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.setBounds(rect);
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean onStateChange(int[] iArr) {
|
|
boolean z;
|
|
PorterDuff.Mode mode;
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
return drawable.setState(iArr);
|
|
}
|
|
C1863h c1863h = this.f4610e;
|
|
ColorStateList colorStateList = c1863h.f4667c;
|
|
if (colorStateList == null || (mode = c1863h.f4668d) == null) {
|
|
z = false;
|
|
} else {
|
|
this.f4611f = m191j(this.f4611f, colorStateList, mode);
|
|
invalidateSelf();
|
|
z = true;
|
|
}
|
|
if (c1863h.m164g() && c1863h.m163h(iArr)) {
|
|
invalidateSelf();
|
|
return true;
|
|
}
|
|
return z;
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void scheduleSelf(Runnable runnable, long j) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.scheduleSelf(runnable, j);
|
|
} else {
|
|
super.scheduleSelf(runnable, j);
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void setAlpha(int i) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.setAlpha(i);
|
|
} else if (this.f4610e.f4666b.getRootAlpha() != i) {
|
|
this.f4610e.f4666b.setRootAlpha(i);
|
|
invalidateSelf();
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void setAutoMirrored(boolean z) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5090i(drawable, z);
|
|
} else {
|
|
this.f4610e.f4669e = z;
|
|
}
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void setChangingConfigurations(int i) {
|
|
super.setChangingConfigurations(i);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void setColorFilter(int i, PorterDuff.Mode mode) {
|
|
super.setColorFilter(i, mode);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void setColorFilter(ColorFilter colorFilter) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.setColorFilter(colorFilter);
|
|
return;
|
|
}
|
|
this.f4612g = colorFilter;
|
|
invalidateSelf();
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void setFilterBitmap(boolean z) {
|
|
super.setFilterBitmap(z);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void setHotspot(float f, float f2) {
|
|
super.setHotspot(f, f2);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ void setHotspotBounds(int i, int i2, int i3, int i4) {
|
|
super.setHotspotBounds(i, i2, i3, i4);
|
|
}
|
|
|
|
@Override // p072y0.AbstractC1854k, android.graphics.drawable.Drawable
|
|
public /* bridge */ /* synthetic */ boolean setState(int[] iArr) {
|
|
return super.setState(iArr);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable, p001a0.InterfaceC0009d0
|
|
public void setTint(int i) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5086m(drawable, i);
|
|
} else {
|
|
setTintList(ColorStateList.valueOf(i));
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable, p001a0.InterfaceC0009d0
|
|
public void setTintList(ColorStateList colorStateList) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5085n(drawable, colorStateList);
|
|
return;
|
|
}
|
|
C1863h c1863h = this.f4610e;
|
|
if (c1863h.f4667c != colorStateList) {
|
|
c1863h.f4667c = colorStateList;
|
|
this.f4611f = m191j(this.f4611f, colorStateList, c1863h.f4668d);
|
|
invalidateSelf();
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable, p001a0.InterfaceC0009d0
|
|
public void setTintMode(PorterDuff.Mode mode) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
C0012f.m5084o(drawable, mode);
|
|
return;
|
|
}
|
|
C1863h c1863h = this.f4610e;
|
|
if (c1863h.f4668d != mode) {
|
|
c1863h.f4668d = mode;
|
|
this.f4611f = m191j(this.f4611f, c1863h.f4667c, mode);
|
|
invalidateSelf();
|
|
}
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public boolean setVisible(boolean z, boolean z2) {
|
|
Drawable drawable = this.f4608d;
|
|
return drawable != null ? drawable.setVisible(z, z2) : super.setVisible(z, z2);
|
|
}
|
|
|
|
@Override // android.graphics.drawable.Drawable
|
|
public void unscheduleSelf(Runnable runnable) {
|
|
Drawable drawable = this.f4608d;
|
|
if (drawable != null) {
|
|
drawable.unscheduleSelf(runnable);
|
|
} else {
|
|
super.unscheduleSelf(runnable);
|
|
}
|
|
}
|
|
} |