393 lines
12 KiB
Smali
393 lines
12 KiB
Smali
.class public Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;
|
|
.super Ljava/lang/Object;
|
|
.source "KeyTrigger.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/constraintlayout/motion/widget/KeyTrigger;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Loader"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final COLLISION:I = 0x9
|
|
|
|
.field public static final CROSS:I = 0x4
|
|
|
|
.field public static final FRAME_POS:I = 0x8
|
|
|
|
.field public static final NEGATIVE_CROSS:I = 0x1
|
|
|
|
.field public static final POSITIVE_CROSS:I = 0x2
|
|
|
|
.field public static final POST_LAYOUT:I = 0xa
|
|
|
|
.field public static final TARGET_ID:I = 0x7
|
|
|
|
.field public static final TRIGGER_ID:I = 0x6
|
|
|
|
.field public static final TRIGGER_RECEIVER:I = 0xb
|
|
|
|
.field public static final TRIGGER_SLACK:I = 0x5
|
|
|
|
.field public static mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
new-instance v0, Landroid/util/SparseIntArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseIntArray;-><init>()V
|
|
|
|
sput-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_framePosition:I
|
|
|
|
const/16 v2, 0x8
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_onCross:I
|
|
|
|
const/4 v2, 0x4
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_onNegativeCross:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_onPositiveCross:I
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_motionTarget:I
|
|
|
|
const/4 v2, 0x7
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_triggerId:I
|
|
|
|
const/4 v2, 0x6
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_triggerSlack:I
|
|
|
|
const/4 v2, 0x5
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_motion_triggerOnCollision:I
|
|
|
|
const/16 v2, 0x9
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_motion_postLayoutCollision:I
|
|
|
|
const/16 v2, 0xa
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
sget-object v0, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
sget v1, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger_triggerReceiver:I
|
|
|
|
const/16 v2, 0xb
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/util/SparseIntArray;->append(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static read(Landroidx/constraintlayout/motion/widget/KeyTrigger;Landroid/content/res/TypedArray;Landroid/content/Context;)V
|
|
.locals 4
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->getIndexCount()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-ge v0, p2, :cond_3
|
|
|
|
invoke-virtual {p1, v0}, Landroid/content/res/TypedArray;->getIndex(I)I
|
|
|
|
move-result v1
|
|
|
|
sget-object v2, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v2, v1}, Landroid/util/SparseIntArray;->get(I)I
|
|
|
|
move-result v2
|
|
|
|
packed-switch v2, :pswitch_data_0
|
|
|
|
:pswitch_0
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_1
|
|
invoke-static {p0}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$700(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {p0, v2}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$702(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
|
|
goto/16 :goto_1
|
|
|
|
:pswitch_2
|
|
invoke-static {p0}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$600(Landroidx/constraintlayout/motion/widget/KeyTrigger;)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$602(Landroidx/constraintlayout/motion/widget/KeyTrigger;Z)Z
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_3
|
|
invoke-static {p0}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$500(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$502(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_4
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/Key;->mFramePosition:I
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/Key;->mFramePosition:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
const/high16 v2, 0x3f000000 # 0.5f
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
const/high16 v2, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$002(Landroidx/constraintlayout/motion/widget/KeyTrigger;F)F
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_5
|
|
sget-boolean v2, Landroidx/constraintlayout/motion/widget/MotionLayout;->IS_IN_EDIT_MODE:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetId:I
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v2
|
|
|
|
iput v2, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetId:I
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetString:Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->peekValue(I)Landroid/util/TypedValue;
|
|
|
|
move-result-object v2
|
|
|
|
iget v2, v2, Landroid/util/TypedValue;->type:I
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetString:Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetId:I
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/Key;->mTargetId:I
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_6
|
|
invoke-static {p0}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$400(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$402(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_7
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_8
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$302(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_9
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$202(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_a
|
|
invoke-virtual {p1, v1}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p0, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->access$102(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
const-string/jumbo v2, "unused attribute 0x"
|
|
|
|
invoke-static {v2}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
sget-object v3, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->mAttrMap:Landroid/util/SparseIntArray;
|
|
|
|
invoke-virtual {v3, v1}, Landroid/util/SparseIntArray;->get(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "KeyTrigger"
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_0
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|