161 lines
5.6 KiB
Java
161 lines
5.6 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.util.SparseIntArray;
|
|
import androidx.constraintlayout.motion.widget.MotionLayout;
|
|
import java.util.HashMap;
|
|
import o.C3345avm;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class LHE extends SqJ {
|
|
String l = null;
|
|
int h = -1;
|
|
int j = 0;
|
|
float k = Float.NaN;
|
|
float f = Float.NaN;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
float f8248o = Float.NaN;
|
|
float m = Float.NaN;
|
|
float g = Float.NaN;
|
|
float i = Float.NaN;
|
|
int n = 0;
|
|
private float t = Float.NaN;
|
|
private float p = Float.NaN;
|
|
|
|
@Override // o.AbstractC0558JiG
|
|
public final void b(HashMap<String, YpW> hashMap) {
|
|
}
|
|
|
|
public LHE() {
|
|
this.c = 2;
|
|
}
|
|
|
|
@Override // o.AbstractC0558JiG
|
|
public final void kC_(Context context, AttributeSet attributeSet) {
|
|
LWm.ky_(this, context.obtainStyledAttributes(attributeSet, C3345avm.IeS.KeyPosition));
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static class LWm {
|
|
private static SparseIntArray d;
|
|
|
|
static {
|
|
SparseIntArray sparseIntArray = new SparseIntArray();
|
|
d = sparseIntArray;
|
|
sparseIntArray.append(C3345avm.IeS.KeyPosition_motionTarget, 1);
|
|
d.append(C3345avm.IeS.KeyPosition_framePosition, 2);
|
|
d.append(C3345avm.IeS.KeyPosition_transitionEasing, 3);
|
|
d.append(C3345avm.IeS.KeyPosition_curveFit, 4);
|
|
d.append(C3345avm.IeS.KeyPosition_drawPath, 5);
|
|
d.append(C3345avm.IeS.KeyPosition_percentX, 6);
|
|
d.append(C3345avm.IeS.KeyPosition_percentY, 7);
|
|
d.append(C3345avm.IeS.KeyPosition_keyPositionType, 9);
|
|
d.append(C3345avm.IeS.KeyPosition_sizePercent, 8);
|
|
d.append(C3345avm.IeS.KeyPosition_percentWidth, 11);
|
|
d.append(C3345avm.IeS.KeyPosition_percentHeight, 12);
|
|
d.append(C3345avm.IeS.KeyPosition_pathMotionArc, 10);
|
|
}
|
|
|
|
static /* synthetic */ void ky_(LHE lhe, TypedArray typedArray) {
|
|
int indexCount = typedArray.getIndexCount();
|
|
for (int i = 0; i < indexCount; i++) {
|
|
int index = typedArray.getIndex(i);
|
|
switch (d.get(index)) {
|
|
case 1:
|
|
if (MotionLayout.b) {
|
|
lhe.a = typedArray.getResourceId(index, lhe.a);
|
|
if (lhe.a == -1) {
|
|
lhe.b = typedArray.getString(index);
|
|
break;
|
|
} else {
|
|
break;
|
|
}
|
|
} else if (typedArray.peekValue(index).type == 3) {
|
|
lhe.b = typedArray.getString(index);
|
|
break;
|
|
} else {
|
|
lhe.a = typedArray.getResourceId(index, lhe.a);
|
|
break;
|
|
}
|
|
case 2:
|
|
lhe.e = typedArray.getInt(index, lhe.e);
|
|
break;
|
|
case 3:
|
|
if (typedArray.peekValue(index).type == 3) {
|
|
lhe.l = typedArray.getString(index);
|
|
break;
|
|
} else {
|
|
lhe.l = Yrp.a[typedArray.getInteger(index, 0)];
|
|
break;
|
|
}
|
|
case 4:
|
|
lhe.q = typedArray.getInteger(index, lhe.q);
|
|
break;
|
|
case 5:
|
|
lhe.j = typedArray.getInt(index, lhe.j);
|
|
break;
|
|
case 6:
|
|
lhe.f8248o = typedArray.getFloat(index, lhe.f8248o);
|
|
break;
|
|
case 7:
|
|
lhe.m = typedArray.getFloat(index, lhe.m);
|
|
break;
|
|
case 8:
|
|
float f = typedArray.getFloat(index, lhe.f);
|
|
lhe.k = f;
|
|
lhe.f = f;
|
|
break;
|
|
case 9:
|
|
lhe.n = typedArray.getInt(index, lhe.n);
|
|
break;
|
|
case 10:
|
|
lhe.h = typedArray.getInt(index, lhe.h);
|
|
break;
|
|
case 11:
|
|
lhe.k = typedArray.getFloat(index, lhe.k);
|
|
break;
|
|
case 12:
|
|
lhe.f = typedArray.getFloat(index, lhe.f);
|
|
break;
|
|
default:
|
|
d.get(index);
|
|
break;
|
|
}
|
|
}
|
|
int i2 = lhe.e;
|
|
}
|
|
}
|
|
|
|
@Override // o.AbstractC0558JiG
|
|
public final AbstractC0558JiG b(AbstractC0558JiG abstractC0558JiG) {
|
|
super.b(abstractC0558JiG);
|
|
LHE lhe = (LHE) abstractC0558JiG;
|
|
this.l = lhe.l;
|
|
this.h = lhe.h;
|
|
this.j = lhe.j;
|
|
this.k = lhe.k;
|
|
this.f = Float.NaN;
|
|
this.f8248o = lhe.f8248o;
|
|
this.m = lhe.m;
|
|
this.g = lhe.g;
|
|
this.i = lhe.i;
|
|
this.t = lhe.t;
|
|
this.p = lhe.p;
|
|
return this;
|
|
}
|
|
|
|
@Override // o.AbstractC0558JiG
|
|
/* renamed from: d */
|
|
public final AbstractC0558JiG clone() {
|
|
return new LHE().b(this);
|
|
}
|
|
|
|
@Override // o.AbstractC0558JiG
|
|
public /* synthetic */ Object clone() throws CloneNotSupportedException {
|
|
return new LHE().b(this);
|
|
}
|
|
}
|