apkfuckery/com.discord/smali/com/facebook/imagepipeline/f/d.smali
2019-02-22 01:19:04 +01:00

447 lines
11 KiB
Smali

.class public final Lcom/facebook/imagepipeline/f/d;
.super Lcom/facebook/imagepipeline/f/b;
.source "CloseableStaticBitmap.java"
# annotations
.annotation build Ljavax/annotation/concurrent/ThreadSafe;
.end annotation
# instance fields
.field public final IH:I
.field public final II:I
.field private Rg:Lcom/facebook/common/references/CloseableReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/GuardedBy;
value = "this"
.end annotation
.end field
.field private final Rh:Lcom/facebook/imagepipeline/f/h;
.field public volatile mBitmap:Landroid/graphics/Bitmap;
# direct methods
.method public constructor <init>(Landroid/graphics/Bitmap;Lcom/facebook/common/references/b;Lcom/facebook/imagepipeline/f/h;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/Bitmap;",
"Lcom/facebook/common/references/b<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/facebook/imagepipeline/f/h;",
")V"
}
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, p2, p3, v0}, Lcom/facebook/imagepipeline/f/d;-><init>(Landroid/graphics/Bitmap;Lcom/facebook/common/references/b;Lcom/facebook/imagepipeline/f/h;I)V
return-void
.end method
.method private constructor <init>(Landroid/graphics/Bitmap;Lcom/facebook/common/references/b;Lcom/facebook/imagepipeline/f/h;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/graphics/Bitmap;",
"Lcom/facebook/common/references/b<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/facebook/imagepipeline/f/h;",
"I)V"
}
.end annotation
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/b;-><init>()V
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/graphics/Bitmap;
iput-object p1, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
iget-object p1, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {p2}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/facebook/common/references/b;
invoke-static {p1, p2}, Lcom/facebook/common/references/CloseableReference;->a(Ljava/lang/Object;Lcom/facebook/common/references/b;)Lcom/facebook/common/references/CloseableReference;
move-result-object p1
iput-object p1, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
iput-object p3, p0, Lcom/facebook/imagepipeline/f/d;->Rh:Lcom/facebook/imagepipeline/f/h;
const/4 p1, 0x0
iput p1, p0, Lcom/facebook/imagepipeline/f/d;->IH:I
iput p1, p0, Lcom/facebook/imagepipeline/f/d;->II:I
return-void
.end method
.method public constructor <init>(Lcom/facebook/common/references/CloseableReference;Lcom/facebook/imagepipeline/f/h;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/facebook/imagepipeline/f/h;",
")V"
}
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0, v0}, Lcom/facebook/imagepipeline/f/d;-><init>(Lcom/facebook/common/references/CloseableReference;Lcom/facebook/imagepipeline/f/h;II)V
return-void
.end method
.method public constructor <init>(Lcom/facebook/common/references/CloseableReference;Lcom/facebook/imagepipeline/f/h;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/facebook/imagepipeline/f/h;",
"II)V"
}
.end annotation
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/b;-><init>()V
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->fn()Lcom/facebook/common/references/CloseableReference;
move-result-object p1
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/common/references/CloseableReference;
iput-object p1, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
iget-object p1, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/graphics/Bitmap;
iput-object p1, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
iput-object p2, p0, Lcom/facebook/imagepipeline/f/d;->Rh:Lcom/facebook/imagepipeline/f/h;
iput p3, p0, Lcom/facebook/imagepipeline/f/d;->IH:I
iput p4, p0, Lcom/facebook/imagepipeline/f/d;->II:I
return-void
.end method
.method private static a(Landroid/graphics/Bitmap;)I
.locals 0
.param p0 # Landroid/graphics/Bitmap;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
if-nez p0, :cond_0
const/4 p0, 0x0
return p0
:cond_0
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I
move-result p0
return p0
.end method
.method private static b(Landroid/graphics/Bitmap;)I
.locals 0
.param p0 # Landroid/graphics/Bitmap;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
if-nez p0, :cond_0
const/4 p0, 0x0
return p0
:cond_0
invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I
move-result p0
return p0
.end method
.method private declared-synchronized ig()Lcom/facebook/common/references/CloseableReference;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
const/4 v1, 0x0
iput-object v1, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
iput-object v1, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
: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
# virtual methods
.method public final close()V
.locals 1
invoke-direct {p0}, Lcom/facebook/imagepipeline/f/d;->ig()Lcom/facebook/common/references/CloseableReference;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
:cond_0
return-void
.end method
.method public final eJ()I
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/facebook/imageutils/a;->g(Landroid/graphics/Bitmap;)I
move-result v0
return v0
.end method
.method public final getHeight()I
.locals 2
iget v0, p0, Lcom/facebook/imagepipeline/f/d;->IH:I
rem-int/lit16 v0, v0, 0xb4
if-nez v0, :cond_1
iget v0, p0, Lcom/facebook/imagepipeline/f/d;->II:I
const/4 v1, 0x5
if-eq v0, v1, :cond_1
const/4 v1, 0x7
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/facebook/imagepipeline/f/d;->b(Landroid/graphics/Bitmap;)I
move-result v0
return v0
:cond_1
:goto_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/facebook/imagepipeline/f/d;->a(Landroid/graphics/Bitmap;)I
move-result v0
return v0
.end method
.method public final getWidth()I
.locals 2
iget v0, p0, Lcom/facebook/imagepipeline/f/d;->IH:I
rem-int/lit16 v0, v0, 0xb4
if-nez v0, :cond_1
iget v0, p0, Lcom/facebook/imagepipeline/f/d;->II:I
const/4 v1, 0x5
if-eq v0, v1, :cond_1
const/4 v1, 0x7
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/facebook/imagepipeline/f/d;->a(Landroid/graphics/Bitmap;)I
move-result v0
return v0
:cond_1
:goto_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
invoke-static {v0}, Lcom/facebook/imagepipeline/f/d;->b(Landroid/graphics/Bitmap;)I
move-result v0
return v0
.end method
.method public final ie()Landroid/graphics/Bitmap;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->mBitmap:Landroid/graphics/Bitmap;
return-object v0
.end method
.method public final if()Lcom/facebook/imagepipeline/f/h;
.locals 1
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->Rh:Lcom/facebook/imagepipeline/f/h;
return-object v0
.end method
.method public final declared-synchronized ih()Lcom/facebook/common/references/CloseableReference;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/common/references/CloseableReference<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
invoke-static {v0}, Lcom/facebook/common/references/CloseableReference;->b(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/common/references/CloseableReference;
move-result-object v0
: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 final declared-synchronized isClosed()Z
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/facebook/imagepipeline/f/d;->Rg:Lcom/facebook/common/references/CloseableReference;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-nez v0, :cond_0
const/4 v0, 0x1
:goto_0
monitor-exit p0
return v0
:cond_0
const/4 v0, 0x0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
return-void
.end method