2193 lines
50 KiB
Smali
2193 lines
50 KiB
Smali
.class public Lcom/moji/redleaves/view/RedLeavesSeekBar;
|
|
.super Landroid/widget/SeekBar;
|
|
.source "RedLeavesSeekBar.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;,
|
|
Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private A:I
|
|
|
|
.field private B:I
|
|
|
|
.field private C:I
|
|
|
|
.field private D:I
|
|
|
|
.field private E:I
|
|
|
|
.field private F:I
|
|
|
|
.field a:F
|
|
|
|
.field b:F
|
|
|
|
.field private c:I
|
|
|
|
.field private d:I
|
|
|
|
.field private e:Landroid/graphics/Paint;
|
|
|
|
.field private f:Landroid/graphics/Paint;
|
|
|
|
.field private g:Landroid/graphics/Paint;
|
|
|
|
.field private h:[Ljava/lang/String;
|
|
|
|
.field private i:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/graphics/RectF;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private j:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/graphics/PointF;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private k:Landroid/animation/ObjectAnimator;
|
|
|
|
.field private l:Landroid/animation/ObjectAnimator;
|
|
|
|
.field private m:I
|
|
|
|
.field private n:Z
|
|
|
|
.field private o:Z
|
|
|
|
.field private p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
.field private q:Landroid/os/Handler;
|
|
|
|
.field private r:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/redleaves/data/DynamicImage;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private s:I
|
|
|
|
.field private t:Landroid/graphics/Paint;
|
|
|
|
.field private u:Z
|
|
|
|
.field private v:Landroid/graphics/Matrix;
|
|
|
|
.field private w:Landroid/graphics/Bitmap;
|
|
|
|
.field private x:I
|
|
|
|
.field private y:Landroid/graphics/Paint;
|
|
|
|
.field private z:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 83
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 87
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 92
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/SeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 48
|
|
new-array p2, p1, [Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
.line 49
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->i:Ljava/util/List;
|
|
|
|
.line 50
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 51
|
|
iput p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a:F
|
|
|
|
.line 52
|
|
iput p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b:F
|
|
|
|
.line 59
|
|
iput-boolean p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->n:Z
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 60
|
|
iput-boolean p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
const/4 p3, -0x1
|
|
|
|
.line 64
|
|
iput p3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->s:I
|
|
|
|
.line 69
|
|
iput-boolean p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->u:Z
|
|
|
|
.line 70
|
|
new-instance p2, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {p2}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->v:Landroid/graphics/Matrix;
|
|
|
|
const/16 p2, 0x2f44
|
|
|
|
.line 74
|
|
iput p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->x:I
|
|
|
|
const/high16 p2, 0x41a00000 # 20.0f
|
|
|
|
.line 77
|
|
invoke-static {p2}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->z:I
|
|
|
|
.line 80
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->D:I
|
|
|
|
.line 93
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(III)I
|
|
.locals 0
|
|
|
|
if-le p3, p1, :cond_0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
if-ge p3, p2, :cond_1
|
|
|
|
return p2
|
|
|
|
:cond_1
|
|
return p3
|
|
.end method
|
|
|
|
.method private a(J)J
|
|
.locals 5
|
|
|
|
.line 305
|
|
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 306
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
const-wide/16 v2, 0xa
|
|
|
|
const/16 v4, 0xd
|
|
|
|
if-ge v1, v4, :cond_0
|
|
|
|
.line 307
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v4, v0
|
|
|
|
:goto_0
|
|
add-int/lit8 v0, v4, -0x1
|
|
|
|
if-lez v4, :cond_1
|
|
|
|
mul-long p1, p1, v2
|
|
|
|
move v4, v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 311
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-le v1, v4, :cond_1
|
|
|
|
.line 312
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, v4
|
|
|
|
:goto_1
|
|
add-int/lit8 v1, v0, -0x1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 314
|
|
div-long/2addr p1, v2
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 5
|
|
|
|
.line 98
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e:Landroid/graphics/Paint;
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e:Landroid/graphics/Paint;
|
|
|
|
const v2, -0x333334
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
.line 100
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v2
|
|
|
|
iget v2, v2, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
.line 101
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f:Landroid/graphics/Paint;
|
|
|
|
.line 102
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f:Landroid/graphics/Paint;
|
|
|
|
const v2, -0x666667
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object v2
|
|
|
|
iget v2, v2, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
const/high16 v3, 0x41300000 # 11.0f
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextSize(F)V
|
|
|
|
.line 104
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v2, Lcom/moji/redleaves/R$drawable;->map_progress:I
|
|
|
|
invoke-static {v0, v2}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->w:Landroid/graphics/Bitmap;
|
|
|
|
.line 105
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->g:Landroid/graphics/Paint;
|
|
|
|
.line 106
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->g:Landroid/graphics/Paint;
|
|
|
|
new-instance v2, Landroid/graphics/PorterDuffXfermode;
|
|
|
|
sget-object v3, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {v2, v3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;
|
|
|
|
.line 108
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->t:Landroid/graphics/Paint;
|
|
|
|
.line 109
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->t:Landroid/graphics/Paint;
|
|
|
|
new-instance v2, Landroid/graphics/PorterDuffXfermode;
|
|
|
|
sget-object v3, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
invoke-direct {v2, v3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;
|
|
|
|
.line 110
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->t:Landroid/graphics/Paint;
|
|
|
|
const v2, -0xa0a0b
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
.line 111
|
|
invoke-virtual {p0, p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V
|
|
|
|
.line 112
|
|
sget-object v0, Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;->INIT:Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setStatus(Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;)V
|
|
|
|
.line 114
|
|
new-instance v0, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
.line 115
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
const v2, -0x373738
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
.line 116
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
const/high16 v2, 0x40000000 # 2.0f
|
|
|
|
invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V
|
|
|
|
.line 117
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
sget-object v2, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;
|
|
|
|
invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V
|
|
|
|
const-string v0, "progress"
|
|
|
|
const/4 v2, 0x2
|
|
|
|
.line 119
|
|
new-array v2, v2, [I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput v3, v2, v3
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
const v4, 0x3f8ccccd # 1.1f
|
|
|
|
mul-float v3, v3, v4
|
|
|
|
float-to-int v3, v3
|
|
|
|
aput v3, v2, v1
|
|
|
|
invoke-static {p0, v0, v2}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
.line 120
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->x:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 121
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setRepeatMode(I)V
|
|
|
|
.line 122
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
const/4 v1, -0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setRepeatCount(I)V
|
|
|
|
const/high16 v0, 0x41400000 # 12.0f
|
|
|
|
.line 124
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->A:I
|
|
|
|
const/high16 v1, 0x41600000 # 14.0f
|
|
|
|
.line 125
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->B:I
|
|
|
|
.line 126
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->C:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/graphics/Canvas;)V
|
|
.locals 7
|
|
|
|
.line 182
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->B:I
|
|
|
|
int-to-float v2, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->F:I
|
|
|
|
int-to-float v3, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
iget v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->C:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
int-to-float v4, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->F:I
|
|
|
|
int-to-float v5, v0
|
|
|
|
iget-object v6, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/util/List;)V
|
|
.locals 19
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/redleaves/data/DynamicImage;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
const/4 v1, 0x6
|
|
|
|
.line 322
|
|
new-array v2, v1, [Ljava/lang/String;
|
|
|
|
iput-object v2, v0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
.line 323
|
|
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
.line 324
|
|
invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 325
|
|
invoke-interface/range {p1 .. p1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v6, p1
|
|
|
|
goto :goto_2
|
|
|
|
.line 326
|
|
:cond_1
|
|
:goto_0
|
|
new-instance v6, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {v6}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
const-wide v7, 0x9a7ec800L
|
|
|
|
.line 328
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v9
|
|
|
|
move-wide v10, v9
|
|
|
|
const/4 v9, 0x6
|
|
|
|
:goto_1
|
|
if-ltz v9, :cond_2
|
|
|
|
.line 330
|
|
new-instance v12, Lcom/moji/redleaves/data/DynamicImage;
|
|
|
|
const-string v13, ""
|
|
|
|
invoke-direct {v12, v13, v10, v11}, Lcom/moji/redleaves/data/DynamicImage;-><init>(Ljava/lang/String;J)V
|
|
|
|
invoke-virtual {v6, v12}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V
|
|
|
|
sub-long/2addr v10, v7
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 336
|
|
:cond_2
|
|
:goto_2
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v7
|
|
|
|
int-to-float v8, v7
|
|
|
|
const/high16 v9, 0x40c00000 # 6.0f
|
|
|
|
div-float/2addr v8, v9
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:goto_3
|
|
if-ge v10, v1, :cond_6
|
|
|
|
.line 340
|
|
invoke-interface {v6, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v13
|
|
|
|
check-cast v13, Lcom/moji/redleaves/data/DynamicImage;
|
|
|
|
.line 341
|
|
iget-wide v13, v13, Lcom/moji/redleaves/data/DynamicImage;->b:J
|
|
|
|
invoke-direct {v0, v13, v14}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a(J)J
|
|
|
|
move-result-wide v13
|
|
|
|
invoke-virtual {v2, v13, v14}, Ljava/util/Calendar;->setTimeInMillis(J)V
|
|
|
|
.line 342
|
|
invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I
|
|
|
|
move-result v13
|
|
|
|
add-int/2addr v13, v5
|
|
|
|
if-eqz v10, :cond_4
|
|
|
|
const/4 v14, 0x5
|
|
|
|
if-ne v10, v14, :cond_3
|
|
|
|
goto :goto_4
|
|
|
|
.line 347
|
|
:cond_3
|
|
iget-object v14, v0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
move-result-object v15
|
|
|
|
const-string v1, "%d\u6708"
|
|
|
|
new-array v3, v5, [Ljava/lang/Object;
|
|
|
|
invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v17
|
|
|
|
aput-object v17, v3, v9
|
|
|
|
invoke-static {v15, v1, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v14, v10
|
|
|
|
move-object/from16 v18, v2
|
|
|
|
const/4 v5, 0x2
|
|
|
|
const/16 v16, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
.line 344
|
|
:cond_4
|
|
:goto_4
|
|
invoke-virtual {v2, v5}, Ljava/util/Calendar;->get(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 345
|
|
iget-object v3, v0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
|
|
|
|
move-result-object v14
|
|
|
|
const-string v15, "%d\u5e74%d\u6708"
|
|
|
|
move-object/from16 v18, v2
|
|
|
|
const/4 v5, 0x2
|
|
|
|
new-array v2, v5, [Ljava/lang/Object;
|
|
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v2, v9
|
|
|
|
invoke-static {v13}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v16, 0x1
|
|
|
|
aput-object v1, v2, v16
|
|
|
|
invoke-static {v14, v15, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v3, v10
|
|
|
|
:goto_5
|
|
if-ne v13, v4, :cond_5
|
|
|
|
move v12, v11
|
|
|
|
:cond_5
|
|
add-int/lit8 v1, v7, -0x1
|
|
|
|
int-to-float v2, v11
|
|
|
|
add-float/2addr v2, v8
|
|
|
|
float-to-int v2, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 352
|
|
invoke-direct {v0, v1, v9, v2}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a(III)I
|
|
|
|
move-result v11
|
|
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
move-object/from16 v2, v18
|
|
|
|
const/4 v1, 0x6
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
const/16 v16, 0x1
|
|
|
|
if-eqz v12, :cond_7
|
|
|
|
int-to-float v1, v12
|
|
|
|
.line 355
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
int-to-float v2, v2
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
.line 356
|
|
invoke-virtual/range {p0 .. p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
iput v1, v0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->D:I
|
|
|
|
:cond_7
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redleaves/view/RedLeavesSeekBar;)Z
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-boolean p0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->n:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 10
|
|
|
|
.line 279
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
.line 281
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->r:Ljava/util/List;
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a(Ljava/util/List;)V
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
.line 282
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
.line 283
|
|
iget v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->B:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
.line 284
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
iget v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->C:I
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
sub-int/2addr v2, v1
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
.line 286
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
array-length v0, v0
|
|
|
|
new-array v0, v0, [F
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
.line 287
|
|
:goto_0
|
|
iget-object v7, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
array-length v7, v7
|
|
|
|
if-ge v5, v7, :cond_0
|
|
|
|
.line 288
|
|
iget-object v7, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
aget-object v7, v7, v5
|
|
|
|
.line 289
|
|
iget-object v8, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {v8, v7}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F
|
|
|
|
move-result v7
|
|
|
|
aput v7, v0, v5
|
|
|
|
.line 290
|
|
aget v7, v0, v5
|
|
|
|
add-float/2addr v6, v7
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 292
|
|
:cond_0
|
|
iget v5, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a:F
|
|
|
|
int-to-float v2, v2
|
|
|
|
cmpl-float v7, v2, v6
|
|
|
|
if-lez v7, :cond_1
|
|
|
|
sub-float/2addr v2, v6
|
|
|
|
.line 295
|
|
iget-object v5, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
array-length v5, v5
|
|
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
int-to-float v5, v5
|
|
|
|
div-float v5, v2, v5
|
|
|
|
.line 298
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
array-length v2, v2
|
|
|
|
if-ge v3, v2, :cond_2
|
|
|
|
.line 299
|
|
iget-object v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
new-instance v6, Landroid/graphics/PointF;
|
|
|
|
int-to-float v7, v1
|
|
|
|
int-to-float v8, v3
|
|
|
|
mul-float v8, v8, v5
|
|
|
|
add-float/2addr v7, v8
|
|
|
|
add-float/2addr v7, v4
|
|
|
|
iget v8, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c:I
|
|
|
|
const/high16 v9, 0x41200000 # 10.0f
|
|
|
|
invoke-static {v9}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v9
|
|
|
|
sub-int/2addr v8, v9
|
|
|
|
int-to-float v8, v8
|
|
|
|
invoke-direct {v6, v7, v8}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 300
|
|
aget v2, v0, v3
|
|
|
|
add-float/2addr v4, v2
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Landroid/graphics/Canvas;)V
|
|
.locals 7
|
|
|
|
const/high16 v0, 0x41a00000 # 20.0f
|
|
|
|
.line 193
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v2, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->F:I
|
|
|
|
int-to-float v3, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->z:I
|
|
|
|
int-to-float v4, v0
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->F:I
|
|
|
|
int-to-float v5, v0
|
|
|
|
iget-object v6, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->y:Landroid/graphics/Paint;
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/redleaves/view/RedLeavesSeekBar;)Z
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-boolean p0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private c()V
|
|
.locals 7
|
|
|
|
.line 376
|
|
iget-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->n:Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 379
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d()V
|
|
|
|
.line 381
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->D:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "progress"
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 382
|
|
new-array v1, v1, [I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iget v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->D:I
|
|
|
|
aput v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v3
|
|
|
|
int-to-double v3, v3
|
|
|
|
const-wide v5, 0x3ff199999999999aL # 1.1
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double v3, v3, v5
|
|
|
|
double-to-int v3, v3
|
|
|
|
aput v3, v1, v2
|
|
|
|
invoke-static {p0, v0, v1}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
.line 384
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->D:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
sub-float/2addr v1, v2
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->x:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-long v1, v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 385
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
new-instance v1, Lcom/moji/redleaves/view/RedLeavesSeekBar$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$1;-><init>(Lcom/moji/redleaves/view/RedLeavesSeekBar;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 396
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 398
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private c(Landroid/graphics/Canvas;)V
|
|
.locals 4
|
|
|
|
.line 202
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->v:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
.line 203
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->v:Landroid/graphics/Matrix;
|
|
|
|
iget v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
const/high16 v3, 0x41f00000 # 30.0f
|
|
|
|
invoke-static {v3}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v3
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
const/high16 v2, 0x41700000 # 15.0f
|
|
|
|
invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
iget-object v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->w:Landroid/graphics/Bitmap;
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
div-int/lit8 v2, v2, 0x2
|
|
|
|
int-to-float v2, v2
|
|
|
|
sub-float/2addr v1, v2
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->E:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->postTranslate(FF)Z
|
|
|
|
.line 204
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->w:Landroid/graphics/Bitmap;
|
|
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->v:Landroid/graphics/Matrix;
|
|
|
|
iget-object v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->g:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/redleaves/view/RedLeavesSeekBar;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/redleaves/view/RedLeavesSeekBar;)Landroid/animation/ObjectAnimator;
|
|
.locals 0
|
|
|
|
.line 38
|
|
iget-object p0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private d()V
|
|
.locals 1
|
|
|
|
.line 403
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 404
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V
|
|
|
|
.line 406
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 407
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private d(Landroid/graphics/Canvas;)V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 211
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 212
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h:[Ljava/lang/String;
|
|
|
|
aget-object v1, v1, v0
|
|
|
|
iget-object v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/graphics/PointF;
|
|
|
|
iget v2, v2, Landroid/graphics/PointF;->x:F
|
|
|
|
iget-object v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
invoke-interface {v3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/graphics/PointF;
|
|
|
|
iget v3, v3, Landroid/graphics/PointF;->y:F
|
|
|
|
iget-object v4, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f:Landroid/graphics/Paint;
|
|
|
|
invoke-virtual {p1, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private e()V
|
|
.locals 7
|
|
|
|
.line 412
|
|
iget-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->n:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 415
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d()V
|
|
|
|
const-string v0, "progress"
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 416
|
|
new-array v1, v1, [I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iget v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
aput v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v3
|
|
|
|
int-to-double v3, v3
|
|
|
|
const-wide v5, 0x3ff199999999999aL # 1.1
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
mul-double v3, v3, v5
|
|
|
|
double-to-int v3, v3
|
|
|
|
aput v3, v1, v2
|
|
|
|
invoke-static {p0, v0, v1}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
.line 418
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
sub-float/2addr v1, v2
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->x:I
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-long v1, v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 419
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
new-instance v1, Lcom/moji/redleaves/view/RedLeavesSeekBar$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$2;-><init>(Lcom/moji/redleaves/view/RedLeavesSeekBar;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 426
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private e(Landroid/graphics/Canvas;)V
|
|
.locals 7
|
|
|
|
.line 222
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->i:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/RectF;
|
|
|
|
.line 223
|
|
iget v2, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
iget v3, v0, Landroid/graphics/RectF;->top:F
|
|
|
|
iget v4, v0, Landroid/graphics/RectF;->left:F
|
|
|
|
iget v5, v0, Landroid/graphics/RectF;->bottom:F
|
|
|
|
iget-object v6, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e:Landroid/graphics/Paint;
|
|
|
|
move-object v1, p1
|
|
|
|
invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/redleaves/view/RedLeavesSeekBar;)V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private f()V
|
|
.locals 1
|
|
|
|
.line 462
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 463
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;->f()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 465
|
|
iput-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
.line 466
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private g()V
|
|
.locals 1
|
|
|
|
.line 470
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 471
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;->g()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 473
|
|
iput-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
.line 474
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private h()V
|
|
.locals 1
|
|
|
|
.line 478
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 479
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;->f()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 481
|
|
iput-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
.line 482
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c()V
|
|
|
|
.line 483
|
|
iput-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->u:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private i()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 487
|
|
invoke-virtual {p0, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setEnabled(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private j()V
|
|
.locals 2
|
|
|
|
.line 491
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 492
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
invoke-interface {v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;->e()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 494
|
|
iput-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->n:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 495
|
|
iput-boolean v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->o:Z
|
|
|
|
.line 496
|
|
invoke-virtual {p0, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setEnabled(Z)V
|
|
|
|
.line 497
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->invalidate()V
|
|
|
|
.line 498
|
|
sget-object v0, Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;->PLAY:Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setStatus(Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected onDetachedFromWindow()V
|
|
.locals 1
|
|
|
|
.line 132
|
|
invoke-super {p0}, Landroid/widget/SeekBar;->onDetachedFromWindow()V
|
|
|
|
.line 133
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->k:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V
|
|
|
|
.line 136
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 137
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->l:Landroid/animation/ObjectAnimator;
|
|
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 1
|
|
|
|
.line 168
|
|
invoke-super {p0, p1}, Landroid/widget/SeekBar;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
.line 170
|
|
iget-boolean v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->u:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 171
|
|
invoke-direct {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b(Landroid/graphics/Canvas;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 173
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d(Landroid/graphics/Canvas;)V
|
|
|
|
.line 174
|
|
invoke-direct {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a(Landroid/graphics/Canvas;)V
|
|
|
|
.line 175
|
|
invoke-direct {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c(Landroid/graphics/Canvas;)V
|
|
|
|
.line 177
|
|
:goto_0
|
|
invoke-direct {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->e(Landroid/graphics/Canvas;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
|
|
.locals 0
|
|
|
|
.line 265
|
|
invoke-virtual {p0, p2}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setProgress(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onSizeChanged(IIII)V
|
|
.locals 4
|
|
|
|
.line 147
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/SeekBar;->onSizeChanged(IIII)V
|
|
|
|
.line 148
|
|
iput p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c:I
|
|
|
|
.line 149
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
.line 151
|
|
iget p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
iget p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->A:I
|
|
|
|
mul-int/lit8 p2, p2, 0x2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
int-to-float p1, p1
|
|
|
|
const/high16 p2, 0x40c00000 # 6.0f
|
|
|
|
div-float/2addr p1, p2
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a:F
|
|
|
|
const/high16 p1, 0x41f00000 # 30.0f
|
|
|
|
.line 152
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b:F
|
|
|
|
.line 153
|
|
iget-object p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->i:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->clear()V
|
|
|
|
.line 154
|
|
iget-object p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->clear()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
const/4 p2, 0x6
|
|
|
|
if-ge p1, p2, :cond_0
|
|
|
|
.line 157
|
|
new-instance p2, Landroid/graphics/RectF;
|
|
|
|
iget p3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a:F
|
|
|
|
int-to-float p4, p1
|
|
|
|
mul-float p3, p3, p4
|
|
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
const/high16 v1, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b:F
|
|
|
|
div-float/2addr v2, v1
|
|
|
|
sub-float/2addr v0, v2
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->a:F
|
|
|
|
mul-float v2, v2, p4
|
|
|
|
iget p4, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->c:I
|
|
|
|
int-to-float p4, p4
|
|
|
|
div-float/2addr p4, v1
|
|
|
|
iget v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b:F
|
|
|
|
div-float/2addr v3, v1
|
|
|
|
add-float/2addr p4, v3
|
|
|
|
invoke-direct {p2, p3, v0, v2, p4}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
.line 158
|
|
iget-object p3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->i:Ljava/util/List;
|
|
|
|
invoke-interface {p3, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/high16 p1, 0x40800000 # 4.0f
|
|
|
|
.line 161
|
|
invoke-static {p1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->E:I
|
|
|
|
.line 163
|
|
iget p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->E:I
|
|
|
|
iget-object p2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->w:Landroid/graphics/Bitmap;
|
|
|
|
invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result p2
|
|
|
|
div-int/lit8 p2, p2, 0x2
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->F:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
|
|
.locals 0
|
|
|
|
.line 270
|
|
sget-object p1, Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;->PAUSE:Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setStatus(Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHandler(Landroid/os/Handler;)V
|
|
.locals 0
|
|
|
|
.line 438
|
|
iput-object p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->q:Landroid/os/Handler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageData(Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/redleaves/data/DynamicImage;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 430
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
.line 431
|
|
iput-object p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->r:Ljava/util/List;
|
|
|
|
.line 432
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->b()V
|
|
|
|
.line 433
|
|
sget-object p1, Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;->READY:Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->setStatus(Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLoadingProgress(F)V
|
|
.locals 3
|
|
.param p1 # F
|
|
.annotation build Landroid/support/annotation/FloatRange;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpg-float v2, p1, v1
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
cmpl-float v1, p1, v0
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
.line 528
|
|
:cond_1
|
|
:goto_0
|
|
iget v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->d:I
|
|
|
|
const/high16 v1, 0x42200000 # 40.0f
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
int-to-float v0, v0
|
|
|
|
mul-float p1, p1, v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
const/high16 v0, 0x41a00000 # 20.0f
|
|
|
|
invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v0
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->z:I
|
|
|
|
.line 529
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnStatusChangeListener(Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;)V
|
|
.locals 0
|
|
|
|
.line 371
|
|
iput-object p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->p:Lcom/moji/redleaves/view/RedLeavesSeekBar$onStatusChangeListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgress(I)V
|
|
.locals 5
|
|
.annotation build Landroid/support/annotation/Keep;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-gtz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 233
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->q:Landroid/os/Handler;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->r:Ljava/util/List;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 234
|
|
iget-object v1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->r:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
int-to-float v2, p1
|
|
|
|
int-to-float v3, v1
|
|
|
|
.line 235
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v3, v4
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
if-le v2, v1, :cond_1
|
|
|
|
move v2, v1
|
|
|
|
.line 239
|
|
:cond_1
|
|
iget v3, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->s:I
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
if-ne v2, v1, :cond_5
|
|
|
|
.line 240
|
|
:cond_2
|
|
iput v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->s:I
|
|
|
|
.line 241
|
|
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
|
|
|
|
move-result-object v1
|
|
|
|
.line 242
|
|
iput v0, v1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v0, 0x64
|
|
|
|
if-lt p1, v0, :cond_4
|
|
|
|
.line 244
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v2
|
|
|
|
sub-int v2, p1, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
const/high16 v3, 0x41200000 # 10.0f
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
if-le v2, v0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
move v0, v2
|
|
|
|
.line 248
|
|
:goto_0
|
|
iput v0, v1, Landroid/os/Message;->arg1:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
.line 250
|
|
iput v0, v1, Landroid/os/Message;->arg1:I
|
|
|
|
.line 252
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->r:Ljava/util/List;
|
|
|
|
iget v2, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->s:I
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, v1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
.line 253
|
|
iget-object v0, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->q:Landroid/os/Handler;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
|
|
|
|
.line 256
|
|
:cond_5
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
.line 257
|
|
iget p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result v0
|
|
|
|
if-le p1, v0, :cond_6
|
|
|
|
.line 258
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->getMax()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/moji/redleaves/view/RedLeavesSeekBar;->m:I
|
|
|
|
.line 260
|
|
:cond_6
|
|
invoke-virtual {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatus(Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;)V
|
|
.locals 1
|
|
|
|
.line 442
|
|
sget-object v0, Lcom/moji/redleaves/view/RedLeavesSeekBar$3;->a:[I
|
|
|
|
invoke-virtual {p1}, Lcom/moji/redleaves/view/RedLeavesSeekBar$STATUS;->ordinal()I
|
|
|
|
move-result p1
|
|
|
|
aget p1, v0, p1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 456
|
|
:pswitch_0
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->f()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 453
|
|
:pswitch_1
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->g()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 450
|
|
:pswitch_2
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->h()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 447
|
|
:pswitch_3
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->j()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 444
|
|
:pswitch_4
|
|
invoke-direct {p0}, Lcom/moji/redleaves/view/RedLeavesSeekBar;->i()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|