apkfuckery/com.discord/smali/androidx/transition/TransitionUtils$MatrixEvaluator.smali

129 lines
3.2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class Landroidx/transition/TransitionUtils$MatrixEvaluator;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "TransitionUtils.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Landroid/animation/TypeEvaluator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/transition/TransitionUtils;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "MatrixEvaluator"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/animation/TypeEvaluator<",
"Landroid/graphics/Matrix;",
">;"
}
.end annotation
# instance fields
.field final mTempEndValues:[F
.field final mTempMatrix:Landroid/graphics/Matrix;
.field final mTempStartValues:[F
# direct methods
.method constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 v0, 0x9
new-array v1, v0, [F
iput-object v1, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempStartValues:[F
new-array v0, v0, [F
iput-object v0, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempEndValues:[F
new-instance v0, Landroid/graphics/Matrix;
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
iput-object v0, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempMatrix:Landroid/graphics/Matrix;
return-void
.end method
# virtual methods
.method public evaluate(FLandroid/graphics/Matrix;Landroid/graphics/Matrix;)Landroid/graphics/Matrix;
2019-02-04 20:29:01 +00:00
.locals 3
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempStartValues:[F
invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->getValues([F)V
iget-object p2, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempEndValues:[F
invoke-virtual {p3, p2}, Landroid/graphics/Matrix;->getValues([F)V
const/4 p2, 0x0
:goto_0
const/16 p3, 0x9
if-ge p2, p3, :cond_0
iget-object p3, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempEndValues:[F
2019-02-04 20:29:01 +00:00
aget v0, p3, p2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget-object v1, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempStartValues:[F
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget v2, v1, p2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-float/2addr v0, v2
2019-02-04 20:08:30 +00:00
aget v1, v1, p2
2019-02-04 20:29:01 +00:00
mul-float v0, v0, p1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
add-float/2addr v1, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aput v1, p3, p2
2019-02-04 20:08:30 +00:00
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_0
iget-object p1, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempMatrix:Landroid/graphics/Matrix;
iget-object p2, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempEndValues:[F
invoke-virtual {p1, p2}, Landroid/graphics/Matrix;->setValues([F)V
iget-object p1, p0, Landroidx/transition/TransitionUtils$MatrixEvaluator;->mTempMatrix:Landroid/graphics/Matrix;
return-object p1
.end method
.method public bridge synthetic evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p2, Landroid/graphics/Matrix;
check-cast p3, Landroid/graphics/Matrix;
invoke-virtual {p0, p1, p2, p3}, Landroidx/transition/TransitionUtils$MatrixEvaluator;->evaluate(FLandroid/graphics/Matrix;Landroid/graphics/Matrix;)Landroid/graphics/Matrix;
move-result-object p1
return-object p1
.end method