Rabbit-R1/original r1/smali/smali_classes2/androidx/transition/PathProperty.smali
2024-05-21 17:08:36 -04:00

208 lines
5.1 KiB
Smali

.class Landroidx/transition/PathProperty;
.super Landroid/util/Property;
.source "PathProperty.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Landroid/util/Property<",
"TT;",
"Ljava/lang/Float;",
">;"
}
.end annotation
# instance fields
.field private mCurrentFraction:F
.field private final mPathLength:F
.field private final mPathMeasure:Landroid/graphics/PathMeasure;
.field private final mPointF:Landroid/graphics/PointF;
.field private final mPosition:[F
.field private final mProperty:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"TT;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Landroid/util/Property;Landroid/graphics/Path;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/util/Property<",
"TT;",
"Landroid/graphics/PointF;",
">;",
"Landroid/graphics/Path;",
")V"
}
.end annotation
.line 45
const-class v0, Ljava/lang/Float;
invoke-virtual {p1}, Landroid/util/Property;->getName()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v0, v1}, Landroid/util/Property;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
const/4 v0, 0x2
new-array v0, v0, [F
iput-object v0, p0, Landroidx/transition/PathProperty;->mPosition:[F
.line 41
new-instance v0, Landroid/graphics/PointF;
invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V
iput-object v0, p0, Landroidx/transition/PathProperty;->mPointF:Landroid/graphics/PointF;
iput-object p1, p0, Landroidx/transition/PathProperty;->mProperty:Landroid/util/Property;
.line 47
new-instance p1, Landroid/graphics/PathMeasure;
const/4 v0, 0x0
invoke-direct {p1, p2, v0}, Landroid/graphics/PathMeasure;-><init>(Landroid/graphics/Path;Z)V
iput-object p1, p0, Landroidx/transition/PathProperty;->mPathMeasure:Landroid/graphics/PathMeasure;
.line 48
invoke-virtual {p1}, Landroid/graphics/PathMeasure;->getLength()F
move-result p1
iput p1, p0, Landroidx/transition/PathProperty;->mPathLength:F
return-void
.end method
# virtual methods
.method public get(Ljava/lang/Object;)Ljava/lang/Float;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Ljava/lang/Float;"
}
.end annotation
iget p0, p0, Landroidx/transition/PathProperty;->mCurrentFraction:F
.line 53
invoke-static {p0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object p0
return-object p0
.end method
.method public bridge synthetic get(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 35
invoke-virtual {p0, p1}, Landroidx/transition/PathProperty;->get(Ljava/lang/Object;)Ljava/lang/Float;
move-result-object p0
return-object p0
.end method
.method public set(Ljava/lang/Object;Ljava/lang/Float;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;",
"Ljava/lang/Float;",
")V"
}
.end annotation
.line 58
invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F
move-result v0
iput v0, p0, Landroidx/transition/PathProperty;->mCurrentFraction:F
iget-object v0, p0, Landroidx/transition/PathProperty;->mPathMeasure:Landroid/graphics/PathMeasure;
iget v1, p0, Landroidx/transition/PathProperty;->mPathLength:F
.line 59
invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F
move-result p2
mul-float/2addr v1, p2
iget-object p2, p0, Landroidx/transition/PathProperty;->mPosition:[F
const/4 v2, 0x0
invoke-virtual {v0, v1, p2, v2}, Landroid/graphics/PathMeasure;->getPosTan(F[F[F)Z
iget-object p2, p0, Landroidx/transition/PathProperty;->mPointF:Landroid/graphics/PointF;
iget-object v0, p0, Landroidx/transition/PathProperty;->mPosition:[F
const/4 v1, 0x0
.line 60
aget v0, v0, v1
iput v0, p2, Landroid/graphics/PointF;->x:F
iget-object p2, p0, Landroidx/transition/PathProperty;->mPointF:Landroid/graphics/PointF;
iget-object v0, p0, Landroidx/transition/PathProperty;->mPosition:[F
const/4 v1, 0x1
.line 61
aget v0, v0, v1
iput v0, p2, Landroid/graphics/PointF;->y:F
iget-object p2, p0, Landroidx/transition/PathProperty;->mProperty:Landroid/util/Property;
iget-object p0, p0, Landroidx/transition/PathProperty;->mPointF:Landroid/graphics/PointF;
.line 62
invoke-virtual {p2, p1, p0}, Landroid/util/Property;->set(Ljava/lang/Object;Ljava/lang/Object;)V
return-void
.end method
.method public bridge synthetic set(Ljava/lang/Object;Ljava/lang/Object;)V
.locals 0
.line 35
check-cast p2, Ljava/lang/Float;
invoke-virtual {p0, p1, p2}, Landroidx/transition/PathProperty;->set(Ljava/lang/Object;Ljava/lang/Float;)V
return-void
.end method