2229 lines
46 KiB
Smali
2229 lines
46 KiB
Smali
.class public Landroidx/constraintlayout/motion/widget/MotionPaths;
|
|
.super Ljava/lang/Object;
|
|
.source "MotionPaths.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Comparable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Comparable<",
|
|
"Landroidx/constraintlayout/motion/widget/MotionPaths;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CARTESIAN:I = 0x2
|
|
|
|
.field public static final DEBUG:Z = false
|
|
|
|
.field public static final OFF_HEIGHT:I = 0x4
|
|
|
|
.field public static final OFF_PATH_ROTATE:I = 0x5
|
|
|
|
.field public static final OFF_POSITION:I = 0x0
|
|
|
|
.field public static final OFF_WIDTH:I = 0x3
|
|
|
|
.field public static final OFF_X:I = 0x1
|
|
|
|
.field public static final OFF_Y:I = 0x2
|
|
|
|
.field public static final OLD_WAY:Z = false
|
|
|
|
.field public static final PERPENDICULAR:I = 0x1
|
|
|
|
.field public static final SCREEN:I = 0x3
|
|
|
|
.field public static final TAG:Ljava/lang/String; = "MotionPaths"
|
|
|
|
.field public static names:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public attributes:Ljava/util/LinkedHashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/LinkedHashMap<",
|
|
"Ljava/lang/String;",
|
|
"Landroidx/constraintlayout/widget/ConstraintAttribute;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public height:F
|
|
|
|
.field public mDrawPath:I
|
|
|
|
.field public mKeyFrameEasing:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
.field public mMode:I
|
|
|
|
.field public mPathMotionArc:I
|
|
|
|
.field public mPathRotate:F
|
|
|
|
.field public mProgress:F
|
|
|
|
.field public mTempDelta:[D
|
|
|
|
.field public mTempValue:[D
|
|
|
|
.field public position:F
|
|
|
|
.field public time:F
|
|
|
|
.field public width:F
|
|
|
|
.field public x:F
|
|
|
|
.field public y:F
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
const-string v0, "position"
|
|
|
|
const-string/jumbo v1, "x"
|
|
|
|
const-string/jumbo v2, "y"
|
|
|
|
const-string/jumbo v3, "width"
|
|
|
|
const-string v4, "height"
|
|
|
|
const-string v5, "pathRotate"
|
|
|
|
filled-new-array/range {v0 .. v5}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->names:[Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
const/high16 v1, 0x7fc00000 # Float.NaN
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathRotate:F
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mProgress:F
|
|
|
|
sget v1, Landroidx/constraintlayout/motion/widget/Key;->UNSET:I
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
new-instance v1, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mMode:I
|
|
|
|
const/16 v0, 0x12
|
|
|
|
new-array v1, v0, [D
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
new-array v0, v0, [D
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempDelta:[D
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(IILandroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
const/high16 v1, 0x7fc00000 # Float.NaN
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathRotate:F
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mProgress:F
|
|
|
|
sget v1, Landroidx/constraintlayout/motion/widget/Key;->UNSET:I
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
new-instance v1, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mMode:I
|
|
|
|
const/16 v0, 0x12
|
|
|
|
new-array v1, v0, [D
|
|
|
|
iput-object v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
new-array v0, v0, [D
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempDelta:[D
|
|
|
|
iget v0, p3, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPositionType:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0, p3, p4, p5}, Landroidx/constraintlayout/motion/widget/MotionPaths;->initCartesian(Landroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual/range {p0 .. p5}, Landroidx/constraintlayout/motion/widget/MotionPaths;->initScreen(IILandroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p3, p4, p5}, Landroidx/constraintlayout/motion/widget/MotionPaths;->initPath(Landroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private diff(FF)Z
|
|
.locals 3
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-static {p2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
sub-float/2addr p1, p2
|
|
|
|
invoke-static {p1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
move-result p1
|
|
|
|
const p2, 0x358637bd # 1.0E-6f
|
|
|
|
cmpl-float p1, p1, p2
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result p2
|
|
|
|
if-eq p1, p2, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final xRotate(FFFFFF)F
|
|
.locals 0
|
|
|
|
sub-float/2addr p4, p2
|
|
|
|
sub-float/2addr p5, p3
|
|
|
|
mul-float p4, p4, p1
|
|
|
|
mul-float p5, p5, p0
|
|
|
|
sub-float/2addr p4, p5
|
|
|
|
add-float/2addr p4, p2
|
|
|
|
return p4
|
|
.end method
|
|
|
|
.method public static final yRotate(FFFFFF)F
|
|
.locals 0
|
|
|
|
sub-float/2addr p4, p2
|
|
|
|
sub-float/2addr p5, p3
|
|
|
|
mul-float p4, p4, p0
|
|
|
|
mul-float p5, p5, p1
|
|
|
|
add-float/2addr p5, p4
|
|
|
|
add-float/2addr p5, p3
|
|
|
|
return p5
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public applyParameters(Landroidx/constraintlayout/widget/ConstraintSet$Constraint;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Constraint;->motion:Landroidx/constraintlayout/widget/ConstraintSet$Motion;
|
|
|
|
iget-object v0, v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroidx/constraintlayout/motion/utils/Easing;->getInterpolator(Ljava/lang/String;)Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mKeyFrameEasing:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Constraint;->motion:Landroidx/constraintlayout/widget/ConstraintSet$Motion;
|
|
|
|
iget v1, v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathMotionArc:I
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
iget v1, v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mPathRotate:F
|
|
|
|
iput v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathRotate:F
|
|
|
|
iget v0, v0, Landroidx/constraintlayout/widget/ConstraintSet$Motion;->mDrawPath:I
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Constraint;->propertySet:Landroidx/constraintlayout/widget/ConstraintSet$PropertySet;
|
|
|
|
iget v0, v0, Landroidx/constraintlayout/widget/ConstraintSet$PropertySet;->mProgress:F
|
|
|
|
iput v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mProgress:F
|
|
|
|
iget-object v0, p1, Landroidx/constraintlayout/widget/ConstraintSet$Constraint;->mCustomConstraints:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
iget-object v2, p1, Landroidx/constraintlayout/widget/ConstraintSet$Constraint;->mCustomConstraints:Ljava/util/HashMap;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
invoke-virtual {v2}, Landroidx/constraintlayout/widget/ConstraintAttribute;->getType()Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;->STRING_TYPE:Landroidx/constraintlayout/widget/ConstraintAttribute$AttributeType;
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
iget-object v3, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
invoke-virtual {v3, v1, v2}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public compareTo(Landroidx/constraintlayout/motion/widget/MotionPaths;)I
|
|
.locals 1
|
|
.param p1 # Landroidx/constraintlayout/motion/widget/MotionPaths;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
invoke-static {v0, p1}, Ljava/lang/Float;->compare(FF)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic compareTo(Ljava/lang/Object;)I
|
|
.locals 0
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
check-cast p1, Landroidx/constraintlayout/motion/widget/MotionPaths;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/constraintlayout/motion/widget/MotionPaths;->compareTo(Landroidx/constraintlayout/motion/widget/MotionPaths;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public different(Landroidx/constraintlayout/motion/widget/MotionPaths;[Z[Ljava/lang/String;Z)V
|
|
.locals 3
|
|
|
|
const/4 p3, 0x0
|
|
|
|
aget-boolean v0, p2, p3
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
iget v2, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
invoke-direct {p0, v1, v2}, Landroidx/constraintlayout/motion/widget/MotionPaths;->diff(FF)Z
|
|
|
|
move-result v1
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
aput-boolean v0, p2, p3
|
|
|
|
const/4 p3, 0x1
|
|
|
|
aget-boolean v0, p2, p3
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v2, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
invoke-direct {p0, v1, v2}, Landroidx/constraintlayout/motion/widget/MotionPaths;->diff(FF)Z
|
|
|
|
move-result v1
|
|
|
|
or-int/2addr v1, p4
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
aput-boolean v0, p2, p3
|
|
|
|
const/4 p3, 0x2
|
|
|
|
aget-boolean v0, p2, p3
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v2, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
invoke-direct {p0, v1, v2}, Landroidx/constraintlayout/motion/widget/MotionPaths;->diff(FF)Z
|
|
|
|
move-result v1
|
|
|
|
or-int/2addr p4, v1
|
|
|
|
or-int/2addr p4, v0
|
|
|
|
aput-boolean p4, p2, p3
|
|
|
|
const/4 p3, 0x3
|
|
|
|
aget-boolean p4, p2, p3
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v1, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/constraintlayout/motion/widget/MotionPaths;->diff(FF)Z
|
|
|
|
move-result v0
|
|
|
|
or-int/2addr p4, v0
|
|
|
|
aput-boolean p4, p2, p3
|
|
|
|
const/4 p3, 0x4
|
|
|
|
aget-boolean p4, p2, p3
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
iget p1, p1, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
invoke-direct {p0, v0, p1}, Landroidx/constraintlayout/motion/widget/MotionPaths;->diff(FF)Z
|
|
|
|
move-result p1
|
|
|
|
or-int/2addr p1, p4
|
|
|
|
aput-boolean p1, p2, p3
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public fillStandard([D[I)V
|
|
.locals 7
|
|
|
|
const/4 v0, 0x6
|
|
|
|
new-array v1, v0, [F
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput v2, v1, v3
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput v2, v1, v4
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput v2, v1, v4
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput v2, v1, v4
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
const/4 v4, 0x4
|
|
|
|
aput v2, v1, v4
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathRotate:F
|
|
|
|
const/4 v4, 0x5
|
|
|
|
aput v2, v1, v4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
array-length v4, p2
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
aget v4, p2, v3
|
|
|
|
if-ge v4, v0, :cond_0
|
|
|
|
add-int/lit8 v4, v2, 0x1
|
|
|
|
aget v5, p2, v3
|
|
|
|
aget v5, v1, v5
|
|
|
|
float-to-double v5, v5
|
|
|
|
aput-wide v5, p1, v2
|
|
|
|
move v2, v4
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public getBounds([I[D[FI)V
|
|
.locals 6
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
array-length v3, p1
|
|
|
|
if-ge v2, v3, :cond_2
|
|
|
|
aget-wide v3, p2, v2
|
|
|
|
double-to-float v3, v3
|
|
|
|
aget v4, p1, v2
|
|
|
|
const/4 v5, 0x3
|
|
|
|
if-eq v4, v5, :cond_1
|
|
|
|
const/4 v5, 0x4
|
|
|
|
if-eq v4, v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v0, v3
|
|
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
aput v0, p3, p4
|
|
|
|
add-int/lit8 p4, p4, 0x1
|
|
|
|
aput v1, p3, p4
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getCenter([I[D[FI)V
|
|
.locals 9
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
array-length v5, p1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ge v4, v5, :cond_4
|
|
|
|
aget-wide v7, p2, v4
|
|
|
|
double-to-float v5, v7
|
|
|
|
aget v7, p1, v4
|
|
|
|
if-eq v7, v6, :cond_3
|
|
|
|
const/4 v6, 0x2
|
|
|
|
if-eq v7, v6, :cond_2
|
|
|
|
const/4 v6, 0x3
|
|
|
|
if-eq v7, v6, :cond_1
|
|
|
|
const/4 v6, 0x4
|
|
|
|
if-eq v7, v6, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v3, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v0, v5
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const/high16 p1, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v2, p1
|
|
|
|
add-float/2addr v2, v0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
add-float/2addr v2, p2
|
|
|
|
aput v2, p3, p4
|
|
|
|
add-int/2addr p4, v6
|
|
|
|
div-float/2addr v3, p1
|
|
|
|
add-float/2addr v3, v1
|
|
|
|
add-float/2addr v3, p2
|
|
|
|
aput v3, p3, p4
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getCustomData(Ljava/lang/String;[DI)I
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->noOfInterpValues()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->getValueToInterpolate()F
|
|
|
|
move-result p1
|
|
|
|
float-to-double v2, p1
|
|
|
|
aput-wide v2, p2, p3
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->noOfInterpValues()I
|
|
|
|
move-result v0
|
|
|
|
new-array v1, v0, [F
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->getValuesToInterpolate([F)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
if-ge p1, v0, :cond_1
|
|
|
|
add-int/lit8 v2, p3, 0x1
|
|
|
|
aget v3, v1, p1
|
|
|
|
float-to-double v3, v3
|
|
|
|
aput-wide v3, p2, p3
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
move p3, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCustomDataCount(Ljava/lang/String;)I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/constraintlayout/widget/ConstraintAttribute;
|
|
|
|
invoke-virtual {p1}, Landroidx/constraintlayout/widget/ConstraintAttribute;->noOfInterpValues()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getRect([I[D[FI)V
|
|
.locals 8
|
|
|
|
iget v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v3, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
array-length v5, p1
|
|
|
|
if-ge v4, v5, :cond_4
|
|
|
|
aget-wide v5, p2, v4
|
|
|
|
double-to-float v5, v5
|
|
|
|
aget v6, p1, v4
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-eq v6, v7, :cond_3
|
|
|
|
const/4 v7, 0x2
|
|
|
|
if-eq v6, v7, :cond_2
|
|
|
|
const/4 v7, 0x3
|
|
|
|
if-eq v6, v7, :cond_1
|
|
|
|
const/4 v7, 0x4
|
|
|
|
if-eq v6, v7, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v3, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v0, v5
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
add-float/2addr v2, v0
|
|
|
|
add-float/2addr v3, v1
|
|
|
|
const/high16 p1, 0x7fc00000 # Float.NaN
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result p1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
add-float p2, v0, p1
|
|
|
|
add-float v4, v1, p1
|
|
|
|
add-float v5, v2, p1
|
|
|
|
add-float/2addr v1, p1
|
|
|
|
add-float/2addr v2, p1
|
|
|
|
add-float v6, v3, p1
|
|
|
|
add-float/2addr v0, p1
|
|
|
|
add-float/2addr v3, p1
|
|
|
|
add-int/lit8 p1, p4, 0x1
|
|
|
|
aput p2, p3, p4
|
|
|
|
add-int/lit8 p2, p1, 0x1
|
|
|
|
aput v4, p3, p1
|
|
|
|
add-int/lit8 p1, p2, 0x1
|
|
|
|
aput v5, p3, p2
|
|
|
|
add-int/lit8 p2, p1, 0x1
|
|
|
|
aput v1, p3, p1
|
|
|
|
add-int/lit8 p1, p2, 0x1
|
|
|
|
aput v2, p3, p2
|
|
|
|
add-int/lit8 p2, p1, 0x1
|
|
|
|
aput v6, p3, p1
|
|
|
|
add-int/lit8 p1, p2, 0x1
|
|
|
|
aput v0, p3, p2
|
|
|
|
aput v3, p3, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public hasCustomData(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->attributes:Ljava/util/LinkedHashMap;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/LinkedHashMap;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public initCartesian(Landroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
iget v4, v1, Landroidx/constraintlayout/motion/widget/Key;->mFramePosition:I
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v5, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v4, v5
|
|
|
|
iput v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mDrawPath:I
|
|
|
|
iput v5, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
invoke-static {v5}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
:goto_0
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
move v6, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
:goto_1
|
|
iget v7, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v8, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
sub-float v9, v7, v8
|
|
|
|
iget v10, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
iget v11, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
sub-float v12, v10, v11
|
|
|
|
iget v13, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iput v13, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
iget v13, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
div-float v15, v8, v14
|
|
|
|
add-float/2addr v15, v13
|
|
|
|
iget v1, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
div-float v16, v11, v14
|
|
|
|
add-float v16, v16, v1
|
|
|
|
iget v2, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
div-float/2addr v7, v14
|
|
|
|
add-float/2addr v7, v2
|
|
|
|
iget v2, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
div-float/2addr v10, v14
|
|
|
|
add-float/2addr v10, v2
|
|
|
|
sub-float/2addr v7, v15
|
|
|
|
sub-float v10, v10, v16
|
|
|
|
mul-float v2, v7, v4
|
|
|
|
add-float/2addr v2, v13
|
|
|
|
mul-float v9, v9, v5
|
|
|
|
div-float v3, v9, v14
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
mul-float v2, v10, v4
|
|
|
|
add-float/2addr v2, v1
|
|
|
|
mul-float v12, v12, v6
|
|
|
|
div-float v1, v12, v14
|
|
|
|
sub-float/2addr v2, v1
|
|
|
|
float-to-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
add-float/2addr v8, v9
|
|
|
|
float-to-int v2, v8
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
add-float/2addr v11, v12
|
|
|
|
float-to-int v2, v11
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
move-object/from16 v2, p1
|
|
|
|
iget v5, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
invoke-static {v5}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget v5, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
:goto_2
|
|
iget v6, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mAltPercentY:F
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v6
|
|
|
|
const/4 v8, 0x0
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget v6, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mAltPercentY:F
|
|
|
|
:goto_3
|
|
iget v9, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
invoke-static {v9}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
iget v4, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
:goto_4
|
|
iget v9, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mAltPercentX:F
|
|
|
|
invoke-static {v9}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
iget v8, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mAltPercentX:F
|
|
|
|
:goto_5
|
|
const/4 v9, 0x2
|
|
|
|
iput v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mMode:I
|
|
|
|
move-object/from16 v9, p2
|
|
|
|
iget v11, v9, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
mul-float v5, v5, v7
|
|
|
|
add-float/2addr v5, v11
|
|
|
|
mul-float v8, v8, v10
|
|
|
|
add-float/2addr v8, v5
|
|
|
|
sub-float/2addr v8, v3
|
|
|
|
float-to-int v3, v8
|
|
|
|
int-to-float v3, v3
|
|
|
|
iput v3, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v3, v9, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
mul-float v7, v7, v6
|
|
|
|
add-float/2addr v7, v3
|
|
|
|
mul-float v10, v10, v4
|
|
|
|
add-float/2addr v10, v7
|
|
|
|
sub-float/2addr v10, v1
|
|
|
|
float-to-int v1, v10
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget-object v1, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Landroidx/constraintlayout/motion/utils/Easing;->getInterpolator(Ljava/lang/String;)Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mKeyFrameEasing:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
iget v1, v2, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPathMotionArc:I
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public initPath(Landroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
move-object/from16 v3, p3
|
|
|
|
iget v4, v1, Landroidx/constraintlayout/motion/widget/Key;->mFramePosition:I
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v5, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v4, v5
|
|
|
|
iput v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mDrawPath:I
|
|
|
|
iput v5, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
invoke-static {v5}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
:goto_0
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
move v6, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
:goto_1
|
|
iget v7, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v8, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
sub-float/2addr v7, v8
|
|
|
|
iget v8, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
iget v9, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
sub-float/2addr v8, v9
|
|
|
|
iget v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iput v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
iget v9, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
invoke-static {v9}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget v4, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
:goto_2
|
|
iget v9, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v10, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
const/high16 v11, 0x40000000 # 2.0f
|
|
|
|
div-float v12, v10, v11
|
|
|
|
add-float/2addr v12, v9
|
|
|
|
iget v13, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v14, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
div-float v15, v14, v11
|
|
|
|
add-float/2addr v15, v13
|
|
|
|
iget v2, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v1, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
div-float/2addr v1, v11
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
iget v2, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v3, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
div-float/2addr v3, v11
|
|
|
|
add-float/2addr v3, v2
|
|
|
|
sub-float/2addr v1, v12
|
|
|
|
sub-float/2addr v3, v15
|
|
|
|
mul-float v2, v1, v4
|
|
|
|
add-float/2addr v9, v2
|
|
|
|
mul-float v7, v7, v5
|
|
|
|
div-float v5, v7, v11
|
|
|
|
sub-float/2addr v9, v5
|
|
|
|
float-to-int v9, v9
|
|
|
|
int-to-float v9, v9
|
|
|
|
iput v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
mul-float v4, v4, v3
|
|
|
|
add-float/2addr v13, v4
|
|
|
|
mul-float v8, v8, v6
|
|
|
|
div-float v6, v8, v11
|
|
|
|
sub-float/2addr v13, v6
|
|
|
|
float-to-int v9, v13
|
|
|
|
int-to-float v9, v9
|
|
|
|
iput v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
add-float/2addr v10, v7
|
|
|
|
float-to-int v7, v10
|
|
|
|
int-to-float v7, v7
|
|
|
|
iput v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
add-float/2addr v14, v8
|
|
|
|
float-to-int v7, v14
|
|
|
|
int-to-float v7, v7
|
|
|
|
iput v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
move-object/from16 v7, p1
|
|
|
|
iget v8, v7, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
invoke-static {v8}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget v8, v7, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
:goto_3
|
|
neg-float v3, v3
|
|
|
|
mul-float v3, v3, v8
|
|
|
|
mul-float v1, v1, v8
|
|
|
|
const/4 v8, 0x1
|
|
|
|
iput v8, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mMode:I
|
|
|
|
move-object/from16 v8, p2
|
|
|
|
iget v9, v8, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
add-float/2addr v9, v2
|
|
|
|
sub-float/2addr v9, v5
|
|
|
|
float-to-int v2, v9
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v5, v8, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
add-float/2addr v5, v4
|
|
|
|
sub-float/2addr v5, v6
|
|
|
|
float-to-int v4, v5
|
|
|
|
int-to-float v4, v4
|
|
|
|
iput v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
add-float/2addr v2, v3
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
add-float/2addr v4, v1
|
|
|
|
iput v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget-object v1, v7, Landroidx/constraintlayout/motion/widget/KeyPosition;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Landroidx/constraintlayout/motion/utils/Easing;->getInterpolator(Ljava/lang/String;)Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mKeyFrameEasing:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
iget v1, v7, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPathMotionArc:I
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public initScreen(IILandroidx/constraintlayout/motion/widget/KeyPosition;Landroidx/constraintlayout/motion/widget/MotionPaths;Landroidx/constraintlayout/motion/widget/MotionPaths;)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
move-object/from16 v2, p4
|
|
|
|
move-object/from16 v3, p5
|
|
|
|
iget v4, v1, Landroidx/constraintlayout/motion/widget/Key;->mFramePosition:I
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v5, 0x42c80000 # 100.0f
|
|
|
|
div-float/2addr v4, v5
|
|
|
|
iput v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mDrawPath:I
|
|
|
|
iput v5, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mDrawPath:I
|
|
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
invoke-static {v5}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_0
|
|
|
|
move v5, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v5, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentWidth:F
|
|
|
|
:goto_0
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
invoke-static {v6}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
move v6, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget v6, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentHeight:F
|
|
|
|
:goto_1
|
|
iget v7, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v8, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
sub-float v9, v7, v8
|
|
|
|
iget v10, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
iget v11, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
sub-float v12, v10, v11
|
|
|
|
iget v13, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->time:F
|
|
|
|
iput v13, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->position:F
|
|
|
|
iget v13, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
const/high16 v14, 0x40000000 # 2.0f
|
|
|
|
div-float v15, v8, v14
|
|
|
|
add-float/2addr v15, v13
|
|
|
|
iget v2, v2, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
div-float v16, v11, v14
|
|
|
|
add-float v16, v16, v2
|
|
|
|
iget v1, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
div-float/2addr v7, v14
|
|
|
|
add-float/2addr v7, v1
|
|
|
|
iget v1, v3, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
div-float/2addr v10, v14
|
|
|
|
add-float/2addr v10, v1
|
|
|
|
sub-float/2addr v7, v15
|
|
|
|
sub-float v10, v10, v16
|
|
|
|
mul-float v7, v7, v4
|
|
|
|
add-float/2addr v7, v13
|
|
|
|
mul-float v9, v9, v5
|
|
|
|
div-float v1, v9, v14
|
|
|
|
sub-float/2addr v7, v1
|
|
|
|
float-to-int v1, v7
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
mul-float v10, v10, v4
|
|
|
|
add-float/2addr v10, v2
|
|
|
|
mul-float v12, v12, v6
|
|
|
|
div-float v1, v12, v14
|
|
|
|
sub-float/2addr v10, v1
|
|
|
|
float-to-int v1, v10
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
add-float/2addr v8, v9
|
|
|
|
float-to-int v1, v8
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
add-float/2addr v11, v12
|
|
|
|
float-to-int v1, v11
|
|
|
|
int-to-float v1, v1
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
const/4 v1, 0x3
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mMode:I
|
|
|
|
move-object/from16 v1, p3
|
|
|
|
iget v2, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
move/from16 v2, p1
|
|
|
|
int-to-float v2, v2
|
|
|
|
iget v3, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
iget v3, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentX:F
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v3, v3, v2
|
|
|
|
float-to-int v2, v3
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
:cond_2
|
|
iget v2, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
move/from16 v2, p2
|
|
|
|
int-to-float v2, v2
|
|
|
|
iget v3, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
sub-float/2addr v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
iget v3, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPercentY:F
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v3, v3, v2
|
|
|
|
float-to-int v2, v3
|
|
|
|
int-to-float v2, v2
|
|
|
|
iput v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
:cond_3
|
|
iget-object v2, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mTransitionEasing:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Landroidx/constraintlayout/motion/utils/Easing;->getInterpolator(Ljava/lang/String;)Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mKeyFrameEasing:Landroidx/constraintlayout/motion/utils/Easing;
|
|
|
|
iget v1, v1, Landroidx/constraintlayout/motion/widget/KeyPosition;->mPathMotionArc:I
|
|
|
|
iput v1, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mPathMotionArc:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBounds(FFFF)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iput p2, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iput p3, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iput p4, p0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDpDt(FF[F[I[D[D)V
|
|
.locals 12
|
|
|
|
move-object/from16 v0, p4
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
:goto_0
|
|
array-length v8, v0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
if-ge v3, v8, :cond_4
|
|
|
|
aget-wide v10, p5, v3
|
|
|
|
double-to-float v8, v10
|
|
|
|
aget-wide v10, p6, v3
|
|
|
|
aget v10, v0, v3
|
|
|
|
if-eq v10, v9, :cond_3
|
|
|
|
const/4 v9, 0x2
|
|
|
|
if-eq v10, v9, :cond_2
|
|
|
|
const/4 v9, 0x3
|
|
|
|
if-eq v10, v9, :cond_1
|
|
|
|
const/4 v9, 0x4
|
|
|
|
if-eq v10, v9, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v7, v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v5, v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v6, v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v4, v8
|
|
|
|
:goto_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
mul-float v0, v2, v5
|
|
|
|
const/high16 v3, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v0, v3
|
|
|
|
sub-float/2addr v4, v0
|
|
|
|
mul-float v0, v2, v7
|
|
|
|
div-float/2addr v0, v3
|
|
|
|
sub-float/2addr v6, v0
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
mul-float v5, v5, v0
|
|
|
|
mul-float v7, v7, v0
|
|
|
|
add-float/2addr v5, v4
|
|
|
|
add-float/2addr v7, v6
|
|
|
|
sub-float v3, v0, p1
|
|
|
|
mul-float v3, v3, v4
|
|
|
|
mul-float v5, v5, p1
|
|
|
|
add-float/2addr v5, v3
|
|
|
|
add-float/2addr v5, v2
|
|
|
|
aput v5, p3, v1
|
|
|
|
sub-float/2addr v0, p2
|
|
|
|
mul-float v0, v0, v6
|
|
|
|
mul-float v7, v7, p2
|
|
|
|
add-float/2addr v7, v0
|
|
|
|
add-float/2addr v7, v2
|
|
|
|
aput v7, p3, v9
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setView(Landroid/view/View;[I[D[D[D)V
|
|
.locals 21
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v2, p2
|
|
|
|
iget v3, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->x:F
|
|
|
|
iget v4, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->y:F
|
|
|
|
iget v5, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->width:F
|
|
|
|
iget v6, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->height:F
|
|
|
|
array-length v7, v2
|
|
|
|
const/4 v8, 0x1
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
array-length v7, v7
|
|
|
|
array-length v9, v2
|
|
|
|
sub-int/2addr v9, v8
|
|
|
|
aget v9, v2, v9
|
|
|
|
if-gt v7, v9, :cond_0
|
|
|
|
array-length v7, v2
|
|
|
|
sub-int/2addr v7, v8
|
|
|
|
aget v7, v2, v7
|
|
|
|
add-int/2addr v7, v8
|
|
|
|
new-array v9, v7, [D
|
|
|
|
iput-object v9, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
new-array v7, v7, [D
|
|
|
|
iput-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempDelta:[D
|
|
|
|
:cond_0
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
const-wide/high16 v9, 0x7ff8000000000000L # Double.NaN
|
|
|
|
invoke-static {v7, v9, v10}, Ljava/util/Arrays;->fill([DD)V
|
|
|
|
const/4 v9, 0x0
|
|
|
|
:goto_0
|
|
array-length v10, v2
|
|
|
|
if-ge v9, v10, :cond_1
|
|
|
|
iget-object v10, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
aget v11, v2, v9
|
|
|
|
aget-wide v12, p3, v9
|
|
|
|
aput-wide v12, v10, v11
|
|
|
|
iget-object v10, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempDelta:[D
|
|
|
|
aget v11, v2, v9
|
|
|
|
aget-wide v12, p4, v9
|
|
|
|
aput-wide v12, v10, v11
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v10, 0x0
|
|
|
|
const/high16 v11, 0x7fc00000 # Float.NaN
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_1
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
array-length v9, v7
|
|
|
|
if-ge v10, v9, :cond_b
|
|
|
|
aget-wide v17, v7, v10
|
|
|
|
invoke-static/range {v17 .. v18}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v7
|
|
|
|
const-wide/16 v17, 0x0
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
if-eqz p5, :cond_2
|
|
|
|
aget-wide v19, p5, v10
|
|
|
|
cmpl-double v7, v19, v17
|
|
|
|
if-nez v7, :cond_3
|
|
|
|
:cond_2
|
|
move/from16 p4, v3
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
if-eqz p5, :cond_4
|
|
|
|
aget-wide v17, p5, v10
|
|
|
|
:cond_4
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
aget-wide v19, v7, v10
|
|
|
|
invoke-static/range {v19 .. v20}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
iget-object v7, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempValue:[D
|
|
|
|
aget-wide v19, v7, v10
|
|
|
|
add-double v17, v19, v17
|
|
|
|
:goto_2
|
|
move/from16 p4, v3
|
|
|
|
move-wide/from16 v2, v17
|
|
|
|
double-to-float v2, v2
|
|
|
|
iget-object v3, v0, Landroidx/constraintlayout/motion/widget/MotionPaths;->mTempDelta:[D
|
|
|
|
aget-wide v8, v3, v10
|
|
|
|
double-to-float v3, v8
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-eq v10, v7, :cond_a
|
|
|
|
const/4 v8, 0x2
|
|
|
|
if-eq v10, v8, :cond_9
|
|
|
|
const/4 v8, 0x3
|
|
|
|
if-eq v10, v8, :cond_8
|
|
|
|
const/4 v8, 0x4
|
|
|
|
if-eq v10, v8, :cond_7
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-eq v10, v3, :cond_6
|
|
|
|
:goto_3
|
|
move/from16 v3, p4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
move/from16 v3, p4
|
|
|
|
move v11, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
move v6, v2
|
|
|
|
move v15, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move v5, v2
|
|
|
|
move v13, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
move v4, v2
|
|
|
|
move v14, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
move v12, v3
|
|
|
|
move v3, v2
|
|
|
|
:goto_4
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
move/from16 p4, v3
|
|
|
|
const/4 v7, 0x1
|
|
|
|
invoke-static {v11}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
const/high16 v2, 0x7fc00000 # Float.NaN
|
|
|
|
invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_e
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setRotation(F)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
const/high16 v2, 0x7fc00000 # Float.NaN
|
|
|
|
invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_d
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:cond_d
|
|
const/high16 v3, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v13, v3
|
|
|
|
add-float/2addr v13, v12
|
|
|
|
div-float/2addr v15, v3
|
|
|
|
add-float/2addr v15, v14
|
|
|
|
float-to-double v2, v2
|
|
|
|
float-to-double v8, v11
|
|
|
|
float-to-double v10, v15
|
|
|
|
float-to-double v12, v13
|
|
|
|
invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->atan2(DD)D
|
|
|
|
move-result-wide v10
|
|
|
|
invoke-static {v10, v11}, Ljava/lang/Math;->toDegrees(D)D
|
|
|
|
move-result-wide v10
|
|
|
|
add-double/2addr v10, v8
|
|
|
|
add-double/2addr v10, v2
|
|
|
|
double-to-float v2, v10
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setRotation(F)V
|
|
|
|
:cond_e
|
|
:goto_5
|
|
const/high16 v2, 0x3f000000 # 0.5f
|
|
|
|
add-float v3, p4, v2
|
|
|
|
float-to-int v8, v3
|
|
|
|
add-float/2addr v4, v2
|
|
|
|
float-to-int v2, v4
|
|
|
|
add-float/2addr v3, v5
|
|
|
|
float-to-int v3, v3
|
|
|
|
add-float/2addr v4, v6
|
|
|
|
float-to-int v4, v4
|
|
|
|
sub-int v5, v3, v8
|
|
|
|
sub-int v6, v4, v2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v9
|
|
|
|
if-ne v5, v9, :cond_10
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v9
|
|
|
|
if-eq v6, v9, :cond_f
|
|
|
|
goto :goto_6
|
|
|
|
:cond_f
|
|
const/16 v16, 0x0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_10
|
|
:goto_6
|
|
const/16 v16, 0x1
|
|
|
|
:goto_7
|
|
if-eqz v16, :cond_11
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v1, v5, v6}, Landroid/view/View;->measure(II)V
|
|
|
|
:cond_11
|
|
invoke-virtual {v1, v8, v2, v3, v4}, Landroid/view/View;->layout(IIII)V
|
|
|
|
return-void
|
|
.end method
|