.class Lcom/viatech/util/HttpDownloadManager$1; .super Ljava/lang/Object; .source "HttpDownloadManager.java" # interfaces .implements Ljava/lang/Runnable; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/util/HttpDownloadManager;->deleteAllTmpFile()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/viatech/util/HttpDownloadManager; # direct methods .method constructor (Lcom/viatech/util/HttpDownloadManager;)V .locals 0 .prologue .line 127 iput-object p1, p0, Lcom/viatech/util/HttpDownloadManager$1;->this$0:Lcom/viatech/util/HttpDownloadManager; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public run()V .locals 7 .prologue .line 130 new-instance v0, Ljava/io/File; sget-object v1, Lcom/viatech/Config;->d:Ljava/lang/String; invoke-direct {v0, v1}, Ljava/io/File;->(Ljava/lang/String;)V .line 131 invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z move-result v1 if-eqz v1, :cond_0 invoke-virtual {v0}, Ljava/io/File;->exists()Z move-result v1 if-nez v1, :cond_1 .line 147 :cond_0 return-void .line 133 :cond_1 invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File; move-result-object v1 .line 134 if-eqz v1, :cond_0 .line 137 const/4 v0, 0x0 :goto_0 array-length v2, v1 if-ge v0, v2, :cond_0 .line 138 aget-object v2, v1, v0 .line 139 invoke-virtual {v2}, Ljava/io/File;->isDirectory()Z move-result v3 if-nez v3, :cond_2 .line 140 invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String; move-result-object v3 .line 141 invoke-virtual {v3}, Ljava/lang/String;->length()I move-result v4 if-lez v4, :cond_2 const-string v4, "." invoke-virtual {v3, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z move-result v4 if-nez v4, :cond_2 const-string v4, ".tmp" invoke-virtual {v3, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z move-result v4 if-eqz v4, :cond_2 .line 142 const-string v4, "Vpai_HttpDownloadManager" new-instance v5, Ljava/lang/StringBuilder; invoke-direct {v5}, Ljava/lang/StringBuilder;->()V const-string v6, "delete tmp file: " invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v5 invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 invoke-static {v4, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I .line 143 invoke-virtual {v2}, Ljava/io/File;->delete()Z .line 137 :cond_2 add-int/lit8 v0, v0, 0x1 goto :goto_0 .end method