149 lines
3.6 KiB
Smali
149 lines
3.6 KiB
Smali
.class Lcom/moji/download/MJDownloadRequest$1$1;
|
|
.super Ljava/lang/Object;
|
|
.source "MJDownloadRequest.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/download/MJDownloadRequest$1;->a(JJZ)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:J
|
|
|
|
.field final synthetic b:J
|
|
|
|
.field final synthetic c:Lcom/moji/download/MJDownloadRequest$1;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/download/MJDownloadRequest$1;JJ)V
|
|
.locals 0
|
|
|
|
.line 33
|
|
iput-object p1, p0, Lcom/moji/download/MJDownloadRequest$1$1;->c:Lcom/moji/download/MJDownloadRequest$1;
|
|
|
|
iput-wide p2, p0, Lcom/moji/download/MJDownloadRequest$1$1;->a:J
|
|
|
|
iput-wide p4, p0, Lcom/moji/download/MJDownloadRequest$1$1;->b:J
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 10
|
|
|
|
.line 37
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/moji/download/MJDownloadRequest$1$1;->c:Lcom/moji/download/MJDownloadRequest$1;
|
|
|
|
iget-object v0, v0, Lcom/moji/download/MJDownloadRequest$1;->a:Lcom/moji/download/MJDownloadRequest;
|
|
|
|
invoke-static {v0}, Lcom/moji/download/MJDownloadRequest;->a(Lcom/moji/download/MJDownloadRequest;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 38
|
|
:try_start_1
|
|
iget-wide v1, p0, Lcom/moji/download/MJDownloadRequest$1$1;->a:J
|
|
|
|
long-to-float v1, v1
|
|
|
|
iget-wide v2, p0, Lcom/moji/download/MJDownloadRequest$1$1;->b:J
|
|
|
|
long-to-float v2, v2
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
const/high16 v2, 0x42c80000 # 100.0f
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
.line 39
|
|
iget-object v2, p0, Lcom/moji/download/MJDownloadRequest$1$1;->c:Lcom/moji/download/MJDownloadRequest$1;
|
|
|
|
iget-object v2, v2, Lcom/moji/download/MJDownloadRequest$1;->a:Lcom/moji/download/MJDownloadRequest;
|
|
|
|
invoke-static {v2}, Lcom/moji/download/MJDownloadRequest;->b(Lcom/moji/download/MJDownloadRequest;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v9
|
|
|
|
:goto_0
|
|
invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/moji/download/MJDownloadStatusListener;
|
|
|
|
.line 40
|
|
iget-object v3, p0, Lcom/moji/download/MJDownloadRequest$1$1;->c:Lcom/moji/download/MJDownloadRequest$1;
|
|
|
|
iget-object v3, v3, Lcom/moji/download/MJDownloadRequest$1;->a:Lcom/moji/download/MJDownloadRequest;
|
|
|
|
iget-wide v4, p0, Lcom/moji/download/MJDownloadRequest$1$1;->a:J
|
|
|
|
iget-wide v6, p0, Lcom/moji/download/MJDownloadRequest$1$1;->b:J
|
|
|
|
move v8, v1
|
|
|
|
invoke-interface/range {v2 .. v8}, Lcom/moji/download/MJDownloadStatusListener;->onProgress(Lcom/moji/download/MJDownloadRequest;JJI)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 42
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
throw v1
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 44
|
|
invoke-static {v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/Throwable;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|