.class public Lcom/moji/circleprogress/AqiDonutProgress;
.super Lcom/moji/circleprogress/DonutProgress;
.source "AqiDonutProgress.java"


# static fields
.field private static final i:I


# 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 private G:Ljava/lang/Runnable;

.field private H:[Lcom/moji/circleprogress/Bubble;

.field private I:Landroid/os/Handler;

.field private J:I

.field private K:Z

.field protected a:Landroid/graphics/Paint;

.field private j:Landroid/graphics/Paint;

.field private k:Landroid/graphics/Paint;

.field private l:Landroid/graphics/Paint;

.field private m:Landroid/graphics/RectF;

.field private n:Landroid/graphics/Paint;

.field private o:Landroid/graphics/Paint;

.field private p:F

.field private q:I

.field private r:Ljava/lang/String;

.field private s:D

.field private t:I

.field private u:I

.field private v:I

.field private w:I

.field private x:I

.field private y:I

.field private z:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, "#48FFFFFF"

    .line 34
    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    sput v0, Lcom/moji/circleprogress/AqiDonutProgress;->i:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 104
    invoke-direct {p0, p1, p2, v0}, Lcom/moji/circleprogress/AqiDonutProgress;-><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 108
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/circleprogress/DonutProgress;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 43
    new-instance p1, Landroid/graphics/RectF;

    invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V

    iput-object p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->m:Landroid/graphics/RectF;

    const/4 p1, 0x0

    .line 75
    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->E:I

    .line 78
    sget p2, Lcom/moji/circleprogress/AqiDonutProgress;->i:I

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->F:I

    .line 83
    new-instance p2, Landroid/os/Handler;

    invoke-direct {p2}, Landroid/os/Handler;-><init>()V

    iput-object p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->I:Landroid/os/Handler;

    .line 87
    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    .line 97
    iput-boolean p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->K:Z

    const/high16 p1, 0x41300000    # 11.0f

    .line 109
    invoke-virtual {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->a(F)I

    move-result p1

    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->t:I

    const/high16 p1, 0x41800000    # 16.0f

    .line 110
    invoke-virtual {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->a(F)I

    move-result p1

    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->u:I

    const/high16 p1, 0x41000000    # 8.0f

    .line 111
    invoke-virtual {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->a(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->v:I

    const/high16 p2, 0x41880000    # 17.0f

    .line 112
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->a(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->w:I

    const/high16 p2, 0x41200000    # 10.0f

    .line 113
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->x:I

    const/high16 p2, 0x41a00000    # 20.0f

    .line 114
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->y:I

    const/high16 p2, 0x40000000    # 2.0f

    .line 115
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    const/high16 p2, 0x40800000    # 4.0f

    .line 116
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->A:I

    const/high16 p2, 0x40a00000    # 5.0f

    .line 117
    invoke-virtual {p0, p2}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p2

    iput p2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->B:I

    .line 118
    invoke-virtual {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p1

    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->C:I

    const/high16 p1, 0x41700000    # 15.0f

    .line 119
    invoke-virtual {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->b(F)I

    move-result p1

    iput p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->D:I

    .line 120
    invoke-direct {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->c()V

    .line 121
    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->a()V

    return-void
.end method

.method private a(IIIII)V
    .locals 10

    .line 285
    iget v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->E:I

    new-array v0, v0, [Lcom/moji/circleprogress/Bubble;

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->H:[Lcom/moji/circleprogress/Bubble;

    const/4 v0, 0x0

    .line 286
    :goto_0
    iget v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->E:I

    if-ge v0, v1, :cond_0

    .line 287
    iget-object v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->H:[Lcom/moji/circleprogress/Bubble;

    new-instance v9, Lcom/moji/circleprogress/Bubble;

    iget v6, p0, Lcom/moji/circleprogress/AqiDonutProgress;->F:I

    move-object v2, v9

    move v3, p1

    move v4, p2

    move v5, p3

    move v7, p4

    move v8, p5

    invoke-direct/range {v2 .. v8}, Lcom/moji/circleprogress/Bubble;-><init>(IIIIII)V

    aput-object v9, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 18

    move-object/from16 v6, p0

    .line 257
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v0

    div-int/lit8 v5, v0, 0x2

    .line 258
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v7

    .line 259
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v16

    .line 260
    iget v0, v6, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    sub-int v17, v16, v0

    .line 261
    iget-wide v0, v6, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    const-wide/high16 v2, 0x4000000000000000L    # 2.0

    mul-double v0, v0, v2

    double-to-int v15, v0

    .line 262
    iget-object v0, v6, Lcom/moji/circleprogress/AqiDonutProgress;->H:[Lcom/moji/circleprogress/Bubble;

    if-eqz v0, :cond_0

    iget-object v0, v6, Lcom/moji/circleprogress/AqiDonutProgress;->H:[Lcom/moji/circleprogress/Bubble;

    array-length v0, v0

    if-nez v0, :cond_1

    .line 263
    :cond_0
    iget v4, v6, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    move-object/from16 v0, p0

    move v1, v15

    move/from16 v2, v16

    move/from16 v3, v17

    invoke-direct/range {v0 .. v5}, Lcom/moji/circleprogress/AqiDonutProgress;->a(IIIII)V

    .line 267
    :cond_1
    iget-object v0, v6, Lcom/moji/circleprogress/AqiDonutProgress;->H:[Lcom/moji/circleprogress/Bubble;

    array-length v1, v0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_3

    aget-object v3, v0, v2

    const/16 v4, 0x1e

    const/4 v5, 0x0

    .line 269
    invoke-virtual {v3, v4, v5}, Lcom/moji/circleprogress/Bubble;->a(IF)V

    move-object/from16 v4, p1

    .line 272
    invoke-virtual {v3, v4}, Lcom/moji/circleprogress/Bubble;->a(Landroid/graphics/Canvas;)V

    .line 273
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v5

    div-int/lit8 v5, v5, 0x2

    int-to-double v9, v5

    iget-wide v11, v6, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    sub-double/2addr v9, v11

    double-to-int v14, v9

    .line 274
    iget v13, v6, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    move-object v9, v3

    move v10, v15

    move/from16 v11, v16

    move/from16 v12, v17

    invoke-virtual/range {v9 .. v14}, Lcom/moji/circleprogress/Bubble;->a(IIIII)Z

    move-result v5

    if-eqz v5, :cond_2

    const/4 v10, 0x0

    .line 275
    iget v14, v6, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v5

    div-int/lit8 v5, v5, 0x2

    move-object v9, v3

    move v11, v15

    move/from16 v12, v16

    move/from16 v13, v17

    move v3, v15

    move v15, v5

    invoke-virtual/range {v9 .. v15}, Lcom/moji/circleprogress/Bubble;->a(ZIIIII)V

    goto :goto_1

    :cond_2
    move v3, v15

    :goto_1
    add-int/lit8 v2, v2, 0x1

    move v15, v3

    goto :goto_0

    .line 279
    :cond_3
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    sub-long/2addr v0, v7

    .line 280
    iget-object v2, v6, Lcom/moji/circleprogress/AqiDonutProgress;->I:Landroid/os/Handler;

    iget-object v3, v6, Lcom/moji/circleprogress/AqiDonutProgress;->G:Ljava/lang/Runnable;

    const-wide/16 v4, 0x21

    sub-long/2addr v4, v0

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method private a(Landroid/graphics/Canvas;I)V
    .locals 24

    move-object/from16 v0, p0

    move-object/from16 v7, p1

    move/from16 v8, p2

    .line 197
    iget-object v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->m:Landroid/graphics/RectF;

    iget v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    iget v3, v0, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    int-to-float v3, v3

    add-float/2addr v2, v3

    iget v3, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    .line 199
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getWidth()I

    move-result v4

    int-to-float v4, v4

    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    sub-float/2addr v4, v5

    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    int-to-float v5, v5

    sub-float/2addr v4, v5

    .line 200
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v5

    int-to-float v5, v5

    iget v6, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    sub-float/2addr v5, v6

    .line 197
    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/RectF;->set(FFFF)V

    int-to-float v1, v8

    const/high16 v9, 0x40000000    # 2.0f

    div-float v10, v1, v9

    .line 205
    iget v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    int-to-float v1, v1

    sub-float v1, v10, v1

    div-float/2addr v1, v10

    float-to-double v1, v1

    invoke-static {v1, v2}, Ljava/lang/Math;->acos(D)D

    move-result-wide v1

    const-wide v11, 0x4066800000000000L    # 180.0

    mul-double v1, v1, v11

    const-wide v13, 0x400921fb54442d18L    # Math.PI

    div-double/2addr v1, v13

    double-to-float v15, v1

    .line 207
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->save()I

    .line 208
    invoke-virtual/range {p0 .. p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    int-to-float v1, v1

    div-int/lit8 v2, v8, 0x2

    int-to-float v2, v2

    const/high16 v3, 0x43340000    # 180.0f

    invoke-virtual {v7, v3, v1, v2}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 209
    new-instance v1, Landroid/graphics/LinearGradient;

    iget v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    int-to-float v2, v2

    const-string v3, "#12ffffff"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v21

    const-string v3, "#05ffffff"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v22

    sget-object v23, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;

    const/16 v17, 0x0

    const/16 v18, 0x0

    const/16 v19, 0x0

    move-object/from16 v16, v1

    move/from16 v20, v2

    invoke-direct/range {v16 .. v23}, Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V

    .line 210
    iget-object v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->j:Landroid/graphics/Paint;

    invoke-virtual {v2, v1}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    .line 211
    iget-object v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->m:Landroid/graphics/RectF;

    const/high16 v1, 0x43870000    # 270.0f

    sub-float v3, v1, v15

    mul-float v4, v15, v9

    iget-object v6, v0, Lcom/moji/circleprogress/AqiDonutProgress;->j:Landroid/graphics/Paint;

    const/4 v5, 0x0

    move-object/from16 v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawArc(Landroid/graphics/RectF;FFZLandroid/graphics/Paint;)V

    .line 212
    invoke-virtual/range {p1 .. p1}, Landroid/graphics/Canvas;->restore()V

    float-to-double v1, v15

    .line 215
    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v13

    div-double/2addr v1, v11

    invoke-static {v1, v2}, Ljava/lang/Math;->sin(D)D

    move-result-wide v1

    float-to-double v3, v10

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    iput-wide v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    .line 217
    iget-wide v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    sub-double v1, v3, v1

    double-to-float v1, v1

    iget v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    int-to-float v2, v2

    add-float/2addr v1, v2

    .line 219
    new-instance v2, Landroid/graphics/Path;

    invoke-direct {v2}, Landroid/graphics/Path;-><init>()V

    .line 221
    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->h:I

    int-to-double v5, v5

    iget-wide v10, v0, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v5, v10

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v5, v3

    iget v3, v0, Lcom/moji/circleprogress/AqiDonutProgress;->C:I

    int-to-double v3, v3

    invoke-static {v3, v4}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v5, v3

    double-to-float v3, v5

    .line 223
    iget v4, v0, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    sub-int v4, v8, v4

    int-to-float v4, v4

    .line 224
    invoke-virtual {v2, v1, v4}, Landroid/graphics/Path;->moveTo(FF)V

    .line 225
    invoke-virtual {v2, v3, v4}, Landroid/graphics/Path;->lineTo(FF)V

    .line 226
    iget-object v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    invoke-virtual {v7, v2, v5}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    .line 228
    iget v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    int-to-float v2, v2

    add-float/2addr v2, v3

    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    int-to-float v5, v5

    iget-object v6, v0, Lcom/moji/circleprogress/AqiDonutProgress;->l:Landroid/graphics/Paint;

    invoke-virtual {v7, v2, v4, v5, v6}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 231
    new-instance v2, Landroid/graphics/RectF;

    invoke-direct {v2}, Landroid/graphics/RectF;-><init>()V

    .line 232
    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    mul-float v5, v5, v9

    add-float/2addr v5, v1

    iput v5, v2, Landroid/graphics/RectF;->left:F

    const/high16 v5, 0x41200000    # 10.0f

    sub-float v5, v4, v5

    .line 233
    iput v5, v2, Landroid/graphics/RectF;->top:F

    float-to-double v5, v1

    .line 234
    iget-wide v10, v0, Lcom/moji/circleprogress/AqiDonutProgress;->s:D

    const-wide/high16 v12, 0x4000000000000000L    # 2.0

    mul-double v10, v10, v12

    invoke-static {v5, v6}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr v5, v10

    iget v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->f:F

    mul-float v1, v1, v9

    float-to-double v8, v1

    invoke-static {v8, v9}, Ljava/lang/Double;->isNaN(D)Z

    sub-double/2addr v5, v8

    double-to-float v1, v5

    iput v1, v2, Landroid/graphics/RectF;->right:F

    .line 235
    iput v4, v2, Landroid/graphics/RectF;->bottom:F

    .line 236
    iget-object v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->o:Landroid/graphics/Paint;

    const-string v2, "#975E7E"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 239
    iget-object v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->r:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 240
    iget-object v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    invoke-virtual {v1}, Landroid/graphics/Paint;->descent()F

    move-result v1

    iget-object v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->ascent()F

    move-result v2

    add-float/2addr v1, v2

    .line 241
    iget-object v2, v0, Lcom/moji/circleprogress/AqiDonutProgress;->r:Ljava/lang/String;

    const-string v5, "#"

    invoke-virtual {v2, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 242
    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    int-to-float v5, v5

    add-float/2addr v3, v5

    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->A:I

    int-to-float v5, v5

    add-float/2addr v3, v5

    const/4 v5, 0x0

    .line 243
    aget-object v5, v2, v5

    iget v6, v0, Lcom/moji/circleprogress/AqiDonutProgress;->A:I

    int-to-float v6, v6

    add-float/2addr v6, v4

    add-float/2addr v6, v1

    iget-object v8, v0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    invoke-virtual {v7, v5, v3, v6, v8}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    const/4 v5, 0x1

    .line 247
    aget-object v2, v2, v5

    iget v5, v0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    int-to-float v5, v5

    add-float/2addr v4, v5

    sub-float/2addr v4, v1

    iget-object v1, v0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    invoke-virtual {v7, v2, v3, v4, v1}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    :cond_0
    return-void
.end method

.method private c()V
    .locals 1

    .line 127
    iget v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->t:I

    int-to-float v0, v0

    iput v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->p:F

    const/16 v0, 0xff

    .line 128
    invoke-static {v0, v0, v0}, Landroid/graphics/Color;->rgb(III)I

    move-result v0

    iput v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->q:I

    .line 130
    new-instance v0, Lcom/moji/circleprogress/AqiDonutProgress$1;

    invoke-direct {v0, p0}, Lcom/moji/circleprogress/AqiDonutProgress$1;-><init>(Lcom/moji/circleprogress/AqiDonutProgress;)V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->G:Ljava/lang/Runnable;

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 5

    .line 139
    new-instance v0, Landroid/text/TextPaint;

    invoke-direct {v0}, Landroid/text/TextPaint;-><init>()V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    .line 140
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    iget v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->q:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 141
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    iget v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->p:F

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 142
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->a:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 144
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->j:Landroid/graphics/Paint;

    .line 145
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->j:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 147
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->l:Landroid/graphics/Paint;

    .line 148
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->l:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 149
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->l:Landroid/graphics/Paint;

    const-string v2, "#80FFFFFF"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 150
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->l:Landroid/graphics/Paint;

    iget v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->z:I

    int-to-float v2, v2

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 152
    new-instance v0, Landroid/graphics/DashPathEffect;

    const/4 v2, 0x2

    new-array v2, v2, [F

    fill-array-data v2, :array_0

    const/high16 v3, 0x3f800000    # 1.0f

    invoke-direct {v0, v2, v3}, Landroid/graphics/DashPathEffect;-><init>([FF)V

    .line 153
    new-instance v2, Landroid/graphics/Paint;

    invoke-direct {v2}, Landroid/graphics/Paint;-><init>()V

    iput-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    .line 154
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->reset()V

    .line 155
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    sget-object v4, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v2, v4}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 156
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 157
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    const-string v3, "#64FFFFFF"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    .line 158
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    invoke-virtual {v2, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 159
    iget-object v2, p0, Lcom/moji/circleprogress/AqiDonutProgress;->k:Landroid/graphics/Paint;

    invoke-virtual {v2, v0}, Landroid/graphics/Paint;->setPathEffect(Landroid/graphics/PathEffect;)Landroid/graphics/PathEffect;

    .line 161
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->n:Landroid/graphics/Paint;

    .line 162
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->n:Landroid/graphics/Paint;

    const/high16 v2, 0x40200000    # 2.5f

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 163
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->n:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 164
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->n:Landroid/graphics/Paint;

    const-string v2, "#48FFFFFF"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 166
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->o:Landroid/graphics/Paint;

    .line 167
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->o:Landroid/graphics/Paint;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 168
    iget-object v0, p0, Lcom/moji/circleprogress/AqiDonutProgress;->o:Landroid/graphics/Paint;

    const-string v1, "#cccccc"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    return-void

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x40000000    # 2.0f
    .end array-data
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 4

    .line 178
    invoke-super {p0, p1}, Lcom/moji/circleprogress/DonutProgress;->onDraw(Landroid/graphics/Canvas;)V

    .line 179
    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getHeight()I

    move-result v0

    .line 181
    iget-boolean v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->K:Z

    if-eqz v1, :cond_2

    .line 183
    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getProgress()I

    move-result v1

    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getMin()I

    move-result v2

    if-gt v1, v2, :cond_0

    .line 184
    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getMin()I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/moji/circleprogress/AqiDonutProgress;->setProgressValue(I)V

    :cond_0
    int-to-float v1, v0

    .line 186
    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getProgress()I

    move-result v2

    int-to-float v2, v2

    invoke-virtual {p0}, Lcom/moji/circleprogress/AqiDonutProgress;->getMax()I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    mul-float v1, v1, v2

    float-to-int v1, v1

    iput v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->J:I

    .line 187
    iget v1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->E:I

    if-lez v1, :cond_1

    .line 188
    invoke-direct {p0, p1}, Lcom/moji/circleprogress/AqiDonutProgress;->a(Landroid/graphics/Canvas;)V

    .line 190
    :cond_1
    invoke-direct {p0, p1, v0}, Lcom/moji/circleprogress/AqiDonutProgress;->a(Landroid/graphics/Canvas;I)V

    :cond_2
    return-void
.end method

.method public setAverageInfo(Ljava/lang/String;)V
    .locals 0

    .line 172
    iput-object p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->r:Ljava/lang/String;

    return-void
.end method

.method public setShowProgressLine(Z)V
    .locals 0

    .line 91
    iput-boolean p1, p0, Lcom/moji/circleprogress/AqiDonutProgress;->K:Z

    return-void
.end method
