WheelView.smali
.class public Lcom/contrarywind/view/WheelView;
.super Landroid/view/View;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/contrarywind/view/WheelView$b;,
Lcom/contrarywind/view/WheelView$a;
}
.end annotation
# static fields
.field private static final e:[Ljava/lang/String;
# instance fields
.field private A:F
.field private B:F
.field private C:F
.field private D:F
.field private E:F
.field private F:I
.field private G:I
.field private H:I
.field private I:I
.field private J:I
.field private K:I
.field private L:I
.field private M:I
.field private N:F
.field private O:J
.field private P:I
.field private Q:I
.field private R:I
.field private S:I
.field private T:F
.field private U:Z
.field public a:Lcom/contrarywind/c/b;
.field public b:Ljava/util/concurrent/ScheduledExecutorService;
.field public c:Ljava/util/concurrent/ScheduledFuture;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/ScheduledFuture<",
"*>;"
}
.end annotation
.end field
.field public d:Z
.field private f:Lcom/contrarywind/view/WheelView$b;
.field private g:Landroid/content/Context;
.field private h:Landroid/os/Handler;
.field private i:Landroid/view/GestureDetector;
.field private j:Z
.field private k:Z
.field private l:Landroid/graphics/Paint;
.field private m:Landroid/graphics/Paint;
.field private n:Landroid/graphics/Paint;
.field private o:Lcom/contrarywind/a/a;
.field private p:Ljava/lang/String;
.field private q:I
.field private r:I
.field private s:I
.field private t:I
.field private u:F
.field private v:Landroid/graphics/Typeface;
.field private w:I
.field private x:I
.field private y:I
.field private z:I
# direct methods
.method static constructor <clinit>()V
.registers 10
const-string v0, "00"
const-string v1, "01"
const-string v2, "02"
const-string v3, "03"
const-string v4, "04"
const-string v5, "05"
const-string v6, "06"
const-string v7, "07"
const-string v8, "08"
const-string v9, "09"
.line 45
filled-new-array/range {v0 .. v9}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/contrarywind/view/WheelView;->e:[Ljava/lang/String;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
const/4 v0, 0x0
.line 128
invoke-direct {p0, p1, v0}, Lcom/contrarywind/view/WheelView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 10
.line 132
invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 v0, 0x0
.line 54
iput-boolean v0, p0, Lcom/contrarywind/view/WheelView;->j:Z
const/4 v1, 0x1
.line 55
iput-boolean v1, p0, Lcom/contrarywind/view/WheelView;->k:Z
.line 58
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v2
iput-object v2, p0, Lcom/contrarywind/view/WheelView;->b:Ljava/util/concurrent/ScheduledExecutorService;
.line 75
sget-object v2, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;
iput-object v2, p0, Lcom/contrarywind/view/WheelView;->v:Landroid/graphics/Typeface;
const v2, 0x3fcccccd # 1.6f
.line 82
iput v2, p0, Lcom/contrarywind/view/WheelView;->A:F
const/16 v2, 0xb
.line 103
iput v2, p0, Lcom/contrarywind/view/WheelView;->I:I
.line 111
iput v0, p0, Lcom/contrarywind/view/WheelView;->M:I
const/4 v2, 0x0
.line 112
iput v2, p0, Lcom/contrarywind/view/WheelView;->N:F
const-wide/16 v3, 0x0
.line 113
iput-wide v3, p0, Lcom/contrarywind/view/WheelView;->O:J
const/16 v3, 0x11
.line 119
iput v3, p0, Lcom/contrarywind/view/WheelView;->Q:I
.line 120
iput v0, p0, Lcom/contrarywind/view/WheelView;->R:I
.line 121
iput v0, p0, Lcom/contrarywind/view/WheelView;->S:I
.line 125
iput-boolean v0, p0, Lcom/contrarywind/view/WheelView;->U:Z
.line 134
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->getResources()Landroid/content/res/Resources;
move-result-object v4
sget v5, Lcom/contrarywind/view/a$a;->pickerview_textsize:I
invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
move-result v4
iput v4, p0, Lcom/contrarywind/view/WheelView;->q:I
.line 136
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->getResources()Landroid/content/res/Resources;
move-result-object v4
invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v4
.line 137
iget v4, v4, Landroid/util/DisplayMetrics;->density:F
const/high16 v5, 0x3f800000 # 1.0f
cmpg-float v6, v4, v5
if-gez v6, :cond_51
const v4, 0x4019999a # 2.4f
.line 140
iput v4, p0, Lcom/contrarywind/view/WheelView;->T:F
goto :goto_79
:cond_51
const/high16 v6, 0x40000000 # 2.0f
cmpg-float v5, v5, v4
if-gtz v5, :cond_60
cmpg-float v5, v4, v6
if-gez v5, :cond_60
const/high16 v4, 0x40800000 # 4.0f
.line 142
iput v4, p0, Lcom/contrarywind/view/WheelView;->T:F
goto :goto_79
:cond_60
const/high16 v5, 0x40400000 # 3.0f
cmpg-float v6, v6, v4
if-gtz v6, :cond_6f
cmpg-float v6, v4, v5
if-gez v6, :cond_6f
const/high16 v4, 0x40c00000 # 6.0f
.line 144
iput v4, p0, Lcom/contrarywind/view/WheelView;->T:F
goto :goto_79
:cond_6f
cmpl-float v5, v4, v5
if-ltz v5, :cond_79
const/high16 v5, 0x40200000 # 2.5f
mul-float v4, v4, v5
.line 146
iput v4, p0, Lcom/contrarywind/view/WheelView;->T:F
:cond_79
:goto_79
if-eqz p2, :cond_ca
.line 150
sget-object v4, Lcom/contrarywind/view/a$b;->pickerview:[I
invoke-virtual {p1, p2, v4, v0, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p2
.line 151
sget v4, Lcom/contrarywind/view/a$b;->pickerview_wheelview_gravity:I
invoke-virtual {p2, v4, v3}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->Q:I
.line 152
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_textColorOut:I
const v4, -0x575758
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->w:I
.line 153
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_textColorCenter:I
const v4, -0xd5d5d6
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->x:I
.line 154
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_dividerColor:I
const v4, -0x2a2a2b
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->y:I
.line 155
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_dividerWidth:I
const/4 v4, 0x2
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->z:I
.line 156
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_textSize:I
iget v4, p0, Lcom/contrarywind/view/WheelView;->q:I
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->q:I
.line 157
sget v3, Lcom/contrarywind/view/a$b;->pickerview_wheelview_lineSpacingMultiplier:I
iget v4, p0, Lcom/contrarywind/view/WheelView;->A:F
invoke-virtual {p2, v3, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v3
iput v3, p0, Lcom/contrarywind/view/WheelView;->A:F
.line 158
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
.line 161
:cond_ca
invoke-direct {p0}, Lcom/contrarywind/view/WheelView;->b()V
.line 1177
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->g:Landroid/content/Context;
.line 1178
new-instance p2, Lcom/contrarywind/d/b;
invoke-direct {p2, p0}, Lcom/contrarywind/d/b;-><init>(Lcom/contrarywind/view/WheelView;)V
iput-object p2, p0, Lcom/contrarywind/view/WheelView;->h:Landroid/os/Handler;
.line 1179
new-instance p2, Landroid/view/GestureDetector;
new-instance v3, Lcom/contrarywind/c/a;
invoke-direct {v3, p0}, Lcom/contrarywind/c/a;-><init>(Lcom/contrarywind/view/WheelView;)V
invoke-direct {p2, p1, v3}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V
iput-object p2, p0, Lcom/contrarywind/view/WheelView;->i:Landroid/view/GestureDetector;
.line 1180
invoke-virtual {p2, v0}, Landroid/view/GestureDetector;->setIsLongpressEnabled(Z)V
.line 1181
iput-boolean v1, p0, Lcom/contrarywind/view/WheelView;->d:Z
.line 1183
iput v2, p0, Lcom/contrarywind/view/WheelView;->E:F
const/4 p1, -0x1
.line 1184
iput p1, p0, Lcom/contrarywind/view/WheelView;->F:I
.line 1189
new-instance p1, Landroid/graphics/Paint;
invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
.line 1190
iget p2, p0, Lcom/contrarywind/view/WheelView;->w:I
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V
.line 1191
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {p1, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 1192
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
iget-object p2, p0, Lcom/contrarywind/view/WheelView;->v:Landroid/graphics/Typeface;
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
.line 1193
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
iget p2, p0, Lcom/contrarywind/view/WheelView;->q:I
int-to-float p2, p2
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setTextSize(F)V
.line 1195
new-instance p1, Landroid/graphics/Paint;
invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
.line 1196
iget p2, p0, Lcom/contrarywind/view/WheelView;->x:I
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V
.line 1197
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {p1, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
.line 1198
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
const p2, 0x3f8ccccd # 1.1f
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setTextScaleX(F)V
.line 1199
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget-object p2, p0, Lcom/contrarywind/view/WheelView;->v:Landroid/graphics/Typeface;
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
.line 1200
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget p2, p0, Lcom/contrarywind/view/WheelView;->q:I
int-to-float p2, p2
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setTextSize(F)V
.line 1202
new-instance p1, Landroid/graphics/Paint;
invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
.line 1203
iget p2, p0, Lcom/contrarywind/view/WheelView;->y:I
invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V
.line 1204
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
invoke-virtual {p1, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
const/4 p1, 0x0
.line 1206
invoke-virtual {p0, v1, p1}, Lcom/contrarywind/view/WheelView;->setLayerType(ILandroid/graphics/Paint;)V
return-void
.end method
.method private a(I)I
.registers 3
if-gez p1, :cond_e
.line 592
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
add-int/2addr p1, v0
.line 593
invoke-direct {p0, p1}, Lcom/contrarywind/view/WheelView;->a(I)I
move-result p1
goto :goto_23
.line 594
:cond_e
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
add-int/lit8 v0, v0, -0x1
if-le p1, v0, :cond_23
.line 595
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
sub-int/2addr p1, v0
.line 596
invoke-direct {p0, p1}, Lcom/contrarywind/view/WheelView;->a(I)I
move-result p1
:cond_23
:goto_23
return p1
.end method
.method static synthetic a(Lcom/contrarywind/view/WheelView;)Lcom/contrarywind/c/b;
.registers 1
.line 35
iget-object p0, p0, Lcom/contrarywind/view/WheelView;->a:Lcom/contrarywind/c/b;
return-object p0
.end method
.method private static a(Ljava/lang/Object;)Ljava/lang/String;
.registers 2
if-nez p0, :cond_5
const-string p0, ""
return-object p0
.line 610
:cond_5
instance-of v0, p0, Lcom/contrarywind/b/a;
if-eqz v0, :cond_10
.line 611
check-cast p0, Lcom/contrarywind/b/a;
invoke-interface {p0}, Lcom/contrarywind/b/a;->a()Ljava/lang/String;
move-result-object p0
return-object p0
.line 612
:cond_10
instance-of v0, p0, Ljava/lang/Integer;
if-eqz v0, :cond_1f
.line 614
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
invoke-static {p0}, Lcom/contrarywind/view/WheelView;->b(I)Ljava/lang/String;
move-result-object p0
return-object p0
.line 616
:cond_1f
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private a(FF)V
.registers 8
.line 554
iget v0, p0, Lcom/contrarywind/view/WheelView;->t:I
const/4 v1, -0x1
const/4 v2, 0x1
if-lez v0, :cond_8
const/4 v0, 0x1
goto :goto_d
:cond_8
if-gez v0, :cond_c
const/4 v0, -0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
.line 559
:goto_d
iget-object v3, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
const/4 v4, 0x0
cmpl-float v4, p2, v4
if-lez v4, :cond_15
goto :goto_16
:cond_15
const/4 v1, 0x1
:goto_16
mul-int v0, v0, v1
int-to-float v0, v0
const/high16 v1, 0x3f000000 # 0.5f
mul-float v0, v0, v1
mul-float v0, v0, p1
invoke-virtual {v3, v0}, Landroid/graphics/Paint;->setTextSkewX(F)V
.line 562
iget-boolean p1, p0, Lcom/contrarywind/view/WheelView;->U:Z
if-eqz p1, :cond_35
invoke-static {p2}, Ljava/lang/Math;->abs(F)F
move-result p1
const/high16 p2, 0x42b40000 # 90.0f
sub-float p1, p2, p1
div-float/2addr p1, p2
const/high16 p2, 0x437f0000 # 255.0f
mul-float p1, p1, p2
float-to-int p1, p1
goto :goto_37
:cond_35
const/16 p1, 0xff
.line 564
:goto_37
iget-object p2, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {p2, p1}, Landroid/graphics/Paint;->setAlpha(I)V
return-void
.end method
.method private a(Ljava/lang/String;)V
.registers 7
.line 573
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
.line 574
iget-object v1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
const/4 v3, 0x0
invoke-virtual {v1, p1, v3, v2, v0}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 575
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
move-result v1
.line 576
iget v2, p0, Lcom/contrarywind/view/WheelView;->q:I
.line 577
:goto_15
iget v4, p0, Lcom/contrarywind/view/WheelView;->K:I
if-le v1, v4, :cond_2f
add-int/lit8 v2, v2, -0x1
.line 580
iget-object v1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
int-to-float v4, v2
invoke-virtual {v1, v4}, Landroid/graphics/Paint;->setTextSize(F)V
.line 581
iget-object v1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v4
invoke-virtual {v1, p1, v3, v4, v0}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 582
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
move-result v1
goto :goto_15
.line 585
:cond_2f
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
int-to-float v0, v2
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextSize(F)V
return-void
.end method
.method private static b(I)Ljava/lang/String;
.registers 2
if-ltz p0, :cond_b
const/16 v0, 0xa
if-ge p0, v0, :cond_b
.line 620
sget-object v0, Lcom/contrarywind/view/WheelView;->e:[Ljava/lang/String;
aget-object p0, v0, p0
return-object p0
:cond_b
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private b()V
.registers 4
.line 169
iget v0, p0, Lcom/contrarywind/view/WheelView;->A:F
const/high16 v1, 0x3f800000 # 1.0f
cmpg-float v2, v0, v1
if-gez v2, :cond_b
.line 170
iput v1, p0, Lcom/contrarywind/view/WheelView;->A:F
return-void
:cond_b
const/high16 v1, 0x40800000 # 4.0f
cmpl-float v0, v0, v1
if-lez v0, :cond_13
.line 172
iput v1, p0, Lcom/contrarywind/view/WheelView;->A:F
:cond_13
return-void
.end method
.method private c()V
.registers 9
.line 210
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
if-nez v0, :cond_5
return-void
.line 1244
:cond_5
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
const/4 v1, 0x0
const/4 v2, 0x0
.line 1245
:goto_c
iget-object v3, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v3}, Lcom/contrarywind/a/a;->a()I
move-result v3
if-ge v2, v3, :cond_34
.line 1246
iget-object v3, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v3, v2}, Lcom/contrarywind/a/a;->a(I)Ljava/lang/Object;
move-result-object v3
invoke-static {v3}, Lcom/contrarywind/view/WheelView;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
.line 1247
iget-object v4, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v5
invoke-virtual {v4, v3, v1, v5, v0}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 1249
invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
move-result v3
.line 1250
iget v4, p0, Lcom/contrarywind/view/WheelView;->r:I
if-le v3, v4, :cond_31
.line 1251
iput v3, p0, Lcom/contrarywind/view/WheelView;->r:I
:cond_31
add-int/lit8 v2, v2, 0x1
goto :goto_c
.line 1254
:cond_34
iget-object v2, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
const/4 v3, 0x2
const-string v4, "\u661f\u671f"
invoke-virtual {v2, v4, v1, v3, v0}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 1255
invoke-virtual {v0}, Landroid/graphics/Rect;->height()I
move-result v0
add-int/2addr v0, v3
iput v0, p0, Lcom/contrarywind/view/WheelView;->s:I
.line 1256
iget v2, p0, Lcom/contrarywind/view/WheelView;->A:F
int-to-float v0, v0
mul-float v2, v2, v0
iput v2, p0, Lcom/contrarywind/view/WheelView;->u:F
.line 217
iget v0, p0, Lcom/contrarywind/view/WheelView;->I:I
add-int/lit8 v0, v0, -0x1
int-to-float v0, v0
mul-float v2, v2, v0
float-to-int v0, v2
mul-int/lit8 v2, v0, 0x2
int-to-double v4, v2
const-wide v6, 0x400921fb54442d18L # Math.PI
.line 219
invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z
div-double/2addr v4, v6
double-to-int v2, v4
iput v2, p0, Lcom/contrarywind/view/WheelView;->J:I
int-to-double v4, v0
.line 221
invoke-static {v4, v5}, Ljava/lang/Double;->isNaN(D)Z
div-double/2addr v4, v6
double-to-int v0, v4
iput v0, p0, Lcom/contrarywind/view/WheelView;->L:I
.line 223
iget v0, p0, Lcom/contrarywind/view/WheelView;->P:I
invoke-static {v0}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v0
iput v0, p0, Lcom/contrarywind/view/WheelView;->K:I
.line 225
iget v0, p0, Lcom/contrarywind/view/WheelView;->J:I
int-to-float v2, v0
iget v4, p0, Lcom/contrarywind/view/WheelView;->u:F
sub-float/2addr v2, v4
const/high16 v5, 0x40000000 # 2.0f
div-float/2addr v2, v5
iput v2, p0, Lcom/contrarywind/view/WheelView;->B:F
int-to-float v0, v0
add-float/2addr v0, v4
div-float/2addr v0, v5
.line 226
iput v0, p0, Lcom/contrarywind/view/WheelView;->C:F
.line 227
iget v2, p0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v2, v2
sub-float/2addr v4, v2
div-float/2addr v4, v5
sub-float/2addr v0, v4
iget v2, p0, Lcom/contrarywind/view/WheelView;->T:F
sub-float/2addr v0, v2
iput v0, p0, Lcom/contrarywind/view/WheelView;->D:F
.line 230
iget v0, p0, Lcom/contrarywind/view/WheelView;->F:I
const/4 v2, -0x1
if-ne v0, v2, :cond_a3
.line 231
iget-boolean v0, p0, Lcom/contrarywind/view/WheelView;->d:Z
if-eqz v0, :cond_a1
.line 232
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
add-int/lit8 v0, v0, 0x1
div-int/2addr v0, v3
iput v0, p0, Lcom/contrarywind/view/WheelView;->F:I
goto :goto_a3
.line 234
:cond_a1
iput v1, p0, Lcom/contrarywind/view/WheelView;->F:I
.line 237
:cond_a3
:goto_a3
iget v0, p0, Lcom/contrarywind/view/WheelView;->F:I
iput v0, p0, Lcom/contrarywind/view/WheelView;->H:I
return-void
.end method
# virtual methods
.method public final a()V
.registers 3
.line 279
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->c:Ljava/util/concurrent/ScheduledFuture;
if-eqz v0, :cond_13
invoke-interface {v0}, Ljava/util/concurrent/ScheduledFuture;->isCancelled()Z
move-result v0
if-nez v0, :cond_13
.line 280
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->c:Ljava/util/concurrent/ScheduledFuture;
const/4 v1, 0x1
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
const/4 v0, 0x0
.line 281
iput-object v0, p0, Lcom/contrarywind/view/WheelView;->c:Ljava/util/concurrent/ScheduledFuture;
:cond_13
return-void
.end method
.method public final a(Lcom/contrarywind/view/WheelView$a;)V
.registers 9
.line 260
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->a()V
.line 261
sget-object v0, Lcom/contrarywind/view/WheelView$a;->FLING:Lcom/contrarywind/view/WheelView$a;
if-eq p1, v0, :cond_b
sget-object v0, Lcom/contrarywind/view/WheelView$a;->DAGGLE:Lcom/contrarywind/view/WheelView$a;
if-ne p1, v0, :cond_27
.line 262
:cond_b
iget p1, p0, Lcom/contrarywind/view/WheelView;->E:F
iget v0, p0, Lcom/contrarywind/view/WheelView;->u:F
rem-float/2addr p1, v0
add-float/2addr p1, v0
rem-float/2addr p1, v0
float-to-int p1, p1
iput p1, p0, Lcom/contrarywind/view/WheelView;->M:I
int-to-float v1, p1
const/high16 v2, 0x40000000 # 2.0f
div-float v2, v0, v2
cmpl-float v1, v1, v2
if-lez v1, :cond_24
int-to-float p1, p1
sub-float/2addr v0, p1
float-to-int p1, v0
.line 264
iput p1, p0, Lcom/contrarywind/view/WheelView;->M:I
goto :goto_27
:cond_24
neg-int p1, p1
.line 266
iput p1, p0, Lcom/contrarywind/view/WheelView;->M:I
.line 270
:cond_27
:goto_27
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->b:Ljava/util/concurrent/ScheduledExecutorService;
new-instance v1, Lcom/contrarywind/d/c;
iget p1, p0, Lcom/contrarywind/view/WheelView;->M:I
invoke-direct {v1, p0, p1}, Lcom/contrarywind/d/c;-><init>(Lcom/contrarywind/view/WheelView;I)V
const-wide/16 v2, 0x0
const-wide/16 v4, 0xa
sget-object v6, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-interface/range {v0 .. v6}, Ljava/util/concurrent/ScheduledExecutorService;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object p1
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->c:Ljava/util/concurrent/ScheduledFuture;
return-void
.end method
.method public final getAdapter()Lcom/contrarywind/a/a;
.registers 2
.line 338
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
return-object v0
.end method
.method public final getCurrentItem()I
.registers 4
.line 343
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
const/4 v1, 0x0
if-nez v0, :cond_6
return v1
.line 346
:cond_6
iget-boolean v2, p0, Lcom/contrarywind/view/WheelView;->d:Z
if-eqz v2, :cond_36
iget v2, p0, Lcom/contrarywind/view/WheelView;->G:I
if-ltz v2, :cond_14
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
if-lt v2, v0, :cond_36
.line 347
:cond_14
iget v0, p0, Lcom/contrarywind/view/WheelView;->G:I
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
move-result v0
iget-object v2, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
sub-int/2addr v0, v2
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
move-result v0
iget-object v2, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
move-result v0
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
move-result v0
return v0
.line 349
:cond_36
iget v0, p0, Lcom/contrarywind/view/WheelView;->G:I
iget-object v2, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
move-result v0
invoke-static {v1, v0}, Ljava/lang/Math;->max(II)I
move-result v0
return v0
.end method
.method public getHandler()Landroid/os/Handler;
.registers 2
.line 838
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->h:Landroid/os/Handler;
return-object v0
.end method
.method public getInitPosition()I
.registers 2
.line 833
iget v0, p0, Lcom/contrarywind/view/WheelView;->F:I
return v0
.end method
.method public getItemHeight()F
.registers 2
.line 829
iget v0, p0, Lcom/contrarywind/view/WheelView;->u:F
return v0
.end method
.method public getItemsCount()I
.registers 2
.line 745
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
if-eqz v0, :cond_9
invoke-interface {v0}, Lcom/contrarywind/a/a;->a()I
move-result v0
return v0
:cond_9
const/4 v0, 0x0
return v0
.end method
.method public getTotalScrollY()F
.registers 2
.line 821
iget v0, p0, Lcom/contrarywind/view/WheelView;->E:F
return v0
.end method
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 22
move-object/from16 v0, p0
move-object/from16 v7, p1
.line 365
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
if-nez v1, :cond_9
return-void
.line 369
:cond_9
iget v1, v0, Lcom/contrarywind/view/WheelView;->F:I
const/4 v8, 0x0
invoke-static {v8, v1}, Ljava/lang/Math;->max(II)I
move-result v1
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
move-result v1
iput v1, v0, Lcom/contrarywind/view/WheelView;->F:I
.line 373
iget v2, v0, Lcom/contrarywind/view/WheelView;->E:F
iget v3, v0, Lcom/contrarywind/view/WheelView;->u:F
div-float/2addr v2, v3
float-to-int v2, v2
.line 378
:try_start_24
iget-object v3, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v3}, Lcom/contrarywind/a/a;->a()I
move-result v3
rem-int/2addr v2, v3
add-int/2addr v1, v2
iput v1, v0, Lcom/contrarywind/view/WheelView;->H:I
:try_end_2e
.catch Ljava/lang/ArithmeticException; {:try_start_24 .. :try_end_2e} :catch_2f
goto :goto_36
:catch_2f
const-string v1, "WheelView"
const-string v2, "\u51fa\u9519\u4e86\uff01adapter.getItemsCount() == 0\uff0c\u8054\u52a8\u6570\u636e\u4e0d\u5339\u914d"
.line 381
invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 383
:goto_36
iget-boolean v1, v0, Lcom/contrarywind/view/WheelView;->d:Z
if-nez v1, :cond_57
.line 384
iget v1, v0, Lcom/contrarywind/view/WheelView;->H:I
if-gez v1, :cond_40
.line 385
iput v8, v0, Lcom/contrarywind/view/WheelView;->H:I
.line 387
:cond_40
iget v1, v0, Lcom/contrarywind/view/WheelView;->H:I
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
if-le v1, v2, :cond_7d
.line 388
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v1}, Lcom/contrarywind/a/a;->a()I
move-result v1
add-int/lit8 v1, v1, -0x1
iput v1, v0, Lcom/contrarywind/view/WheelView;->H:I
goto :goto_7d
.line 391
:cond_57
iget v1, v0, Lcom/contrarywind/view/WheelView;->H:I
if-gez v1, :cond_66
.line 392
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v1}, Lcom/contrarywind/a/a;->a()I
move-result v1
iget v2, v0, Lcom/contrarywind/view/WheelView;->H:I
add-int/2addr v1, v2
iput v1, v0, Lcom/contrarywind/view/WheelView;->H:I
.line 394
:cond_66
iget v1, v0, Lcom/contrarywind/view/WheelView;->H:I
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
if-le v1, v2, :cond_7d
.line 395
iget v1, v0, Lcom/contrarywind/view/WheelView;->H:I
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
sub-int/2addr v1, v2
iput v1, v0, Lcom/contrarywind/view/WheelView;->H:I
.line 399
:cond_7d
:goto_7d
iget v1, v0, Lcom/contrarywind/view/WheelView;->E:F
iget v2, v0, Lcom/contrarywind/view/WheelView;->u:F
rem-float v9, v1, v2
.line 403
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->f:Lcom/contrarywind/view/WheelView$b;
sget-object v2, Lcom/contrarywind/view/WheelView$b;->WRAP:Lcom/contrarywind/view/WheelView$b;
const/high16 v3, 0x41200000 # 10.0f
const/4 v10, 0x0
if-ne v1, v2, :cond_c9
.line 407
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_9c
.line 408
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
iget v2, v0, Lcom/contrarywind/view/WheelView;->r:I
sub-int/2addr v1, v2
div-int/lit8 v1, v1, 0x2
goto :goto_a3
.line 410
:cond_9c
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
iget v2, v0, Lcom/contrarywind/view/WheelView;->r:I
sub-int/2addr v1, v2
div-int/lit8 v1, v1, 0x4
:goto_a3
add-int/lit8 v1, v1, -0xc
int-to-float v1, v1
cmpg-float v2, v1, v10
if-gtz v2, :cond_ad
const/high16 v11, 0x41200000 # 10.0f
goto :goto_ae
:cond_ad
move v11, v1
.line 416
:goto_ae
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v1, v1
sub-float v12, v1, v11
.line 417
iget v5, v0, Lcom/contrarywind/view/WheelView;->B:F
iget-object v6, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
move-object/from16 v1, p1
move v2, v11
move v3, v5
move v4, v12
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
.line 418
iget v5, v0, Lcom/contrarywind/view/WheelView;->C:F
iget-object v6, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
move v3, v5
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
goto/16 :goto_13a
.line 419
:cond_c9
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->f:Lcom/contrarywind/view/WheelView$b;
sget-object v2, Lcom/contrarywind/view/WheelView$b;->CIRCLE:Lcom/contrarywind/view/WheelView$b;
if-ne v1, v2, :cond_11f
.line 421
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
sget-object v2, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V
.line 422
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
iget v2, v0, Lcom/contrarywind/view/WheelView;->z:I
int-to-float v2, v2
invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
.line 425
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/high16 v2, 0x41400000 # 12.0f
const/high16 v4, 0x40000000 # 2.0f
if-eqz v1, :cond_f2
.line 426
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
iget v5, v0, Lcom/contrarywind/view/WheelView;->r:I
sub-int/2addr v1, v5
int-to-float v1, v1
div-float/2addr v1, v4
goto :goto_fb
.line 428
:cond_f2
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
iget v5, v0, Lcom/contrarywind/view/WheelView;->r:I
sub-int/2addr v1, v5
int-to-float v1, v1
const/high16 v5, 0x40800000 # 4.0f
div-float/2addr v1, v5
:goto_fb
sub-float/2addr v1, v2
cmpg-float v2, v1, v10
if-gtz v2, :cond_101
goto :goto_102
:cond_101
move v3, v1
.line 433
:goto_102
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v1, v1
sub-float/2addr v1, v3
sub-float/2addr v1, v3
.line 435
iget v2, v0, Lcom/contrarywind/view/WheelView;->u:F
invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F
move-result v1
const v2, 0x3fe66666 # 1.8f
div-float/2addr v1, v2
.line 436
iget v2, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v2, v2
div-float/2addr v2, v4
iget v3, v0, Lcom/contrarywind/view/WheelView;->J:I
int-to-float v3, v3
div-float/2addr v3, v4
iget-object v4, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v3, v1, v4}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V
goto :goto_13a
:cond_11f
const/4 v2, 0x0
.line 438
iget v5, v0, Lcom/contrarywind/view/WheelView;->B:F
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v4, v1
iget-object v6, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
move-object/from16 v1, p1
move v3, v5
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
.line 439
iget v5, v0, Lcom/contrarywind/view/WheelView;->C:F
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v4, v1
iget-object v6, v0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
move-object/from16 v1, p1
move v3, v5
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
.line 443
:goto_13a
iget-object v1, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_17c
iget-boolean v1, v0, Lcom/contrarywind/view/WheelView;->k:Z
if-eqz v1, :cond_17c
.line 445
iget v1, v0, Lcom/contrarywind/view/WheelView;->K:I
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget-object v3, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
if-eqz v3, :cond_16d
.line 1762
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v4
if-lez v4, :cond_16d
.line 1763
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v4
.line 1764
new-array v5, v4, [F
.line 1765
invoke-virtual {v2, v3, v5}, Landroid/graphics/Paint;->getTextWidths(Ljava/lang/String;[F)I
const/4 v2, 0x0
const/4 v3, 0x0
:goto_15f
if-ge v2, v4, :cond_16e
.line 1767
aget v6, v5, v2
float-to-double v11, v6
invoke-static {v11, v12}, Ljava/lang/Math;->ceil(D)D
move-result-wide v11
double-to-int v6, v11
add-int/2addr v3, v6
add-int/lit8 v2, v2, 0x1
goto :goto_15f
:cond_16d
const/4 v3, 0x0
:cond_16e
sub-int/2addr v1, v3
.line 446
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
int-to-float v1, v1
iget v3, v0, Lcom/contrarywind/view/WheelView;->T:F
sub-float/2addr v1, v3
iget v3, v0, Lcom/contrarywind/view/WheelView;->D:F
iget-object v4, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v1, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
:cond_17c
const/4 v1, 0x0
.line 451
:goto_17d
iget v2, v0, Lcom/contrarywind/view/WheelView;->I:I
if-ge v1, v2, :cond_44b
.line 453
iget v3, v0, Lcom/contrarywind/view/WheelView;->H:I
div-int/lit8 v2, v2, 0x2
sub-int/2addr v2, v1
sub-int/2addr v3, v2
.line 456
iget-boolean v2, v0, Lcom/contrarywind/view/WheelView;->d:Z
const-string v4, ""
if-eqz v2, :cond_192
.line 457
invoke-direct {v0, v3}, Lcom/contrarywind/view/WheelView;->a(I)I
move-result v3
goto :goto_1a1
:cond_192
if-gez v3, :cond_196
:goto_194
move-object v2, v4
goto :goto_1a7
.line 461
:cond_196
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
add-int/lit8 v2, v2, -0x1
if-le v3, v2, :cond_1a1
goto :goto_194
.line 464
:cond_1a1
:goto_1a1
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2, v3}, Lcom/contrarywind/a/a;->a(I)Ljava/lang/Object;
move-result-object v2
.line 467
:goto_1a7
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 470
iget v3, v0, Lcom/contrarywind/view/WheelView;->u:F
int-to-float v5, v1
mul-float v3, v3, v5
sub-float/2addr v3, v9
iget v5, v0, Lcom/contrarywind/view/WheelView;->L:I
int-to-float v5, v5
div-float/2addr v3, v5
float-to-double v5, v3
const-wide v11, 0x4056800000000000L # 90.0
const-wide v13, 0x400921fb54442d18L # Math.PI
.line 473
invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z
div-double v13, v5, v13
const-wide v15, 0x4066800000000000L # 180.0
mul-double v13, v13, v15
sub-double/2addr v11, v13
double-to-float v3, v11
const/high16 v11, 0x42b40000 # 90.0f
cmpl-float v12, v3, v11
if-gtz v12, :cond_43e
const/high16 v12, -0x3d4c0000 # -90.0f
cmpg-float v12, v3, v12
if-gez v12, :cond_1db
goto/16 :goto_43e
.line 483
:cond_1db
iget-boolean v12, v0, Lcom/contrarywind/view/WheelView;->k:Z
if-nez v12, :cond_207
iget-object v12, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v12
if-nez v12, :cond_207
invoke-static {v2}, Lcom/contrarywind/view/WheelView;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v12
invoke-static {v12}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v12
if-nez v12, :cond_207
.line 484
new-instance v12, Ljava/lang/StringBuilder;
invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V
invoke-static {v2}, Lcom/contrarywind/view/WheelView;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v12, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
invoke-virtual {v12, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
goto :goto_20b
.line 486
:cond_207
invoke-static {v2}, Lcom/contrarywind/view/WheelView;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
.line 489
:goto_20b
invoke-static {v3}, Ljava/lang/Math;->abs(F)F
move-result v12
div-float/2addr v12, v11
float-to-double v11, v12
const-wide v13, 0x400199999999999aL # 2.2
invoke-static {v11, v12, v13, v14}, Ljava/lang/Math;->pow(DD)D
move-result-wide v11
double-to-float v11, v11
.line 491
invoke-direct {v0, v2}, Lcom/contrarywind/view/WheelView;->a(Ljava/lang/String;)V
.line 2624
new-instance v12, Landroid/graphics/Rect;
invoke-direct {v12}, Landroid/graphics/Rect;-><init>()V
.line 2625
iget-object v13, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v14
invoke-virtual {v13, v2, v8, v14, v12}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 2626
iget v13, v0, Lcom/contrarywind/view/WheelView;->Q:I
const-wide/high16 v16, 0x3fe0000000000000L # 0.5
const/16 v10, 0x11
const/4 v8, 0x5
const/4 v14, 0x3
if-eq v13, v14, :cond_281
if-eq v13, v8, :cond_273
if-eq v13, v10, :cond_23c
:goto_23a
const/4 v12, 0x0
goto :goto_284
.line 2628
:cond_23c
iget-boolean v13, v0, Lcom/contrarywind/view/WheelView;->j:Z
if-nez v13, :cond_262
iget-object v13, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
if-eqz v13, :cond_262
invoke-virtual {v13, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v13
if-nez v13, :cond_262
iget-boolean v13, v0, Lcom/contrarywind/view/WheelView;->k:Z
if-nez v13, :cond_24f
goto :goto_262
.line 2631
:cond_24f
iget v13, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v12}, Landroid/graphics/Rect;->width()I
move-result v12
sub-int/2addr v13, v12
int-to-double v12, v13
invoke-static {v12, v13}, Ljava/lang/Double;->isNaN(D)Z
const-wide/high16 v18, 0x3fd0000000000000L # 0.25
mul-double v12, v12, v18
double-to-int v12, v12
iput v12, v0, Lcom/contrarywind/view/WheelView;->R:I
goto :goto_23a
.line 2629
:cond_262
:goto_262
iget v13, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v12}, Landroid/graphics/Rect;->width()I
move-result v12
sub-int/2addr v13, v12
int-to-double v12, v13
invoke-static {v12, v13}, Ljava/lang/Double;->isNaN(D)Z
mul-double v12, v12, v16
double-to-int v12, v12
iput v12, v0, Lcom/contrarywind/view/WheelView;->R:I
goto :goto_23a
.line 2638
:cond_273
iget v13, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v12}, Landroid/graphics/Rect;->width()I
move-result v12
sub-int/2addr v13, v12
iget v12, v0, Lcom/contrarywind/view/WheelView;->T:F
float-to-int v12, v12
sub-int/2addr v13, v12
iput v13, v0, Lcom/contrarywind/view/WheelView;->R:I
goto :goto_23a
:cond_281
const/4 v12, 0x0
.line 2635
iput v12, v0, Lcom/contrarywind/view/WheelView;->R:I
.line 2644
:goto_284
new-instance v13, Landroid/graphics/Rect;
invoke-direct {v13}, Landroid/graphics/Rect;-><init>()V
.line 2645
iget-object v15, v0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v2}, Ljava/lang/String;->length()I
move-result v10
invoke-virtual {v15, v2, v12, v10, v13}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V
.line 2646
iget v10, v0, Lcom/contrarywind/view/WheelView;->Q:I
if-eq v10, v14, :cond_2e2
if-eq v10, v8, :cond_2d4
const/16 v8, 0x11
if-eq v10, v8, :cond_29d
goto :goto_2e5
.line 2648
:cond_29d
iget-boolean v8, v0, Lcom/contrarywind/view/WheelView;->j:Z
if-nez v8, :cond_2c3
iget-object v8, v0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
if-eqz v8, :cond_2c3
invoke-virtual {v8, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_2c3
iget-boolean v4, v0, Lcom/contrarywind/view/WheelView;->k:Z
if-nez v4, :cond_2b0
goto :goto_2c3
.line 2651
:cond_2b0
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v13}, Landroid/graphics/Rect;->width()I
move-result v8
sub-int/2addr v4, v8
int-to-double v12, v4
invoke-static {v12, v13}, Ljava/lang/Double;->isNaN(D)Z
const-wide/high16 v14, 0x3fd0000000000000L # 0.25
mul-double v12, v12, v14
double-to-int v4, v12
iput v4, v0, Lcom/contrarywind/view/WheelView;->S:I
goto :goto_2e5
.line 2649
:cond_2c3
:goto_2c3
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v13}, Landroid/graphics/Rect;->width()I
move-result v8
sub-int/2addr v4, v8
int-to-double v12, v4
invoke-static {v12, v13}, Ljava/lang/Double;->isNaN(D)Z
mul-double v12, v12, v16
double-to-int v4, v12
iput v4, v0, Lcom/contrarywind/view/WheelView;->S:I
goto :goto_2e5
.line 2658
:cond_2d4
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
invoke-virtual {v13}, Landroid/graphics/Rect;->width()I
move-result v8
sub-int/2addr v4, v8
iget v8, v0, Lcom/contrarywind/view/WheelView;->T:F
float-to-int v8, v8
sub-int/2addr v4, v8
iput v4, v0, Lcom/contrarywind/view/WheelView;->S:I
goto :goto_2e5
:cond_2e2
const/4 v4, 0x0
.line 2655
iput v4, v0, Lcom/contrarywind/view/WheelView;->S:I
.line 495
:goto_2e5
iget v4, v0, Lcom/contrarywind/view/WheelView;->L:I
int-to-double v12, v4
invoke-static {v5, v6}, Ljava/lang/Math;->cos(D)D
move-result-wide v14
iget v4, v0, Lcom/contrarywind/view/WheelView;->L:I
move v10, v9
int-to-double v8, v4
invoke-static {v8, v9}, Ljava/lang/Double;->isNaN(D)Z
mul-double v14, v14, v8
invoke-static {v12, v13}, Ljava/lang/Double;->isNaN(D)Z
sub-double/2addr v12, v14
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v8
iget v4, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-double v14, v4
invoke-static {v14, v15}, Ljava/lang/Double;->isNaN(D)Z
mul-double v8, v8, v14
const-wide/high16 v14, 0x4000000000000000L # 2.0
div-double/2addr v8, v14
sub-double/2addr v12, v8
double-to-float v4, v12
const/4 v8, 0x0
.line 497
invoke-virtual {v7, v8, v4}, Landroid/graphics/Canvas;->translate(FF)V
.line 498
iget v8, v0, Lcom/contrarywind/view/WheelView;->B:F
const v9, 0x3f4ccccd # 0.8f
const/high16 v12, 0x3f800000 # 1.0f
cmpg-float v13, v4, v8
if-gtz v13, :cond_379
iget v13, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v13, v13
add-float/2addr v13, v4
cmpl-float v8, v13, v8
if-ltz v8, :cond_379
.line 500
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 501
iget v8, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v8, v8
iget v13, v0, Lcom/contrarywind/view/WheelView;->B:F
sub-float/2addr v13, v4
const/4 v14, 0x0
invoke-virtual {v7, v14, v14, v8, v13}, Landroid/graphics/Canvas;->clipRect(FFFF)Z
.line 502
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v13
double-to-float v8, v13
mul-float v8, v8, v9
invoke-virtual {v7, v12, v8}, Landroid/graphics/Canvas;->scale(FF)V
.line 503
invoke-direct {v0, v11, v3}, Lcom/contrarywind/view/WheelView;->a(FF)V
.line 504
iget v3, v0, Lcom/contrarywind/view/WheelView;->S:I
int-to-float v3, v3
iget v8, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v8, v8
iget-object v9, v0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v3, v8, v9}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 505
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
.line 506
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 507
iget v3, v0, Lcom/contrarywind/view/WheelView;->B:F
sub-float/2addr v3, v4
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v4, v4
iget v8, v0, Lcom/contrarywind/view/WheelView;->u:F
float-to-int v8, v8
int-to-float v8, v8
const/4 v9, 0x0
invoke-virtual {v7, v9, v3, v4, v8}, Landroid/graphics/Canvas;->clipRect(FFFF)Z
.line 508
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v3
double-to-float v3, v3
mul-float v3, v3, v12
invoke-virtual {v7, v12, v3}, Landroid/graphics/Canvas;->scale(FF)V
.line 509
iget v3, v0, Lcom/contrarywind/view/WheelView;->R:I
int-to-float v3, v3
iget v4, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v4, v4
iget v5, v0, Lcom/contrarywind/view/WheelView;->T:F
sub-float/2addr v4, v5
iget-object v5, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v3, v4, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 510
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
const/4 v13, 0x0
const/4 v14, 0x0
goto/16 :goto_432
.line 511
:cond_379
iget v8, v0, Lcom/contrarywind/view/WheelView;->C:F
cmpg-float v13, v4, v8
if-gtz v13, :cond_3dd
iget v13, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v13, v13
add-float/2addr v13, v4
cmpl-float v8, v13, v8
if-ltz v8, :cond_3dd
.line 513
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 514
iget v8, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v8, v8
iget v13, v0, Lcom/contrarywind/view/WheelView;->C:F
sub-float/2addr v13, v4
const/4 v14, 0x0
invoke-virtual {v7, v14, v14, v8, v13}, Landroid/graphics/Canvas;->clipRect(FFFF)Z
.line 515
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v13
double-to-float v8, v13
mul-float v8, v8, v12
invoke-virtual {v7, v12, v8}, Landroid/graphics/Canvas;->scale(FF)V
.line 516
iget v8, v0, Lcom/contrarywind/view/WheelView;->R:I
int-to-float v8, v8
iget v13, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v13, v13
iget v14, v0, Lcom/contrarywind/view/WheelView;->T:F
sub-float/2addr v13, v14
iget-object v14, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v8, v13, v14}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 517
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
.line 518
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 519
iget v8, v0, Lcom/contrarywind/view/WheelView;->C:F
sub-float/2addr v8, v4
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
int-to-float v4, v4
iget v13, v0, Lcom/contrarywind/view/WheelView;->u:F
float-to-int v13, v13
int-to-float v13, v13
const/4 v14, 0x0
invoke-virtual {v7, v14, v8, v4, v13}, Landroid/graphics/Canvas;->clipRect(FFFF)Z
.line 520
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v4
double-to-float v4, v4
mul-float v4, v4, v9
invoke-virtual {v7, v12, v4}, Landroid/graphics/Canvas;->scale(FF)V
.line 521
invoke-direct {v0, v11, v3}, Lcom/contrarywind/view/WheelView;->a(FF)V
.line 522
iget v3, v0, Lcom/contrarywind/view/WheelView;->S:I
int-to-float v3, v3
iget v4, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v4, v4
iget-object v5, v0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v3, v4, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 523
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
:goto_3db
const/4 v13, 0x0
goto :goto_432
:cond_3dd
const/4 v14, 0x0
.line 524
iget v8, v0, Lcom/contrarywind/view/WheelView;->B:F
cmpl-float v8, v4, v8
if-ltz v8, :cond_405
iget v8, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v13, v8
add-float/2addr v13, v4
iget v4, v0, Lcom/contrarywind/view/WheelView;->C:F
cmpg-float v4, v13, v4
if-gtz v4, :cond_405
int-to-float v3, v8
.line 528
iget v4, v0, Lcom/contrarywind/view/WheelView;->T:F
sub-float/2addr v3, v4
.line 529
iget v4, v0, Lcom/contrarywind/view/WheelView;->R:I
int-to-float v4, v4
iget-object v5, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v4, v3, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 531
iget v2, v0, Lcom/contrarywind/view/WheelView;->H:I
iget v3, v0, Lcom/contrarywind/view/WheelView;->I:I
div-int/lit8 v3, v3, 0x2
sub-int/2addr v3, v1
sub-int/2addr v2, v3
iput v2, v0, Lcom/contrarywind/view/WheelView;->G:I
goto :goto_3db
.line 534
:cond_405
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I
.line 535
iget v4, v0, Lcom/contrarywind/view/WheelView;->K:I
iget v8, v0, Lcom/contrarywind/view/WheelView;->u:F
float-to-int v8, v8
const/4 v13, 0x0
invoke-virtual {v7, v13, v13, v4, v8}, Landroid/graphics/Canvas;->clipRect(IIII)Z
.line 536
invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D
move-result-wide v4
double-to-float v4, v4
mul-float v4, v4, v9
invoke-virtual {v7, v12, v4}, Landroid/graphics/Canvas;->scale(FF)V
.line 537
invoke-direct {v0, v11, v3}, Lcom/contrarywind/view/WheelView;->a(FF)V
.line 539
iget v3, v0, Lcom/contrarywind/view/WheelView;->S:I
int-to-float v3, v3
iget v4, v0, Lcom/contrarywind/view/WheelView;->t:I
int-to-float v4, v4
mul-float v4, v4, v11
add-float/2addr v3, v4
iget v4, v0, Lcom/contrarywind/view/WheelView;->s:I
int-to-float v4, v4
iget-object v5, v0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v7, v2, v3, v4, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
.line 540
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
.line 542
:goto_432
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
.line 543
iget-object v2, v0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget v3, v0, Lcom/contrarywind/view/WheelView;->q:I
int-to-float v3, v3
invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setTextSize(F)V
goto :goto_444
:cond_43e
:goto_43e
move v10, v9
const/4 v13, 0x0
const/4 v14, 0x0
.line 477
invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V
:goto_444
add-int/lit8 v1, v1, 0x1
move v9, v10
const/4 v8, 0x0
const/4 v10, 0x0
goto/16 :goto_17d
:cond_44b
return-void
.end method
.method protected onMeasure(II)V
.registers 3
.line 665
iput p1, p0, Lcom/contrarywind/view/WheelView;->P:I
.line 666
invoke-direct {p0}, Lcom/contrarywind/view/WheelView;->c()V
.line 667
iget p1, p0, Lcom/contrarywind/view/WheelView;->K:I
iget p2, p0, Lcom/contrarywind/view/WheelView;->J:I
invoke-virtual {p0, p1, p2}, Lcom/contrarywind/view/WheelView;->setMeasuredDimension(II)V
return-void
.end method
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
.registers 11
.line 672
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->i:Landroid/view/GestureDetector;
invoke-virtual {v0, p1}, Landroid/view/GestureDetector;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
.line 675
iget v1, p0, Lcom/contrarywind/view/WheelView;->F:I
neg-int v1, v1
int-to-float v1, v1
iget v2, p0, Lcom/contrarywind/view/WheelView;->u:F
mul-float v1, v1, v2
.line 676
iget-object v2, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
invoke-interface {v2}, Lcom/contrarywind/a/a;->a()I
move-result v2
const/4 v3, 0x1
sub-int/2addr v2, v3
iget v4, p0, Lcom/contrarywind/view/WheelView;->F:I
sub-int/2addr v2, v4
int-to-float v2, v2
iget v4, p0, Lcom/contrarywind/view/WheelView;->u:F
mul-float v2, v2, v4
.line 679
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v4
const/4 v5, 0x0
if-eqz v4, :cond_b7
const/4 v6, 0x2
if-eq v4, v6, :cond_7b
if-nez v0, :cond_c6
.line 720
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
move-result v0
.line 721
iget v1, p0, Lcom/contrarywind/view/WheelView;->L:I
int-to-float v2, v1
sub-float/2addr v2, v0
int-to-float v0, v1
div-float/2addr v2, v0
float-to-double v0, v2
invoke-static {v0, v1}, Ljava/lang/Math;->acos(D)D
move-result-wide v0
iget v2, p0, Lcom/contrarywind/view/WheelView;->L:I
int-to-double v7, v2
invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z
mul-double v0, v0, v7
.line 723
iget v2, p0, Lcom/contrarywind/view/WheelView;->u:F
const/high16 v4, 0x40000000 # 2.0f
div-float v4, v2, v4
float-to-double v7, v4
invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z
add-double/2addr v0, v7
float-to-double v7, v2
invoke-static {v7, v8}, Ljava/lang/Double;->isNaN(D)Z
div-double/2addr v0, v7
double-to-int v0, v0
.line 724
iget v1, p0, Lcom/contrarywind/view/WheelView;->E:F
rem-float/2addr v1, v2
add-float/2addr v1, v2
rem-float/2addr v1, v2
.line 726
iget v4, p0, Lcom/contrarywind/view/WheelView;->I:I
div-int/2addr v4, v6
sub-int/2addr v0, v4
int-to-float v0, v0
mul-float v0, v0, v2
sub-float/2addr v0, v1
float-to-int v0, v0
iput v0, p0, Lcom/contrarywind/view/WheelView;->M:I
.line 728
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iget-wide v6, p0, Lcom/contrarywind/view/WheelView;->O:J
sub-long/2addr v0, v6
const-wide/16 v6, 0x78
cmp-long v2, v0, v6
if-lez v2, :cond_75
.line 730
sget-object v0, Lcom/contrarywind/view/WheelView$a;->DAGGLE:Lcom/contrarywind/view/WheelView$a;
invoke-virtual {p0, v0}, Lcom/contrarywind/view/WheelView;->a(Lcom/contrarywind/view/WheelView$a;)V
goto :goto_c6
.line 733
:cond_75
sget-object v0, Lcom/contrarywind/view/WheelView$a;->CLICK:Lcom/contrarywind/view/WheelView$a;
invoke-virtual {p0, v0}, Lcom/contrarywind/view/WheelView;->a(Lcom/contrarywind/view/WheelView$a;)V
goto :goto_c6
.line 687
:cond_7b
iget v0, p0, Lcom/contrarywind/view/WheelView;->N:F
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F
move-result v4
sub-float/2addr v0, v4
.line 688
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F
move-result v4
iput v4, p0, Lcom/contrarywind/view/WheelView;->N:F
.line 689
iget v4, p0, Lcom/contrarywind/view/WheelView;->E:F
add-float/2addr v4, v0
iput v4, p0, Lcom/contrarywind/view/WheelView;->E:F
.line 692
iget-boolean v6, p0, Lcom/contrarywind/view/WheelView;->d:Z
if-nez v6, :cond_c6
.line 693
iget v6, p0, Lcom/contrarywind/view/WheelView;->u:F
const/high16 v7, 0x3e800000 # 0.25f
mul-float v6, v6, v7
sub-float/2addr v4, v6
const/4 v6, 0x0
cmpg-float v1, v4, v1
if-gez v1, :cond_a1
cmpg-float v1, v0, v6
if-ltz v1, :cond_b0
:cond_a1
iget v1, p0, Lcom/contrarywind/view/WheelView;->E:F
iget v4, p0, Lcom/contrarywind/view/WheelView;->u:F
mul-float v4, v4, v7
add-float/2addr v1, v4
cmpl-float v1, v1, v2
if-lez v1, :cond_c6
cmpl-float v1, v0, v6
if-lez v1, :cond_c6
.line 696
:cond_b0
iget v1, p0, Lcom/contrarywind/view/WheelView;->E:F
sub-float/2addr v1, v0
iput v1, p0, Lcom/contrarywind/view/WheelView;->E:F
const/4 v5, 0x1
goto :goto_c6
.line 681
:cond_b7
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/contrarywind/view/WheelView;->O:J
.line 682
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->a()V
.line 683
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F
move-result v0
iput v0, p0, Lcom/contrarywind/view/WheelView;->N:F
:cond_c6
:goto_c6
if-nez v5, :cond_d1
.line 738
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result p1
if-eqz p1, :cond_d1
.line 739
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->invalidate()V
:cond_d1
return v3
.end method
.method public final setAdapter(Lcom/contrarywind/a/a;)V
.registers 2
.line 321
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->o:Lcom/contrarywind/a/a;
.line 322
invoke-direct {p0}, Lcom/contrarywind/view/WheelView;->c()V
.line 323
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->invalidate()V
return-void
.end method
.method public setAlphaGradient(Z)V
.registers 2
.line 334
iput-boolean p1, p0, Lcom/contrarywind/view/WheelView;->U:Z
return-void
.end method
.method public final setCurrentItem(I)V
.registers 2
.line 310
iput p1, p0, Lcom/contrarywind/view/WheelView;->G:I
.line 311
iput p1, p0, Lcom/contrarywind/view/WheelView;->F:I
const/4 p1, 0x0
.line 312
iput p1, p0, Lcom/contrarywind/view/WheelView;->E:F
.line 313
invoke-virtual {p0}, Lcom/contrarywind/view/WheelView;->invalidate()V
return-void
.end method
.method public final setCyclic(Z)V
.registers 2
.line 291
iput-boolean p1, p0, Lcom/contrarywind/view/WheelView;->d:Z
return-void
.end method
.method public setDividerColor(I)V
.registers 3
.line 801
iput p1, p0, Lcom/contrarywind/view/WheelView;->y:I
.line 802
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V
return-void
.end method
.method public setDividerType(Lcom/contrarywind/view/WheelView$b;)V
.registers 2
.line 806
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->f:Lcom/contrarywind/view/WheelView$b;
return-void
.end method
.method public setDividerWidth(I)V
.registers 3
.line 796
iput p1, p0, Lcom/contrarywind/view/WheelView;->z:I
.line 797
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->n:Landroid/graphics/Paint;
int-to-float p1, p1
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setStrokeWidth(F)V
return-void
.end method
.method public setGravity(I)V
.registers 2
.line 757
iput p1, p0, Lcom/contrarywind/view/WheelView;->Q:I
return-void
.end method
.method public setIsOptions(Z)V
.registers 2
.line 774
iput-boolean p1, p0, Lcom/contrarywind/view/WheelView;->j:Z
return-void
.end method
.method public setItemsVisibleCount(I)V
.registers 3
.line 327
rem-int/lit8 v0, p1, 0x2
if-nez v0, :cond_6
add-int/lit8 p1, p1, 0x1
:cond_6
add-int/lit8 p1, p1, 0x2
.line 330
iput p1, p0, Lcom/contrarywind/view/WheelView;->I:I
return-void
.end method
.method public setLabel(Ljava/lang/String;)V
.registers 2
.line 749
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->p:Ljava/lang/String;
return-void
.end method
.method public setLineSpacingMultiplier(F)V
.registers 3
const/4 v0, 0x0
cmpl-float v0, p1, v0
if-eqz v0, :cond_a
.line 811
iput p1, p0, Lcom/contrarywind/view/WheelView;->A:F
.line 812
invoke-direct {p0}, Lcom/contrarywind/view/WheelView;->b()V
:cond_a
return-void
.end method
.method public final setOnItemSelectedListener(Lcom/contrarywind/c/b;)V
.registers 2
.line 317
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->a:Lcom/contrarywind/c/b;
return-void
.end method
.method public setTextColorCenter(I)V
.registers 3
.line 784
iput p1, p0, Lcom/contrarywind/view/WheelView;->x:I
.line 785
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V
return-void
.end method
.method public setTextColorOut(I)V
.registers 3
.line 779
iput p1, p0, Lcom/contrarywind/view/WheelView;->w:I
.line 780
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V
return-void
.end method
.method public final setTextSize(F)V
.registers 3
const/4 v0, 0x0
cmpl-float v0, p1, v0
if-lez v0, :cond_24
.line 302
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->g:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
mul-float v0, v0, p1
float-to-int p1, v0
iput p1, p0, Lcom/contrarywind/view/WheelView;->q:I
.line 303
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
int-to-float p1, p1
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTextSize(F)V
.line 304
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget v0, p0, Lcom/contrarywind/view/WheelView;->q:I
int-to-float v0, v0
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextSize(F)V
:cond_24
return-void
.end method
.method public setTextXOffset(I)V
.registers 3
.line 789
iput p1, p0, Lcom/contrarywind/view/WheelView;->t:I
if-eqz p1, :cond_b
.line 791
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
const/high16 v0, 0x3f800000 # 1.0f
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTextScaleX(F)V
:cond_b
return-void
.end method
.method public setTotalScrollY(F)V
.registers 2
.line 825
iput p1, p0, Lcom/contrarywind/view/WheelView;->E:F
return-void
.end method
.method public final setTypeface(Landroid/graphics/Typeface;)V
.registers 3
.line 295
iput-object p1, p0, Lcom/contrarywind/view/WheelView;->v:Landroid/graphics/Typeface;
.line 296
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->l:Landroid/graphics/Paint;
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
.line 297
iget-object p1, p0, Lcom/contrarywind/view/WheelView;->m:Landroid/graphics/Paint;
iget-object v0, p0, Lcom/contrarywind/view/WheelView;->v:Landroid/graphics/Typeface;
invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
return-void
.end method