mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
80 lines
2.9 KiB
Java
80 lines
2.9 KiB
Java
|
package androidx.constraintlayout.motion.widget;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.util.AttributeSet;
|
||
|
import androidx.constraintlayout.widget.ConstraintAttribute;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.HashSet;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class Key {
|
||
|
static final String ALPHA = "alpha";
|
||
|
static final String CUSTOM = "CUSTOM";
|
||
|
static final String ELEVATION = "elevation";
|
||
|
static final String PIVOT_X = "transformPivotX";
|
||
|
static final String PIVOT_Y = "transformPivotY";
|
||
|
static final String PROGRESS = "progress";
|
||
|
static final String ROTATION = "rotation";
|
||
|
static final String ROTATION_X = "rotationX";
|
||
|
static final String ROTATION_Y = "rotationY";
|
||
|
static final String SCALE_X = "scaleX";
|
||
|
static final String SCALE_Y = "scaleY";
|
||
|
static final String TRANSITION_PATH_ROTATE = "transitionPathRotate";
|
||
|
static final String TRANSLATION_X = "translationX";
|
||
|
static final String TRANSLATION_Y = "translationY";
|
||
|
static final String TRANSLATION_Z = "translationZ";
|
||
|
public static int UNSET = -1;
|
||
|
static final String WAVE_OFFSET = "waveOffset";
|
||
|
static final String WAVE_PERIOD = "wavePeriod";
|
||
|
static final String WAVE_VARIES_BY = "waveVariesBy";
|
||
|
HashMap<String, ConstraintAttribute> mCustomConstraints;
|
||
|
int mFramePosition;
|
||
|
int mTargetId;
|
||
|
String mTargetString;
|
||
|
protected int mType;
|
||
|
|
||
|
public abstract void addValues(HashMap<String, SplineSet> hashMap);
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public abstract void getAttributeNames(HashSet<String> hashSet);
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public abstract void load(Context context, AttributeSet attributeSet);
|
||
|
|
||
|
public void setInterpolation(HashMap<String, Integer> hashMap) {
|
||
|
}
|
||
|
|
||
|
public abstract void setValue(String str, Object obj);
|
||
|
|
||
|
public Key() {
|
||
|
int i = UNSET;
|
||
|
this.mFramePosition = i;
|
||
|
this.mTargetId = i;
|
||
|
this.mTargetString = null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public boolean matches(String str) {
|
||
|
String str2 = this.mTargetString;
|
||
|
if (str2 == null || str == null) {
|
||
|
return false;
|
||
|
}
|
||
|
return str.matches(str2);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public float toFloat(Object obj) {
|
||
|
return obj instanceof Float ? ((Float) obj).floatValue() : Float.parseFloat(obj.toString());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public int toInt(Object obj) {
|
||
|
return obj instanceof Integer ? ((Integer) obj).intValue() : Integer.parseInt(obj.toString());
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public boolean toBoolean(Object obj) {
|
||
|
return obj instanceof Boolean ? ((Boolean) obj).booleanValue() : Boolean.parseBoolean(obj.toString());
|
||
|
}
|
||
|
}
|