Changes of com.discord v1144

This commit is contained in:
distok 2020-05-17 12:25:53 +00:00
parent 3b0c33520d
commit 4746542b20
25752 changed files with 77 additions and 4382359 deletions

View file

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

View file

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

View file

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

View file

@ -1,89 +0,0 @@
.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(II)Lcom/facebook/common/references/CloseableReference;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(II)",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/imagepipeline/bitmaps/PlatformBitmapFactory;->a(IILandroid/graphics/Bitmap$Config;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
return-object p1
.end method
.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;",
")",
"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 b(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;->c(IILandroid/graphics/Bitmap$Config;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
return-object p1
.end method
.method public abstract c(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

@ -1,143 +0,0 @@
.class public Lcom/facebook/imagepipeline/cache/DefaultBitmapMemoryCacheParamsSupplier;
.super Ljava/lang/Object;
.source "DefaultBitmapMemoryCacheParamsSupplier.java"
# interfaces
.implements Lf/j/d/d/i;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lf/j/d/d/i<",
"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
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
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

@ -1,39 +0,0 @@
.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

@ -1,357 +0,0 @@
.class public Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
.super Ljava/lang/Object;
.source "ImageDecodeOptions.java"
# static fields
.field public static final j:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
# instance fields
.field public final a:I
.field public final b:Z
.field public final c:Z
.field public final d:Z
.field public final e:Z
.field public final f:Landroid/graphics/Bitmap$Config;
.field public final g:Lf/j/j/h/c;
.field public final h:Lf/j/j/s/a;
.field public final i:Landroid/graphics/ColorSpace;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lf/j/j/d/b;
invoke-direct {v0}, Lf/j/j/d/b;-><init>()V
new-instance v1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
invoke-direct {v1, v0}, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;-><init>(Lf/j/j/d/b;)V
sput-object v1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->j:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
return-void
.end method
.method public constructor <init>(Lf/j/j/d/b;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget v0, p1, Lf/j/j/d/b;->a:I
iput v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->a:I
iget-boolean v0, p1, Lf/j/j/d/b;->b:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->b:Z
iget-boolean v0, p1, Lf/j/j/d/b;->c:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->c:Z
iget-boolean v0, p1, Lf/j/j/d/b;->d:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->d:Z
iget-boolean v0, p1, Lf/j/j/d/b;->e:Z
iput-boolean v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->e:Z
iget-object v0, p1, Lf/j/j/d/b;->f:Landroid/graphics/Bitmap$Config;
iput-object v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->f:Landroid/graphics/Bitmap$Config;
iget-object v0, p1, Lf/j/j/d/b;->g:Lf/j/j/h/c;
iput-object v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->g:Lf/j/j/h/c;
iget-object p1, p1, Lf/j/j/d/b;->h:Landroid/graphics/ColorSpace;
iput-object p1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->i:Landroid/graphics/ColorSpace;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_9
const-class v2, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_1
goto :goto_0
:cond_1
check-cast p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
iget-boolean v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->b:Z
iget-boolean v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->b:Z
if-eq v2, v3, :cond_2
return v1
:cond_2
iget-boolean v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->c:Z
iget-boolean v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->c:Z
if-eq v2, v3, :cond_3
return v1
:cond_3
iget-boolean v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->d:Z
iget-boolean v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->d:Z
if-eq v2, v3, :cond_4
return v1
:cond_4
iget-boolean v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->e:Z
iget-boolean v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->e:Z
if-eq v2, v3, :cond_5
return v1
:cond_5
iget-object v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->f:Landroid/graphics/Bitmap$Config;
iget-object v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->f:Landroid/graphics/Bitmap$Config;
if-eq v2, v3, :cond_6
return v1
:cond_6
iget-object v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->g:Lf/j/j/h/c;
iget-object v3, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->g:Lf/j/j/h/c;
if-eq v2, v3, :cond_7
return v1
:cond_7
iget-object v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->i:Landroid/graphics/ColorSpace;
iget-object p1, p1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->i:Landroid/graphics/ColorSpace;
if-eq v2, p1, :cond_8
return v1
:cond_8
return v0
:cond_9
:goto_0
return v1
.end method
.method public hashCode()I
.locals 3
iget v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->a:I
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->b:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->c:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->d:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->e:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->f:Landroid/graphics/Bitmap$Config;
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->ordinal()I
move-result v1
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x1f
iget-object v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->g:Lf/j/j/h/c;
const/4 v2, 0x0
if-eqz v0, :cond_0
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
add-int/2addr v1, v0
mul-int/lit8 v1, v1, 0x1f
add-int/2addr v1, v2
mul-int/lit8 v1, v1, 0x1f
iget-object v0, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->i:Landroid/graphics/ColorSpace;
if-eqz v0, :cond_1
invoke-virtual {v0}, Landroid/graphics/ColorSpace;->hashCode()I
move-result v2
:cond_1
add-int/2addr v1, v2
return v1
.end method
.method public toString()Ljava/lang/String;
.locals 4
const/16 v0, 0x9
new-array v0, v0, [Ljava/lang/Object;
iget v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->a:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x0
aput-object v1, v0, v2
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->b:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->c:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
const/4 v2, 0x2
aput-object v1, v0, v2
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->d:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
const/4 v2, 0x3
aput-object v1, v0, v2
iget-boolean v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->e:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
const/4 v2, 0x4
aput-object v1, v0, v2
iget-object v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->f:Landroid/graphics/Bitmap$Config;
invoke-virtual {v1}, Landroid/graphics/Bitmap$Config;->name()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x5
aput-object v1, v0, v2
iget-object v1, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->g:Lf/j/j/h/c;
const/4 v2, 0x6
aput-object v1, v0, v2
const/4 v1, 0x0
const/4 v2, 0x7
aput-object v1, v0, v2
iget-object v2, p0, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->i:Landroid/graphics/ColorSpace;
const/16 v3, 0x8
aput-object v2, v0, v3
const-string v2, "%d-%b-%b-%b-%b-%b-%s-%s-%s"
invoke-static {v1, v2, v0}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View file

@ -1,116 +0,0 @@
.class public abstract Lcom/facebook/imagepipeline/image/CloseableImage;
.super Ljava/lang/Object;
.source "CloseableImage.java"
# interfaces
.implements Ljava/io/Closeable;
.implements Lcom/facebook/imagepipeline/image/ImageInfo;
# static fields
.field public static final TAG:Ljava/lang/String; = "CloseableImage"
# 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 abstract close()V
.end method
.method public finalize()V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
invoke-virtual {p0}, Lcom/facebook/imagepipeline/image/CloseableImage;->isClosed()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v2
aput-object v2, v0, v1
const/4 v1, 0x1
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const-string v1, "CloseableImage"
const-string v2, "finalize: %s %x still open."
invoke-static {v1, v2, v0}, Lf/j/d/f/a;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/image/CloseableImage;->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 getQualityInfo()Lcom/facebook/imagepipeline/image/QualityInfo;
.locals 1
sget-object v0, Lf/j/j/j/d;->d:Lcom/facebook/imagepipeline/image/QualityInfo;
return-object v0
.end method
.method public abstract getSizeInBytes()I
.end method
.method public abstract isClosed()Z
.end method
.method public isStateful()Z
.locals 1
const/4 v0, 0x0
return v0
.end method

View file

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

View file

@ -1,14 +0,0 @@
.class public interface abstract Lcom/facebook/imagepipeline/image/QualityInfo;
.super Ljava/lang/Object;
.source "QualityInfo.java"
# virtual methods
.method public abstract a()Z
.end method
.method public abstract b()Z
.end method
.method public abstract c()I
.end method

View file

@ -1,715 +0,0 @@
.class public Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;
.super Ljava/lang/Object;
.source "NativeMemoryChunk.java"
# interfaces
.implements Lf/j/j/l/s;
.implements Ljava/io/Closeable;
# annotations
.annotation build Lf/j/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 0
invoke-static {}, Lf/j/j/m/a;->a()V
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}, Ls/a/b/b/a;->a(Z)V
iput p1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
iget 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/j/d/d/c;
.end annotation
.end method
.method public static native nativeCopyFromByteArray(J[BII)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
.method public static native nativeCopyToByteArray(J[BII)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
.method public static native nativeFree(J)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
.method public static native nativeMemcpy(JJI)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
.method public static native nativeReadByte(J)B
.annotation build Lf/j/d/d/c;
.end annotation
.end method
# virtual methods
.method public declared-synchronized a(I)B
.locals 4
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->a()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}, Ls/a/b/b/a;->b(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}, Ls/a/b/b/a;->a(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}, Ls/a/b/b/a;->a(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 a(I[BII)I
.locals 4
monitor-enter p0
if-eqz p2, :cond_1
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->a()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}, Ls/a/b/b/a;->b(Z)V
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, p4, v0}, Ls/a/b/b/a;->a(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}, Ls/a/b/b/a;->a(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
:try_start_1
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
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 a(ILf/j/j/l/s;II)V
.locals 5
if-eqz p2, :cond_2
invoke-interface {p2}, Lf/j/j/l/s;->getUniqueId()J
move-result-wide v0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->getUniqueId()J
move-result-wide v2
cmp-long v4, v0, v2
if-nez v4, :cond_0
const-string v0, "Copying from NativeMemoryChunk "
invoke-static {v0}, Lf/e/b/a/a;->a(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, " to NativeMemoryChunk "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {p2}, 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, " which share the same address "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
invoke-static {v1, v2}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;
move-result-object v1
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
const/4 v0, 0x0
invoke-static {v0}, Ls/a/b/b/a;->a(Z)V
:cond_0
invoke-interface {p2}, Lf/j/j/l/s;->getUniqueId()J
move-result-wide v0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->getUniqueId()J
move-result-wide v2
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;->b(ILf/j/j/l/s;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;->b(ILf/j/j/l/s;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
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
.end method
.method public declared-synchronized a()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 b(I[BII)I
.locals 4
monitor-enter p0
if-eqz p2, :cond_1
:try_start_0
invoke-virtual {p0}, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->a()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}, Ls/a/b/b/a;->b(Z)V
iget v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, p4, v0}, Ls/a/b/b/a;->a(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}, Ls/a/b/b/a;->a(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
goto :goto_1
:cond_1
:try_start_1
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
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 b()Ljava/nio/ByteBuffer;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public final b(ILf/j/j/l/s;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;->a()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
invoke-interface {p2}, Lf/j/j/l/s;->a()Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Ls/a/b/b/a;->b(Z)V
invoke-interface {p2}, Lf/j/j/l/s;->getSize()I
move-result v0
iget v1, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->e:I
invoke-static {p1, v0, p3, p4, v1}, Ls/a/b/b/a;->a(IIIII)V
invoke-interface {p2}, Lf/j/j/l/s;->c()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 c()J
.locals 2
iget-wide v0, p0, Lcom/facebook/imagepipeline/memory/NativeMemoryChunk;->d:J
return-wide v0
.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;->a()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
const-string v0, "finalize: Chunk "
invoke-static {v0}, Lf/e/b/a/a;->a(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 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

View file

@ -1,119 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/Bitmaps;
.super Ljava/lang/Object;
.source "Bitmaps.java"
# annotations
.annotation build Lf/j/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 0
invoke-static {}, Lf/j/j/m/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 a(Landroid/graphics/Bitmap;Landroid/graphics/Bitmap;)V
.locals 4
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}, Ls/a/b/b/a;->a(Z)V
invoke-virtual {p0}, Landroid/graphics/Bitmap;->isMutable()Z
move-result v0
invoke-static {v0}, Ls/a/b/b/a;->a(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}, Ls/a/b/b/a;->a(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}, Ls/a/b/b/a;->a(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/j/d/d/c;
.end annotation
.end method

View file

@ -1,27 +0,0 @@
.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/j/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

@ -1,413 +0,0 @@
.class public abstract Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;
.super Ljava/lang/Object;
.source "DalvikPurgeableDecoder.java"
# interfaces
.implements Lf/j/j/n/d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder$OreoUtils;
}
.end annotation
.annotation build Lf/j/d/d/c;
.end annotation
# static fields
.field public static final b:[B
# instance fields
.field public final a:Lf/j/j/l/b;
# direct methods
.method public static constructor <clinit>()V
.locals 1
invoke-static {}, Lf/j/j/m/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 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {}, Lf/j/j/l/c;->a()Lf/j/j/l/b;
move-result-object v0
iput-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
return-void
.end method
.method public static a(ILandroid/graphics/Bitmap$Config;)Landroid/graphics/BitmapFactory$Options;
.locals 2
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 p1, 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 p0, v0, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I
sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inMutable:Z
return-object v0
.end method
.method public static native nativePinBitmap(Landroid/graphics/Bitmap;)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
# virtual methods
.method public abstract a(Lcom/facebook/common/references/CloseableReference;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lf/j/d/h/g;",
">;I",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
.end method
.method public abstract a(Lcom/facebook/common/references/CloseableReference;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lf/j/d/h/g;",
">;",
"Landroid/graphics/BitmapFactory$Options;",
")",
"Landroid/graphics/Bitmap;"
}
.end annotation
.end method
.method public a(Landroid/graphics/Bitmap;)Lcom/facebook/common/references/CloseableReference;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/Bitmap;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
if-eqz p1, :cond_1
: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/j/j/l/b;
invoke-virtual {v0, p1}, Lf/j/j/l/b;->b(Landroid/graphics/Bitmap;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
iget-object v0, v0, Lf/j/j/l/b;->e:Lf/j/d/i/b;
invoke-static {p1, v0}, Lcom/facebook/common/references/CloseableReference;->a(Ljava/lang/Object;Lf/j/d/i/b;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
return-object p1
:cond_0
invoke-static {p1}, Lf/j/k/a;->a(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/4 v1, 0x5
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v1, v2
const/4 v0, 0x1
iget-object v2, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
invoke-virtual {v2}, Lf/j/j/l/b;->a()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v0
const/4 v0, 0x2
iget-object v2, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
invoke-virtual {v2}, Lf/j/j/l/b;->d()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
aput-object v2, v1, v0
const/4 v0, 0x3
iget-object v2, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
invoke-virtual {v2}, Lf/j/j/l/b;->b()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v0
const/4 v0, 0x4
iget-object v2, p0, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a:Lf/j/j/l/b;
invoke-virtual {v2}, Lf/j/j/l/b;->c()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v1, v0
const-string v0, "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."
invoke-static {p1, v0, v1}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
new-instance v0, Lf/j/j/d/f;
invoke-direct {v0, p1}, Lf/j/j/d/f;-><init>(Ljava/lang/String;)V
throw v0
:catch_0
move-exception v0
invoke-virtual {p1}, Landroid/graphics/Bitmap;->recycle()V
invoke-static {v0}, Ls/a/b/b/a;->b(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
const/4 p1, 0x0
throw p1
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
.end method
.method public a(Lcom/facebook/imagepipeline/image/EncodedImage;Landroid/graphics/Bitmap$Config;Landroid/graphics/Rect;ILandroid/graphics/ColorSpace;)Lcom/facebook/common/references/CloseableReference;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/imagepipeline/image/EncodedImage;",
"Landroid/graphics/Bitmap$Config;",
"Landroid/graphics/Rect;",
"I",
"Landroid/graphics/ColorSpace;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->j()I
move-result p3
invoke-static {p3, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a(ILandroid/graphics/Bitmap$Config;)Landroid/graphics/BitmapFactory$Options;
move-result-object p2
sget p3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x1a
if-lt p3, v0, :cond_1
if-nez p5, :cond_0
sget-object p3, Landroid/graphics/ColorSpace$Named;->SRGB:Landroid/graphics/ColorSpace$Named;
invoke-static {p3}, Landroid/graphics/ColorSpace;->get(Landroid/graphics/ColorSpace$Named;)Landroid/graphics/ColorSpace;
move-result-object p5
:cond_0
iput-object p5, p2, Landroid/graphics/BitmapFactory$Options;->inPreferredColorSpace:Landroid/graphics/ColorSpace;
:cond_1
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->b()Lcom/facebook/common/references/CloseableReference;
move-result-object p1
invoke-static {p1}, Ls/a/b/b/a;->a(Ljava/lang/Object;)Ljava/lang/Object;
:try_start_0
invoke-virtual {p0, p1, p4, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a(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;->a(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-static {p1}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)V
return-object p2
:catchall_0
move-exception p2
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)V
throw p2
.end method
.method public a(Lcom/facebook/imagepipeline/image/EncodedImage;Landroid/graphics/Bitmap$Config;Landroid/graphics/Rect;Landroid/graphics/ColorSpace;)Lcom/facebook/common/references/CloseableReference;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/imagepipeline/image/EncodedImage;",
"Landroid/graphics/Bitmap$Config;",
"Landroid/graphics/Rect;",
"Landroid/graphics/ColorSpace;",
")",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->j()I
move-result p3
invoke-static {p3, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a(ILandroid/graphics/Bitmap$Config;)Landroid/graphics/BitmapFactory$Options;
move-result-object p2
sget p3, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v0, 0x1a
if-lt p3, v0, :cond_1
if-nez p4, :cond_0
sget-object p3, Landroid/graphics/ColorSpace$Named;->SRGB:Landroid/graphics/ColorSpace$Named;
invoke-static {p3}, Landroid/graphics/ColorSpace;->get(Landroid/graphics/ColorSpace$Named;)Landroid/graphics/ColorSpace;
move-result-object p4
:cond_0
iput-object p4, p2, Landroid/graphics/BitmapFactory$Options;->inPreferredColorSpace:Landroid/graphics/ColorSpace;
:cond_1
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->b()Lcom/facebook/common/references/CloseableReference;
move-result-object p1
invoke-static {p1}, Ls/a/b/b/a;->a(Ljava/lang/Object;)Ljava/lang/Object;
:try_start_0
invoke-virtual {p0, p1, p2}, Lcom/facebook/imagepipeline/nativecode/DalvikPurgeableDecoder;->a(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;->a(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-static {p1}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)V
return-object p2
:catchall_0
move-exception p2
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)V
throw p2
.end method

View file

@ -1,33 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeBlurFilter;
.super Ljava/lang/Object;
.source "NativeBlurFilter.java"
# annotations
.annotation build Lf/j/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "native-filters"
invoke-static {v0}, Lcom/facebook/soloader/SoLoader;->a(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/j/d/d/c;
.end annotation
.end method

View file

@ -1,464 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;
.super Ljava/lang/Object;
.source "NativeJpegTranscoder.java"
# interfaces
.implements Lf/j/j/r/b;
# annotations
.annotation build Lf/j/d/d/c;
.end annotation
# instance fields
.field public a:Z
.field public b:I
.field public c:Z
# direct methods
.method public static constructor <clinit>()V
.locals 0
invoke-static {}, Ls/a/b/b/a;->a()V
return-void
.end method
.method public constructor <init>(ZIZ)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
return-void
.end method
.method public static a(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ls/a/b/b/a;->a()V
const/4 v0, 0x0
const/4 v1, 0x1
if-lt p3, v1, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x10
if-gt p3, v2, :cond_1
const/4 v2, 0x1
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_1
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
if-ltz p4, :cond_2
const/4 v2, 0x1
goto :goto_2
:cond_2
const/4 v2, 0x0
:goto_2
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x64
if-gt p4, v2, :cond_3
const/4 v2, 0x1
goto :goto_3
:cond_3
const/4 v2, 0x0
:goto_3
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
invoke-static {p2}, Lf/j/j/r/d;->b(I)Z
move-result v2
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x8
if-ne p3, v2, :cond_4
if-eqz p2, :cond_5
:cond_4
const/4 v0, 0x1
:cond_5
const-string v1, "no transformation requested"
invoke-static {v0, v1}, Ls/a/b/b/a;->a(ZLjava/lang/Object;)V
if-eqz p0, :cond_7
if-eqz p1, :cond_6
invoke-static {p0, p1, p2, p3, p4}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->nativeTranscodeJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
return-void
:cond_6
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
throw p0
:cond_7
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
throw p0
.end method
.method public static b(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ls/a/b/b/a;->a()V
const/4 v0, 0x0
const/4 v1, 0x1
if-lt p3, v1, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x10
if-gt p3, v2, :cond_1
const/4 v2, 0x1
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_1
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
if-ltz p4, :cond_2
const/4 v2, 0x1
goto :goto_2
:cond_2
const/4 v2, 0x0
:goto_2
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x64
if-gt p4, v2, :cond_3
const/4 v2, 0x1
goto :goto_3
:cond_3
const/4 v2, 0x0
:goto_3
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
invoke-static {p2}, Lf/j/j/r/d;->a(I)Z
move-result v2
invoke-static {v2}, Ls/a/b/b/a;->a(Z)V
const/16 v2, 0x8
if-ne p3, v2, :cond_4
if-eq p2, v1, :cond_5
:cond_4
const/4 v0, 0x1
:cond_5
const-string v1, "no transformation requested"
invoke-static {v0, v1}, Ls/a/b/b/a;->a(ZLjava/lang/Object;)V
if-eqz p0, :cond_7
if-eqz p1, :cond_6
invoke-static {p0, p1, p2, p3, p4}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->nativeTranscodeJpegWithExifOrientation(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
return-void
:cond_6
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
throw p0
:cond_7
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
throw p0
.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/j/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/j/d/d/c;
.end annotation
.end method
# virtual methods
.method public a(Lcom/facebook/imagepipeline/image/EncodedImage;Ljava/io/OutputStream;Lf/j/j/d/e;Lf/j/j/d/d;Lf/j/i/c;Ljava/lang/Integer;)Lf/j/j/r/a;
.locals 4
.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/j/j/d/e;->c:Lf/j/j/d/e;
:cond_1
iget p5, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->b:I
invoke-static {p3, p4, p1, p5}, Ls/a/b/b/a;->a(Lf/j/j/d/e;Lf/j/j/d/d;Lcom/facebook/imagepipeline/image/EncodedImage;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/j/j/r/d;->a(Lf/j/j/d/e;Lf/j/j/d/d;Lcom/facebook/imagepipeline/image/EncodedImage;Z)I
move-result p4
const/16 v1, 0x8
div-int/2addr v1, p5
const/4 v2, 0x1
invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
move-result v1
iget-boolean v3, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->c:Z
if-eqz v3, :cond_2
move p4, v1
:cond_2
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->h()Ljava/io/InputStream;
move-result-object v0
sget-object v1, Lf/j/j/r/d;->a:Lf/j/d/d/d;
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->e()I
move-result v3
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
invoke-static {p3, p1}, Lf/j/j/r/d;->a(Lf/j/j/d/e;Lcom/facebook/imagepipeline/image/EncodedImage;)I
move-result p1
invoke-virtual {p6}, Ljava/lang/Integer;->intValue()I
move-result p3
invoke-static {v0, p2, p1, p4, p3}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->b(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
goto :goto_0
:cond_3
invoke-static {p3, p1}, Lf/j/j/r/d;->b(Lf/j/j/d/e;Lcom/facebook/imagepipeline/image/EncodedImage;)I
move-result p1
invoke-virtual {p6}, Ljava/lang/Integer;->intValue()I
move-result p3
invoke-static {v0, p2, p1, p4, p3}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->a(Ljava/io/InputStream;Ljava/io/OutputStream;III)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
invoke-static {v0}, Lf/j/d/d/a;->a(Ljava/io/InputStream;)V
new-instance p1, Lf/j/j/r/a;
if-ne p5, v2, :cond_4
goto :goto_1
:cond_4
const/4 v2, 0x0
:goto_1
invoke-direct {p1, v2}, Lf/j/j/r/a;-><init>(I)V
return-object p1
:catchall_0
move-exception p1
invoke-static {v0}, Lf/j/d/d/a;->a(Ljava/io/InputStream;)V
throw p1
.end method
.method public a()Ljava/lang/String;
.locals 1
const-string v0, "NativeJpegTranscoder"
return-object v0
.end method
.method public a(Lcom/facebook/imagepipeline/image/EncodedImage;Lf/j/j/d/e;Lf/j/j/d/d;)Z
.locals 1
if-nez p2, :cond_0
sget-object p2, Lf/j/j/d/e;->c:Lf/j/j/d/e;
:cond_0
iget-boolean v0, p0, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;->a:Z
invoke-static {p2, p3, p1, v0}, Lf/j/j/r/d;->a(Lf/j/j/d/e;Lf/j/j/d/d;Lcom/facebook/imagepipeline/image/EncodedImage;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 a(Lf/j/i/c;)Z
.locals 1
sget-object v0, Lf/j/i/b;->a:Lf/j/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

@ -1,60 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoderFactory;
.super Ljava/lang/Object;
.source "NativeJpegTranscoderFactory.java"
# interfaces
.implements Lf/j/j/r/c;
# annotations
.annotation build Lf/j/d/d/c;
.end annotation
# instance fields
.field public final a:I
.field public final b:Z
# direct methods
.method public constructor <init>(IZ)V
.locals 0
.annotation build Lf/j/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
return-void
.end method
# virtual methods
.method public createImageTranscoder(Lf/j/i/c;Z)Lf/j/j/r/b;
.locals 2
.annotation build Lf/j/d/d/c;
.end annotation
sget-object v0, Lf/j/i/b;->a:Lf/j/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
invoke-direct {p1, p2, v0, v1}, Lcom/facebook/imagepipeline/nativecode/NativeJpegTranscoder;-><init>(ZIZ)V
return-object p1
.end method

View file

@ -1,38 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/NativeRoundingFilter;
.super Ljava/lang/Object;
.source "NativeRoundingFilter.java"
# annotations
.annotation build Lf/j/d/d/c;
.end annotation
# direct methods
.method public static constructor <clinit>()V
.locals 1
const-string v0, "native-filters"
invoke-static {v0}, Lcom/facebook/soloader/SoLoader;->a(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 nativeToCircleFilter(Landroid/graphics/Bitmap;Z)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method
.method public static native nativeToCircleWithBorderFilter(Landroid/graphics/Bitmap;IIZ)V
.annotation build Lf/j/d/d/c;
.end annotation
.end method

View file

@ -1,164 +0,0 @@
.class public Lcom/facebook/imagepipeline/nativecode/WebpTranscoderImpl;
.super Ljava/lang/Object;
.source "WebpTranscoderImpl.java"
# interfaces
.implements Lf/j/j/m/d;
# annotations
.annotation build Lf/j/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/j/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/j/d/d/c;
.end annotation
.end method
# virtual methods
.method public a(Ljava/io/InputStream;Ljava/io/OutputStream;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ls/a/b/b/a;->b()V
if-eqz p1, :cond_1
if-eqz p2, :cond_0
invoke-static {p1, p2}, Lcom/facebook/imagepipeline/nativecode/WebpTranscoderImpl;->nativeTranscodeWebpToPng(Ljava/io/InputStream;Ljava/io/OutputStream;)V
return-void
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
.end method
.method public a(Ljava/io/InputStream;Ljava/io/OutputStream;I)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {}, Ls/a/b/b/a;->b()V
if-eqz p1, :cond_1
if-eqz p2, :cond_0
invoke-static {p1, p2, p3}, Lcom/facebook/imagepipeline/nativecode/WebpTranscoderImpl;->nativeTranscodeWebpToJpeg(Ljava/io/InputStream;Ljava/io/OutputStream;I)V
return-void
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
.end method
.method public a(Lf/j/i/c;)Z
.locals 1
sget-object v0, Lf/j/i/b;->f:Lf/j/i/c;
if-ne p1, v0, :cond_0
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 p1, 0x1
return p1
:cond_0
sget-object v0, Lf/j/i/b;->g:Lf/j/i/c;
if-eq p1, v0, :cond_3
sget-object v0, Lf/j/i/b;->h:Lf/j/i/c;
if-eq p1, v0, :cond_3
sget-object v0, Lf/j/i/b;->i:Lf/j/i/c;
if-ne p1, v0, :cond_1
goto :goto_0
:cond_1
sget-object v0, Lf/j/i/b;->j:Lf/j/i/c;
if-ne p1, v0, :cond_2
const/4 p1, 0x0
return p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Image format is not a WebP."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
:goto_0
sget-boolean p1, Lf/j/d/n/c;->b:Z
return p1
.end method

View file

@ -1,44 +0,0 @@
.class public Lcom/facebook/imagepipeline/platform/PreverificationHelper;
.super Ljava/lang/Object;
.source "PreverificationHelper.java"
# annotations
.annotation build Lf/j/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/j/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

@ -1,30 +0,0 @@
.class public Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;
.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 = "a"
.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/b/a/a;->a(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

@ -1,524 +0,0 @@
.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$a;
}
.end annotation
# instance fields
.field public a:Landroid/net/Uri;
.field public b:Lf/j/j/p/c$b;
.field public c:Lf/j/j/d/d;
.field public d:Lf/j/j/d/e;
.field public e:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
.field public f:Lf/j/j/p/c$a;
.field public g:Z
.field public h:Z
.field public i:Lf/j/j/d/c;
.field public j:Lf/j/j/p/d;
.field public k:Z
.field public l:Z
.field public m:Ljava/lang/Boolean;
.field public n:Lf/j/j/k/c;
.field public o:Lf/j/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, Lf/j/j/p/c$b;->d:Lf/j/j/p/c$b;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b:Lf/j/j/p/c$b;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->c:Lf/j/j/d/d;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->d:Lf/j/j/d/e;
sget-object v1, Lcom/facebook/imagepipeline/common/ImageDecodeOptions;->j:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->e:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
sget-object v1, Lf/j/j/p/c$a;->e:Lf/j/j/p/c$a;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->f:Lf/j/j/p/c$a;
sget-object v1, Lf/j/j/e/k;->C:Lf/j/j/e/k$b;
iget-boolean v1, v1, Lf/j/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/j/j/d/c;->f:Lf/j/j/d/c;
iput-object v1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->i:Lf/j/j/d/c;
iput-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->j:Lf/j/j/p/d;
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/j/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
invoke-virtual {v0, p0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public a(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
return-object p0
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
throw p1
.end method
.method public a(Lcom/facebook/imagepipeline/common/ImageDecodeOptions;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->e:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
return-object p0
.end method
.method public a(Lf/j/j/d/a;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->o:Lf/j/j/d/a;
return-object p0
.end method
.method public a(Lf/j/j/d/c;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->i:Lf/j/j/d/c;
return-object p0
.end method
.method public a(Lf/j/j/d/d;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->c:Lf/j/j/d/d;
return-object p0
.end method
.method public a(Lf/j/j/d/e;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->d:Lf/j/j/d/e;
return-object p0
.end method
.method public a(Lf/j/j/k/c;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->n:Lf/j/j/k/c;
return-object p0
.end method
.method public a(Lf/j/j/p/c$a;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->f:Lf/j/j/p/c$a;
return-object p0
.end method
.method public a(Lf/j/j/p/c$b;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b:Lf/j/j/p/c$b;
return-object p0
.end method
.method public a(Lf/j/j/p/d;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->j:Lf/j/j/p/d;
return-object p0
.end method
.method public a(Ljava/lang/Boolean;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-object p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->m:Ljava/lang/Boolean;
return-object p0
.end method
.method public a(Z)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-boolean p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->h:Z
return-object p0
.end method
.method public a()Lf/j/j/p/c;
.locals 1
invoke-virtual {p0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->r()V
new-instance v0, Lf/j/j/p/c;
invoke-direct {v0, p0}, Lf/j/j/p/c;-><init>(Lcom/facebook/imagepipeline/request/ImageRequestBuilder;)V
return-object v0
.end method
.method public b(Z)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;
.locals 0
iput-boolean p1, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->g:Z
return-object p0
.end method
.method public b()Lf/j/j/d/a;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->o:Lf/j/j/d/a;
return-object v0
.end method
.method public c()Lf/j/j/p/c$a;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->f:Lf/j/j/p/c$a;
return-object v0
.end method
.method public d()Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->e:Lcom/facebook/imagepipeline/common/ImageDecodeOptions;
return-object v0
.end method
.method public e()Lf/j/j/p/c$b;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->b:Lf/j/j/p/c$b;
return-object v0
.end method
.method public f()Lf/j/j/p/d;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->j:Lf/j/j/p/d;
return-object v0
.end method
.method public g()Lf/j/j/k/c;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->n:Lf/j/j/k/c;
return-object v0
.end method
.method public h()Lf/j/j/d/c;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->i:Lf/j/j/d/c;
return-object v0
.end method
.method public i()Lf/j/j/d/d;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->c:Lf/j/j/d/d;
return-object v0
.end method
.method public j()Ljava/lang/Boolean;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->p:Ljava/lang/Boolean;
return-object v0
.end method
.method public k()Lf/j/j/d/e;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->d:Lf/j/j/d/e;
return-object v0
.end method
.method public l()Landroid/net/Uri;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
return-object v0
.end method
.method public m()Z
.locals 1
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->k:Z
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
invoke-static {v0}, Lf/j/d/m/c;->g(Landroid/net/Uri;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public n()Z
.locals 1
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->h:Z
return v0
.end method
.method public o()Z
.locals 1
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->l:Z
return v0
.end method
.method public p()Z
.locals 1
iget-boolean v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->g:Z
return v0
.end method
.method public q()Ljava/lang/Boolean;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->m:Ljava/lang/Boolean;
return-object v0
.end method
.method public r()V
.locals 2
iget-object v0, p0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->a:Landroid/net/Uri;
if-eqz v0, :cond_5
invoke-static {v0}, Lf/j/d/m/c;->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$a;
const-string v1, "Resource URI path must be a resource id."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;-><init>(Ljava/lang/String;)V
throw v0
:cond_0
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;
const-string v1, "Resource URI must not be empty"
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;
const-string v1, "Resource URI path must be absolute."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;-><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/j/d/m/c;->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$a;
const-string v1, "Asset URI path must be absolute."
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;-><init>(Ljava/lang/String;)V
throw v0
:cond_4
:goto_1
return-void
:cond_5
new-instance v0, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;
const-string v1, "Source must be set!"
invoke-direct {v0, v1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder$a;-><init>(Ljava/lang/String;)V
throw v0
.end method