Changes of com.discord v1325

This commit is contained in:
root 2020-11-12 02:11:44 +00:00
parent d9d9f382c9
commit 3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions

View file

@ -0,0 +1,12 @@
.class public final Lcom/facebook/imagepipeline/R;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,12 @@
.class public final Lcom/facebook/imagepipeline/animated/R;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,12 @@
.class public final Lcom/facebook/imagepipeline/backends/okhttp3/R;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,49 @@
.class public abstract Lcom/facebook/imagepipeline/bitmaps/PlatformBitmapFactory;
.super Ljava/lang/Object;
.source "PlatformBitmapFactory.java"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(IILandroid/graphics/Bitmap$Config;)Lcom/facebook/common/references/CloseableReference;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(II",
"Landroid/graphics/Bitmap$Config;",
"Ljava/lang/Object;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
invoke-virtual {p0, p1, p2, p3}, Lcom/facebook/imagepipeline/bitmaps/PlatformBitmapFactory;->b(IILandroid/graphics/Bitmap$Config;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
return-object p1
.end method
.method public abstract b(IILandroid/graphics/Bitmap$Config;)Lcom/facebook/common/references/CloseableReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"(II",
"Landroid/graphics/Bitmap$Config;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.end method

View file

@ -0,0 +1,141 @@
.class public Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;
.super Ljava/lang/Object;
.source "DefaultBitmapMemoryCacheParamsSupplier.java"
# interfaces
.implements Lcom/facebook/common/internal/Supplier;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/facebook/common/internal/Supplier<",
"Lcom/facebook/imagepipeline/cache/MemoryCacheParams;",
">;"
}
.end annotation
# static fields
.field public static final MAX_CACHE_ENTRIES:I = 0x100
.field public static final MAX_CACHE_ENTRY_SIZE:I = 0x7fffffff
.field public static final MAX_EVICTION_QUEUE_ENTRIES:I = 0x7fffffff
.field public static final MAX_EVICTION_QUEUE_SIZE:I = 0x7fffffff
.field public static final PARAMS_CHECK_INTERVAL_MS:J
# instance fields
.field public final mActivityManager:Landroid/app/ActivityManager;
# direct methods
.method public static constructor <clinit>()V
.locals 3
sget-object v0, Ljava/util/concurrent/TimeUnit;->MINUTES:Ljava/util/concurrent/TimeUnit;
const-wide/16 v1, 0x5
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide v0
sput-wide v0, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->PARAMS_CHECK_INTERVAL_MS:J
return-void
.end method
.method public constructor <init>(Landroid/app/ActivityManager;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->mActivityManager:Landroid/app/ActivityManager;
return-void
.end method
.method private getMaxCacheSize()I
.locals 2
iget-object v0, p0, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->mActivityManager:Landroid/app/ActivityManager;
invoke-virtual {v0}, Landroid/app/ActivityManager;->getMemoryClass()I
move-result v0
const/high16 v1, 0x100000
mul-int v0, v0, v1
const v1, 0x7fffffff
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v0
const/high16 v1, 0x2000000
if-ge v0, v1, :cond_0
const/high16 v0, 0x400000
return v0
:cond_0
const/high16 v1, 0x4000000
if-ge v0, v1, :cond_1
const/high16 v0, 0x600000
return v0
:cond_1
div-int/lit8 v0, v0, 0x4
return v0
.end method
# virtual methods
.method public get()Lcom/facebook/imagepipeline/cache/MemoryCacheParams;
.locals 9
new-instance v8, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;
invoke-direct {p0}, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->getMaxCacheSize()I
move-result v1
sget-wide v6, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->PARAMS_CHECK_INTERVAL_MS:J
const/16 v2, 0x100
const v3, 0x7fffffff
const v4, 0x7fffffff
const v5, 0x7fffffff
move-object v0, v8
invoke-direct/range {v0 .. v7}, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;-><init>(IIIIIJ)V
return-object v8
.end method
.method public bridge synthetic get()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;->get()Lcom/facebook/imagepipeline/cache/MemoryCacheParams;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,39 @@
.class public Lcom/facebook/imagepipeline/cache/MemoryCacheParams;
.super Ljava/lang/Object;
.source "MemoryCacheParams.java"
# instance fields
.field public final a:I
.field public final b:I
.field public final c:I
.field public final d:I
.field public final e:I
.field public final f:J
# direct methods
.method public constructor <init>(IIIIIJ)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->a:I
iput p2, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->b:I
iput p3, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->c:I
iput p4, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->d:I
iput p5, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->e:I
iput-wide p6, p0, Lcom/facebook/imagepipeline/cache/MemoryCacheParams;->f:J
return-void
.end method

View file

@ -0,0 +1,21 @@
.class public Lcom/facebook/imagepipeline/common/TooManyBitmapsException;
.super Ljava/lang/RuntimeException;
.source "TooManyBitmapsException.java"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/RuntimeException;-><init>()V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;)V
.locals 0
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View file

@ -0,0 +1,19 @@
.class public Lcom/facebook/imagepipeline/decoder/DecodeException;
.super Ljava/lang/RuntimeException;
.source "DecodeException.java"
# instance fields
.field public final mEncodedImage:Lf/g/j/j/e;
# direct methods
.method public constructor <init>(Ljava/lang/String;Lf/g/j/j/e;)V
.locals 0
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
iput-object p2, p0, Lcom/facebook/imagepipeline/decoder/DecodeException;->mEncodedImage:Lf/g/j/j/e;
return-void
.end method

View file

@ -0,0 +1,14 @@
.class public interface abstract Lcom/facebook/imagepipeline/image/ImageInfo;
.super Ljava/lang/Object;
.source "ImageInfo.java"
# interfaces
.implements Lf/g/j/j/g;
# virtual methods
.method public abstract getHeight()I
.end method
.method public abstract getWidth()I
.end method

View file

@ -0,0 +1,46 @@
.class public Lcom/facebook/imagepipeline/memory/AshmemMemoryChunkPool;
.super Lf/g/j/m/s;
.source "AshmemMemoryChunkPool.java"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x1b
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public constructor <init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0, p1, p2, p3}, Lf/g/j/m/s;-><init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
return-void
.end method
# virtual methods
.method public a(I)Ljava/lang/Object;
.locals 1
new-instance v0, Lf/g/j/m/a;
invoke-direct {v0, p1}, Lf/g/j/m/a;-><init>(I)V
return-object v0
.end method
.method public o(I)Lf/g/j/m/r;
.locals 1
new-instance v0, Lf/g/j/m/a;
invoke-direct {v0, p1}, Lf/g/j/m/a;-><init>(I)V
return-object v0
.end method

View file

@ -0,0 +1,40 @@
.class public Lcom/facebook/imagepipeline/memory/BasePool$InvalidSizeException;
.super Ljava/lang/RuntimeException;
.source "BasePool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/BasePool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "InvalidSizeException"
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
const-string v0, "Invalid size: "
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View file

@ -0,0 +1,14 @@
.class public Lcom/facebook/imagepipeline/memory/BasePool$InvalidValueException;
.super Ljava/lang/RuntimeException;
.source "BasePool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/BasePool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "InvalidValueException"
.end annotation

View file

@ -0,0 +1,46 @@
.class public Lcom/facebook/imagepipeline/memory/BasePool$PoolSizeViolationException;
.super Ljava/lang/RuntimeException;
.source "BasePool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/BasePool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "PoolSizeViolationException"
.end annotation
# direct methods
.method public constructor <init>(IIII)V
.locals 3
const-string v0, "Pool hard cap violation? Hard cap = "
const-string v1, " Used size = "
const-string v2, " Free size = "
invoke-static {v0, p1, v1, p2, v2}, Lf/e/c/a/a;->G(Ljava/lang/String;ILjava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p2, " Request size = "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View file

@ -0,0 +1,14 @@
.class public Lcom/facebook/imagepipeline/memory/BasePool$SizeTooLargeException;
.super Lcom/facebook/imagepipeline/memory/BasePool$InvalidSizeException;
.source "BasePool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/BasePool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SizeTooLargeException"
.end annotation

View file

@ -0,0 +1,114 @@
.class public Lcom/facebook/imagepipeline/memory/BasePool$a;
.super Ljava/lang/Object;
.source "BasePool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/BasePool;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "a"
.end annotation
# instance fields
.field public a:I
.field public b:I
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(I)V
.locals 3
iget v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->b:I
const/4 v1, 0x1
if-lt v0, p1, :cond_0
iget v2, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->a:I
if-lez v2, :cond_0
sub-int/2addr v2, v1
iput v2, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->a:I
sub-int/2addr v0, p1
iput v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->b:I
goto :goto_0
:cond_0
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v0, v2
iget p1, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->b:I
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v0, v1
const/4 p1, 0x2
iget v1, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->a:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
aput-object v1, v0, p1
const-string p1, "com.facebook.imagepipeline.memory.BasePool.Counter"
const-string v1, "Unexpected decrement of %d. Current numBytes = %d, count = %d"
invoke-static {p1, v1, v0}, Lf/g/d/e/a;->r(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public b(I)V
.locals 1
iget v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->a:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->a:I
iget v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->b:I
add-int/2addr v0, p1
iput v0, p0, Lcom/facebook/imagepipeline/memory/BasePool$a;->b:I
return-void
.end method

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,42 @@
.class public Lcom/facebook/imagepipeline/memory/BufferMemoryChunkPool;
.super Lf/g/j/m/s;
.source "BufferMemoryChunkPool.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public constructor <init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0, p1, p2, p3}, Lf/g/j/m/s;-><init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
return-void
.end method
# virtual methods
.method public a(I)Ljava/lang/Object;
.locals 1
new-instance v0, Lf/g/j/m/i;
invoke-direct {v0, p1}, Lf/g/j/m/i;-><init>(I)V
return-object v0
.end method
.method public o(I)Lf/g/j/m/r;
.locals 1
new-instance v0, Lf/g/j/m/i;
invoke-direct {v0, p1}, Lf/g/j/m/i;-><init>(I)V
return-object v0
.end method

View file

@ -0,0 +1,26 @@
.class public Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream$InvalidStreamException;
.super Ljava/lang/RuntimeException;
.source "MemoryPooledByteBufferOutputStream.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "InvalidStreamException"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 1
const-string v0, "OutputStream no longer valid"
invoke-direct {p0, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View file

@ -0,0 +1,288 @@
.class public Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;
.super Lf/g/d/g/i;
.source "MemoryPooledByteBufferOutputStream.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream$InvalidStreamException;
}
.end annotation
# instance fields
.field public final d:Lf/g/j/m/s;
.field public e:Lcom/facebook/common/references/CloseableReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/common/references/CloseableReference<",
"Lf/g/j/m/r;",
">;"
}
.end annotation
.end field
.field public f:I
# direct methods
.method public constructor <init>(Lf/g/j/m/s;I)V
.locals 2
invoke-direct {p0}, Lf/g/d/g/i;-><init>()V
const/4 v0, 0x0
if-lez p2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
invoke-static {v1}, Lt/a/b/b/a;->g(Z)V
if-eqz p1, :cond_1
iput-object p1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->d:Lf/g/j/m/s;
iput v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
invoke-virtual {p1, p2}, Lcom/facebook/imagepipeline/memory/BasePool;->get(I)Ljava/lang/Object;
move-result-object p1
iget-object p2, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->d:Lf/g/j/m/s;
invoke-static {p1, p2}, Lcom/facebook/common/references/CloseableReference;->v(Ljava/lang/Object;Lf/g/d/h/g;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
iput-object p1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
return-void
:cond_1
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public final a()V
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->p(Lcom/facebook/common/references/CloseableReference;)Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
new-instance v0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream$InvalidStreamException;
invoke-direct {v0}, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream$InvalidStreamException;-><init>()V
throw v0
.end method
.method public b()Lf/g/j/m/t;
.locals 3
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->a()V
new-instance v0, Lf/g/j/m/t;
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
iget v2, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
invoke-direct {v0, v1, v2}, Lf/g/j/m/t;-><init>(Lcom/facebook/common/references/CloseableReference;I)V
return-object v0
.end method
.method public close()V
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->f(Lcom/facebook/common/references/CloseableReference;)V
const/4 v0, 0x0
iput-object v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
const/4 v0, -0x1
iput v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
invoke-super {p0}, Lf/g/d/g/i;->close()V
return-void
.end method
.method public write(I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x1
new-array v0, v0, [B
int-to-byte p1, p1
const/4 v1, 0x0
aput-byte p1, v0, v1
invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V
return-void
.end method
.method public write([BII)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p2, :cond_1
if-ltz p3, :cond_1
add-int v0, p2, p3
array-length v1, p1
if-gt v0, v1, :cond_1
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->a()V
iget v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
add-int/2addr v0, p3
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->a()V
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/g/j/m/r;
invoke-interface {v1}, Lf/g/j/m/r;->getSize()I
move-result v1
if-gt v0, v1, :cond_0
goto :goto_0
:cond_0
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->d:Lf/g/j/m/s;
invoke-virtual {v1, v0}, Lcom/facebook/imagepipeline/memory/BasePool;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lf/g/j/m/r;
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/g/j/m/r;
iget v2, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
const/4 v3, 0x0
invoke-interface {v1, v3, v0, v3, v2}, Lf/g/j/m/r;->a(ILf/g/j/m/r;II)V
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
iget-object v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->d:Lf/g/j/m/s;
invoke-static {v0, v1}, Lcom/facebook/common/references/CloseableReference;->v(Ljava/lang/Object;Lf/g/d/h/g;)Lcom/facebook/common/references/CloseableReference;
move-result-object v0
iput-object v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
:goto_0
iget-object v0, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->e:Lcom/facebook/common/references/CloseableReference;
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lf/g/j/m/r;
iget v1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
invoke-interface {v0, v1, p1, p2, p3}, Lf/g/j/m/r;->b(I[BII)I
iget p1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
add-int/2addr p1, p3
iput p1, p0, Lcom/facebook/imagepipeline/memory/MemoryPooledByteBufferOutputStream;->f:I
return-void
:cond_1
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
const-string v1, "length="
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
array-length p1, p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, "; regionStart="
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, "; regionLength="
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
.end method

View file

@ -0,0 +1,692 @@
.class public Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;
.super Ljava/lang/Object;
.source "NativeMemoryChunk.java"
# interfaces
.implements Lf/g/j/m/r;
.implements Ljava/io/Closeable;
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# instance fields
.field public final d:J
.field public final e:I
.field public f:Z
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "imagepipeline"
invoke-static {v0}, Lf/g/m/o/a;->c(Ljava/lang/String;)Z
return-void
.end method
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->f:Z
return-void
.end method
.method public constructor <init>(I)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
if-lez p1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
invoke-static {v1}, Lt/a/b/b/a;->g(Z)V
iput p1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeAllocate(I)J
move-result-wide v1
iput-wide v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
iput-boolean v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->f:Z
return-void
.end method
.method public static native nativeAllocate(I)J
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeCopyFromByteArray(J[BII)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeCopyToByteArray(J[BII)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeFree(J)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeMemcpy(JJI)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeReadByte(J)B
.annotation build Lf/g/d/d/c;
.end annotation
.end method
# virtual methods
.method public a(ILf/g/j/m/r;II)V
.locals 5
if-eqz p2, :cond_2
invoke-interface {p2}, Lf/g/j/m/r;->getUniqueId()J
move-result-wide v0
iget-wide v2, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-string v0, "NativeMemoryChunk"
const-string v1, "Copying from NativeMemoryChunk "
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, " to NativeMemoryChunk "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p2}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, " which share the same address "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v2, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
invoke-static {v2, v3}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
const/4 v0, 0x0
invoke-static {v0}, Lt/a/b/b/a;->g(Z)V
:cond_0
invoke-interface {p2}, Lf/g/j/m/r;->getUniqueId()J
move-result-wide v0
iget-wide v2, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
cmp-long v4, v0, v2
if-gez v4, :cond_1
monitor-enter p2
:try_start_0
monitor-enter p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->c(ILf/g/j/m/r;II)V
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
monitor-exit p2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
return-void
:catchall_0
move-exception p1
:try_start_3
monitor-exit p0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
throw p1
:catchall_1
move-exception p1
monitor-exit p2
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
throw p1
:cond_1
monitor-enter p0
:try_start_5
monitor-enter p2
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_3
:try_start_6
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->c(ILf/g/j/m/r;II)V
monitor-exit p2
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_2
:try_start_7
monitor-exit p0
:try_end_7
.catchall {:try_start_7 .. :try_end_7} :catchall_3
return-void
:catchall_2
move-exception p1
:try_start_8
monitor-exit p2
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:try_start_9
throw p1
:catchall_3
move-exception p1
monitor-exit p0
:try_end_9
.catchall {:try_start_9 .. :try_end_9} :catchall_3
throw p1
:cond_2
const/4 p1, 0x0
throw p1
.end method
.method public declared-synchronized b(I[BII)I
.locals 4
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->isClosed()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-static {v0}, Lt/a/b/b/a;->k(Z)V
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, p4, v0}, Lf/g/j/k/a;->b(III)I
move-result p4
array-length v0, p2
iget v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, v0, p3, p4, v1}, Lf/g/j/k/a;->j(IIIII)V
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
int-to-long v2, p1
add-long/2addr v0, v2
invoke-static {v0, v1, p2, p3, p4}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeCopyFromByteArray(J[BII)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return p4
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final c(ILf/g/j/m/r;II)V
.locals 4
instance-of v0, p2, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;
if-eqz v0, :cond_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->isClosed()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Lt/a/b/b/a;->k(Z)V
invoke-interface {p2}, Lf/g/j/m/r;->isClosed()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Lt/a/b/b/a;->k(Z)V
invoke-interface {p2}, Lf/g/j/m/r;->getSize()I
move-result v0
iget v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, v0, p3, p4, v1}, Lf/g/j/k/a;->j(IIIII)V
invoke-interface {p2}, Lf/g/j/m/r;->r()J
move-result-wide v0
int-to-long p2, p3
add-long/2addr v0, p2
iget-wide p2, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
int-to-long v2, p1
add-long/2addr p2, v2
invoke-static {v0, v1, p2, p3, p4}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeMemcpy(JJI)V
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "Cannot copy two incompatible MemoryChunks"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public declared-synchronized close()V
.locals 2
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->f:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->f:Z
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
invoke-static {v0, v1}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeFree(J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public finalize()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->isClosed()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
const-string v0, "finalize: Chunk "
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " still active. "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "NativeMemoryChunk"
invoke-static {v1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->close()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
:catchall_0
move-exception v0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
throw v0
.end method
.method public getByteBuffer()Ljava/nio/ByteBuffer;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public getSize()I
.locals 1
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
return v0
.end method
.method public getUniqueId()J
.locals 2
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
return-wide v0
.end method
.method public declared-synchronized isClosed()Z
.locals 1
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->f:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized k(I)B
.locals 4
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->isClosed()Z
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-static {v0}, Lt/a/b/b/a;->k(Z)V
if-ltz p1, :cond_1
const/4 v0, 0x1
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
invoke-static {v0}, Lt/a/b/b/a;->g(Z)V
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
if-ge p1, v0, :cond_2
goto :goto_2
:cond_2
const/4 v1, 0x0
:goto_2
invoke-static {v1}, Lt/a/b/b/a;->g(Z)V
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
int-to-long v2, p1
add-long/2addr v0, v2
invoke-static {v0, v1}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeReadByte(J)B
move-result p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized m(I[BII)I
.locals 4
monitor-enter p0
if-eqz p2, :cond_1
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->isClosed()Z
move-result v0
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-static {v0}, Lt/a/b/b/a;->k(Z)V
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, p4, v0}, Lf/g/j/k/a;->b(III)I
move-result p4
array-length v0, p2
iget v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, v0, p3, p4, v1}, Lf/g/j/k/a;->j(IIIII)V
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
int-to-long v2, p1
add-long/2addr v0, v2
invoke-static {v0, v1, p2, p3, p4}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->nativeCopyToByteArray(J[BII)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return p4
:catchall_0
move-exception p1
goto :goto_1
:cond_1
const/4 p1, 0x0
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_1
monitor-exit p0
throw p1
.end method
.method public r()J
.locals 2
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
return-wide v0
.end method

View file

@ -0,0 +1,42 @@
.class public Lcom/facebook/imagepipeline/memory/NativeMemoryChunkPool;
.super Lf/g/j/m/s;
.source "NativeMemoryChunkPool.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public constructor <init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0, p1, p2, p3}, Lf/g/j/m/s;-><init>(Lf/g/d/g/c;Lf/g/j/m/z;Lf/g/j/m/a0;)V
return-void
.end method
# virtual methods
.method public a(I)Ljava/lang/Object;
.locals 1
new-instance v0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;
invoke-direct {v0, p1}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;-><init>(I)V
return-object v0
.end method
.method public o(I)Lf/g/j/m/r;
.locals 1
new-instance v0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;
invoke-direct {v0, p1}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;-><init>(I)V
return-object v0
.end method

View file

@ -0,0 +1,121 @@
.class public Lcom/facebook/imagepipeline/nativecode/Bitmaps;
.super Ljava/lang/Object;
.source "Bitmaps.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 0
invoke-static {}, Lf/g/j/n/a;->a()V
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static copyBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Bitmap;)V
.locals 4
.annotation build Lf/g/d/d/c;
.end annotation
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getConfig()Landroid/graphics/Bitmap$Config;
move-result-object v0
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getConfig()Landroid/graphics/Bitmap$Config;
move-result-object v1
const/4 v2, 0x1
const/4 v3, 0x0
if-ne v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
invoke-static {v0}, Lt/a/b/b/a;->g(Z)V
invoke-virtual {p0}, Landroid/graphics/Bitmap;->isMutable()Z
move-result v0
invoke-static {v0}, Lt/a/b/b/a;->g(Z)V
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
move-result v1
if-ne v0, v1, :cond_1
const/4 v0, 0x1
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
invoke-static {v0}, Lt/a/b/b/a;->g(Z)V
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
move-result v1
if-ne v0, v1, :cond_2
goto :goto_2
:cond_2
const/4 v2, 0x0
:goto_2
invoke-static {v2}, Lt/a/b/b/a;->g(Z)V
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getRowBytes()I
move-result v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getRowBytes()I
move-result v1
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result v2
invoke-static {p0, v0, p1, v1, v2}, Lcom/facebook/imagepipeline/nativecode/Bitmaps;->nativeCopyBitmap(Landroid/graphics/Bitmap;ILandroid/graphics/Bitmap;II)V
return-void
.end method
.method public static native nativeCopyBitmap(Landroid/graphics/Bitmap;ILandroid/graphics/Bitmap;II)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method

View file

@ -0,0 +1,27 @@
.class public Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder$OreoUtils;
.super Ljava/lang/Object;
.source "DalvikPurgeableDecoder.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "OreoUtils"
.end annotation
.annotation build Lf/g/m/d;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,596 @@
.class public abstract Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;
.super Ljava/lang/Object;
.source "DalvikPurgeableDecoder.java"
# interfaces
.implements Lf/g/j/o/d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder$OreoUtils;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
# static fields
.field public static final b:[B
# instance fields
.field public final a:Lf/g/j/m/b;
# direct methods
.method public static constructor <clinit>()V
.locals 1
invoke-static {}, Lf/g/j/n/a;->a()V
const/4 v0, 0x2
new-array v0, v0, [B
fill-array-data v0, :array_0
sput-object v0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->b:[B
return-void
:array_0
.array-data 1
-0x1t
-0x27t
.end array-data
.end method
.method public constructor <init>()V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
sget-object v0, Lf/g/j/m/c;->c:Lf/g/j/m/b;
if-nez v0, :cond_1
const-class v0, Lf/g/j/m/c;
monitor-enter v0
:try_start_0
sget-object v1, Lf/g/j/m/c;->c:Lf/g/j/m/b;
if-nez v1, :cond_0
new-instance v1, Lf/g/j/m/b;
sget v2, Lf/g/j/m/c;->b:I
sget v3, Lf/g/j/m/c;->a:I
invoke-direct {v1, v2, v3}, Lf/g/j/m/b;-><init>(II)V
sput-object v1, Lf/g/j/m/c;->c:Lf/g/j/m/b;
:cond_0
monitor-exit v0
goto :goto_0
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
:cond_1
:goto_0
sget-object v0, Lf/g/j/m/c;->c:Lf/g/j/m/b;
iput-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
return-void
.end method
.method public static e(Lcom/facebook/common/references/CloseableReference;I)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I)Z"
}
.end annotation
invoke-virtual {p0}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/facebook/common/memory/PooledByteBuffer;
const/4 v0, 0x1
const/4 v1, 0x2
if-lt p1, v1, :cond_0
add-int/lit8 v1, p1, -0x2
invoke-interface {p0, v1}, Lcom/facebook/common/memory/PooledByteBuffer;->k(I)B
move-result v1
const/4 v2, -0x1
if-ne v1, v2, :cond_0
sub-int/2addr p1, v0
invoke-interface {p0, p1}, Lcom/facebook/common/memory/PooledByteBuffer;->k(I)B
move-result p0
const/16 p1, -0x27
if-ne p0, p1, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public static native nativePinBitmap(Landroid/graphics/Bitmap;)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
# virtual methods
.method public a(Lf/g/j/j/e;Landroid/graphics/Bitmap$Config;Landroid/graphics/Rect;Landroid/graphics/ColorSpace;)Lcom/facebook/common/references/CloseableReference;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/g/j/j/e;",
"Landroid/graphics/Bitmap$Config;",
"Landroid/graphics/Rect;",
"Landroid/graphics/ColorSpace;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
iget p3, p1, Lf/g/j/j/e;->k:I
new-instance v0, Landroid/graphics/BitmapFactory$Options;
invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V
const/4 v1, 0x1
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inDither:Z
iput-object p2, v0, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inInputShareable:Z
iput p3, v0, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inMutable:Z
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 p3, 0x1a
if-lt p2, p3, :cond_1
if-nez p4, :cond_0
sget-object p2, Landroid/graphics/ColorSpace$Named;->SRGB:Landroid/graphics/ColorSpace$Named;
invoke-static {p2}, Landroid/graphics/ColorSpace;->get(Landroid/graphics/ColorSpace$Named;)Landroid/graphics/ColorSpace;
move-result-object p4
:cond_0
iput-object p4, v0, Landroid/graphics/BitmapFactory$Options;->inPreferredColorSpace:Landroid/graphics/ColorSpace;
:cond_1
invoke-virtual {p1}, Lf/g/j/j/e;->d()Lcom/facebook/common/references/CloseableReference;
move-result-object p1
invoke-static {p1}, Lt/a/b/b/a;->i(Ljava/lang/Object;)Ljava/lang/Object;
:try_start_0
invoke-virtual {p0, p1, v0}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->c(Lcom/facebook/common/references/CloseableReference;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p2
invoke-virtual {p0, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->f(Landroid/graphics/Bitmap;)Lcom/facebook/common/references/CloseableReference;
move-result-object p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
return-object p2
:catchall_0
move-exception p2
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
throw p2
.end method
.method public b(Lf/g/j/j/e;Landroid/graphics/Bitmap$Config;Landroid/graphics/Rect;ILandroid/graphics/ColorSpace;)Lcom/facebook/common/references/CloseableReference;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/g/j/j/e;",
"Landroid/graphics/Bitmap$Config;",
"Landroid/graphics/Rect;",
"I",
"Landroid/graphics/ColorSpace;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
iget p3, p1, Lf/g/j/j/e;->k:I
new-instance v0, Landroid/graphics/BitmapFactory$Options;
invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V
const/4 v1, 0x1
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inDither:Z
iput-object p2, v0, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inInputShareable:Z
iput p3, v0, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inMutable:Z
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 p3, 0x1a
if-lt p2, p3, :cond_1
if-nez p5, :cond_0
sget-object p2, Landroid/graphics/ColorSpace$Named;->SRGB:Landroid/graphics/ColorSpace$Named;
invoke-static {p2}, Landroid/graphics/ColorSpace;->get(Landroid/graphics/ColorSpace$Named;)Landroid/graphics/ColorSpace;
move-result-object p5
:cond_0
iput-object p5, v0, Landroid/graphics/BitmapFactory$Options;->inPreferredColorSpace:Landroid/graphics/ColorSpace;
:cond_1
invoke-virtual {p1}, Lf/g/j/j/e;->d()Lcom/facebook/common/references/CloseableReference;
move-result-object p1
invoke-static {p1}, Lt/a/b/b/a;->i(Ljava/lang/Object;)Ljava/lang/Object;
:try_start_0
invoke-virtual {p0, p1, p4, v0}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->d(Lcom/facebook/common/references/CloseableReference;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p2
invoke-virtual {p0, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->f(Landroid/graphics/Bitmap;)Lcom/facebook/common/references/CloseableReference;
move-result-object p2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
return-object p2
:catchall_0
move-exception p2
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
throw p2
.end method
.method public abstract c(Lcom/facebook/common/references/CloseableReference;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
.end method
.method public abstract d(Lcom/facebook/common/references/CloseableReference;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
.end method
.method public f(Landroid/graphics/Bitmap;)Lcom/facebook/common/references/CloseableReference;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/Bitmap;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
if-eqz p1, :cond_3
:try_start_0
invoke-static {p1}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->nativePinBitmap(Landroid/graphics/Bitmap;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
iget-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
monitor-enter v0
:try_start_1
invoke-static {p1}, Lf/g/k/a;->e(Landroid/graphics/Bitmap;)I
move-result v1
iget v2, v0, Lf/g/j/m/b;->a:I
iget v3, v0, Lf/g/j/m/b;->c:I
const/4 v4, 0x1
const/4 v5, 0x0
if-ge v2, v3, :cond_1
iget-wide v2, v0, Lf/g/j/m/b;->b:J
int-to-long v6, v1
add-long/2addr v2, v6
iget v1, v0, Lf/g/j/m/b;->d:I
int-to-long v8, v1
cmp-long v1, v2, v8
if-lez v1, :cond_0
goto :goto_0
:cond_0
iget v1, v0, Lf/g/j/m/b;->a:I
add-int/2addr v1, v4
iput v1, v0, Lf/g/j/m/b;->a:I
iget-wide v1, v0, Lf/g/j/m/b;->b:J
add-long/2addr v1, v6
iput-wide v1, v0, Lf/g/j/m/b;->b:J
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_3
monitor-exit v0
const/4 v0, 0x1
goto :goto_1
:cond_1
:goto_0
monitor-exit v0
const/4 v0, 0x0
:goto_1
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
iget-object v0, v0, Lf/g/j/m/b;->e:Lf/g/d/h/g;
invoke-static {p1, v0}, Lcom/facebook/common/references/CloseableReference;->v(Ljava/lang/Object;Lf/g/d/h/g;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
return-object p1
:cond_2
invoke-static {p1}, Lf/g/k/a;->e(Landroid/graphics/Bitmap;)I
move-result v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V
sget-object p1, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v1, "Attempted to pin a bitmap of size %d bytes. The current pool count is %d, the current pool size is %d bytes. The current pool max count is %d, the current pool max size is %d bytes."
const/4 v2, 0x5
new-array v2, v2, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v5
iget-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
monitor-enter v0
:try_start_2
iget v3, v0, Lf/g/j/m/b;->a:I
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
monitor-exit v0
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v4
const/4 v0, 0x2
iget-object v3, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
monitor-enter v3
:try_start_3
iget-wide v4, v3, Lf/g/j/m/b;->b:J
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
monitor-exit v3
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v2, v0
const/4 v0, 0x3
iget-object v3, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
monitor-enter v3
:try_start_4
iget v4, v3, Lf/g/j/m/b;->c:I
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
monitor-exit v3
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v0
const/4 v0, 0x4
iget-object v3, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/g/j/m/b;
invoke-virtual {v3}, Lf/g/j/m/b;->b()I
move-result v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v2, v0
invoke-static {p1, v1, v2}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-instance v0, Lcom/facebook/imagepipeline/common/TooManyBitmapsException;
invoke-direct {v0, p1}, Lcom/facebook/imagepipeline/common/TooManyBitmapsException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_0
move-exception p1
monitor-exit v3
throw p1
:catchall_1
move-exception p1
monitor-exit v3
throw p1
:catchall_2
move-exception p1
monitor-exit v0
throw p1
:catchall_3
move-exception p1
monitor-exit v0
throw p1
:catch_0
move-exception v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V
invoke-static {v0}, Lt/a/b/b/a;->V(Ljava/lang/Throwable;)V
new-instance p1, Ljava/lang/RuntimeException;
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p1
:cond_3
const/4 p1, 0x0
throw p1
.end method

View file

@ -0,0 +1,33 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeBlurFilter;
.super Ljava/lang/Object;
.source "NativeBlurFilter.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "native-filters"
invoke-static {v0}, Lf/g/m/o/a;->c(Ljava/lang/String;)Z
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native nativeIterativeBoxBlur(Landroid/graphics/Bitmap;II)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method

View file

@ -0,0 +1,36 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeCodeInitializer;
.super Ljava/lang/Object;
.source "NativeCodeInitializer.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static init(Landroid/content/Context;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
const/4 v0, 0x0
invoke-static {p0, v0}, Lcom/facebook/soloader/SoLoader;->init(Landroid/content/Context;I)V
return-void
.end method

View file

@ -0,0 +1,436 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;
.super Ljava/lang/Object;
.source "NativeJpegTranscoder.java"
# interfaces
.implements Lf/g/j/t/b;
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# instance fields
.field public a:Z
.field public b:I
.field public c:Z
# direct methods
.method public constructor <init>(ZIZZ)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-boolean p1, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->a:Z
iput p2, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->b:I
iput-boolean p3, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->c:Z
if-eqz p4, :cond_0
invoke-static {}, Lf/g/j/k/a;->U()V
:cond_0
return-void
.end method
.method public static native nativeTranscodeJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeTranscodeJpegWithExifOrientation(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
.end method
# virtual methods
.method public a()Ljava/lang/String;
.locals 1
const-string v0, "NativeJpegTranscoder"
return-object v0
.end method
.method public b(Lf/g/j/j/e;Lf/g/j/d/f;Lf/g/j/d/e;)Z
.locals 1
if-nez p2, :cond_0
sget-object p2, Lf/g/j/d/f;->c:Lf/g/j/d/f;
:cond_0
iget-boolean v0, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->a:Z
invoke-static {p2, p3, p1, v0}, Lf/g/j/t/d;->c(Lf/g/j/d/f;Lf/g/j/d/e;Lf/g/j/j/e;Z)I
move-result p1
const/16 p2, 0x8
if-ge p1, p2, :cond_1
const/4 p1, 0x1
goto :goto_0
:cond_1
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public c(Lf/g/j/j/e;Ljava/io/OutputStream;Lf/g/j/d/f;Lf/g/j/d/e;Lf/g/i/c;Ljava/lang/Integer;)Lf/g/j/t/a;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-nez p6, :cond_0
const/16 p5, 0x55
invoke-static {p5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p6
:cond_0
if-nez p3, :cond_1
sget-object p3, Lf/g/j/d/f;->c:Lf/g/j/d/f;
:cond_1
iget p5, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->b:I
invoke-static {p3, p4, p1, p5}, Lf/g/j/k/a;->Q(Lf/g/j/d/f;Lf/g/j/d/e;Lf/g/j/j/e;I)I
move-result p5
const/4 v0, 0x0
:try_start_0
iget-boolean v1, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->a:Z
invoke-static {p3, p4, p1, v1}, Lf/g/j/t/d;->c(Lf/g/j/d/f;Lf/g/j/d/e;Lf/g/j/j/e;Z)I
move-result p4
const/16 v1, 0x8
div-int v2, v1, p5
const/4 v3, 0x1
invoke-static {v3, v2}, Ljava/lang/Math;->max(II)I
move-result v2
iget-boolean v4, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->c:Z
if-eqz v4, :cond_2
move p4, v2
:cond_2
invoke-virtual {p1}, Lf/g/j/j/e;->f()Ljava/io/InputStream;
move-result-object v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
sget-object v4, Lf/g/j/t/d;->a:Lf/g/d/d/e;
invoke-virtual {p1}, Lf/g/j/j/e;->p()V
iget v5, p1, Lf/g/j/j/e;->h:I
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v4
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const-string v5, "no transformation requested"
const/16 v6, 0x64
const/16 v7, 0x10
const/4 v8, 0x0
if-eqz v4, :cond_b
:try_start_2
invoke-static {p3, p1}, Lf/g/j/t/d;->a(Lf/g/j/d/f;Lf/g/j/j/e;)I
move-result p1
invoke-virtual {p6}, Ljava/lang/Integer;->intValue()I
move-result p3
invoke-static {}, Lf/g/j/k/a;->U()V
if-lt p4, v3, :cond_3
const/4 p6, 0x1
goto :goto_0
:cond_3
const/4 p6, 0x0
:goto_0
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-gt p4, v7, :cond_4
const/4 p6, 0x1
goto :goto_1
:cond_4
const/4 p6, 0x0
:goto_1
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-ltz p3, :cond_5
const/4 p6, 0x1
goto :goto_2
:cond_5
const/4 p6, 0x0
:goto_2
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-gt p3, v6, :cond_6
const/4 p6, 0x1
goto :goto_3
:cond_6
const/4 p6, 0x0
:goto_3
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
invoke-static {p1}, Lf/g/j/t/d;->d(I)Z
move-result p6
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-ne p4, v1, :cond_8
if-eq p1, v3, :cond_7
goto :goto_4
:cond_7
const/4 p6, 0x0
goto :goto_5
:cond_8
:goto_4
const/4 p6, 0x1
:goto_5
invoke-static {p6, v5}, Lt/a/b/b/a;->h(ZLjava/lang/Object;)V
if-eqz v2, :cond_a
if-eqz p2, :cond_9
invoke-static {v2, p2, p1, p4, p3}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->nativeTranscodeJpegWithExifOrientation(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
goto :goto_c
:cond_9
throw v0
:cond_a
throw v0
:cond_b
invoke-static {p3, p1}, Lf/g/j/t/d;->b(Lf/g/j/d/f;Lf/g/j/j/e;)I
move-result p1
invoke-virtual {p6}, Ljava/lang/Integer;->intValue()I
move-result p3
invoke-static {}, Lf/g/j/k/a;->U()V
if-lt p4, v3, :cond_c
const/4 p6, 0x1
goto :goto_6
:cond_c
const/4 p6, 0x0
:goto_6
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-gt p4, v7, :cond_d
const/4 p6, 0x1
goto :goto_7
:cond_d
const/4 p6, 0x0
:goto_7
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-ltz p3, :cond_e
const/4 p6, 0x1
goto :goto_8
:cond_e
const/4 p6, 0x0
:goto_8
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-gt p3, v6, :cond_f
const/4 p6, 0x1
goto :goto_9
:cond_f
const/4 p6, 0x0
:goto_9
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
invoke-static {p1}, Lf/g/j/t/d;->e(I)Z
move-result p6
invoke-static {p6}, Lt/a/b/b/a;->g(Z)V
if-ne p4, v1, :cond_11
if-eqz p1, :cond_10
goto :goto_a
:cond_10
const/4 p6, 0x0
goto :goto_b
:cond_11
:goto_a
const/4 p6, 0x1
:goto_b
invoke-static {p6, v5}, Lt/a/b/b/a;->h(ZLjava/lang/Object;)V
if-eqz v2, :cond_14
if-eqz p2, :cond_13
invoke-static {v2, p2, p1, p4, p3}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->nativeTranscodeJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:goto_c
invoke-static {v2}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
new-instance p1, Lf/g/j/t/a;
if-ne p5, v3, :cond_12
goto :goto_d
:cond_12
const/4 v3, 0x0
:goto_d
invoke-direct {p1, v3}, Lf/g/j/t/a;-><init>(I)V
return-object p1
:cond_13
:try_start_3
throw v0
:cond_14
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:catchall_0
move-exception p1
move-object v0, v2
goto :goto_e
:catchall_1
move-exception p1
:goto_e
invoke-static {v0}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
throw p1
.end method
.method public d(Lf/g/i/c;)Z
.locals 1
sget-object v0, Lf/g/i/b;->a:Lf/g/i/c;
if-ne p1, v0, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method

View file

@ -0,0 +1,66 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;
.super Ljava/lang/Object;
.source "NativeJpegTranscoderFactory.java"
# interfaces
.implements Lf/g/j/t/c;
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# instance fields
.field public final a:I
.field public final b:Z
.field public final c:Z
# direct methods
.method public constructor <init>(IZZ)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->a:I
iput-boolean p2, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->b:Z
iput-boolean p3, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->c:Z
return-void
.end method
# virtual methods
.method public createImageTranscoder(Lf/g/i/c;Z)Lf/g/j/t/b;
.locals 3
.annotation build Lf/g/d/d/c;
.end annotation
sget-object v0, Lf/g/i/b;->a:Lf/g/i/c;
if-eq p1, v0, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
new-instance p1, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;
iget v0, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->a:I
iget-boolean v1, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->b:Z
iget-boolean v2, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;->c:Z
invoke-direct {p1, p2, v0, v1, v2}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;-><init>(ZIZZ)V
return-object p1
.end method

View file

@ -0,0 +1,82 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeRoundingFilter;
.super Ljava/lang/Object;
.source "NativeRoundingFilter.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "native-filters"
invoke-static {v0}, Lf/g/m/o/a;->c(Ljava/lang/String;)Z
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native nativeAddRoundedCornersFilter(Landroid/graphics/Bitmap;IIII)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeToCircleFastFilter(Landroid/graphics/Bitmap;Z)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeToCircleFilter(Landroid/graphics/Bitmap;Z)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeToCircleWithBorderFilter(Landroid/graphics/Bitmap;IIZ)V
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static toCircle(Landroid/graphics/Bitmap;Z)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
if-eqz p0, :cond_0
invoke-static {p0, p1}, Lcom/facebook/imagepipeline/nativecode/NativeRoundingFilter;->nativeToCircleFilter(Landroid/graphics/Bitmap;Z)V
return-void
:cond_0
const/4 p0, 0x0
throw p0
.end method
.method public static toCircleFast(Landroid/graphics/Bitmap;Z)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
if-eqz p0, :cond_0
invoke-static {p0, p1}, Lcom/facebook/imagepipeline/nativecode/NativeRoundingFilter;->nativeToCircleFastFilter(Landroid/graphics/Bitmap;Z)V
return-void
:cond_0
const/4 p0, 0x0
throw p0
.end method

View file

@ -0,0 +1,12 @@
.class public final Lcom/facebook/imagepipeline/nativecode/R;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View file

@ -0,0 +1,40 @@
.class public Lcom/facebook/imagepipeline/nativecode/WebpTranscoderImpl;
.super Ljava/lang/Object;
.source "WebpTranscoderImpl.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native nativeTranscodeWebpToJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;I)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
.end method
.method public static native nativeTranscodeWebpToPng(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
.end method

View file

@ -0,0 +1,477 @@
.class public Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;
.super Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;
.source "GingerbreadPurgeableDecoder.java"
# annotations
.annotation build Lf/g/d/d/c;
.end annotation
# static fields
.field public static d:Ljava/lang/reflect/Method;
# instance fields
.field public final c:Lf/g/d/m/b;
# direct methods
.method public constructor <init>()V
.locals 1
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;-><init>()V
invoke-static {}, Lf/g/d/m/c;->c()Lf/g/d/m/b;
move-result-object v0
iput-object v0, p0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->c:Lf/g/d/m/b;
return-void
.end method
.method public static g(Lcom/facebook/common/references/CloseableReference;I[B)Landroid/os/MemoryFile;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I[B)",
"Landroid/os/MemoryFile;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
if-nez p2, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
array-length v1, p2
:goto_0
add-int/2addr v1, p1
new-instance v2, Landroid/os/MemoryFile;
const/4 v3, 0x0
invoke-direct {v2, v3, v1}, Landroid/os/MemoryFile;-><init>(Ljava/lang/String;I)V
invoke-virtual {v2, v0}, Landroid/os/MemoryFile;->allowPurging(Z)Z
const/4 v1, 0x1
:try_start_0
new-instance v4, Lf/g/d/g/h;
invoke-virtual {p0}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/facebook/common/memory/PooledByteBuffer;
invoke-direct {v4, v5}, Lf/g/d/g/h;-><init>(Lcom/facebook/common/memory/PooledByteBuffer;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_3
:try_start_1
new-instance v5, Lf/g/d/j/a;
invoke-direct {v5, v4, p1}, Lf/g/d/j/a;-><init>(Ljava/io/InputStream;I)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_2
:try_start_2
invoke-virtual {v2}, Landroid/os/MemoryFile;->getOutputStream()Ljava/io/OutputStream;
move-result-object v6
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
if-eqz v6, :cond_3
const/16 v3, 0x1000
:try_start_3
new-array v3, v3, [B
:goto_1
invoke-virtual {v5, v3}, Ljava/io/InputStream;->read([B)I
move-result v7
const/4 v8, -0x1
if-ne v7, v8, :cond_2
if-eqz p2, :cond_1
array-length v3, p2
invoke-virtual {v2, p2, v0, p1, v3}, Landroid/os/MemoryFile;->writeBytes([BIII)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
goto :goto_2
:catchall_0
move-exception p1
goto :goto_3
:cond_1
:goto_2
invoke-virtual {p0}, Lcom/facebook/common/references/CloseableReference;->close()V
invoke-static {v4}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
invoke-static {v5}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
invoke-static {v6, v1}, Lf/g/d/d/a;->a(Ljava/io/Closeable;Z)V
return-object v2
:cond_2
:try_start_4
invoke-virtual {v6, v3, v0, v7}, Ljava/io/OutputStream;->write([BII)V
goto :goto_1
:cond_3
throw v3
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:catchall_1
move-exception p1
move-object v6, v3
goto :goto_3
:catchall_2
move-exception p1
move-object v5, v3
move-object v6, v5
:goto_3
move-object v3, v4
goto :goto_4
:catchall_3
move-exception p1
move-object v5, v3
move-object v6, v5
:goto_4
invoke-static {p0}, Lcom/facebook/common/references/CloseableReference;->f(Lcom/facebook/common/references/CloseableReference;)V
invoke-static {v3}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
invoke-static {v5}, Lf/g/d/d/a;->b(Ljava/io/InputStream;)V
invoke-static {v6, v1}, Lf/g/d/d/a;->a(Ljava/io/Closeable;Z)V
throw p1
.end method
# virtual methods
.method public c(Lcom/facebook/common/references/CloseableReference;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/facebook/common/memory/PooledByteBuffer;
invoke-interface {v0}, Lcom/facebook/common/memory/PooledByteBuffer;->size()I
move-result v0
const/4 v1, 0x0
invoke-virtual {p0, p1, v0, v1, p2}, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->h(Lcom/facebook/common/references/CloseableReference;I[BLandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p1
return-object p1
.end method
.method public d(Lcom/facebook/common/references/CloseableReference;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
invoke-static {p1, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->e(Lcom/facebook/common/references/CloseableReference;I)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
sget-object v0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->b:[B
:goto_0
invoke-virtual {p0, p1, p2, v0, p3}, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->h(Lcom/facebook/common/references/CloseableReference;I[BLandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p1
return-object p1
.end method
.method public final h(Lcom/facebook/common/references/CloseableReference;I[BLandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I[B",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
const/4 v0, 0x0
:try_start_0
invoke-static {p1, p2, p3}, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->g(Lcom/facebook/common/references/CloseableReference;I[B)Landroid/os/MemoryFile;
move-result-object p1
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
invoke-virtual {p0, p1}, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->j(Landroid/os/MemoryFile;)Ljava/io/FileDescriptor;
move-result-object p2
iget-object p3, p0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->c:Lf/g/d/m/b;
if-eqz p3, :cond_0
iget-object p3, p0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->c:Lf/g/d/m/b;
invoke-interface {p3, p2, v0, p4}, Lf/g/d/m/b;->c(Ljava/io/FileDescriptor;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p2
const-string p3, "BitmapFactory returned null"
invoke-static {p2, p3}, Lt/a/b/b/a;->j(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {p1}, Landroid/os/MemoryFile;->close()V
return-object p2
:cond_0
:try_start_2
new-instance p2, Ljava/lang/IllegalStateException;
const-string p3, "WebpBitmapFactory is null"
invoke-direct {p2, p3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p2
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception p2
move-object v0, p1
goto :goto_2
:catch_0
move-exception p2
move-object v0, p1
goto :goto_0
:catchall_1
move-exception p2
goto :goto_2
:catch_1
move-exception p2
:goto_0
:try_start_3
invoke-static {p2}, Lt/a/b/b/a;->V(Ljava/lang/Throwable;)V
new-instance p1, Ljava/lang/RuntimeException;
invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_2
:goto_1
move-object p2, p1
goto :goto_2
:catchall_2
move-exception p1
goto :goto_1
:goto_2
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/os/MemoryFile;->close()V
:cond_1
throw p2
.end method
.method public final declared-synchronized i()Ljava/lang/reflect/Method;
.locals 3
monitor-enter p0
:try_start_0
sget-object v0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->d:Ljava/lang/reflect/Method;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_0
:try_start_1
const-class v0, Landroid/os/MemoryFile;
const-string v1, "getFileDescriptor"
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Class;
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
sput-object v0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->d:Ljava/lang/reflect/Method;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catch_0
move-exception v0
:try_start_2
invoke-static {v0}, Lt/a/b/b/a;->V(Ljava/lang/Throwable;)V
new-instance v1, Ljava/lang/RuntimeException;
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
:cond_0
:goto_0
sget-object v0, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->d:Ljava/lang/reflect/Method;
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final j(Landroid/os/MemoryFile;)Ljava/io/FileDescriptor;
.locals 2
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/platform/GingerbreadPurgeableDecoder;->i()Ljava/lang/reflect/Method;
move-result-object v0
const/4 v1, 0x0
new-array v1, v1, [Ljava/lang/Object;
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/io/FileDescriptor;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
invoke-static {p1}, Lt/a/b/b/a;->V(Ljava/lang/Throwable;)V
new-instance v0, Ljava/lang/RuntimeException;
invoke-direct {v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method

View file

@ -0,0 +1,207 @@
.class public Lcom/facebook/imagepipeline/platform/KitKatPurgeableDecoder;
.super Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;
.source "KitKatPurgeableDecoder.java"
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x13
.end annotation
.annotation build Lf/g/d/d/c;
.end annotation
# instance fields
.field public final c:Lf/g/j/m/n;
# direct methods
.method public constructor <init>(Lf/g/j/m/n;)V
.locals 0
.annotation build Lf/g/d/d/c;
.end annotation
invoke-direct {p0}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;-><init>()V
iput-object p1, p0, Lcom/facebook/imagepipeline/platform/KitKatPurgeableDecoder;->c:Lf/g/j/m/n;
return-void
.end method
# virtual methods
.method public c(Lcom/facebook/common/references/CloseableReference;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/common/memory/PooledByteBuffer;
invoke-interface {p1}, Lcom/facebook/common/memory/PooledByteBuffer;->size()I
move-result v0
iget-object v1, p0, Lcom/facebook/imagepipeline/platform/KitKatPurgeableDecoder;->c:Lf/g/j/m/n;
invoke-virtual {v1, v0}, Lf/g/j/m/n;->a(I)Lcom/facebook/common/references/CloseableReference;
move-result-object v1
:try_start_0
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
const/4 v3, 0x0
invoke-interface {p1, v3, v2, v3, v0}, Lcom/facebook/common/memory/PooledByteBuffer;->m(I[BII)I
invoke-static {v2, v3, v0, p2}, Landroid/graphics/BitmapFactory;->decodeByteArray([BIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p1
const-string p2, "BitmapFactory returned null"
invoke-static {p1, p2}, Lt/a/b/b/a;->j(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
return-object p1
:catchall_0
move-exception p1
if-eqz v1, :cond_0
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
:cond_0
throw p1
.end method
.method public d(Lcom/facebook/common/references/CloseableReference;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/common/memory/PooledByteBuffer;",
">;I",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
invoke-static {p1, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->e(Lcom/facebook/common/references/CloseableReference;I)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
sget-object v0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->b:[B
:goto_0
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/common/memory/PooledByteBuffer;
invoke-interface {p1}, Lcom/facebook/common/memory/PooledByteBuffer;->size()I
move-result v1
const/4 v2, 0x0
if-gt p2, v1, :cond_1
const/4 v1, 0x1
goto :goto_1
:cond_1
const/4 v1, 0x0
:goto_1
invoke-static {v1}, Lt/a/b/b/a;->g(Z)V
iget-object v1, p0, Lcom/facebook/imagepipeline/platform/KitKatPurgeableDecoder;->c:Lf/g/j/m/n;
add-int/lit8 v3, p2, 0x2
invoke-virtual {v1, v3}, Lf/g/j/m/n;->a(I)Lcom/facebook/common/references/CloseableReference;
move-result-object v1
:try_start_0
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->j()Ljava/lang/Object;
move-result-object v4
check-cast v4, [B
invoke-interface {p1, v2, v4, v2, p2}, Lcom/facebook/common/memory/PooledByteBuffer;->m(I[BII)I
if-eqz v0, :cond_2
const/4 p1, -0x1
aput-byte p1, v4, p2
add-int/lit8 p2, p2, 0x1
const/16 p1, -0x27
aput-byte p1, v4, p2
move p2, v3
:cond_2
invoke-static {v4, v2, p2, p3}, Landroid/graphics/BitmapFactory;->decodeByteArray([BIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
move-result-object p1
const-string p2, "BitmapFactory returned null"
invoke-static {p1, p2}, Lt/a/b/b/a;->j(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
return-object p1
:catchall_0
move-exception p1
if-eqz v1, :cond_3
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
:cond_3
throw p1
.end method

View file

@ -0,0 +1,44 @@
.class public Lcom/facebook/imagepipeline/platform/PreverificationHelper;
.super Ljava/lang/Object;
.source "PreverificationHelper.java"
# annotations
.annotation build Lf/g/m/d;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public shouldUseHardwareBitmapConfig(Landroid/graphics/Bitmap$Config;)Z
.locals 1
.annotation build Landroid/annotation/TargetApi;
value = 0x1a
.end annotation
.annotation build Lf/g/m/d;
.end annotation
sget-object v0, Landroid/graphics/Bitmap$Config;->HARDWARE:Landroid/graphics/Bitmap$Config;
if-ne p1, v0, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method

View file

@ -0,0 +1,17 @@
.class public Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$Api24Utils;
.super Ljava/lang/Object;
.source "LocalExifThumbnailProducer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "Api24Utils"
.end annotation
.annotation build Lf/g/m/d;
.end annotation

View file

@ -0,0 +1,432 @@
.class public Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;
.super Lf/g/j/q/d1;
.source "LocalExifThumbnailProducer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->b(Lf/g/j/q/l;Lf/g/j/q/w0;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/g/j/q/d1<",
"Lf/g/j/j/e;",
">;"
}
.end annotation
# instance fields
.field public final synthetic i:Lcom/facebook/imagepipeline/request/ImageRequest;
.field public final synthetic j:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
# direct methods
.method public constructor <init>(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;Lf/g/j/q/l;Lf/g/j/q/y0;Lf/g/j/q/w0;Ljava/lang/String;Lcom/facebook/imagepipeline/request/ImageRequest;)V
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->j:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
iput-object p6, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->i:Lcom/facebook/imagepipeline/request/ImageRequest;
invoke-direct {p0, p2, p3, p4, p5}, Lf/g/j/q/d1;-><init>(Lf/g/j/q/l;Lf/g/j/q/y0;Lf/g/j/q/w0;Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public b(Ljava/lang/Object;)V
.locals 0
check-cast p1, Lf/g/j/j/e;
invoke-static {p1}, Lf/g/j/j/e;->b(Lf/g/j/j/e;)V
return-void
.end method
.method public c(Ljava/lang/Object;)Ljava/util/Map;
.locals 1
check-cast p1, Lf/g/j/j/e;
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
invoke-static {p1}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;
move-result-object p1
const-string v0, "createdThumbnail"
invoke-static {v0, p1}, Lf/g/d/d/f;->of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
move-result-object p1
return-object p1
.end method
.method public d()Ljava/lang/Object;
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
iget-object v0, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->i:Lcom/facebook/imagepipeline/request/ImageRequest;
iget-object v0, v0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
iget-object v7, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->j:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
iget-object v1, v7, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->c:Landroid/content/ContentResolver;
invoke-static {v0}, Lf/g/d/l/b;->d(Landroid/net/Uri;)Z
move-result v2
const/4 v8, 0x0
const/4 v9, -0x1
if-eqz v2, :cond_2
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
move-object v2, v0
:try_start_0
invoke-virtual/range {v1 .. v6}, 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 v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v1, :cond_0
:try_start_1
invoke-interface {v1}, Landroid/database/Cursor;->moveToFirst()Z
move-result v2
if-eqz v2, :cond_0
const-string v2, "_data"
invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
move-result v2
if-eq v2, v9, :cond_0
invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
move-result-object v2
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
move-object v8, v1
goto :goto_1
:cond_0
move-object v2, v8
:goto_0
if-eqz v1, :cond_4
invoke-interface {v1}, Landroid/database/Cursor;->close()V
goto :goto_2
:catchall_1
move-exception v0
:goto_1
if-eqz v8, :cond_1
invoke-interface {v8}, Landroid/database/Cursor;->close()V
:cond_1
throw v0
:cond_2
invoke-static {v0}, Lf/g/d/l/b;->e(Landroid/net/Uri;)Z
move-result v1
if-eqz v1, :cond_3
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object v2
goto :goto_2
:cond_3
move-object v2, v8
:cond_4
:goto_2
const/4 v1, 0x0
if-nez v2, :cond_5
goto :goto_3
:cond_5
:try_start_2
new-instance v3, Ljava/io/File;
invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v3}, Ljava/io/File;->exists()Z
move-result v4
if-eqz v4, :cond_6
invoke-virtual {v3}, Ljava/io/File;->canRead()Z
move-result v3
if-eqz v3, :cond_6
const/4 v1, 0x1
:cond_6
:goto_3
if-eqz v1, :cond_7
new-instance v0, Landroid/media/ExifInterface;
invoke-direct {v0, v2}, Landroid/media/ExifInterface;-><init>(Ljava/lang/String;)V
goto :goto_6
:cond_7
iget-object v1, v7, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->c:Landroid/content/ContentResolver;
invoke-static {v0}, Lf/g/d/l/b;->d(Landroid/net/Uri;)Z
move-result v2
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
.catch Ljava/lang/StackOverflowError; {:try_start_2 .. :try_end_2} :catch_1
if-eqz v2, :cond_8
:try_start_3
const-string v2, "r"
invoke-virtual {v1, v0, v2}, Landroid/content/ContentResolver;->openAssetFileDescriptor(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;
move-result-object v0
:try_end_3
.catch Ljava/io/FileNotFoundException; {:try_start_3 .. :try_end_3} :catch_0
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
.catch Ljava/lang/StackOverflowError; {:try_start_3 .. :try_end_3} :catch_1
goto :goto_4
:catch_0
:cond_8
move-object v0, v8
:goto_4
if-eqz v0, :cond_a
:try_start_4
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x18
if-lt v1, v2, :cond_a
invoke-virtual {v0}, Landroid/content/res/AssetFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
move-result-object v1
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v3, v2, :cond_9
new-instance v2, Landroid/media/ExifInterface;
invoke-direct {v2, v1}, Landroid/media/ExifInterface;-><init>(Ljava/io/FileDescriptor;)V
goto :goto_5
:cond_9
move-object v2, v8
:goto_5
invoke-virtual {v0}, Landroid/content/res/AssetFileDescriptor;->close()V
:try_end_4
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2
.catch Ljava/lang/StackOverflowError; {:try_start_4 .. :try_end_4} :catch_1
move-object v0, v2
goto :goto_6
:catch_1
const-class v0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
const-string v1, "StackOverflowError in ExifInterface constructor"
invoke-static {v0, v1}, Lf/g/d/e/a;->a(Ljava/lang/Class;Ljava/lang/String;)V
:catch_2
:cond_a
move-object v0, v8
:goto_6
if-eqz v0, :cond_11
invoke-virtual {v0}, Landroid/media/ExifInterface;->hasThumbnail()Z
move-result v1
if-nez v1, :cond_b
goto :goto_8
:cond_b
invoke-virtual {v0}, Landroid/media/ExifInterface;->getThumbnail()[B
move-result-object v1
iget-object v2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->j:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
iget-object v2, v2, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->b:Lf/g/d/g/g;
invoke-interface {v2, v1}, Lf/g/d/g/g;->b([B)Lcom/facebook/common/memory/PooledByteBuffer;
move-result-object v1
iget-object v2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;->j:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
if-eqz v2, :cond_10
new-instance v2, Lf/g/d/g/h;
invoke-direct {v2, v1}, Lf/g/d/g/h;-><init>(Lcom/facebook/common/memory/PooledByteBuffer;)V
invoke-static {v2}, Lf/g/k/a;->a(Ljava/io/InputStream;)Landroid/util/Pair;
move-result-object v2
const-string v3, "Orientation"
invoke-virtual {v0, v3}, Landroid/media/ExifInterface;->getAttribute(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
invoke-static {v0}, Lf/g/j/k/a;->e0(I)I
move-result v0
if-eqz v2, :cond_c
iget-object v3, v2, Landroid/util/Pair;->first:Ljava/lang/Object;
check-cast v3, Ljava/lang/Integer;
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
goto :goto_7
:cond_c
const/4 v3, -0x1
:goto_7
if-eqz v2, :cond_d
iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v9
:cond_d
invoke-static {v1}, Lcom/facebook/common/references/CloseableReference;->q(Ljava/io/Closeable;)Lcom/facebook/common/references/CloseableReference;
move-result-object v1
:try_start_5
new-instance v8, Lf/g/j/j/e;
invoke-direct {v8, v1}, Lf/g/j/j/e;-><init>(Lcom/facebook/common/references/CloseableReference;)V
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_2
if-eqz v1, :cond_e
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
:cond_e
sget-object v1, Lf/g/i/b;->a:Lf/g/i/c;
iput-object v1, v8, Lf/g/j/j/e;->f:Lf/g/i/c;
iput v0, v8, Lf/g/j/j/e;->g:I
iput v3, v8, Lf/g/j/j/e;->i:I
iput v9, v8, Lf/g/j/j/e;->j:I
goto :goto_8
:catchall_2
move-exception v0
if-eqz v1, :cond_f
invoke-virtual {v1}, Lcom/facebook/common/references/CloseableReference;->close()V
:cond_f
throw v0
:cond_10
throw v8
:cond_11
:goto_8
return-object v8
.end method

View file

@ -0,0 +1,42 @@
.class public Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$b;
.super Lf/g/j/q/e;
.source "LocalExifThumbnailProducer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->b(Lf/g/j/q/l;Lf/g/j/q/w0;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic a:Lf/g/j/q/d1;
# direct methods
.method public constructor <init>(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;Lf/g/j/q/d1;)V
.locals 0
iput-object p2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$b;->a:Lf/g/j/q/d1;
invoke-direct {p0}, Lf/g/j/q/e;-><init>()V
return-void
.end method
# virtual methods
.method public a()V
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$b;->a:Lf/g/j/q/d1;
invoke-virtual {v0}, Lf/g/j/q/d1;->a()V
return-void
.end method

View file

@ -0,0 +1,115 @@
.class public Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
.super Ljava/lang/Object;
.source "LocalExifThumbnailProducer.java"
# interfaces
.implements Lf/g/j/q/j1;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$Api24Utils;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lf/g/j/q/j1<",
"Lf/g/j/j/e;",
">;"
}
.end annotation
# instance fields
.field public final a:Ljava/util/concurrent/Executor;
.field public final b:Lf/g/d/g/g;
.field public final c:Landroid/content/ContentResolver;
# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;Lf/g/d/g/g;Landroid/content/ContentResolver;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->a:Ljava/util/concurrent/Executor;
iput-object p2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->b:Lf/g/d/g/g;
iput-object p3, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->c:Landroid/content/ContentResolver;
return-void
.end method
# virtual methods
.method public a(Lf/g/j/d/e;)Z
.locals 1
const/16 v0, 0x200
invoke-static {v0, v0, p1}, Lf/g/j/k/a;->u0(IILf/g/j/d/e;)Z
move-result p1
return p1
.end method
.method public b(Lf/g/j/q/l;Lf/g/j/q/w0;)V
.locals 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/g/j/q/l<",
"Lf/g/j/j/e;",
">;",
"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 v3
invoke-interface {p2}, Lf/g/j/q/w0;->e()Lcom/facebook/imagepipeline/request/ImageRequest;
move-result-object v6
const-string v0, "local"
const-string v1, "exif"
invoke-interface {p2, v0, v1}, Lf/g/j/q/w0;->i(Ljava/lang/String;Ljava/lang/String;)V
new-instance v7, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;
const-string v5, "LocalExifThumbnailProducer"
move-object v0, v7
move-object v1, p0
move-object v2, p1
move-object v4, p2
invoke-direct/range {v0 .. v6}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$a;-><init>(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;Lf/g/j/q/l;Lf/g/j/q/y0;Lf/g/j/q/w0;Ljava/lang/String;Lcom/facebook/imagepipeline/request/ImageRequest;)V
new-instance p1, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$b;
invoke-direct {p1, p0, v7}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$b;-><init>(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;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, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->a:Ljava/util/concurrent/Executor;
invoke-interface {p1, v7}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method

View file

@ -0,0 +1,57 @@
.class public final Lcom/facebook/imagepipeline/request/ImageRequest$a;
.super Ljava/lang/Object;
.source "ImageRequest.java"
# interfaces
.implements Lf/g/d/d/d;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/request/ImageRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lf/g/d/d/d<",
"Lcom/facebook/imagepipeline/request/ImageRequest;",
"Landroid/net/Uri;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Lcom/facebook/imagepipeline/request/ImageRequest;
if-eqz p1, :cond_0
iget-object p1, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return-object p1
.end method

View file

@ -0,0 +1,111 @@
.class public final enum Lcom/facebook/imagepipeline/request/ImageRequest$b;
.super Ljava/lang/Enum;
.source "ImageRequest.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/request/ImageRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "b"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/imagepipeline/request/ImageRequest$b;",
">;"
}
.end annotation
# static fields
.field public static final enum d:Lcom/facebook/imagepipeline/request/ImageRequest$b;
.field public static final enum e:Lcom/facebook/imagepipeline/request/ImageRequest$b;
.field public static final synthetic f:[Lcom/facebook/imagepipeline/request/ImageRequest$b;
# direct methods
.method public static constructor <clinit>()V
.locals 5
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;
const-string v1, "SMALL"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/facebook/imagepipeline/request/ImageRequest$b;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;->d:Lcom/facebook/imagepipeline/request/ImageRequest$b;
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;
const-string v1, "DEFAULT"
const/4 v3, 0x1
invoke-direct {v0, v1, v3}, Lcom/facebook/imagepipeline/request/ImageRequest$b;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;->e:Lcom/facebook/imagepipeline/request/ImageRequest$b;
const/4 v1, 0x2
new-array v1, v1, [Lcom/facebook/imagepipeline/request/ImageRequest$b;
sget-object v4, Lcom/facebook/imagepipeline/request/ImageRequest$b;->d:Lcom/facebook/imagepipeline/request/ImageRequest$b;
aput-object v4, v1, v2
aput-object v0, v1, v3
sput-object v1, Lcom/facebook/imagepipeline/request/ImageRequest$b;->f:[Lcom/facebook/imagepipeline/request/ImageRequest$b;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/imagepipeline/request/ImageRequest$b;
.locals 1
const-class v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/facebook/imagepipeline/request/ImageRequest$b;
return-object p0
.end method
.method public static values()[Lcom/facebook/imagepipeline/request/ImageRequest$b;
.locals 1
sget-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$b;->f:[Lcom/facebook/imagepipeline/request/ImageRequest$b;
invoke-virtual {v0}, [Lcom/facebook/imagepipeline/request/ImageRequest$b;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/imagepipeline/request/ImageRequest$b;
return-object v0
.end method

View file

@ -0,0 +1,149 @@
.class public final enum Lcom/facebook/imagepipeline/request/ImageRequest$c;
.super Ljava/lang/Enum;
.source "ImageRequest.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/request/ImageRequest;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "c"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/imagepipeline/request/ImageRequest$c;",
">;"
}
.end annotation
# static fields
.field public static final enum d:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public static final enum e:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public static final enum f:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public static final enum g:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public static final synthetic h:[Lcom/facebook/imagepipeline/request/ImageRequest$c;
# instance fields
.field public mValue:I
# direct methods
.method public static constructor <clinit>()V
.locals 7
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
const-string v1, "FULL_FETCH"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/facebook/imagepipeline/request/ImageRequest$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->d:Lcom/facebook/imagepipeline/request/ImageRequest$c;
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
const-string v1, "DISK_CACHE"
const/4 v4, 0x2
invoke-direct {v0, v1, v3, v4}, Lcom/facebook/imagepipeline/request/ImageRequest$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->e:Lcom/facebook/imagepipeline/request/ImageRequest$c;
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
const-string v1, "ENCODED_MEMORY_CACHE"
const/4 v5, 0x3
invoke-direct {v0, v1, v4, v5}, Lcom/facebook/imagepipeline/request/ImageRequest$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->f:Lcom/facebook/imagepipeline/request/ImageRequest$c;
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
const-string v1, "BITMAP_MEMORY_CACHE"
const/4 v6, 0x4
invoke-direct {v0, v1, v5, v6}, Lcom/facebook/imagepipeline/request/ImageRequest$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->g:Lcom/facebook/imagepipeline/request/ImageRequest$c;
new-array v1, v6, [Lcom/facebook/imagepipeline/request/ImageRequest$c;
sget-object v6, Lcom/facebook/imagepipeline/request/ImageRequest$c;->d:Lcom/facebook/imagepipeline/request/ImageRequest$c;
aput-object v6, v1, v2
sget-object v2, Lcom/facebook/imagepipeline/request/ImageRequest$c;->e:Lcom/facebook/imagepipeline/request/ImageRequest$c;
aput-object v2, v1, v3
sget-object v2, Lcom/facebook/imagepipeline/request/ImageRequest$c;->f:Lcom/facebook/imagepipeline/request/ImageRequest$c;
aput-object v2, v1, v4
aput-object v0, v1, v5
sput-object v1, Lcom/facebook/imagepipeline/request/ImageRequest$c;->h:[Lcom/facebook/imagepipeline/request/ImageRequest$c;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->mValue:I
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/imagepipeline/request/ImageRequest$c;
.locals 1
const-class v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/facebook/imagepipeline/request/ImageRequest$c;
return-object p0
.end method
.method public static values()[Lcom/facebook/imagepipeline/request/ImageRequest$c;
.locals 1
sget-object v0, Lcom/facebook/imagepipeline/request/ImageRequest$c;->h:[Lcom/facebook/imagepipeline/request/ImageRequest$c;
invoke-virtual {v0}, [Lcom/facebook/imagepipeline/request/ImageRequest$c;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/imagepipeline/request/ImageRequest$c;
return-object v0
.end method

View file

@ -0,0 +1,776 @@
.class public Lcom/facebook/imagepipeline/request/ImageRequest;
.super Ljava/lang/Object;
.source "ImageRequest.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/request/ImageRequest$c;,
Lcom/facebook/imagepipeline/request/ImageRequest$b;
}
.end annotation
# static fields
.field public static final s:Lf/g/d/d/d;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/g/d/d/d<",
"Lcom/facebook/imagepipeline/request/ImageRequest;",
"Landroid/net/Uri;",
">;"
}
.end annotation
.end field
# instance fields
.field public final a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
.field public final b:Landroid/net/Uri;
.field public final c:I
.field public d:Ljava/io/File;
.field public final e:Z
.field public final f:Z
.field public final g:Lf/g/j/d/b;
.field public final h:Lf/g/j/d/e;
.field public final i:Lf/g/j/d/f;
.field public final j:Lf/g/j/d/a;
.field public final k:Lf/g/j/d/d;
.field public final l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public final m:Z
.field public final n:Z
.field public final o:Ljava/lang/Boolean;
.field public final p:Lf/g/j/r/b;
.field public final q:Lf/g/j/l/e;
.field public final r:Ljava/lang/Boolean;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest$a;
invoke-direct {v0}, Lcom/facebook/imagepipeline/request/ImageRequest$a;-><init>()V
sput-object v0, Lcom/facebook/imagepipeline/request/ImageRequest;->s:Lf/g/d/d/d;
return-void
.end method
.method public constructor <init>(Lcom/facebook/imagepipeline/request/ImageRequestBuilder;)V
.locals 5
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->f:Lcom/facebook/imagepipeline/request/ImageRequest$b;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
goto/16 :goto_1
:cond_0
invoke-static {v0}, Lf/g/d/l/b;->f(Landroid/net/Uri;)Z
move-result v3
if-eqz v3, :cond_1
const/4 v0, 0x0
goto :goto_2
:cond_1
invoke-static {v0}, Lf/g/d/l/b;->e(Landroid/net/Uri;)Z
move-result v3
if-eqz v3, :cond_4
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lf/g/d/f/a;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_2
const-string v3, "video/"
invoke-virtual {v0, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_2
const/4 v0, 0x1
goto :goto_0
:cond_2
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_3
const/4 v0, 0x2
goto :goto_2
:cond_3
const/4 v0, 0x3
goto :goto_2
:cond_4
invoke-static {v0}, Lf/g/d/l/b;->d(Landroid/net/Uri;)Z
move-result v3
if-eqz v3, :cond_5
const/4 v0, 0x4
goto :goto_2
:cond_5
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v3
const-string v4, "asset"
invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_6
const/4 v0, 0x5
goto :goto_2
:cond_6
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v3
const-string v4, "res"
invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_7
const/4 v0, 0x6
goto :goto_2
:cond_7
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v3
const-string v4, "data"
invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_8
const/4 v0, 0x7
goto :goto_2
:cond_8
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v0
const-string v3, "android.resource"
invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
const/16 v0, 0x8
goto :goto_2
:cond_9
:goto_1
const/4 v0, -0x1
:goto_2
iput v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->c:I
iget-boolean v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->g:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->e:Z
iget-boolean v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->h:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->f:Z
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->e:Lf/g/j/d/b;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->g:Lf/g/j/d/b;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->c:Lf/g/j/d/e;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->h:Lf/g/j/d/e;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->d:Lf/g/j/d/f;
if-nez v0, :cond_a
sget-object v0, Lf/g/j/d/f;->c:Lf/g/j/d/f;
:cond_a
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->i:Lf/g/j/d/f;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->o:Lf/g/j/d/a;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->j:Lf/g/j/d/a;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->i:Lf/g/j/d/d;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->k:Lf/g/j/d/d;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b:Lcom/facebook/imagepipeline/request/ImageRequest$c;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
iget-boolean v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->k:Z
if-eqz v0, :cond_b
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-static {v0}, Lf/g/d/l/b;->f(Landroid/net/Uri;)Z
move-result v0
if-eqz v0, :cond_b
goto :goto_3
:cond_b
const/4 v1, 0x0
:goto_3
iput-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->m:Z
iget-boolean v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->l:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->n:Z
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->m:Ljava/lang/Boolean;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->o:Ljava/lang/Boolean;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->j:Lf/g/j/r/b;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->p:Lf/g/j/r/b;
iget-object v0, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->n:Lf/g/j/l/e;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->q:Lf/g/j/l/e;
iget-object p1, p1, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->p:Ljava/lang/Boolean;
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->r:Ljava/lang/Boolean;
return-void
.end method
# virtual methods
.method public declared-synchronized a()Ljava/io/File;
.locals 2
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->d:Ljava/io/File;
if-nez v0, :cond_0
new-instance v0, Ljava/io/File;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
invoke-virtual {v1}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->d:Ljava/io/File;
:cond_0
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->d:Ljava/io/File;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 3
instance-of v0, p1, Lcom/facebook/imagepipeline/request/ImageRequest;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
check-cast p1, Lcom/facebook/imagepipeline/request/ImageRequest;
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->f:Z
iget-boolean v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->f:Z
if-eq v0, v2, :cond_1
return v1
:cond_1
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->m:Z
iget-boolean v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->m:Z
if-eq v0, v2, :cond_2
return v1
:cond_2
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->n:Z
iget-boolean v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->n:Z
if-eq v0, v2, :cond_3
return v1
:cond_3
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->d:Ljava/io/File;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->d:Ljava/io/File;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->j:Lf/g/j/d/a;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->j:Lf/g/j/d/a;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->g:Lf/g/j/d/b;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->g:Lf/g/j/d/b;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->h:Lf/g/j/d/e;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->h:Lf/g/j/d/e;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->k:Lf/g/j/d/d;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->k:Lf/g/j/d/d;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->o:Ljava/lang/Boolean;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->o:Ljava/lang/Boolean;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->r:Ljava/lang/Boolean;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->r:Ljava/lang/Boolean;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->i:Lf/g/j/d/f;
iget-object v2, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->i:Lf/g/j/d/f;
invoke-static {v0, v2}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_4
goto :goto_1
:cond_4
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->p:Lf/g/j/r/b;
const/4 v1, 0x0
if-eqz v0, :cond_5
invoke-interface {v0}, Lf/g/j/r/b;->getPostprocessorCacheKey()Lcom/facebook/cache/common/CacheKey;
move-result-object v0
goto :goto_0
:cond_5
move-object v0, v1
:goto_0
iget-object p1, p1, Lcom/facebook/imagepipeline/request/ImageRequest;->p:Lf/g/j/r/b;
if-eqz p1, :cond_6
invoke-interface {p1}, Lf/g/j/r/b;->getPostprocessorCacheKey()Lcom/facebook/cache/common/CacheKey;
move-result-object v1
:cond_6
invoke-static {v0, v1}, Lt/a/b/b/a;->s(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
:cond_7
:goto_1
return v1
.end method
.method public hashCode()I
.locals 4
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->p:Lf/g/j/r/b;
if-eqz v0, :cond_0
invoke-interface {v0}, Lf/g/j/r/b;->getPostprocessorCacheKey()Lcom/facebook/cache/common/CacheKey;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const/16 v1, 0xe
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
aput-object v3, v1, v2
const/4 v2, 0x1
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
aput-object v3, v1, v2
const/4 v2, 0x2
iget-boolean v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->f:Z
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x3
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->j:Lf/g/j/d/a;
aput-object v3, v1, v2
const/4 v2, 0x4
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->k:Lf/g/j/d/d;
aput-object v3, v1, v2
const/4 v2, 0x5
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
aput-object v3, v1, v2
const/4 v2, 0x6
iget-boolean v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->m:Z
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x7
iget-boolean v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->n:Z
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v3
aput-object v3, v1, v2
const/16 v2, 0x8
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->g:Lf/g/j/d/b;
aput-object v3, v1, v2
const/16 v2, 0x9
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->o:Ljava/lang/Boolean;
aput-object v3, v1, v2
const/16 v2, 0xa
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->h:Lf/g/j/d/e;
aput-object v3, v1, v2
const/16 v2, 0xb
iget-object v3, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->i:Lf/g/j/d/f;
aput-object v3, v1, v2
const/16 v2, 0xc
aput-object v0, v1, v2
const/16 v0, 0xd
iget-object v2, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->r:Ljava/lang/Boolean;
aput-object v2, v1, v0
invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 3
invoke-static {p0}, Lt/a/b/b/a;->f0(Ljava/lang/Object;)Lf/g/d/d/i;
move-result-object v0
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->b:Landroid/net/Uri;
const-string v2, "uri"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->a:Lcom/facebook/imagepipeline/request/ImageRequest$b;
const-string v2, "cacheChoice"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->g:Lf/g/j/d/b;
const-string v2, "decodeOptions"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->p:Lf/g/j/r/b;
const-string v2, "postprocessor"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->k:Lf/g/j/d/d;
const-string v2, "priority"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->h:Lf/g/j/d/e;
const-string v2, "resizeOptions"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->i:Lf/g/j/d/f;
const-string v2, "rotationOptions"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->j:Lf/g/j/d/a;
const-string v2, "bytesRange"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->r:Ljava/lang/Boolean;
const-string v2, "resizingAllowedOverride"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->e:Z
const-string v2, "progressiveRenderingEnabled"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->b(Ljava/lang/String;Z)Lf/g/d/d/i;
iget-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->f:Z
const-string v2, "localThumbnailPreviewsEnabled"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->b(Ljava/lang/String;Z)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->l:Lcom/facebook/imagepipeline/request/ImageRequest$c;
const-string v2, "lowestPermittedRequestLevel"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
iget-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->m:Z
const-string v2, "isDiskCacheEnabled"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->b(Ljava/lang/String;Z)Lf/g/d/d/i;
iget-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->n:Z
const-string v2, "isMemoryCacheEnabled"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->b(Ljava/lang/String;Z)Lf/g/d/d/i;
iget-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequest;->o:Ljava/lang/Boolean;
const-string v2, "decodePrefetches"
invoke-virtual {v0, v2, v1}, Lf/g/d/d/i;->c(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/i;
invoke-virtual {v0}, Lf/g/d/d/i;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -0,0 +1,30 @@
.class public Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
.super Ljava/lang/RuntimeException;
.source "ImageRequestBuilder.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "BuilderException"
.end annotation
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const-string v0, "Invalid request builder: "
invoke-static {v0, p1}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
return-void
.end method

View file

@ -0,0 +1,262 @@
.class public Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.super Ljava/lang/Object;
.source "ImageRequestBuilder.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
}
.end annotation
# instance fields
.field public a:Landroid/net/Uri;
.field public b:Lcom/facebook/imagepipeline/request/ImageRequest$c;
.field public c:Lf/g/j/d/e;
.field public d:Lf/g/j/d/f;
.field public e:Lf/g/j/d/b;
.field public f:Lcom/facebook/imagepipeline/request/ImageRequest$b;
.field public g:Z
.field public h:Z
.field public i:Lf/g/j/d/d;
.field public j:Lf/g/j/r/b;
.field public k:Z
.field public l:Z
.field public m:Ljava/lang/Boolean;
.field public n:Lf/g/j/l/e;
.field public o:Lf/g/j/d/a;
.field public p:Ljava/lang/Boolean;
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
sget-object v1, Lcom/facebook/imagepipeline/request/ImageRequest$c;->d:Lcom/facebook/imagepipeline/request/ImageRequest$c;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b:Lcom/facebook/imagepipeline/request/ImageRequest$c;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->c:Lf/g/j/d/e;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->d:Lf/g/j/d/f;
sget-object v1, Lf/g/j/d/b;->k:Lf/g/j/d/b;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->e:Lf/g/j/d/b;
sget-object v1, Lcom/facebook/imagepipeline/request/ImageRequest$b;->e:Lcom/facebook/imagepipeline/request/ImageRequest$b;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->f:Lcom/facebook/imagepipeline/request/ImageRequest$b;
sget-object v1, Lf/g/j/e/k;->H:Lf/g/j/e/k$b;
iget-boolean v1, v1, Lf/g/j/e/k$b;->a:Z
iput-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->g:Z
const/4 v1, 0x0
iput-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->h:Z
sget-object v1, Lf/g/j/d/d;->f:Lf/g/j/d/d;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->i:Lf/g/j/d/d;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->j:Lf/g/j/r/b;
const/4 v1, 0x1
iput-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->k:Z
iput-boolean v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->l:Z
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->m:Ljava/lang/Boolean;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->o:Lf/g/j/d/a;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->p:Ljava/lang/Boolean;
return-void
.end method
.method public static b(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 1
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
invoke-direct {v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;-><init>()V
if-eqz p0, :cond_0
iput-object p0, v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
return-object v0
:cond_0
const/4 p0, 0x0
throw p0
.end method
# virtual methods
.method public a()Lcom/facebook/imagepipeline/request/ImageRequest;
.locals 2
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
if-eqz v0, :cond_5
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v0
const-string v1, "res"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-virtual {v0}, Landroid/net/Uri;->isAbsolute()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
:try_start_0
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
const-string v1, "Resource URI path must be a resource id."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;-><init>(Ljava/lang/String;)V
throw v0
:cond_0
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
const-string v1, "Resource URI must not be empty"
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
const-string v1, "Resource URI path must be absolute."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
:goto_0
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-static {v0}, Lf/g/d/l/b;->a(Landroid/net/Uri;)Ljava/lang/String;
move-result-object v0
const-string v1, "asset"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-virtual {v0}, Landroid/net/Uri;->isAbsolute()Z
move-result v0
if-eqz v0, :cond_3
goto :goto_1
:cond_3
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
const-string v1, "Asset URI path must be absolute."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;-><init>(Ljava/lang/String;)V
throw v0
:cond_4
:goto_1
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequest;
invoke-direct {v0, p0}, Lcom/facebook/imagepipeline/request/ImageRequest;-><init>(Lcom/facebook/imagepipeline/request/ImageRequestBuilder;)V
return-object v0
:cond_5
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;
const-string v1, "Source must be set!"
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$BuilderException;-><init>(Ljava/lang/String;)V
throw v0
.end method