1017 lines
30 KiB
Smali
1017 lines
30 KiB
Smali
.class public Landroidx/constraintlayout/motion/widget/KeyTrigger;
|
|
.super Landroidx/constraintlayout/motion/widget/Key;
|
|
.source "KeyTrigger.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final KEY_TYPE:I = 0x5
|
|
|
|
.field public static final NAME:Ljava/lang/String; = "KeyTrigger"
|
|
|
|
.field public static final TAG:Ljava/lang/String; = "KeyTrigger"
|
|
|
|
|
|
# instance fields
|
|
.field public mCollisionRect:Landroid/graphics/RectF;
|
|
|
|
.field public mCross:Ljava/lang/String;
|
|
|
|
.field public mCurveFit:I
|
|
|
|
.field public mFireCross:Ljava/lang/reflect/Method;
|
|
|
|
.field public mFireCrossReset:Z
|
|
|
|
.field public mFireLastPos:F
|
|
|
|
.field public mFireNegativeCross:Ljava/lang/reflect/Method;
|
|
|
|
.field public mFireNegativeReset:Z
|
|
|
|
.field public mFirePositiveCross:Ljava/lang/reflect/Method;
|
|
|
|
.field public mFirePositiveReset:Z
|
|
|
|
.field public mFireThreshold:F
|
|
|
|
.field public mNegativeCross:Ljava/lang/String;
|
|
|
|
.field public mPositiveCross:Ljava/lang/String;
|
|
|
|
.field public mPostLayout:Z
|
|
|
|
.field public mTargetRect:Landroid/graphics/RectF;
|
|
|
|
.field public mTriggerCollisionId:I
|
|
|
|
.field public mTriggerCollisionView:Landroid/view/View;
|
|
|
|
.field public mTriggerID:I
|
|
|
|
.field public mTriggerReceiver:I
|
|
|
|
.field public mTriggerSlack:F
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Landroidx/constraintlayout/motion/widget/Key;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCurveFit:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
sget v1, Landroidx/constraintlayout/motion/widget/Key;->UNSET:I
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerReceiver:I
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerID:I
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionId:I
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionView:Landroid/view/View;
|
|
|
|
const v0, 0x3dcccccd # 0.1f
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
const/high16 v0, 0x7fc00000 # Float.NaN
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPostLayout:Z
|
|
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCollisionRect:Landroid/graphics/RectF;
|
|
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTargetRect:Landroid/graphics/RectF;
|
|
|
|
const/4 v0, 0x5
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/Key;->mType:I
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/Key;->mCustomConstraints:Ljava/util/HashMap;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$002(Landroidx/constraintlayout/motion/widget/KeyTrigger;F)F
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic access$102(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic access$202(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic access$302(Landroidx/constraintlayout/motion/widget/KeyTrigger;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic access$400(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
.locals 0
|
|
|
|
iget p0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerID:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$402(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerID:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic access$500(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
.locals 0
|
|
|
|
iget p0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionId:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$502(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionId:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic access$600(Landroidx/constraintlayout/motion/widget/KeyTrigger;)Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPostLayout:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$602(Landroidx/constraintlayout/motion/widget/KeyTrigger;Z)Z
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPostLayout:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static synthetic access$700(Landroidx/constraintlayout/motion/widget/KeyTrigger;)I
|
|
.locals 0
|
|
|
|
iget p0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerReceiver:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$702(Landroidx/constraintlayout/motion/widget/KeyTrigger;I)I
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerReceiver:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private setUpRect(Landroid/graphics/RectF;Landroid/view/View;Z)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p1, Landroid/graphics/RectF;->top:F
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p1, Landroid/graphics/RectF;->bottom:F
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p1, Landroid/graphics/RectF;->left:F
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
iput v0, p1, Landroid/graphics/RectF;->right:F
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addValues(Ljava/util/HashMap;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/HashMap<",
|
|
"Ljava/lang/String;",
|
|
"Landroidx/constraintlayout/motion/widget/SplineSet;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public conditionallyFire(FLandroid/view/View;)V
|
|
.locals 10
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionId:I
|
|
|
|
sget v1, Landroidx/constraintlayout/motion/widget/Key;->UNSET:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eq v0, v1, :cond_6
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionView:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionId:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionView:Landroid/view/View;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCollisionRect:Landroid/graphics/RectF;
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerCollisionView:Landroid/view/View;
|
|
|
|
iget-boolean v4, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPostLayout:Z
|
|
|
|
invoke-direct {p0, v0, v1, v4}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->setUpRect(Landroid/graphics/RectF;Landroid/view/View;Z)V
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTargetRect:Landroid/graphics/RectF;
|
|
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPostLayout:Z
|
|
|
|
invoke-direct {p0, v0, p2, v1}, Landroidx/constraintlayout/motion/widget/KeyTrigger;->setUpRect(Landroid/graphics/RectF;Landroid/view/View;Z)V
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCollisionRect:Landroid/graphics/RectF;
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTargetRect:Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/RectF;->intersect(Landroid/graphics/RectF;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_3
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
iget-boolean v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/4 v1, 0x0
|
|
|
|
:goto_3
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
move v2, v1
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_6
|
|
iget-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v4, p1, v0
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireLastPos:F
|
|
|
|
sub-float/2addr v5, v0
|
|
|
|
mul-float v5, v5, v4
|
|
|
|
cmpg-float v0, v5, v1
|
|
|
|
if-gez v0, :cond_8
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v0, p1, v0
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v0
|
|
|
|
iget v4, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
cmpl-float v0, v0, v4
|
|
|
|
if-lez v0, :cond_8
|
|
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCrossReset:Z
|
|
|
|
:cond_8
|
|
const/4 v0, 0x0
|
|
|
|
:goto_4
|
|
iget-boolean v4, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
if-eqz v4, :cond_9
|
|
|
|
iget v4, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v5, p1, v4
|
|
|
|
iget v6, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireLastPos:F
|
|
|
|
sub-float/2addr v6, v4
|
|
|
|
mul-float v6, v6, v5
|
|
|
|
cmpg-float v4, v6, v1
|
|
|
|
if-gez v4, :cond_a
|
|
|
|
cmpg-float v4, v5, v1
|
|
|
|
if-gez v4, :cond_a
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
iget v4, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v4, p1, v4
|
|
|
|
invoke-static {v4}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v4
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
cmpl-float v4, v4, v5
|
|
|
|
if-lez v4, :cond_a
|
|
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeReset:Z
|
|
|
|
:cond_a
|
|
const/4 v4, 0x0
|
|
|
|
:goto_5
|
|
iget-boolean v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
if-eqz v5, :cond_c
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v6, p1, v5
|
|
|
|
iget v7, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireLastPos:F
|
|
|
|
sub-float/2addr v7, v5
|
|
|
|
mul-float v7, v7, v6
|
|
|
|
cmpg-float v5, v7, v1
|
|
|
|
if-gez v5, :cond_b
|
|
|
|
cmpl-float v1, v6, v1
|
|
|
|
if-lez v1, :cond_b
|
|
|
|
iput-boolean v3, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
const/4 v2, 0x0
|
|
|
|
:goto_6
|
|
move v1, v2
|
|
|
|
move v2, v4
|
|
|
|
goto :goto_8
|
|
|
|
:cond_c
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireThreshold:F
|
|
|
|
sub-float v1, p1, v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result v1
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerSlack:F
|
|
|
|
cmpl-float v1, v1, v5
|
|
|
|
if-lez v1, :cond_d
|
|
|
|
iput-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveReset:Z
|
|
|
|
:cond_d
|
|
move v2, v4
|
|
|
|
:goto_7
|
|
const/4 v1, 0x0
|
|
|
|
:goto_8
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireLastPos:F
|
|
|
|
if-nez v2, :cond_e
|
|
|
|
if-nez v0, :cond_e
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
:cond_e
|
|
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/constraintlayout/motion/widget/MotionLayout;
|
|
|
|
iget v5, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerID:I
|
|
|
|
invoke-virtual {v4, v5, v1, p1}, Landroidx/constraintlayout/motion/widget/MotionLayout;->fireTrigger(IZF)V
|
|
|
|
:cond_f
|
|
iget p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerReceiver:I
|
|
|
|
sget v4, Landroidx/constraintlayout/motion/widget/Key;->UNSET:I
|
|
|
|
if-ne p1, v4, :cond_10
|
|
|
|
goto :goto_9
|
|
|
|
:cond_10
|
|
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/constraintlayout/motion/widget/MotionLayout;
|
|
|
|
iget p2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mTriggerReceiver:I
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_9
|
|
const-string p1, "Could not find method \""
|
|
|
|
const-string v4, "Exception in call \""
|
|
|
|
const-string v5, " "
|
|
|
|
const-string v6, "\"on class "
|
|
|
|
const-string v7, "KeyTrigger"
|
|
|
|
if-eqz v2, :cond_12
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
if-eqz v2, :cond_12
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeCross:Ljava/lang/reflect/Method;
|
|
|
|
if-nez v2, :cond_11
|
|
|
|
:try_start_0
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v8, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
new-array v9, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v2, v8, v9}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeCross:Ljava/lang/reflect/Method;
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_a
|
|
|
|
:catch_0
|
|
invoke-static {p1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v8, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v7, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_11
|
|
:goto_a
|
|
:try_start_1
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireNegativeCross:Ljava/lang/reflect/Method;
|
|
|
|
new-array v8, v3, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v2, p2, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_b
|
|
|
|
:catch_1
|
|
invoke-static {v4}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v8, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mNegativeCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v8}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v7, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_12
|
|
:goto_b
|
|
if-eqz v1, :cond_14
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_14
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveCross:Ljava/lang/reflect/Method;
|
|
|
|
if-nez v1, :cond_13
|
|
|
|
:try_start_2
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
new-array v8, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v1, v2, v8}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveCross:Ljava/lang/reflect/Method;
|
|
:try_end_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
goto :goto_c
|
|
|
|
:catch_2
|
|
invoke-static {p1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v7, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_13
|
|
:goto_c
|
|
:try_start_3
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFirePositiveCross:Ljava/lang/reflect/Method;
|
|
|
|
new-array v2, v3, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, p2, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
|
|
|
|
goto :goto_d
|
|
|
|
:catch_3
|
|
invoke-static {v4}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mPositiveCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v7, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_14
|
|
:goto_d
|
|
if-eqz v0, :cond_16
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_16
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCross:Ljava/lang/reflect/Method;
|
|
|
|
if-nez v0, :cond_15
|
|
|
|
:try_start_4
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
new-array v2, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCross:Ljava/lang/reflect/Method;
|
|
:try_end_4
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_4 .. :try_end_4} :catch_4
|
|
|
|
goto :goto_e
|
|
|
|
:catch_4
|
|
invoke-static {p1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v7, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_15
|
|
:goto_e
|
|
:try_start_5
|
|
iget-object p1, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mFireCross:Ljava/lang/reflect/Method;
|
|
|
|
new-array v0, v3, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1, p2, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_5
|
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5
|
|
|
|
goto :goto_f
|
|
|
|
:catch_5
|
|
invoke-static {v4}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCross:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {p2}, Landroidx/constraintlayout/motion/widget/Debug;->getName(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v7, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_16
|
|
:goto_f
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAttributeNames(Ljava/util/HashSet;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/HashSet<",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getCurveFit()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/KeyTrigger;->mCurveFit:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public load(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/constraintlayout/widget/R$styleable;->KeyTrigger:[I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p0, p2, p1}, Landroidx/constraintlayout/motion/widget/KeyTrigger$Loader;->read(Landroidx/constraintlayout/motion/widget/KeyTrigger;Landroid/content/res/TypedArray;Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setValue(Ljava/lang/String;Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|