PipelineDraweeController.smali
.class public Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;
.super Lcom/facebook/drawee/controller/AbstractDraweeController;
.source "PipelineDraweeController.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/drawee/controller/AbstractDraweeController<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;",
"Lcom/facebook/imagepipeline/image/ImageInfo;",
">;"
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
# instance fields
.field private mCacheKey:Lcom/facebook/cache/common/CacheKey;
.field private mCustomDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mDataSourceSupplier:Lcom/facebook/common/internal/Supplier;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/common/internal/Supplier<",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;>;"
}
.end annotation
.end field
.field private mDebugOverlayImageOriginListener:Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;
.field private final mDefaultDrawableFactory:Lcom/facebook/imagepipeline/drawable/DrawableFactory;
.field private mDrawDebugOverlay:Z
.field private mFirstAvailableImageRequests:[Lcom/facebook/imagepipeline/request/ImageRequest;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final mGlobalDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mLowResImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final mMemoryCache:Lcom/facebook/imagepipeline/cache/MemoryCache;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/imagepipeline/cache/MemoryCache<",
"Lcom/facebook/cache/common/CacheKey;",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private mRequestListeners:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/facebook/imagepipeline/listener/RequestListener;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field private final mResources:Landroid/content/res/Resources;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 68
const-class v0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;
sput-object v0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->TAG:Ljava/lang/Class;
return-void
.end method
.method public constructor <init>(Landroid/content/res/Resources;Lcom/facebook/drawee/components/DeferredReleaser;Lcom/facebook/imagepipeline/drawable/DrawableFactory;Ljava/util/concurrent/Executor;Lcom/facebook/imagepipeline/cache/MemoryCache;Lcom/facebook/common/internal/ImmutableList;)V
.registers 8
.param p5 # Lcom/facebook/imagepipeline/cache/MemoryCache;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p6 # Lcom/facebook/common/internal/ImmutableList;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0,
0x0,
0x0,
0x0
}
names = {
"resources",
"deferredReleaser",
"animatedDrawableFactory",
"uiThreadExecutor",
"memoryCache",
"globalDrawableFactories"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/res/Resources;",
"Lcom/facebook/drawee/components/DeferredReleaser;",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
"Ljava/util/concurrent/Executor;",
"Lcom/facebook/imagepipeline/cache/MemoryCache<",
"Lcom/facebook/cache/common/CacheKey;",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;",
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;)V"
}
.end annotation
const/4 v0, 0x0
.line 110
invoke-direct {p0, p2, p4, v0, v0}, Lcom/facebook/drawee/controller/AbstractDraweeController;-><init>(Lcom/facebook/drawee/components/DeferredReleaser;Ljava/util/concurrent/Executor;Ljava/lang/String;Ljava/lang/Object;)V
.line 111
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mResources:Landroid/content/res/Resources;
.line 112
new-instance p2, Lcom/facebook/drawee/backends/pipeline/DefaultDrawableFactory;
invoke-direct {p2, p1, p3}, Lcom/facebook/drawee/backends/pipeline/DefaultDrawableFactory;-><init>(Landroid/content/res/Resources;Lcom/facebook/imagepipeline/drawable/DrawableFactory;)V
iput-object p2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDefaultDrawableFactory:Lcom/facebook/imagepipeline/drawable/DrawableFactory;
.line 113
iput-object p6, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mGlobalDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
.line 114
iput-object p5, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mMemoryCache:Lcom/facebook/imagepipeline/cache/MemoryCache;
return-void
.end method
.method private init(Lcom/facebook/common/internal/Supplier;)V
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"dataSourceSupplier"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/internal/Supplier<",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;>;)V"
}
.end annotation
.line 227
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDataSourceSupplier:Lcom/facebook/common/internal/Supplier;
const/4 p1, 0x0
.line 229
invoke-direct {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeUpdateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;)V
return-void
.end method
.method private maybeCreateDrawableFromFactories(Lcom/facebook/common/internal/ImmutableList;Lcom/facebook/imagepipeline/image/CloseableImage;)Landroid/graphics/drawable/Drawable;
.registers 6
.param p1 # Lcom/facebook/common/internal/ImmutableList;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"drawableFactories",
"closeableImage"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
")",
"Landroid/graphics/drawable/Drawable;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
const/4 v0, 0x0
if-nez p1, :cond_4
return-object v0
.line 310
:cond_4
invoke-virtual {p1}, Lcom/facebook/common/internal/ImmutableList;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_8
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_21
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/facebook/imagepipeline/drawable/DrawableFactory;
.line 311
invoke-interface {v1, p2}, Lcom/facebook/imagepipeline/drawable/DrawableFactory;->supportsImageType(Lcom/facebook/imagepipeline/image/CloseableImage;)Z
move-result v2
if-eqz v2, :cond_8
.line 312
invoke-interface {v1, p2}, Lcom/facebook/imagepipeline/drawable/DrawableFactory;->createDrawable(Lcom/facebook/imagepipeline/image/CloseableImage;)Landroid/graphics/drawable/Drawable;
move-result-object v1
if-eqz v1, :cond_8
return-object v1
:cond_21
return-object v0
.end method
.method private maybeUpdateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;)V
.registers 5
.param p1 # Lcom/facebook/imagepipeline/image/CloseableImage;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"image"
}
.end annotation
.line 336
iget-boolean v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDrawDebugOverlay:Z
if-nez v0, :cond_5
return-void
.line 340
:cond_5
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getControllerOverlay()Landroid/graphics/drawable/Drawable;
move-result-object v0
if-nez v0, :cond_22
.line 341
new-instance v0, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;
invoke-direct {v0}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;-><init>()V
.line 342
new-instance v1, Lcom/facebook/drawee/debug/listener/ImageLoadingTimeControllerListener;
invoke-direct {v1, v0}, Lcom/facebook/drawee/debug/listener/ImageLoadingTimeControllerListener;-><init>(Lcom/facebook/drawee/debug/listener/ImageLoadingTimeListener;)V
.line 344
new-instance v2, Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;
invoke-direct {v2}, Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;-><init>()V
iput-object v2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDebugOverlayImageOriginListener:Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;
.line 345
invoke-virtual {p0, v1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->addControllerListener(Lcom/facebook/drawee/controller/ControllerListener;)V
.line 346
invoke-virtual {p0, v0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->setControllerOverlay(Landroid/graphics/drawable/Drawable;)V
.line 349
:cond_22
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
if-nez v0, :cond_2b
.line 350
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDebugOverlayImageOriginListener:Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;
invoke-virtual {p0, v0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->addImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.line 353
:cond_2b
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getControllerOverlay()Landroid/graphics/drawable/Drawable;
move-result-object v0
instance-of v0, v0, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;
if-eqz v0, :cond_3c
.line 354
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getControllerOverlay()Landroid/graphics/drawable/Drawable;
move-result-object v0
check-cast v0, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;
invoke-virtual {p0, p1, v0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->updateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;)V
:cond_3c
return-void
.end method
# virtual methods
.method public declared-synchronized addImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.registers 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"imageOriginListener"
}
.end annotation
monitor-enter p0
.line 198
:try_start_1
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
instance-of v1, v0, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;
if-eqz v1, :cond_d
.line 199
check-cast v0, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;
.line 200
invoke-virtual {v0, p1}, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;->addImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
goto :goto_22
:cond_d
if-eqz v0, :cond_20
.line 202
new-instance v1, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;
const/4 v2, 0x2
new-array v2, v2, [Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
const/4 v3, 0x0
aput-object v0, v2, v3
const/4 v0, 0x1
aput-object p1, v2, v0
invoke-direct {v1, v2}, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;-><init>([Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
iput-object v1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
goto :goto_22
.line 205
:cond_20
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
:try_end_22
.catchall {:try_start_1 .. :try_end_22} :catchall_24
.line 207
:goto_22
monitor-exit p0
return-void
:catchall_24
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized addRequestListener(Lcom/facebook/imagepipeline/listener/RequestListener;)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"requestListener"
}
.end annotation
monitor-enter p0
.line 184
:try_start_1
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mRequestListeners:Ljava/util/Set;
if-nez v0, :cond_c
.line 185
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mRequestListeners:Ljava/util/Set;
.line 187
:cond_c
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mRequestListeners:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_11
.catchall {:try_start_1 .. :try_end_11} :catchall_13
.line 188
monitor-exit p0
return-void
:catchall_13
move-exception p1
monitor-exit p0
throw p1
.end method
.method protected clearImageOriginListeners()V
.registers 2
.line 221
monitor-enter p0
const/4 v0, 0x0
.line 222
:try_start_2
iput-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
.line 223
monitor-exit p0
return-void
:catchall_6
move-exception v0
monitor-exit p0
:try_end_8
.catchall {:try_start_2 .. :try_end_8} :catchall_6
throw v0
.end method
.method protected createDrawable(Lcom/facebook/common/references/CloseableReference;)Landroid/graphics/drawable/Drawable;
.registers 5
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"image"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;)",
"Landroid/graphics/drawable/Drawable;"
}
.end annotation
.line 274
:try_start_0
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "PipelineDraweeController#createDrawable"
.line 275
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
.line 277
:cond_b
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->isValid(Lcom/facebook/common/references/CloseableReference;)Z
move-result v0
invoke-static {v0}, Lcom/facebook/common/internal/Preconditions;->checkState(Z)V
.line 278
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/imagepipeline/image/CloseableImage;
.line 280
invoke-direct {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeUpdateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;)V
.line 282
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCustomDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
.line 283
invoke-direct {p0, v0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeCreateDrawableFromFactories(Lcom/facebook/common/internal/ImmutableList;Lcom/facebook/imagepipeline/image/CloseableImage;)Landroid/graphics/drawable/Drawable;
move-result-object v0
:try_end_21
.catchall {:try_start_0 .. :try_end_21} :catchall_68
if-eqz v0, :cond_2d
.line 299
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_2c
.line 300
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_2c
return-object v0
.line 288
:cond_2d
:try_start_2d
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mGlobalDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
invoke-direct {p0, v0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeCreateDrawableFromFactories(Lcom/facebook/common/internal/ImmutableList;Lcom/facebook/imagepipeline/image/CloseableImage;)Landroid/graphics/drawable/Drawable;
move-result-object v0
:try_end_33
.catchall {:try_start_2d .. :try_end_33} :catchall_68
if-eqz v0, :cond_3f
.line 299
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_3e
.line 300
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_3e
return-object v0
.line 293
:cond_3f
:try_start_3f
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDefaultDrawableFactory:Lcom/facebook/imagepipeline/drawable/DrawableFactory;
invoke-interface {v0, p1}, Lcom/facebook/imagepipeline/drawable/DrawableFactory;->createDrawable(Lcom/facebook/imagepipeline/image/CloseableImage;)Landroid/graphics/drawable/Drawable;
move-result-object v0
:try_end_45
.catchall {:try_start_3f .. :try_end_45} :catchall_68
if-eqz v0, :cond_51
.line 299
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_50
.line 300
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_50
return-object v0
.line 297
:cond_51
:try_start_51
new-instance v0, Ljava/lang/UnsupportedOperationException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unrecognized image class: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_68
.catchall {:try_start_51 .. :try_end_68} :catchall_68
:catchall_68
move-exception p1
.line 299
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_72
.line 300
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
.line 302
:cond_72
throw p1
.end method
.method protected bridge synthetic createDrawable(Ljava/lang/Object;)Landroid/graphics/drawable/Drawable;
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"image"
}
.end annotation
.line 65
check-cast p1, Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->createDrawable(Lcom/facebook/common/references/CloseableReference;)Landroid/graphics/drawable/Drawable;
move-result-object p1
return-object p1
.end method
.method protected getCacheKey()Lcom/facebook/cache/common/CacheKey;
.registers 2
.line 237
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCacheKey:Lcom/facebook/cache/common/CacheKey;
return-object v0
.end method
.method protected getCachedImage()Lcom/facebook/common/references/CloseableReference;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 414
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "PipelineDraweeController#getCachedImage"
.line 415
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
.line 418
:cond_b
:try_start_b
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mMemoryCache:Lcom/facebook/imagepipeline/cache/MemoryCache;
const/4 v1, 0x0
if-eqz v0, :cond_42
iget-object v2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCacheKey:Lcom/facebook/cache/common/CacheKey;
if-nez v2, :cond_15
goto :goto_42
.line 422
:cond_15
invoke-interface {v0, v2}, Lcom/facebook/imagepipeline/cache/MemoryCache;->get(Ljava/lang/Object;)Lcom/facebook/common/references/CloseableReference;
move-result-object v0
if-eqz v0, :cond_38
.line 423
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/imagepipeline/image/CloseableImage;
invoke-virtual {v2}, Lcom/facebook/imagepipeline/image/CloseableImage;->getQualityInfo()Lcom/facebook/imagepipeline/image/QualityInfo;
move-result-object v2
invoke-interface {v2}, Lcom/facebook/imagepipeline/image/QualityInfo;->isOfFullQuality()Z
move-result v2
if-nez v2, :cond_38
.line 424
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
:try_end_2e
.catchall {:try_start_b .. :try_end_2e} :catchall_4c
.line 429
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_37
.line 430
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_37
return-object v1
.line 429
:cond_38
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v1
if-eqz v1, :cond_41
.line 430
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_41
return-object v0
.line 429
:cond_42
:goto_42
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_4b
.line 430
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_4b
return-object v1
:catchall_4c
move-exception v0
.line 429
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v1
if-eqz v1, :cond_56
.line 430
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
.line 432
:cond_56
throw v0
.end method
.method protected bridge synthetic getCachedImage()Ljava/lang/Object;
.registers 2
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 65
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getCachedImage()Lcom/facebook/common/references/CloseableReference;
move-result-object v0
return-object v0
.end method
.method protected getDataSource()Lcom/facebook/datasource/DataSource;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;"
}
.end annotation
.line 258
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "PipelineDraweeController#getDataSource"
.line 259
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
:cond_b
const/4 v0, 0x2
.line 261
invoke-static {v0}, Lcom/facebook/common/logging/FLog;->isLoggable(I)Z
move-result v0
if-eqz v0, :cond_21
.line 262
sget-object v0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->TAG:Ljava/lang/Class;
invoke-static {p0}, Ljava/lang/System;->identityHashCode(Ljava/lang/Object;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "controller %x: getDataSource"
invoke-static {v0, v2, v1}, Lcom/facebook/common/logging/FLog;->v(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)V
.line 264
:cond_21
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDataSourceSupplier:Lcom/facebook/common/internal/Supplier;
invoke-interface {v0}, Lcom/facebook/common/internal/Supplier;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/facebook/datasource/DataSource;
.line 265
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v1
if-eqz v1, :cond_32
.line 266
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_32
return-object v0
.end method
.method protected getDataSourceSupplier()Lcom/facebook/common/internal/Supplier;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/common/internal/Supplier<",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;>;"
}
.end annotation
.line 448
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDataSourceSupplier:Lcom/facebook/common/internal/Supplier;
return-object v0
.end method
.method protected getImageHash(Lcom/facebook/common/references/CloseableReference;)I
.registers 2
.param p1 # Lcom/facebook/common/references/CloseableReference;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"image"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;)I"
}
.end annotation
if-eqz p1, :cond_7
.line 397
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->getValueHash()I
move-result p1
goto :goto_8
:cond_7
const/4 p1, 0x0
:goto_8
return p1
.end method
.method protected bridge synthetic getImageHash(Ljava/lang/Object;)I
.registers 2
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"image"
}
.end annotation
.line 65
check-cast p1, Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getImageHash(Lcom/facebook/common/references/CloseableReference;)I
move-result p1
return p1
.end method
.method protected getImageInfo(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/imagepipeline/image/ImageInfo;
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"image"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;)",
"Lcom/facebook/imagepipeline/image/ImageInfo;"
}
.end annotation
.line 391
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->isValid(Lcom/facebook/common/references/CloseableReference;)Z
move-result v0
invoke-static {v0}, Lcom/facebook/common/internal/Preconditions;->checkState(Z)V
.line 392
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/imagepipeline/image/ImageInfo;
return-object p1
.end method
.method protected bridge synthetic getImageInfo(Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"image"
}
.end annotation
.line 65
check-cast p1, Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getImageInfo(Lcom/facebook/common/references/CloseableReference;)Lcom/facebook/imagepipeline/image/ImageInfo;
move-result-object p1
return-object p1
.end method
.method protected getMainUri()Landroid/net/Uri;
.registers 5
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 467
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
iget-object v1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mLowResImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
iget-object v2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mFirstAvailableImageRequests:[Lcom/facebook/imagepipeline/request/ImageRequest;
sget-object v3, Lcom/facebook/imagepipeline/request/ImageRequest;->REQUEST_TO_URI_FN:Lcom/facebook/common/internal/Fn;
invoke-static {v0, v1, v2, v3}, Lcom/facebook/fresco/ui/common/MultiUriHelper;->getMainUri(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;Lcom/facebook/common/internal/Fn;)Landroid/net/Uri;
move-result-object v0
return-object v0
.end method
.method public declared-synchronized getRequestListener()Lcom/facebook/imagepipeline/listener/RequestListener;
.registers 4
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
monitor-enter p0
const/4 v0, 0x0
.line 243
:try_start_2
iget-object v1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
if-eqz v1, :cond_11
.line 244
new-instance v0, Lcom/facebook/drawee/backends/pipeline/info/ImageOriginRequestListener;
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getId()Ljava/lang/String;
move-result-object v1
iget-object v2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
invoke-direct {v0, v1, v2}, Lcom/facebook/drawee/backends/pipeline/info/ImageOriginRequestListener;-><init>(Ljava/lang/String;Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.line 246
:cond_11
iget-object v1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mRequestListeners:Ljava/util/Set;
if-eqz v1, :cond_21
.line 247
new-instance v2, Lcom/facebook/imagepipeline/listener/ForwardingRequestListener;
invoke-direct {v2, v1}, Lcom/facebook/imagepipeline/listener/ForwardingRequestListener;-><init>(Ljava/util/Set;)V
if-eqz v0, :cond_1f
.line 249
invoke-virtual {v2, v0}, Lcom/facebook/imagepipeline/listener/ForwardingRequestListener;->addRequestListener(Lcom/facebook/imagepipeline/listener/RequestListener;)V
:try_end_1f
.catchall {:try_start_2 .. :try_end_1f} :catchall_23
.line 251
:cond_1f
monitor-exit p0
return-object v2
.line 253
:cond_21
monitor-exit p0
return-object v0
:catchall_23
move-exception v0
monitor-exit p0
throw v0
.end method
.method protected getResources()Landroid/content/res/Resources;
.registers 2
.line 233
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mResources:Landroid/content/res/Resources;
return-object v0
.end method
.method public initialize(Lcom/facebook/common/internal/Supplier;Ljava/lang/String;Lcom/facebook/cache/common/CacheKey;Ljava/lang/Object;Lcom/facebook/common/internal/ImmutableList;Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.registers 8
.param p5 # Lcom/facebook/common/internal/ImmutableList;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p6 # Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0,
0x0,
0x0,
0x0
}
names = {
"dataSourceSupplier",
"id",
"cacheKey",
"callerContext",
"customDrawableFactories",
"imageOriginListener"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/internal/Supplier<",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;>;",
"Ljava/lang/String;",
"Lcom/facebook/cache/common/CacheKey;",
"Ljava/lang/Object;",
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;",
"Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;",
")V"
}
.end annotation
.line 133
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "PipelineDraweeController#initialize"
.line 134
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
.line 136
:cond_b
invoke-super {p0, p2, p4}, Lcom/facebook/drawee/controller/AbstractDraweeController;->initialize(Ljava/lang/String;Ljava/lang/Object;)V
.line 137
invoke-direct {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->init(Lcom/facebook/common/internal/Supplier;)V
.line 138
iput-object p3, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCacheKey:Lcom/facebook/cache/common/CacheKey;
.line 139
invoke-virtual {p0, p5}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->setCustomDrawableFactories(Lcom/facebook/common/internal/ImmutableList;)V
.line 140
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->clearImageOriginListeners()V
const/4 p1, 0x0
.line 141
invoke-direct {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeUpdateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;)V
.line 142
invoke-virtual {p0, p6}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->addImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.line 143
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_29
.line 144
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_29
return-void
.end method
.method protected declared-synchronized initializePerformanceMonitoring(Lcom/facebook/drawee/backends/pipeline/info/ImagePerfDataListener;Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;Lcom/facebook/common/internal/Supplier;)V
.registers 6
.param p1 # Lcom/facebook/drawee/backends/pipeline/info/ImagePerfDataListener;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0
}
names = {
"imagePerfDataListener",
"builder",
"asyncLogging"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/drawee/backends/pipeline/info/ImagePerfDataListener;",
"Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder<",
"Lcom/facebook/drawee/backends/pipeline/PipelineDraweeControllerBuilder;",
"Lcom/facebook/imagepipeline/request/ImageRequest;",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;",
"Lcom/facebook/imagepipeline/image/ImageInfo;",
">;",
"Lcom/facebook/common/internal/Supplier<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
monitor-enter p0
.line 157
:try_start_1
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
if-eqz v0, :cond_8
.line 158
invoke-virtual {v0}, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;->reset()V
:cond_8
if-eqz p1, :cond_29
.line 161
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
if-nez v0, :cond_19
.line 162
new-instance v0, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
invoke-static {}, Lcom/facebook/common/time/AwakeTimeSinceBootClock;->get()Lcom/facebook/common/time/AwakeTimeSinceBootClock;
move-result-object v1
invoke-direct {v0, v1, p0, p3}, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;-><init>(Lcom/facebook/common/time/MonotonicClock;Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;Lcom/facebook/common/internal/Supplier;)V
iput-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
.line 164
:cond_19
iget-object p3, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
invoke-virtual {p3, p1}, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;->addImagePerfDataListener(Lcom/facebook/drawee/backends/pipeline/info/ImagePerfDataListener;)V
.line 165
iget-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
const/4 p3, 0x1
invoke-virtual {p1, p3}, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;->setEnabled(Z)V
.line 166
iget-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImagePerfMonitor:Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;
invoke-virtual {p1, p2}, Lcom/facebook/drawee/backends/pipeline/info/ImagePerfMonitor;->updateImageRequestData(Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;)V
.line 169
:cond_29
invoke-virtual {p2}, Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;->getImageRequest()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/imagepipeline/request/ImageRequest;
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
.line 170
invoke-virtual {p2}, Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;->getFirstAvailableImageRequests()[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lcom/facebook/imagepipeline/request/ImageRequest;
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mFirstAvailableImageRequests:[Lcom/facebook/imagepipeline/request/ImageRequest;
.line 171
invoke-virtual {p2}, Lcom/facebook/drawee/controller/AbstractDraweeControllerBuilder;->getLowResImageRequest()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/imagepipeline/request/ImageRequest;
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mLowResImageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
:try_end_41
.catchall {:try_start_1 .. :try_end_41} :catchall_43
.line 172
monitor-exit p0
return-void
:catchall_43
move-exception p1
monitor-exit p0
throw p1
.end method
.method public isSameImageRequest(Lcom/facebook/drawee/interfaces/DraweeController;)Z
.registers 4
.param p1 # Lcom/facebook/drawee/interfaces/DraweeController;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"other"
}
.end annotation
.line 329
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCacheKey:Lcom/facebook/cache/common/CacheKey;
if-eqz v0, :cond_13
instance-of v1, p1, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;
if-eqz v1, :cond_13
.line 330
check-cast p1, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;
invoke-virtual {p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getCacheKey()Lcom/facebook/cache/common/CacheKey;
move-result-object p1
invoke-static {v0, p1}, Lcom/facebook/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
:cond_13
const/4 p1, 0x0
return p1
.end method
.method public obtainExtrasFromImage(Lcom/facebook/imagepipeline/image/ImageInfo;)Ljava/util/Map;
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"info"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/imagepipeline/image/ImageInfo;",
")",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
if-nez p1, :cond_4
const/4 p1, 0x0
return-object p1
.line 462
:cond_4
invoke-interface {p1}, Lcom/facebook/imagepipeline/image/ImageInfo;->getExtras()Ljava/util/Map;
move-result-object p1
return-object p1
.end method
.method public bridge synthetic obtainExtrasFromImage(Ljava/lang/Object;)Ljava/util/Map;
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"info"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 65
check-cast p1, Lcom/facebook/imagepipeline/image/ImageInfo;
invoke-virtual {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->obtainExtrasFromImage(Lcom/facebook/imagepipeline/image/ImageInfo;)Ljava/util/Map;
move-result-object p1
return-object p1
.end method
.method protected onImageLoadedFromCacheImmediately(Ljava/lang/String;Lcom/facebook/common/references/CloseableReference;)V
.registers 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"id",
"cachedImage"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;)V"
}
.end annotation
.line 438
invoke-super {p0, p1, p2}, Lcom/facebook/drawee/controller/AbstractDraweeController;->onImageLoadedFromCacheImmediately(Ljava/lang/String;Ljava/lang/Object;)V
.line 439
monitor-enter p0
.line 440
:try_start_4
iget-object p2, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
if-eqz p2, :cond_f
const/4 v0, 0x6
const/4 v1, 0x1
const-string v2, "PipelineDraweeController"
.line 441
invoke-interface {p2, p1, v0, v1, v2}, Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;->onImageLoaded(Ljava/lang/String;IZLjava/lang/String;)V
.line 444
:cond_f
monitor-exit p0
return-void
:catchall_11
move-exception p1
monitor-exit p0
:try_end_13
.catchall {:try_start_4 .. :try_end_13} :catchall_11
throw p1
.end method
.method protected bridge synthetic onImageLoadedFromCacheImmediately(Ljava/lang/String;Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000,
0x1000
}
names = {
"id",
"cachedImage"
}
.end annotation
.line 65
check-cast p2, Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p0, p1, p2}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->onImageLoadedFromCacheImmediately(Ljava/lang/String;Lcom/facebook/common/references/CloseableReference;)V
return-void
.end method
.method protected releaseDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 3
.param p1 # Landroid/graphics/drawable/Drawable;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"drawable"
}
.end annotation
.line 407
instance-of v0, p1, Lcom/facebook/drawable/base/DrawableWithCaches;
if-eqz v0, :cond_9
.line 408
check-cast p1, Lcom/facebook/drawable/base/DrawableWithCaches;
invoke-interface {p1}, Lcom/facebook/drawable/base/DrawableWithCaches;->dropCaches()V
:cond_9
return-void
.end method
.method protected releaseImage(Lcom/facebook/common/references/CloseableReference;)V
.registers 2
.param p1 # Lcom/facebook/common/references/CloseableReference;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"image"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;)V"
}
.end annotation
.line 402
invoke-static {p1}, Lcom/facebook/common/references/CloseableReference;->closeSafely(Lcom/facebook/common/references/CloseableReference;)V
return-void
.end method
.method protected bridge synthetic releaseImage(Ljava/lang/Object;)V
.registers 2
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1000
}
names = {
"image"
}
.end annotation
.line 65
check-cast p1, Lcom/facebook/common/references/CloseableReference;
invoke-virtual {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->releaseImage(Lcom/facebook/common/references/CloseableReference;)V
return-void
.end method
.method public declared-synchronized removeImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
.registers 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"imageOriginListener"
}
.end annotation
monitor-enter p0
.line 210
:try_start_1
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
instance-of v1, v0, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;
if-eqz v1, :cond_e
.line 211
check-cast v0, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;
.line 212
invoke-virtual {v0, p1}, Lcom/facebook/drawee/backends/pipeline/info/ForwardingImageOriginListener;->removeImageOriginListener(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V
:try_end_c
.catchall {:try_start_1 .. :try_end_c} :catchall_15
.line 213
monitor-exit p0
return-void
:cond_e
if-ne v0, p1, :cond_13
const/4 p1, 0x0
.line 216
:try_start_11
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mImageOriginListener:Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;
:try_end_13
.catchall {:try_start_11 .. :try_end_13} :catchall_15
.line 218
:cond_13
monitor-exit p0
return-void
:catchall_15
move-exception p1
monitor-exit p0
throw p1
.end method
.method public declared-synchronized removeRequestListener(Lcom/facebook/imagepipeline/listener/RequestListener;)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"requestListener"
}
.end annotation
monitor-enter p0
.line 191
:try_start_1
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mRequestListeners:Ljava/util/Set;
:try_end_3
.catchall {:try_start_1 .. :try_end_3} :catchall_c
if-nez v0, :cond_7
.line 192
monitor-exit p0
return-void
.line 194
:cond_7
:try_start_7
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_a
.catchall {:try_start_7 .. :try_end_a} :catchall_c
.line 195
monitor-exit p0
return-void
:catchall_c
move-exception p1
monitor-exit p0
throw p1
.end method
.method public setCustomDrawableFactories(Lcom/facebook/common/internal/ImmutableList;)V
.registers 2
.param p1 # Lcom/facebook/common/internal/ImmutableList;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"customDrawableFactories"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/common/internal/ImmutableList<",
"Lcom/facebook/imagepipeline/drawable/DrawableFactory;",
">;)V"
}
.end annotation
.line 180
iput-object p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mCustomDrawableFactories:Lcom/facebook/common/internal/ImmutableList;
return-void
.end method
.method public setDrawDebugOverlay(Z)V
.registers 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"drawDebugOverlay"
}
.end annotation
.line 175
iput-boolean p1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDrawDebugOverlay:Z
return-void
.end method
.method public setHierarchy(Lcom/facebook/drawee/interfaces/DraweeHierarchy;)V
.registers 2
.param p1 # Lcom/facebook/drawee/interfaces/DraweeHierarchy;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"hierarchy"
}
.end annotation
.line 323
invoke-super {p0, p1}, Lcom/facebook/drawee/controller/AbstractDraweeController;->setHierarchy(Lcom/facebook/drawee/interfaces/DraweeHierarchy;)V
const/4 p1, 0x0
.line 324
invoke-direct {p0, p1}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->maybeUpdateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.registers 4
.line 453
invoke-static {p0}, Lcom/facebook/common/internal/Objects;->toStringHelper(Ljava/lang/Object;)Lcom/facebook/common/internal/Objects$ToStringHelper;
move-result-object v0
.line 454
invoke-super {p0}, Lcom/facebook/drawee/controller/AbstractDraweeController;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "super"
invoke-virtual {v0, v2, v1}, Lcom/facebook/common/internal/Objects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/facebook/common/internal/Objects$ToStringHelper;
move-result-object v0
iget-object v1, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDataSourceSupplier:Lcom/facebook/common/internal/Supplier;
const-string v2, "dataSourceSupplier"
.line 455
invoke-virtual {v0, v2, v1}, Lcom/facebook/common/internal/Objects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/facebook/common/internal/Objects$ToStringHelper;
move-result-object v0
.line 456
invoke-virtual {v0}, Lcom/facebook/common/internal/Objects$ToStringHelper;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method protected updateDebugOverlay(Lcom/facebook/imagepipeline/image/CloseableImage;Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;)V
.registers 5
.param p1 # Lcom/facebook/imagepipeline/image/CloseableImage;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"image",
"debugOverlay"
}
.end annotation
.line 364
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getId()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->setControllerId(Ljava/lang/String;)V
.line 366
invoke-virtual {p0}, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->getHierarchy()Lcom/facebook/drawee/interfaces/DraweeHierarchy;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_1d
.line 370
invoke-interface {v0}, Lcom/facebook/drawee/interfaces/DraweeHierarchy;->getTopLevelDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-static {v0}, Lcom/facebook/drawee/drawable/ScalingUtils;->getActiveScaleTypeDrawable(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/drawable/ScaleTypeDrawable;
move-result-object v0
if-eqz v0, :cond_1d
.line 371
invoke-virtual {v0}, Lcom/facebook/drawee/drawable/ScaleTypeDrawable;->getScaleType()Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v0
move-object v1, v0
.line 373
:cond_1d
invoke-virtual {p2, v1}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->setScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
.line 376
iget-object v0, p0, Lcom/facebook/drawee/backends/pipeline/PipelineDraweeController;->mDebugOverlayImageOriginListener:Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;
invoke-virtual {v0}, Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginListener;->getImageOrigin()I
move-result v0
.line 377
invoke-static {v0}, Lcom/facebook/drawee/backends/pipeline/info/ImageOriginUtils;->toString(I)Ljava/lang/String;
move-result-object v1
.line 378
invoke-static {v0}, Lcom/facebook/drawee/backends/pipeline/debug/DebugOverlayImageOriginColor;->getImageOriginColor(I)I
move-result v0
.line 379
invoke-virtual {p2, v1, v0}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->setOrigin(Ljava/lang/String;I)V
if-eqz p1, :cond_46
.line 382
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/CloseableImage;->getWidth()I
move-result v0
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/CloseableImage;->getHeight()I
move-result v1
invoke-virtual {p2, v0, v1}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->setDimensions(II)V
.line 383
invoke-virtual {p1}, Lcom/facebook/imagepipeline/image/CloseableImage;->getSizeInBytes()I
move-result p1
invoke-virtual {p2, p1}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->setImageSize(I)V
goto :goto_49
.line 385
:cond_46
invoke-virtual {p2}, Lcom/facebook/drawee/debug/DebugControllerOverlayDrawable;->reset()V
:goto_49
return-void
.end method