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

258 lines
7.8 KiB

.class Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;
.super Landroid/os/AsyncTask;
.source "YoutubeLiveActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/viatech/camera/YoutubeLiveActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "StartEventTask"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/AsyncTask",
"<",
"Ljava/lang/String;",
"Ljava/lang/Void;",
"Ljava/lang/Void;",
">;"
}
.end annotation
# instance fields
.field private mBroadcastId:Ljava/lang/String;
.field private mStartTime:J
.field private progressDialog:Landroid/app/ProgressDialog;
.field final synthetic this$0:Lcom/viatech/camera/YoutubeLiveActivity;
# direct methods
.method private constructor <init>(Lcom/viatech/camera/YoutubeLiveActivity;)V
.locals 0
.prologue
.line 586
iput-object p1, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/viatech/camera/YoutubeLiveActivity;Lcom/viatech/camera/YoutubeLiveActivity$1;)V
.locals 0
.prologue
.line 586
invoke-direct {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;-><init>(Lcom/viatech/camera/YoutubeLiveActivity;)V
return-void
.end method
.method static synthetic access$1300(Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;)Landroid/app/ProgressDialog;
.locals 1
.prologue
.line 586
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->progressDialog:Landroid/app/ProgressDialog;
return-object v0
.end method
# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.prologue
.line 586
check-cast p1, [Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->doInBackground([Ljava/lang/String;)Ljava/lang/Void;
move-result-object v0
return-object v0
.end method
.method protected varargs doInBackground([Ljava/lang/String;)Ljava/lang/Void;
.locals 4
.prologue
.line 600
new-instance v0, Lcom/google/api/services/youtube/YouTube$Builder;
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
iget-object v1, v1, Lcom/viatech/camera/YoutubeLiveActivity;->transport:Lcom/google/api/client/http/HttpTransport;
iget-object v2, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
iget-object v2, v2, Lcom/viatech/camera/YoutubeLiveActivity;->jsonFactory:Lcom/google/api/client/json/JsonFactory;
iget-object v3, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
.line 601
invoke-static {v3}, Lcom/viatech/camera/YoutubeLiveActivity;->access$500(Lcom/viatech/camera/YoutubeLiveActivity;)Lcom/google/api/client/googleapis/extensions/android/gms/auth/GoogleAccountCredential;
move-result-object v3
invoke-direct {v0, v1, v2, v3}, Lcom/google/api/services/youtube/YouTube$Builder;-><init>(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/json/JsonFactory;Lcom/google/api/client/http/HttpRequestInitializer;)V
const-string v1, "VpaiLive"
invoke-virtual {v0, v1}, Lcom/google/api/services/youtube/YouTube$Builder;->setApplicationName(Ljava/lang/String;)Lcom/google/api/services/youtube/YouTube$Builder;
move-result-object v0
.line 602
invoke-virtual {v0}, Lcom/google/api/services/youtube/YouTube$Builder;->build()Lcom/google/api/services/youtube/YouTube;
move-result-object v0
.line 604
const/4 v1, 0x0
:try_start_0
aget-object v1, p1, v1
iput-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->mBroadcastId:Ljava/lang/String;
.line 605
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->mBroadcastId:Ljava/lang/String;
invoke-static {v0, v1}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->startEvent(Lcom/google/api/services/youtube/YouTube;Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 613
:goto_0
const/4 v0, 0x0
return-object v0
.line 610
:catch_0
move-exception v0
.line 611
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_0
.end method
.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
.locals 0
.prologue
.line 586
check-cast p1, Ljava/lang/Void;
invoke-virtual {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->onPostExecute(Ljava/lang/Void;)V
return-void
.end method
.method protected onPostExecute(Ljava/lang/Void;)V
.locals 6
.prologue
.line 619
const-string v0, "YoutubeLiveActivity"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "startevent cost "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v2
iget-wide v4, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->mStartTime:J
sub-long/2addr v2, v4
invoke-virtual {v1, v2, v3}, 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;->v(Ljava/lang/String;Ljava/lang/String;)I
.line 621
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->mBroadcastId:Ljava/lang/String;
.line 623
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
iget-object v1, v1, Lcom/viatech/camera/YoutubeLiveActivity;->mHandler:Landroid/os/Handler;
new-instance v2, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask$1;
invoke-direct {v2, p0, v0}, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask$1;-><init>(Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 642
return-void
.end method
.method protected onPreExecute()V
.locals 5
.prologue
const/4 v4, 0x1
.line 593
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
const/4 v1, 0x0
iget-object v2, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity;
.line 594
invoke-virtual {v2}, Lcom/viatech/camera/YoutubeLiveActivity;->getResources()Landroid/content/res/Resources;
move-result-object v2
const v3, 0x7f070197
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;
move-result-object v2
.line 593
invoke-static {v0, v1, v2, v4, v4}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;
move-result-object v0
iput-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->progressDialog:Landroid/app/ProgressDialog;
.line 595
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
iput-wide v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$StartEventTask;->mStartTime:J
.line 596
return-void
.end method