143 lines
3.8 KiB
Smali
143 lines
3.8 KiB
Smali
.class public Landroidx/activity/result/contract/ActivityResultContracts$TakeVideo;
|
|
.super Landroidx/activity/result/contract/ActivityResultContract;
|
|
.source "ActivityResultContracts.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/activity/result/contract/ActivityResultContracts;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "TakeVideo"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/activity/result/contract/ActivityResultContract<",
|
|
"Landroid/net/Uri;",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 359
|
|
invoke-direct {p0}, Landroidx/activity/result/contract/ActivityResultContract;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createIntent(Landroid/content/Context;Landroid/net/Uri;)Landroid/content/Intent;
|
|
.locals 1
|
|
|
|
.line 365
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string v0, "android.media.action.VIDEO_CAPTURE"
|
|
|
|
invoke-direct {p1, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "output"
|
|
|
|
.line 366
|
|
invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic createIntent(Landroid/content/Context;Ljava/lang/Object;)Landroid/content/Intent;
|
|
.locals 0
|
|
|
|
.line 359
|
|
check-cast p2, Landroid/net/Uri;
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/activity/result/contract/ActivityResultContracts$TakeVideo;->createIntent(Landroid/content/Context;Landroid/net/Uri;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getSynchronousResult(Landroid/content/Context;Landroid/net/Uri;)Landroidx/activity/result/contract/ActivityResultContract$SynchronousResult;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Landroid/net/Uri;",
|
|
")",
|
|
"Landroidx/activity/result/contract/ActivityResultContract$SynchronousResult<",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic getSynchronousResult(Landroid/content/Context;Ljava/lang/Object;)Landroidx/activity/result/contract/ActivityResultContract$SynchronousResult;
|
|
.locals 0
|
|
|
|
.line 359
|
|
check-cast p2, Landroid/net/Uri;
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/activity/result/contract/ActivityResultContracts$TakeVideo;->getSynchronousResult(Landroid/content/Context;Landroid/net/Uri;)Landroidx/activity/result/contract/ActivityResultContract$SynchronousResult;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final parseResult(ILandroid/content/Intent;)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "data"
|
|
|
|
.line 380
|
|
invoke-virtual {p2, p1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/graphics/Bitmap;
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic parseResult(ILandroid/content/Intent;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 359
|
|
invoke-virtual {p0, p1, p2}, Landroidx/activity/result/contract/ActivityResultContracts$TakeVideo;->parseResult(ILandroid/content/Intent;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|