.class public Lcom/moji/appupdate/DownLoadAppTask;
.super Ljava/lang/Object;
.source "DownLoadAppTask.java"


# instance fields
.field private a:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 19
    iput v0, p0, Lcom/moji/appupdate/DownLoadAppTask;->a:I

    return-void
.end method

.method static synthetic a(Lcom/moji/appupdate/DownLoadAppTask;)I
    .locals 0

    .line 18
    iget p0, p0, Lcom/moji/appupdate/DownLoadAppTask;->a:I

    return p0
.end method

.method static synthetic a(Lcom/moji/appupdate/DownLoadAppTask;I)I
    .locals 0

    .line 18
    iput p1, p0, Lcom/moji/appupdate/DownLoadAppTask;->a:I

    return p1
.end method

.method private a(DDI)Ljava/lang/String;
    .locals 1

    .line 64
    invoke-static {}, Ljava/text/NumberFormat;->getInstance()Ljava/text/NumberFormat;

    move-result-object v0

    check-cast v0, Ljava/text/DecimalFormat;

    .line 66
    invoke-virtual {v0, p5}, Ljava/text/DecimalFormat;->setMaximumFractionDigits(I)V

    .line 68
    sget-object p5, Ljava/math/RoundingMode;->HALF_UP:Ljava/math/RoundingMode;

    invoke-virtual {v0, p5}, Ljava/text/DecimalFormat;->setRoundingMode(Ljava/math/RoundingMode;)V

    div-double/2addr p1, p3

    const-wide/high16 p3, 0x4059000000000000L    # 100.0

    mul-double p1, p1, p3

    .line 70
    invoke-virtual {v0, p1, p2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method static synthetic a(Lcom/moji/appupdate/DownLoadAppTask;DDI)Ljava/lang/String;
    .locals 0

    .line 18
    invoke-direct/range {p0 .. p5}, Lcom/moji/appupdate/DownLoadAppTask;->a(DDI)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/io/File;Lcom/moji/appupdate/callback/DownLoadSizeCallback;)V
    .locals 2

    .line 25
    new-instance v0, Lcom/moji/requestcore/DownloadRequest;

    new-instance v1, Lcom/moji/appupdate/DownLoadAppTask$1;

    invoke-direct {v1, p0, p3}, Lcom/moji/appupdate/DownLoadAppTask$1;-><init>(Lcom/moji/appupdate/DownLoadAppTask;Lcom/moji/appupdate/callback/DownLoadSizeCallback;)V

    invoke-direct {v0, p2, p1, v1}, Lcom/moji/requestcore/DownloadRequest;-><init>(Ljava/io/File;Ljava/lang/String;Lcom/moji/requestcore/ProgressListener;)V

    .line 41
    new-instance p1, Lcom/moji/appupdate/DownLoadAppTask$2;

    invoke-direct {p1, p0, p3, p2}, Lcom/moji/appupdate/DownLoadAppTask$2;-><init>(Lcom/moji/appupdate/DownLoadAppTask;Lcom/moji/appupdate/callback/DownLoadSizeCallback;Ljava/io/File;)V

    invoke-virtual {v0, p1}, Lcom/moji/requestcore/DownloadRequest;->b(Lcom/moji/requestcore/DownloadRequest$DownloadCallback;)V

    return-void
.end method
