233 lines
4.1 KiB
Smali
233 lines
4.1 KiB
Smali
|
.class public Lf/d/a/y/f;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "MiscUtils.java"
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static a:Landroid/graphics/PointF;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Landroid/graphics/PointF;
|
||
|
|
||
|
invoke-direct {v0}, Landroid/graphics/PointF;-><init>()V
|
||
|
|
||
|
sput-object v0, Lf/d/a/y/f;->a:Landroid/graphics/PointF;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static a(Landroid/graphics/PointF;Landroid/graphics/PointF;)Landroid/graphics/PointF;
|
||
|
.locals 3
|
||
|
|
||
|
new-instance v0, Landroid/graphics/PointF;
|
||
|
|
||
|
iget v1, p0, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
iget v2, p1, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
add-float/2addr v1, v2
|
||
|
|
||
|
iget p0, p0, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
iget p1, p1, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
add-float/2addr p0, p1
|
||
|
|
||
|
invoke-direct {v0, v1, p0}, Landroid/graphics/PointF;-><init>(FF)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static b(FFF)F
|
||
|
.locals 0
|
||
|
|
||
|
invoke-static {p2, p0}, Ljava/lang/Math;->min(FF)F
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-static {p1, p0}, Ljava/lang/Math;->max(FF)F
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static c(III)I
|
||
|
.locals 0
|
||
|
|
||
|
invoke-static {p2, p0}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
invoke-static {p1, p0}, Ljava/lang/Math;->max(II)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static d(FFF)Z
|
||
|
.locals 0
|
||
|
|
||
|
cmpl-float p1, p0, p1
|
||
|
|
||
|
if-ltz p1, :cond_0
|
||
|
|
||
|
cmpg-float p0, p0, p2
|
||
|
|
||
|
if-gtz p0, :cond_0
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static e(FF)I
|
||
|
.locals 3
|
||
|
|
||
|
float-to-int p0, p0
|
||
|
|
||
|
float-to-int p1, p1
|
||
|
|
||
|
div-int v0, p0, p1
|
||
|
|
||
|
xor-int v1, p0, p1
|
||
|
|
||
|
if-ltz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
rem-int v2, p0, p1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
add-int/lit8 v0, v0, -0x1
|
||
|
|
||
|
:cond_1
|
||
|
mul-int p1, p1, v0
|
||
|
|
||
|
sub-int/2addr p0, p1
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static f(DDD)D
|
||
|
.locals 0
|
||
|
.param p4 # D
|
||
|
.annotation build Landroidx/annotation/FloatRange;
|
||
|
from = 0.0
|
||
|
to = 1.0
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
sub-double/2addr p2, p0
|
||
|
|
||
|
mul-double p2, p2, p4
|
||
|
|
||
|
add-double/2addr p2, p0
|
||
|
|
||
|
return-wide p2
|
||
|
.end method
|
||
|
|
||
|
.method public static g(FFF)F
|
||
|
.locals 0
|
||
|
.param p2 # F
|
||
|
.annotation build Landroidx/annotation/FloatRange;
|
||
|
from = 0.0
|
||
|
to = 1.0
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
invoke-static {p1, p0, p2, p0}, Lf/e/b/a/a;->a(FFFF)F
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static h(IIF)I
|
||
|
.locals 1
|
||
|
.param p2 # F
|
||
|
.annotation build Landroidx/annotation/FloatRange;
|
||
|
from = 0.0
|
||
|
to = 1.0
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
int-to-float v0, p0
|
||
|
|
||
|
sub-int/2addr p1, p0
|
||
|
|
||
|
int-to-float p0, p1
|
||
|
|
||
|
mul-float p2, p2, p0
|
||
|
|
||
|
add-float/2addr p2, v0
|
||
|
|
||
|
float-to-int p0, p2
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public static i(Lf/d/a/v/e;ILjava/util/List;Lf/d/a/v/e;Lf/d/a/t/b/k;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lf/d/a/v/e;",
|
||
|
"I",
|
||
|
"Ljava/util/List<",
|
||
|
"Lf/d/a/v/e;",
|
||
|
">;",
|
||
|
"Lf/d/a/v/e;",
|
||
|
"Lf/d/a/t/b/k;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-interface {p4}, Lf/d/a/t/b/c;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0, v0, p1}, Lf/d/a/v/e;->c(Ljava/lang/String;I)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
invoke-interface {p4}, Lf/d/a/t/b/c;->getName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p3, p0}, Lf/d/a/v/e;->a(Ljava/lang/String;)Lf/d/a/v/e;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-virtual {p0, p4}, Lf/d/a/v/e;->g(Lf/d/a/v/f;)Lf/d/a/v/e;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-interface {p2, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|