2020-11-12 02:11:44 +00:00
|
|
|
.class public Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ConstraintAttribute.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public static final TAG:Ljava/lang/String; = "TransitionLayout"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public mBooleanValue:Z
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mColorValue:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mFloatValue:F
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mIntegerValue:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
.field public mName:Ljava/lang/String;
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mStringValue:Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.field public mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroidx/constraintlayout/widget/ConstraintAttribute;Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/constraintlayout/widget/ConstraintAttribute;->setValue(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p3}, Landroidx/constraintlayout/widget/ConstraintAttribute;->setValue(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
.method public static clamp(I)I
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
shr-int/lit8 v0, p0, 0x1f
|
|
|
|
|
|
|
|
not-int v0, v0
|
|
|
|
|
|
|
|
and-int/2addr p0, v0
|
|
|
|
|
|
|
|
add-int/lit16 p0, p0, -0xff
|
|
|
|
|
|
|
|
shr-int/lit8 v0, p0, 0x1f
|
|
|
|
|
|
|
|
and-int/2addr p0, v0
|
|
|
|
|
|
|
|
add-int/lit16 p0, p0, 0xff
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static extractAttributes(Ljava/util/HashMap;Landroid/view/View;)Ljava/util/HashMap;
|
|
|
|
.locals 8
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Landroidx/constraintlayout/widget/ConstraintAttribute;",
|
|
|
|
">;",
|
|
|
|
"Landroid/view/View;",
|
|
|
|
")",
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Landroidx/constraintlayout/widget/ConstraintAttribute;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
const-string v5, "BackgroundColor"
|
|
|
|
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
check-cast v5, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Landroid/graphics/drawable/ColorDrawable;->getColor()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-instance v6, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
|
|
|
|
invoke-direct {v6, v4, v5}, Landroidx/constraintlayout/widget/ConstraintAttribute;-><init>(Landroidx/constraintlayout/widget/ConstraintAttribute;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v6, "getMap"
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
new-array v7, v6, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {v5, p1, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-instance v6, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
|
|
|
|
invoke-direct {v6, v4, v5}, Landroidx/constraintlayout/widget/ConstraintAttribute;-><init>(Landroidx/constraintlayout/widget/ConstraintAttribute;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/reflect/InvocationTargetException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/IllegalAccessException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/NoSuchMethodException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static parse(Landroid/content/Context;Lorg/xmlpull/v1/XmlPullParser;Ljava/util/HashMap;)V
|
|
|
|
.locals 11
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/content/Context;",
|
|
|
|
"Lorg/xmlpull/v1/XmlPullParser;",
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Landroidx/constraintlayout/widget/ConstraintAttribute;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget-object v0, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute:[I
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
move-object v3, v1
|
|
|
|
|
|
|
|
move-object v4, v3
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v5, v0, :cond_9
|
|
|
|
|
|
|
|
invoke-virtual {p1, v5}, Landroid/content/res/TypedArray;->getIndex(I)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_attributeName:I
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-lez v6, :cond_8
|
|
|
|
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-static {v7}, Ljava/lang/Character;->toUpperCase(C)C
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v8}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customBoolean:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->BOOLEAN_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customColorValue:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_2
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->COLOR_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v2}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
move-object v10, v4
|
|
|
|
|
|
|
|
move-object v4, v3
|
|
|
|
|
|
|
|
move-object v3, v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customColorDrawableValue:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_3
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->COLOR_DRAWABLE_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v2}, Landroid/content/res/TypedArray;->getColor(II)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customPixelDimension:I
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_4
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->DIMENSION_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v9}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-static {v8, v4, v6}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customDimension:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_5
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->DIMENSION_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v9}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customFloatValue:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_6
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->FLOAT_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
const/high16 v4, 0x7fc00000 # Float.NaN
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customIntegerValue:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_7
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->INT_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6, v4}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
sget v7, Landroidx/constraintlayout/widget/R$styleable;->CustomAttribute_customStringValue:I
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_8
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->STRING_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v6}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_2
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
|
|
|
|
new-instance p0, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
|
|
|
|
invoke-direct {p0, v1, v4, v3}, Landroidx/constraintlayout/widget/ConstraintAttribute;-><init>(Ljava/lang/String;Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1, p0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static setAttributes(Landroid/view/View;Ljava/util/HashMap;)V
|
|
|
|
.locals 12
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/view/View;",
|
|
|
|
"Ljava/util/HashMap<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Landroidx/constraintlayout/widget/ConstraintAttribute;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-string v0, "\" not found on "
|
|
|
|
|
|
|
|
const-string v1, " Custom Attribute \""
|
|
|
|
|
|
|
|
const-string v2, "TransitionLayout"
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
|
|
|
|
const-string v7, "set"
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v7, v5}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v8, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x1
|
|
|
|
|
|
|
|
packed-switch v8, :pswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v11, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v11, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-boolean v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v11, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mStringValue:Ljava/lang/String;
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v11, Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-instance v11, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
|
|
|
|
invoke-direct {v11}, Landroid/graphics/drawable/ColorDrawable;-><init>()V
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
invoke-virtual {v11, v6}, Landroid/graphics/drawable/ColorDrawable;->setColor(I)V
|
|
|
|
|
|
|
|
new-array v6, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aput-object v11, v6, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v11, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v11, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:pswitch_6
|
|
|
|
new-array v8, v10, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v11, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v11, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v3, v7, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
aput-object v6, v10, v9
|
|
|
|
|
|
|
|
invoke-virtual {v8, p0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v6
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v1, v5, v0}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/reflect/InvocationTargetException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v6
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v1, v5, v0}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/IllegalAccessException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/NoSuchMethodException;->getMessage()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-static {v2, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
new-instance v6, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
new-instance v5, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v6, " must have a method "
|
|
|
|
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
goto/16 :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_6
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public diff(Landroidx/constraintlayout/widget/ConstraintAttribute;)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
iget-object v2, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
cmpl-float p1, v1, p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
iget-boolean p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
cmpl-float p1, v1, p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_5
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
if-ne v1, p1, :cond_6
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getType()Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getValueToInterpolate()F
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
|
|
|
|
const/high16 v0, 0x7fc00000 # Float.NaN
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v1, "Cannot interpolate String"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v1, "Color does not have a single color to interpolate"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getValuesToInterpolate([F)V
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
aput v0, p1, v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
aput v0, p1, v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "Color does not have a single color to interpolate"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
aput v0, p1, v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
aput v0, p1, v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
shr-int/lit8 v2, v0, 0x18
|
|
|
|
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
|
|
|
|
shr-int/lit8 v3, v0, 0x10
|
|
|
|
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
|
|
|
|
shr-int/lit8 v4, v0, 0x8
|
|
|
|
|
|
|
|
and-int/lit16 v4, v4, 0xff
|
|
|
|
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
|
|
|
|
int-to-float v3, v3
|
|
|
|
|
|
|
|
const/high16 v5, 0x437f0000 # 255.0f
|
|
|
|
|
|
|
|
div-float/2addr v3, v5
|
|
|
|
|
|
|
|
float-to-double v6, v3
|
|
|
|
|
|
|
|
const-wide v8, 0x400199999999999aL # 2.2
|
|
|
|
|
|
|
|
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
double-to-float v3, v6
|
|
|
|
|
|
|
|
int-to-float v4, v4
|
|
|
|
|
|
|
|
div-float/2addr v4, v5
|
|
|
|
|
|
|
|
float-to-double v6, v4
|
|
|
|
|
|
|
|
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
double-to-float v4, v6
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
div-float/2addr v0, v5
|
|
|
|
|
|
|
|
float-to-double v6, v0
|
|
|
|
|
|
|
|
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
double-to-float v0, v6
|
|
|
|
|
|
|
|
aput v3, p1, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
aput v4, p1, v1
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
aput v0, p1, v1
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
int-to-float v1, v2
|
|
|
|
|
|
|
|
div-float/2addr v1, v5
|
|
|
|
|
|
|
|
aput v1, p1, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public noOfInterpValues()I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x4
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setColorValue(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setFloatValue(F)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setIntValue(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setInterpolatedValue(Landroid/view/View;[F)V
|
|
|
|
.locals 16
|
|
|
|
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
|
|
|
|
const-string v3, "\""
|
|
|
|
|
|
|
|
const-string v4, "on View \""
|
|
|
|
|
|
|
|
const-string v5, "TransitionLayout"
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v6, "set"
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v6}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
iget-object v7, v1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v7, v1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
const/4 v8, 0x3
|
|
|
|
|
|
|
|
const/4 v9, 0x2
|
|
|
|
|
|
|
|
const-wide v10, 0x3fdd1745d1745d17L # 0.45454545454545453
|
|
|
|
|
|
|
|
const/high16 v12, 0x437f0000 # 255.0f
|
|
|
|
|
|
|
|
const/4 v13, 0x1
|
|
|
|
|
|
|
|
const/4 v14, 0x0
|
|
|
|
|
|
|
|
packed-switch v7, :pswitch_data_0
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
new-array v7, v13, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v8, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-array v7, v13, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aget v8, p2, v14
|
|
|
|
|
|
|
|
invoke-static {v8}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
new-array v7, v13, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v8, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-array v7, v13, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aget v8, p2, v14
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f000000 # 0.5f
|
|
|
|
|
|
|
|
cmpl-float v8, v8, v9
|
|
|
|
|
|
|
|
if-lez v8, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-static {v13}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
new-instance v7, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string/jumbo v8, "unable to interpolate strings "
|
|
|
|
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v8, v1, Landroidx/constraintlayout/widget/ConstraintAttribute;->mName:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
invoke-direct {v0, v7}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
new-array v7, v13, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
const-class v15, Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
aput-object v15, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget v7, p2, v14
|
|
|
|
|
|
|
|
float-to-double v14, v7
|
|
|
|
|
|
|
|
invoke-static {v14, v15, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v14
|
|
|
|
|
|
|
|
double-to-float v7, v14
|
|
|
|
|
|
|
|
mul-float v7, v7, v12
|
|
|
|
|
|
|
|
float-to-int v7, v7
|
|
|
|
|
|
|
|
invoke-static {v7}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
aget v13, p2, v13
|
|
|
|
|
|
|
|
float-to-double v13, v13
|
|
|
|
|
|
|
|
invoke-static {v13, v14, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v13
|
|
|
|
|
|
|
|
double-to-float v13, v13
|
|
|
|
|
|
|
|
mul-float v13, v13, v12
|
|
|
|
|
|
|
|
float-to-int v13, v13
|
|
|
|
|
|
|
|
invoke-static {v13}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v13
|
|
|
|
|
|
|
|
aget v9, p2, v9
|
|
|
|
|
|
|
|
float-to-double v14, v9
|
|
|
|
|
|
|
|
invoke-static {v14, v15, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v9
|
|
|
|
|
|
|
|
double-to-float v9, v9
|
|
|
|
|
|
|
|
mul-float v9, v9, v12
|
|
|
|
|
|
|
|
float-to-int v9, v9
|
|
|
|
|
|
|
|
invoke-static {v9}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
aget v8, p2, v8
|
|
|
|
|
|
|
|
mul-float v8, v8, v12
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
invoke-static {v8}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
shl-int/lit8 v8, v8, 0x18
|
|
|
|
|
|
|
|
shl-int/lit8 v7, v7, 0x10
|
|
|
|
|
|
|
|
or-int/2addr v7, v8
|
|
|
|
|
|
|
|
shl-int/lit8 v8, v13, 0x8
|
|
|
|
|
|
|
|
or-int/2addr v7, v8
|
|
|
|
|
|
|
|
or-int/2addr v7, v9
|
|
|
|
|
|
|
|
new-instance v8, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
|
|
|
|
invoke-direct {v8}, Landroid/graphics/drawable/ColorDrawable;-><init>()V
|
|
|
|
|
|
|
|
invoke-virtual {v8, v7}, Landroid/graphics/drawable/ColorDrawable;->setColor(I)V
|
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
new-array v7, v7, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
aput-object v8, v7, v9
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
new-array v7, v7, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v8, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
const/4 v13, 0x0
|
|
|
|
|
|
|
|
aput-object v8, v7, v13
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget v7, p2, v13
|
|
|
|
|
|
|
|
float-to-double v7, v7
|
|
|
|
|
|
|
|
invoke-static {v7, v8, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v7
|
|
|
|
|
|
|
|
double-to-float v7, v7
|
|
|
|
|
|
|
|
mul-float v7, v7, v12
|
|
|
|
|
|
|
|
float-to-int v7, v7
|
|
|
|
|
|
|
|
invoke-static {v7}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
aget v8, p2, v8
|
|
|
|
|
|
|
|
float-to-double v13, v8
|
|
|
|
|
|
|
|
invoke-static {v13, v14, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v13
|
|
|
|
|
|
|
|
double-to-float v8, v13
|
|
|
|
|
|
|
|
mul-float v8, v8, v12
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
invoke-static {v8}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
aget v9, p2, v9
|
|
|
|
|
|
|
|
float-to-double v13, v9
|
|
|
|
|
|
|
|
invoke-static {v13, v14, v10, v11}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
|
|
|
|
move-result-wide v9
|
|
|
|
|
|
|
|
double-to-float v9, v9
|
|
|
|
|
|
|
|
mul-float v9, v9, v12
|
|
|
|
|
|
|
|
float-to-int v9, v9
|
|
|
|
|
|
|
|
invoke-static {v9}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
const/4 v10, 0x3
|
|
|
|
|
|
|
|
aget v10, p2, v10
|
|
|
|
|
|
|
|
mul-float v10, v10, v12
|
|
|
|
|
|
|
|
float-to-int v10, v10
|
|
|
|
|
|
|
|
invoke-static {v10}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
shl-int/lit8 v10, v10, 0x18
|
|
|
|
|
|
|
|
shl-int/lit8 v7, v7, 0x10
|
|
|
|
|
|
|
|
or-int/2addr v7, v10
|
|
|
|
|
|
|
|
shl-int/lit8 v8, v8, 0x8
|
|
|
|
|
|
|
|
or-int/2addr v7, v8
|
|
|
|
|
|
|
|
or-int/2addr v7, v9
|
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
new-array v8, v8, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
aput-object v7, v8, v9
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
new-array v7, v13, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v8, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-array v7, v13, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aget v8, p2, v14
|
|
|
|
|
|
|
|
invoke-static {v8}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:pswitch_6
|
|
|
|
new-array v7, v13, [Ljava/lang/Class;
|
|
|
|
|
|
|
|
sget-object v8, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-array v7, v13, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
aget v8, p2, v14
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v8
|
|
|
|
|
|
|
|
aput-object v8, v7, v14
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/reflect/InvocationTargetException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const-string v7, "cannot access method "
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v7, v6, v4}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v5, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/IllegalAccessException;->printStackTrace()V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const-string v7, "no method "
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-static {v7, v6, v4}, Lf/e/c/a/a;->K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v5, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/NoSuchMethodException;->printStackTrace()V
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_6
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setStringValue(Ljava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mStringValue:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setValue(Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
check-cast p1, Ljava/lang/Float;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mStringValue:Ljava/lang/String;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
check-cast p1, Ljava/lang/Float;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setValue([F)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mType:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_0
|
|
|
|
aget p1, p1, v1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_1
|
|
|
|
aget p1, p1, v1
|
|
|
|
|
|
|
|
float-to-double v2, p1
|
|
|
|
|
|
|
|
const-wide/high16 v4, 0x3fe0000000000000L # 0.5
|
|
|
|
|
|
|
|
cmpl-double p1, v2, v4
|
|
|
|
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iput-boolean v1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mBooleanValue:Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_2
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
|
|
|
|
const-string v0, "Color does not have a single color to interpolate"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:pswitch_3
|
|
|
|
aget p1, p1, v1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mFloatValue:F
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_4
|
|
|
|
aget p1, p1, v1
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mIntegerValue:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:pswitch_5
|
|
|
|
invoke-static {p1}, Landroid/graphics/Color;->HSVToColor([F)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
const v1, 0xffffff
|
|
|
|
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
|
|
|
|
const/high16 v1, 0x437f0000 # 255.0f
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aget p1, p1, v2
|
|
|
|
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->clamp(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
shl-int/lit8 p1, p1, 0x18
|
|
|
|
|
|
|
|
or-int/2addr p1, v0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/widget/ConstraintAttribute;->mColorValue:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:pswitch_data_0
|
|
|
|
.packed-switch 0x0
|
|
|
|
:pswitch_4
|
|
|
|
:pswitch_3
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_5
|
|
|
|
:pswitch_2
|
|
|
|
:pswitch_1
|
|
|
|
:pswitch_0
|
|
|
|
.end packed-switch
|
|
|
|
.end method
|