449 lines
9.5 KiB
Smali
449 lines
9.5 KiB
Smali
.class public abstract Li0/e;
|
|
.super Ljava/lang/Object;
|
|
.source "OutputFileOptions.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/camera/view/video/ExperimentalVideo;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/auto/value/AutoValue;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Li0/e$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Li0/d;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Li0/d;->a()Li0/d$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Li0/d$a;->a()Li0/d;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Li0/e;->a:Li0/d;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/content/ContentValues;)Li0/e$a;
|
|
.locals 2
|
|
.param p0 # Landroid/content/ContentResolver;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/net/Uri;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/content/ContentValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"contentResolver",
|
|
"saveCollection",
|
|
"contentValues"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Li0/b$b;
|
|
|
|
invoke-direct {v0}, Li0/b$b;-><init>()V
|
|
|
|
sget-object v1, Li0/e;->a:Li0/d;
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Li0/b$b;->f(Li0/d;)Li0/e$a;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Li0/e$a;->b(Landroid/content/ContentResolver;)Li0/e$a;
|
|
|
|
move-result-object p0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Li0/e$a;->g(Landroid/net/Uri;)Li0/e$a;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2}, Li0/e$a;->c(Landroid/content/ContentValues;)Li0/e$a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b(Landroid/os/ParcelFileDescriptor;)Li0/e$a;
|
|
.locals 2
|
|
.param p0 # Landroid/os/ParcelFileDescriptor;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"fileDescriptor"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "Using a ParcelFileDescriptor to record a video is only supported for Android 8.0 or above."
|
|
|
|
invoke-static {v0, v1}, Lr1/o;->b(ZLjava/lang/Object;)V
|
|
|
|
.line 2
|
|
new-instance v0, Li0/b$b;
|
|
|
|
invoke-direct {v0}, Li0/b$b;-><init>()V
|
|
|
|
sget-object v1, Li0/e;->a:Li0/d;
|
|
|
|
invoke-virtual {v0, v1}, Li0/b$b;->f(Li0/d;)Li0/e$a;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, p0}, Li0/e$a;->e(Landroid/os/ParcelFileDescriptor;)Li0/e$a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static c(Ljava/io/File;)Li0/e$a;
|
|
.locals 2
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"file"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Li0/b$b;
|
|
|
|
invoke-direct {v0}, Li0/b$b;-><init>()V
|
|
|
|
sget-object v1, Li0/e;->a:Li0/d;
|
|
|
|
invoke-virtual {v0, v1}, Li0/b$b;->f(Li0/d;)Li0/e$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Li0/e$a;->d(Ljava/io/File;)Li0/e$a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public abstract d()Landroid/content/ContentResolver;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract e()Landroid/content/ContentValues;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract f()Ljava/io/File;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract g()Landroid/os/ParcelFileDescriptor;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract h()Li0/d;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public abstract i()Landroid/net/Uri;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public final j()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Li0/e;->f()Ljava/io/File;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final k()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Li0/e;->g()Landroid/os/ParcelFileDescriptor;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final l()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Li0/e;->i()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Li0/e;->d()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Li0/e;->e()Landroid/content/ContentValues;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public m()Landroidx/camera/core/VideoCapture$f;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Li0/e;->j()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/camera/core/VideoCapture$f$a;
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Li0/e;->f()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/io/File;
|
|
|
|
invoke-direct {v0, v1}, Landroidx/camera/core/VideoCapture$f$a;-><init>(Ljava/io/File;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p0}, Li0/e;->k()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
new-instance v0, Landroidx/camera/core/VideoCapture$f$a;
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Li0/e;->g()Landroid/os/ParcelFileDescriptor;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/os/ParcelFileDescriptor;
|
|
|
|
invoke-virtual {v1}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/camera/core/VideoCapture$f$a;-><init>(Ljava/io/FileDescriptor;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-virtual {p0}, Li0/e;->l()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lr1/o;->m(Z)V
|
|
|
|
.line 8
|
|
new-instance v0, Landroidx/camera/core/VideoCapture$f$a;
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Li0/e;->d()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/content/ContentResolver;
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Li0/e;->i()Landroid/net/Uri;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/net/Uri;
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Li0/e;->e()Landroid/content/ContentValues;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/content/ContentValues;
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/camera/core/VideoCapture$f$a;-><init>(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/content/ContentValues;)V
|
|
|
|
.line 12
|
|
:goto_0
|
|
new-instance v1, Landroidx/camera/core/VideoCapture$d;
|
|
|
|
invoke-direct {v1}, Landroidx/camera/core/VideoCapture$d;-><init>()V
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Li0/e;->h()Li0/d;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Li0/d;->b()Landroid/location/Location;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, v1, Landroidx/camera/core/VideoCapture$d;->a:Landroid/location/Location;
|
|
|
|
.line 14
|
|
invoke-virtual {v0, v1}, Landroidx/camera/core/VideoCapture$f$a;->b(Landroidx/camera/core/VideoCapture$d;)Landroidx/camera/core/VideoCapture$f$a;
|
|
|
|
.line 15
|
|
invoke-virtual {v0}, Landroidx/camera/core/VideoCapture$f$a;->a()Landroidx/camera/core/VideoCapture$f;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|