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.
288 lines
8.6 KiB
288 lines
8.6 KiB
.class Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask; |
|
.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 = "EndEventTask" |
|
.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 646 |
|
iput-object p1, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->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 646 |
|
invoke-direct {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;-><init>(Lcom/viatech/camera/YoutubeLiveActivity;)V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 646 |
|
check-cast p1, [Ljava/lang/String; |
|
|
|
invoke-virtual {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->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 660 |
|
new-instance v0, Lcom/google/api/services/youtube/YouTube$Builder; |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->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$EndEventTask;->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$EndEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity; |
|
|
|
.line 661 |
|
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 662 |
|
invoke-virtual {v0}, Lcom/google/api/services/youtube/YouTube$Builder;->build()Lcom/google/api/services/youtube/YouTube; |
|
|
|
move-result-object v0 |
|
|
|
.line 664 |
|
:try_start_0 |
|
array-length v1, p1 |
|
|
|
const/4 v2, 0x1 |
|
|
|
if-lt v1, v2, :cond_0 |
|
|
|
.line 665 |
|
const/4 v1, 0x0 |
|
|
|
aget-object v1, p1, v1 |
|
|
|
iput-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->mBroadcastId:Ljava/lang/String; |
|
|
|
.line 666 |
|
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->mBroadcastId:Ljava/lang/String; |
|
|
|
invoke-static {v0, v1}, Lcom/via/vpailib/vpaiinterface/YouTubeApi;->endEvent(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 675 |
|
:cond_0 |
|
:goto_0 |
|
const/4 v0, 0x0 |
|
|
|
return-object v0 |
|
|
|
.line 672 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 673 |
|
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 646 |
|
check-cast p1, Ljava/lang/Void; |
|
|
|
invoke-virtual {p0, p1}, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->onPostExecute(Ljava/lang/Void;)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method protected onPostExecute(Ljava/lang/Void;)V |
|
.locals 6 |
|
|
|
.prologue |
|
.line 680 |
|
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->progressDialog:Landroid/app/ProgressDialog; |
|
|
|
invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V |
|
|
|
.line 682 |
|
const-string v0, "YoutubeLiveActivity" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "endevent 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$EndEventTask;->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 683 |
|
const-string v0, "YoutubeLiveActivity" |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "remove " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->mBroadcastId: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;->v(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 684 |
|
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/YoutubeLiveActivity;->access$700(Lcom/viatech/camera/YoutubeLiveActivity;)Ljava/util/ArrayList; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->mBroadcastId:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z |
|
|
|
.line 685 |
|
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/camera/YoutubeLiveActivity;->access$000(Lcom/viatech/camera/YoutubeLiveActivity;)V |
|
|
|
.line 686 |
|
return-void |
|
.end method |
|
|
|
.method protected onPreExecute()V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 653 |
|
iget-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity; |
|
|
|
const/4 v1, 0x0 |
|
|
|
iget-object v2, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->this$0:Lcom/viatech/camera/YoutubeLiveActivity; |
|
|
|
.line 654 |
|
invoke-virtual {v2}, Lcom/viatech/camera/YoutubeLiveActivity;->getResources()Landroid/content/res/Resources; |
|
|
|
move-result-object v2 |
|
|
|
const v3, 0x7f070092 |
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence; |
|
|
|
move-result-object v2 |
|
|
|
const/4 v3, 0x1 |
|
|
|
.line 653 |
|
invoke-static {v0, v1, v2, v3}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Landroid/app/ProgressDialog; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->progressDialog:Landroid/app/ProgressDialog; |
|
|
|
.line 655 |
|
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J |
|
|
|
move-result-wide v0 |
|
|
|
iput-wide v0, p0, Lcom/viatech/camera/YoutubeLiveActivity$EndEventTask;->mStartTime:J |
|
|
|
.line 656 |
|
return-void |
|
.end method
|
|
|