239 lines
5.3 KiB
Smali
239 lines
5.3 KiB
Smali
.class public Lf/g/j/q/j0;
|
|
.super Ljava/lang/Object;
|
|
.source "LocalVideoThumbnailProducer.java"
|
|
|
|
# interfaces
|
|
.implements Lf/g/j/q/v0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lf/g/j/q/v0<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lf/g/j/j/c;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/concurrent/Executor;
|
|
|
|
.field public final b:Landroid/content/ContentResolver;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/concurrent/Executor;Landroid/content/ContentResolver;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/g/j/q/j0;->a:Ljava/util/concurrent/Executor;
|
|
|
|
iput-object p2, p0, Lf/g/j/q/j0;->b:Landroid/content/ContentResolver;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static c(Lf/g/j/q/j0;Lcom/facebook/imagepipeline/request/ImageRequest;)Ljava/lang/String;
|
|
.locals 10
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
iget-object v1, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
|
|
|
|
invoke-static {v1}, Lf/g/d/l/b;->e(Landroid/net/Uri;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/imagepipeline/request/ImageRequest;->a()Ljava/io/File;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
invoke-static {v1}, Lf/g/d/l/b;->d(Landroid/net/Uri;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
invoke-virtual {v1}, Landroid/net/Uri;->getAuthority()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "com.android.providers.media.documents"
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-static {v1}, Landroid/provider/DocumentsContract;->getDocumentId(Landroid/net/Uri;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Landroid/provider/MediaStore$Video$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
new-array v3, v2, [Ljava/lang/String;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const-string v5, ":"
|
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
aget-object p1, p1, v2
|
|
|
|
aput-object p1, v3, v4
|
|
|
|
const-string p1, "_id=?"
|
|
|
|
move-object v7, p1
|
|
|
|
move-object v5, v1
|
|
|
|
move-object v8, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v7, v0
|
|
|
|
move-object v8, v7
|
|
|
|
move-object v5, v1
|
|
|
|
:goto_0
|
|
iget-object v4, p0, Lf/g/j/q/j0;->b:Landroid/content/ContentResolver;
|
|
|
|
const-string p0, "_data"
|
|
|
|
filled-new-array {p0}, [Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
:try_start_0
|
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p1, p0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
invoke-interface {p1, p0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
|
|
|
throw p0
|
|
|
|
:cond_2
|
|
if-eqz p1, :cond_3
|
|
|
|
:goto_1
|
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
|
|
|
:cond_3
|
|
:goto_2
|
|
return-object v0
|
|
|
|
:cond_4
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public b(Lf/g/j/q/l;Lf/g/j/q/w0;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf/g/j/q/l<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lf/g/j/j/c;",
|
|
">;>;",
|
|
"Lf/g/j/q/w0;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p2}, Lf/g/j/q/w0;->o()Lf/g/j/q/y0;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {p2}, Lf/g/j/q/w0;->e()Lcom/facebook/imagepipeline/request/ImageRequest;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v0, "local"
|
|
|
|
const-string v1, "video"
|
|
|
|
invoke-interface {p2, v0, v1}, Lf/g/j/q/w0;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
new-instance v9, Lf/g/j/q/j0$a;
|
|
|
|
const-string v5, "VideoThumbnailProducer"
|
|
|
|
move-object v0, v9
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, v6
|
|
|
|
move-object v4, p2
|
|
|
|
move-object v7, p2
|
|
|
|
invoke-direct/range {v0 .. v8}, Lf/g/j/q/j0$a;-><init>(Lf/g/j/q/j0;Lf/g/j/q/l;Lf/g/j/q/y0;Lf/g/j/q/w0;Ljava/lang/String;Lf/g/j/q/y0;Lf/g/j/q/w0;Lcom/facebook/imagepipeline/request/ImageRequest;)V
|
|
|
|
new-instance p1, Lf/g/j/q/j0$b;
|
|
|
|
invoke-direct {p1, p0, v9}, Lf/g/j/q/j0$b;-><init>(Lf/g/j/q/j0;Lf/g/j/q/d1;)V
|
|
|
|
invoke-interface {p2, p1}, Lf/g/j/q/w0;->f(Lf/g/j/q/x0;)V
|
|
|
|
iget-object p1, p0, Lf/g/j/q/j0;->a:Ljava/util/concurrent/Executor;
|
|
|
|
invoke-interface {p1, v9}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|