今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

463 lines
18 KiB

.class Lcom/viatech/gallery/BaseUploadController$UploadTask$1;
.super Ljava/lang/Object;
.source "BaseUploadController.java"
# interfaces
.implements Lcom/via/vpaicloud/storage/Upload$UploadCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/gallery/BaseUploadController$UploadTask;->createCallback()Lcom/via/vpaicloud/storage/Upload$UploadCallback;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V
.locals 0
.prologue
.line 110
iput-object p1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onFailure(Ljava/lang/String;)V
.locals 3
.prologue
.line 134
invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "upload fail\nfilePath: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 135
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I
const/4 v1, 0x3
if-eq v0, v1, :cond_0
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I
if-nez v0, :cond_1
.line 136
:cond_0
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
.line 137
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->serverFileName:Ljava/lang/String;
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String;
.line 138
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController;->mContext:Landroid/content/Context;
invoke-static {v1, v0}, Lcom/viatech/cloud/CloudService;->startDeleteFile(Landroid/content/Context;Lcom/viatech/gallery/FileInfo;)V
.line 144
:goto_0
return-void
.line 140
:cond_1
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
.line 141
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->serverThumbnailFileName:Ljava/lang/String;
iput-object v1, v0, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String;
.line 142
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController;->mContext:Landroid/content/Context;
invoke-static {v1, v0}, Lcom/viatech/cloud/CloudService;->startDeleteFile(Landroid/content/Context;Lcom/viatech/gallery/FileInfo;)V
goto :goto_0
.end method
.method public onProgress(JJ)V
.locals 3
.prologue
.line 148
invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "upload onProgress: totalSize: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ", currentSize: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 149
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-virtual {v0, p1, p2, p3, p4}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->progress(JJ)V
.line 150
return-void
.end method
.method public onSuccess(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 3
.prologue
.line 113
invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "upload success\nfilepath: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "\nossFile: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "\nendpoint: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "\nbucket: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 114
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iput-object p2, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mUploadUrl:Ljava/lang/String;
.line 115
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I
const/4 v1, 0x3
if-eq v0, v1, :cond_2
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mType:I
const/4 v1, 0x2
if-eq v0, v1, :cond_2
.line 116
invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "upload thumb success delete file fileName: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v2, v2, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v2, v2, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
iget-object v2, v2, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 117
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->deleteThumbnail()V
.line 121
:goto_0
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$700(Lcom/viatech/gallery/BaseUploadController$UploadTask;)Lcom/viatech/gallery/BaseUploadController$UploadBean;
move-result-object v0
if-eqz v0, :cond_0
.line 122
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$700(Lcom/viatech/gallery/BaseUploadController$UploadTask;)Lcom/viatech/gallery/BaseUploadController$UploadBean;
move-result-object v0
iput-object p3, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mEndpoint:Ljava/lang/String;
.line 123
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$700(Lcom/viatech/gallery/BaseUploadController$UploadTask;)Lcom/viatech/gallery/BaseUploadController$UploadBean;
move-result-object v0
iput-object p4, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mBucket:Ljava/lang/String;
.line 125
:cond_0
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-virtual {v0}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->progress()V
.line 126
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->access$300(Lcom/viatech/gallery/BaseUploadController$UploadBean;)Lcom/viatech/gallery/BaseUploadController$IUpload;
move-result-object v0
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v1, v1, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-interface {v0, v1}, Lcom/viatech/gallery/BaseUploadController$IUpload;->success(Lcom/viatech/gallery/BaseUploadController$UploadBean;)V
.line 127
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController;->access$800(Lcom/viatech/gallery/BaseUploadController;)Ljava/util/Queue;
move-result-object v0
invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;
.line 128
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController;->access$800(Lcom/viatech/gallery/BaseUploadController;)Ljava/util/Queue;
move-result-object v0
invoke-interface {v0}, Ljava/util/Queue;->peek()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_1
.line 129
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController;->access$800(Lcom/viatech/gallery/BaseUploadController;)Ljava/util/Queue;
move-result-object v0
invoke-interface {v0}, Ljava/util/Queue;->peek()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$000(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V
.line 130
:cond_1
return-void
.line 119
:cond_2
invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "upload thumb success not delete video thumb: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->this$1:Lcom/viatech/gallery/BaseUploadController$UploadTask;
iget-object v2, v2, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
iget-object v2, v2, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo;
iget-object v2, v2, Lcom/viatech/gallery/FileInfo;->thumbnailPath:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
.end method