FileFeatureImpl$d.smali
.class Lio/dcloud/js/file/FileFeatureImpl$d;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/dcloud/js/file/FileFeatureImpl;->execute(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Ljava/io/File;
.field final synthetic b:Ljava/lang/String;
.field final synthetic c:Lio/dcloud/common/DHInterface/IWebview;
.field final synthetic d:Ljava/lang/String;
.field final synthetic e:Lio/dcloud/js/file/FileFeatureImpl;
# direct methods
.method constructor <init>(Lio/dcloud/js/file/FileFeatureImpl;Ljava/io/File;Ljava/lang/String;Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;)V
.registers 6
.line 1
iput-object p1, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->e:Lio/dcloud/js/file/FileFeatureImpl;
iput-object p2, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->a:Ljava/io/File;
iput-object p3, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->b:Ljava/lang/String;
iput-object p4, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->c:Lio/dcloud/common/DHInterface/IWebview;
iput-object p5, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->d:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 10
.line 1
iget-object v0, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->a:Ljava/io/File;
iget-object v1, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->b:Ljava/lang/String;
invoke-static {v0, v1}, Lio/dcloud/common/util/Md5Utils;->md5(Ljava/io/File;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 2
new-instance v1, Lorg/json/JSONObject;
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
const-string v2, "size"
.line 4
:try_start_f
iget-object v3, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->a:Ljava/io/File;
invoke-virtual {v3}, Ljava/io/File;->length()J
move-result-wide v3
invoke-virtual {v1, v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
:try_end_18
.catch Lorg/json/JSONException; {:try_start_f .. :try_end_18} :catch_25
if-eqz v0, :cond_25
const-string v2, "digest"
.line 6
:try_start_1c
sget-object v3, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {v0, v3}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_25
.catch Lorg/json/JSONException; {:try_start_1c .. :try_end_25} :catch_25
.line 9
:catch_25
:cond_25
iget-object v3, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->c:Lio/dcloud/common/DHInterface/IWebview;
iget-object v4, p0, Lio/dcloud/js/file/FileFeatureImpl$d;->d:Ljava/lang/String;
invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v5
sget v6, Lio/dcloud/common/util/JSUtil;->OK:I
const/4 v7, 0x1
const/4 v8, 0x0
invoke-static/range {v3 .. v8}, Lio/dcloud/common/util/JSUtil;->execCallback(Lio/dcloud/common/DHInterface/IWebview;Ljava/lang/String;Ljava/lang/String;IZZ)V
return-void
.end method