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

319 lines
9.0 KiB

.class Lcom/viatech/gallery/SendVideoActivity$4;
.super Ljava/lang/Object;
.source "SendVideoActivity.java"
# interfaces
.implements Lcom/google/api/client/googleapis/media/MediaHttpUploaderProgressListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/gallery/SendVideoActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private isUploadSuccess:Z
.field final synthetic this$0:Lcom/viatech/gallery/SendVideoActivity;
# direct methods
.method constructor <init>(Lcom/viatech/gallery/SendVideoActivity;)V
.locals 1
.prologue
.line 193
iput-object p1, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 194
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/viatech/gallery/SendVideoActivity$4;->isUploadSuccess:Z
return-void
.end method
.method static synthetic access$400(Lcom/viatech/gallery/SendVideoActivity$4;)Z
.locals 1
.prologue
.line 193
iget-boolean v0, p0, Lcom/viatech/gallery/SendVideoActivity$4;->isUploadSuccess:Z
return v0
.end method
# virtual methods
.method public progressChanged(Lcom/google/api/client/googleapis/media/MediaHttpUploader;)V
.locals 8
.prologue
const-wide/high16 v6, 0x4059000000000000L # 100.0
.line 198
:try_start_0
invoke-virtual {p1}, Lcom/google/api/client/googleapis/media/MediaHttpUploader;->getProgress()D
move-result-wide v0
.line 199
sget-object v2, Lcom/viatech/gallery/SendVideoActivity$11;->$SwitchMap$com$google$api$client$googleapis$media$MediaHttpUploader$UploadState:[I
invoke-virtual {p1}, Lcom/google/api/client/googleapis/media/MediaHttpUploader;->getUploadState()Lcom/google/api/client/googleapis/media/MediaHttpUploader$UploadState;
move-result-object v3
invoke-virtual {v3}, Lcom/google/api/client/googleapis/media/MediaHttpUploader$UploadState;->ordinal()I
move-result v3
aget v2, v2, v3
packed-switch v2, :pswitch_data_0
.line 292
:cond_0
:goto_0
return-void
.line 201
:pswitch_0
const-string v0, "Vpai_SendVideoActivity"
const-string v1, "INITIATION_STARTED: "
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 202
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
new-instance v1, Lcom/viatech/gallery/SendVideoActivity$4$1;
invoke-direct {v1, p0}, Lcom/viatech/gallery/SendVideoActivity$4$1;-><init>(Lcom/viatech/gallery/SendVideoActivity$4;)V
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendVideoActivity;->runOnUiThread(Ljava/lang/Runnable;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.line 276
:catch_0
move-exception v0
.line 277
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
new-instance v1, Lcom/viatech/gallery/SendVideoActivity$4$5;
invoke-direct {v1, p0}, Lcom/viatech/gallery/SendVideoActivity$4$5;-><init>(Lcom/viatech/gallery/SendVideoActivity$4;)V
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendVideoActivity;->runOnUiThread(Ljava/lang/Runnable;)V
goto :goto_0
.line 215
:pswitch_1
:try_start_1
const-string v0, "Vpai_SendVideoActivity"
const-string v1, "INITIATION_COMPLETE: "
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 216
iget-object v0, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
new-instance v1, Lcom/viatech/gallery/SendVideoActivity$4$2;
invoke-direct {v1, p0}, Lcom/viatech/gallery/SendVideoActivity$4$2;-><init>(Lcom/viatech/gallery/SendVideoActivity$4;)V
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendVideoActivity;->runOnUiThread(Ljava/lang/Runnable;)V
goto :goto_0
.line 229
:pswitch_2
const-string v2, "Vpai_SendVideoActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "MEDIA_IN_PROGRESS: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
mul-double v4, v0, v6
double-to-int v4, v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v3
const-string v4, "%"
invoke-virtual {v3, v4}, 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 {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 230
invoke-virtual {p1}, Lcom/google/api/client/googleapis/media/MediaHttpUploader;->getProgress()D
move-result-wide v2
const-wide/high16 v4, 0x3ff0000000000000L # 1.0
cmpl-double v2, v2, v4
if-nez v2, :cond_1
.line 231
const/4 v2, 0x1
iput-boolean v2, p0, Lcom/viatech/gallery/SendVideoActivity$4;->isUploadSuccess:Z
.line 233
:cond_1
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
iget-object v3, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
const v4, 0x7f0701c6
invoke-virtual {v3, v4}, Lcom/viatech/gallery/SendVideoActivity;->getString(I)Ljava/lang/String;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
mul-double/2addr v0, v6
double-to-int v0, v0
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "%"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 234
iget-object v1, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
new-instance v2, Lcom/viatech/gallery/SendVideoActivity$4$3;
invoke-direct {v2, p0, v0}, Lcom/viatech/gallery/SendVideoActivity$4$3;-><init>(Lcom/viatech/gallery/SendVideoActivity$4;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Lcom/viatech/gallery/SendVideoActivity;->runOnUiThread(Ljava/lang/Runnable;)V
goto/16 :goto_0
.line 248
:pswitch_3
const-string v2, "Vpai_SendVideoActivity"
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "MEDIA_COMPLETE: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {p1}, Lcom/google/api/client/googleapis/media/MediaHttpUploader;->getProgress()D
move-result-wide v4
invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 249
iget-object v2, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
const/4 v3, 0x0
invoke-static {v2, v3}, Lcom/viatech/gallery/SendVideoActivity;->access$202(Lcom/viatech/gallery/SendVideoActivity;Z)Z
.line 250
iget-object v2, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
invoke-static {v2}, Lcom/viatech/gallery/SendVideoActivity;->access$300(Lcom/viatech/gallery/SendVideoActivity;)Z
move-result v2
if-nez v2, :cond_0
.line 251
iget-object v2, p0, Lcom/viatech/gallery/SendVideoActivity$4;->this$0:Lcom/viatech/gallery/SendVideoActivity;
new-instance v3, Lcom/viatech/gallery/SendVideoActivity$4$4;
invoke-direct {v3, p0, v0, v1}, Lcom/viatech/gallery/SendVideoActivity$4$4;-><init>(Lcom/viatech/gallery/SendVideoActivity$4;D)V
invoke-virtual {v2, v3}, Lcom/viatech/gallery/SendVideoActivity;->runOnUiThread(Ljava/lang/Runnable;)V
goto/16 :goto_0
.line 273
:pswitch_4
const-string v0, "Vpai_SendVideoActivity"
const-string v1, "NOT_STARTED: "
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
goto/16 :goto_0
.line 199
nop
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_2
:pswitch_3
:pswitch_4
.end packed-switch
.end method