2020-01-10 03:40:06 +00:00
|
|
|
.class public Le/n/a/j/c;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "RotationGestureDetector.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-01-10 03:40:06 +00:00
|
|
|
Le/n/a/j/c$a;,
|
|
|
|
Le/n/a/j/c$b;
|
2019-12-06 03:29:40 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public a:F
|
|
|
|
|
|
|
|
.field public b:F
|
|
|
|
|
|
|
|
.field public c:F
|
|
|
|
|
|
|
|
.field public d:F
|
|
|
|
|
|
|
|
.field public e:I
|
|
|
|
|
|
|
|
.field public f:I
|
|
|
|
|
|
|
|
.field public g:F
|
|
|
|
|
|
|
|
.field public h:Z
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
.field public i:Le/n/a/j/c$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-01-10 03:40:06 +00:00
|
|
|
.method public constructor <init>(Le/n/a/j/c$a;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput-object p1, p0, Le/n/a/j/c;->i:Le/n/a/j/c$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, -0x1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput p1, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput p1, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 10
|
|
|
|
.param p1 # Landroid/view/MotionEvent;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
|
|
|
|
const/4 v4, -0x1
|
|
|
|
|
|
|
|
if-eq v0, v3, :cond_7
|
|
|
|
|
|
|
|
const/4 v5, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v5, :cond_2
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x6
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v4, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v0, p0, Le/n/a/j/c;->a:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v0, p0, Le/n/a/j/c;->b:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionIndex()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput p1, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v2, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput-boolean v3, p0, Le/n/a/j/c;->h:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto/16 :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v0, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v0, v4, :cond_9
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v0, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eq v0, v4, :cond_9
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v4, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-le v0, v4, :cond_9
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v0, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v4, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v4}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v5, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v5}, Landroid/view/MotionEvent;->getX(I)F
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v6, p0, Le/n/a/j/c;->f:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v6}, Landroid/view/MotionEvent;->getY(I)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget-boolean v6, p0, Le/n/a/j/c;->h:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v2, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput-boolean v1, p0, Le/n/a/j/c;->h:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v1, p0, Le/n/a/j/c;->a:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v2, p0, Le/n/a/j/c;->b:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v6, p0, Le/n/a/j/c;->c:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v7, p0, Le/n/a/j/c;->d:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-float/2addr v2, v7
|
|
|
|
|
|
|
|
float-to-double v7, v2
|
|
|
|
|
|
|
|
sub-float/2addr v1, v6
|
|
|
|
|
|
|
|
float-to-double v1, v1
|
|
|
|
|
|
|
|
invoke-static {v7, v8, v1, v2}, Ljava/lang/Math;->atan2(DD)D
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
double-to-float v1, v1
|
|
|
|
|
|
|
|
float-to-double v1, v1
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->toDegrees(D)D
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
double-to-float v1, v1
|
|
|
|
|
|
|
|
sub-float v2, p1, v4
|
|
|
|
|
|
|
|
float-to-double v6, v2
|
|
|
|
|
|
|
|
sub-float v2, v5, v0
|
|
|
|
|
|
|
|
float-to-double v8, v2
|
|
|
|
|
|
|
|
invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->atan2(DD)D
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
double-to-float v2, v6
|
|
|
|
|
|
|
|
float-to-double v6, v2
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Math;->toDegrees(D)D
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
double-to-float v2, v6
|
|
|
|
|
|
|
|
const/high16 v6, 0x43b40000 # 360.0f
|
|
|
|
|
|
|
|
rem-float/2addr v2, v6
|
|
|
|
|
|
|
|
rem-float/2addr v1, v6
|
|
|
|
|
|
|
|
sub-float/2addr v2, v1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v2, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iget v1, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/high16 v2, -0x3ccc0000 # -180.0f
|
|
|
|
|
|
|
|
cmpg-float v2, v1, v2
|
|
|
|
|
|
|
|
if-gez v2, :cond_4
|
|
|
|
|
|
|
|
add-float/2addr v1, v6
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v1, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/high16 v2, 0x43340000 # 180.0f
|
|
|
|
|
|
|
|
cmpl-float v2, v1, v2
|
|
|
|
|
|
|
|
if-lez v2, :cond_5
|
|
|
|
|
|
|
|
sub-float/2addr v1, v6
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v1, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_0
|
2020-01-10 03:40:06 +00:00
|
|
|
iget-object v1, p0, Le/n/a/j/c;->i:Le/n/a/j/c$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
invoke-interface {v1, p0}, Le/n/a/j/c$a;->a(Le/n/a/j/c;)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_6
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v5, p0, Le/n/a/j/c;->a:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput p1, p0, Le/n/a/j/c;->b:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v0, p0, Le/n/a/j/c;->c:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v4, p0, Le/n/a/j/c;->d:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v4, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v0, p0, Le/n/a/j/c;->c:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v0, p0, Le/n/a/j/c;->d:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->getPointerId(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput p1, p0, Le/n/a/j/c;->e:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput v2, p0, Le/n/a/j/c;->g:F
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-01-10 03:40:06 +00:00
|
|
|
iput-boolean v3, p0, Le/n/a/j/c;->h:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_1
|
|
|
|
return v3
|
|
|
|
.end method
|