今奥全景相机
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.

269 lines
7.6 KiB

.class Lcom/viatech/gallery/GalleryContainer$2$1;
.super Ljava/lang/Object;
.source "GalleryContainer.java"
# interfaces
.implements Lcom/via/vpaicloud/storage/a$b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/gallery/GalleryContainer$2;->requestRemoteFileList(Z)Z
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lcom/viatech/gallery/GalleryContainer$2;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/GalleryContainer$2;)V
.locals 0
.prologue
.line 212
iput-object p1, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onFailure(I)V
.locals 2
.prologue
.line 242
iget-object v0, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer;->mOssGallery:Lcom/viatech/gallery/RemoteGalleryView;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Lcom/viatech/gallery/RemoteGalleryView;->onRemoteFileListChange(ILjava/util/List;)V
.line 243
return-void
.end method
.method public onSuccess(Ljava/util/List;)V
.locals 8
.prologue
const/4 v1, 0x0
.line 216
iget-object v0, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v0}, Lcom/viatech/gallery/GalleryContainer;->access$000(Lcom/viatech/gallery/GalleryContainer;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 217
const-string v2, "Vpai_GalleryContainer"
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "got cloud gallery size: "
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
if-nez p1, :cond_1
move v0, v1
:goto_0
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 218
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;
.line 220
iget-object v3, v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;->filePath:Ljava/lang/String;
const-string v4, "/"
invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v3
.line 221
new-instance v4, Lcom/viatech/gallery/FileInfo;
array-length v5, v3
add-int/lit8 v5, v5, -0x1
aget-object v3, v3, v5
invoke-direct {v4, v3, v1}, Lcom/viatech/gallery/FileInfo;-><init>(Ljava/lang/String;Z)V
.line 222
iget-object v3, v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;->url:Ljava/lang/String;
iput-object v3, v4, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String;
.line 223
iget-object v3, v4, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String;
invoke-static {v3}, Lcom/viatech/gallery/FileScanner;->name2Date(Ljava/lang/String;)J
move-result-wide v6
iput-wide v6, v4, Lcom/viatech/gallery/FileInfo;->modifytime:J
.line 224
iget-wide v6, v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;->size:J
invoke-static {v6, v7}, Lcom/viatech/gallery/GalleryUtil;->fileSizeMsg(J)Ljava/lang/String;
move-result-object v3
iput-object v3, v4, Lcom/viatech/gallery/FileInfo;->size:Ljava/lang/String;
.line 225
iget-wide v6, v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;->size:J
iput-wide v6, v4, Lcom/viatech/gallery/FileInfo;->lsize:J
.line 226
iget-object v3, v4, Lcom/viatech/gallery/FileInfo;->name:Ljava/lang/String;
invoke-static {v3}, Lcom/viatech/common/util/FileMediaType;->getMediaType(Ljava/lang/String;)I
move-result v3
iput v3, v4, Lcom/viatech/gallery/FileInfo;->fileType:I
.line 228
iget-object v0, v0, Lcom/via/vpaicloud/community/request/CloudGalleryReq;->thumbUrl:Ljava/lang/String;
iput-object v0, v4, Lcom/viatech/gallery/FileInfo;->thumbnailUrl:Ljava/lang/String;
.line 230
invoke-virtual {v4}, Lcom/viatech/gallery/FileInfo;->getFullPath()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/viatech/util/Util;->isFileExist(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
.line 231
const/4 v0, 0x1
iput-boolean v0, v4, Lcom/viatech/gallery/FileInfo;->downloaded:Z
.line 234
:cond_0
const-string v0, "Vpai_GalleryContainer"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v5, "cloud gallery: "
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v4}, Lcom/viatech/gallery/FileInfo;->toString()Ljava/lang/String;
move-result-object v5
invoke-virtual {v3, v5}, 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 {v0, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 235
iget-object v0, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v0}, Lcom/viatech/gallery/GalleryContainer;->access$000(Lcom/viatech/gallery/GalleryContainer;)Ljava/util/List;
move-result-object v0
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.line 217
:cond_1
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
goto/16 :goto_0
.line 237
:cond_2
iget-object v0, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
iget-object v0, v0, Lcom/viatech/gallery/GalleryContainer;->mOssGallery:Lcom/viatech/gallery/RemoteGalleryView;
iget-object v2, p0, Lcom/viatech/gallery/GalleryContainer$2$1;->this$1:Lcom/viatech/gallery/GalleryContainer$2;
iget-object v2, v2, Lcom/viatech/gallery/GalleryContainer$2;->this$0:Lcom/viatech/gallery/GalleryContainer;
invoke-static {v2}, Lcom/viatech/gallery/GalleryContainer;->access$000(Lcom/viatech/gallery/GalleryContainer;)Ljava/util/List;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/viatech/gallery/RemoteGalleryView;->onRemoteFileListChange(ILjava/util/List;)V
.line 238
return-void
.end method