LocalExifThumbnailProducer$1.smali
.class Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;
.super Lcom/facebook/imagepipeline/producers/StatefulProducerRunnable;
.source "LocalExifThumbnailProducer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->produceResults(Lcom/facebook/imagepipeline/producers/Consumer;Lcom/facebook/imagepipeline/producers/ProducerContext;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/imagepipeline/producers/StatefulProducerRunnable<",
"Lcom/facebook/imagepipeline/image/EncodedImage;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
.field final synthetic val$imageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
# direct methods
.method constructor <init>(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;Lcom/facebook/imagepipeline/producers/Consumer;Lcom/facebook/imagepipeline/producers/ProducerListener2;Lcom/facebook/imagepipeline/producers/ProducerContext;Ljava/lang/String;Lcom/facebook/imagepipeline/request/ImageRequest;)V
.registers 7
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x8010,
0x0,
0x0,
0x0,
0x0,
0x1010
}
names = {
"this$0",
"consumer",
"producerListener",
"producerContext",
"producerName",
"val$imageRequest"
}
.end annotation
.line 94
iput-object p1, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->this$0:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
iput-object p6, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->val$imageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
invoke-direct {p0, p2, p3, p4, p5}, Lcom/facebook/imagepipeline/producers/StatefulProducerRunnable;-><init>(Lcom/facebook/imagepipeline/producers/Consumer;Lcom/facebook/imagepipeline/producers/ProducerListener2;Lcom/facebook/imagepipeline/producers/ProducerContext;Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method protected disposeResult(Lcom/facebook/imagepipeline/image/EncodedImage;)V
.registers 2
.param p1 # Lcom/facebook/imagepipeline/image/EncodedImage;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"result"
}
.end annotation
.line 111
invoke-static {p1}, Lcom/facebook/imagepipeline/image/EncodedImage;->closeSafely(Lcom/facebook/imagepipeline/image/EncodedImage;)V
return-void
.end method
.method protected bridge synthetic disposeResult(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 = {
"result"
}
.end annotation
.line 94
check-cast p1, Lcom/facebook/imagepipeline/image/EncodedImage;
invoke-virtual {p0, p1}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->disposeResult(Lcom/facebook/imagepipeline/image/EncodedImage;)V
return-void
.end method
.method protected getExtraMapOnSuccess(Lcom/facebook/imagepipeline/image/EncodedImage;)Ljava/util/Map;
.registers 3
.param p1 # Lcom/facebook/imagepipeline/image/EncodedImage;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10
}
names = {
"result"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/imagepipeline/image/EncodedImage;",
")",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
if-eqz p1, :cond_4
const/4 p1, 0x1
goto :goto_5
:cond_4
const/4 p1, 0x0
.line 116
:goto_5
invoke-static {p1}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;
move-result-object p1
const-string v0, "createdThumbnail"
invoke-static {v0, p1}, Lcom/facebook/common/internal/ImmutableMap;->of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;
move-result-object p1
return-object p1
.end method
.method protected bridge synthetic getExtraMapOnSuccess(Ljava/lang/Object;)Ljava/util/Map;
.registers 2
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1010
}
names = {
"result"
}
.end annotation
.line 94
check-cast p1, Lcom/facebook/imagepipeline/image/EncodedImage;
invoke-virtual {p0, p1}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->getExtraMapOnSuccess(Lcom/facebook/imagepipeline/image/EncodedImage;)Ljava/util/Map;
move-result-object p1
return-object p1
.end method
.method protected getResult()Lcom/facebook/imagepipeline/image/EncodedImage;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 97
iget-object v0, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->val$imageRequest:Lcom/facebook/imagepipeline/request/ImageRequest;
invoke-virtual {v0}, Lcom/facebook/imagepipeline/request/ImageRequest;->getSourceUri()Landroid/net/Uri;
move-result-object v0
.line 99
iget-object v1, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->this$0:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
invoke-virtual {v1, v0}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->getExifInterface(Landroid/net/Uri;)Landroid/media/ExifInterface;
move-result-object v0
if-eqz v0, :cond_30
.line 100
invoke-virtual {v0}, Landroid/media/ExifInterface;->hasThumbnail()Z
move-result v1
if-nez v1, :cond_15
goto :goto_30
.line 104
:cond_15
invoke-virtual {v0}, Landroid/media/ExifInterface;->getThumbnail()[B
move-result-object v1
invoke-static {v1}, Lcom/facebook/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
.line 105
iget-object v2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->this$0:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
# getter for: Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->mPooledByteBufferFactory:Lcom/facebook/common/memory/PooledByteBufferFactory;
invoke-static {v2}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->access$000(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;)Lcom/facebook/common/memory/PooledByteBufferFactory;
move-result-object v2
invoke-interface {v2, v1}, Lcom/facebook/common/memory/PooledByteBufferFactory;->newByteBuffer([B)Lcom/facebook/common/memory/PooledByteBuffer;
move-result-object v1
.line 106
iget-object v2, p0, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->this$0:Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;
# invokes: Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->buildEncodedImage(Lcom/facebook/common/memory/PooledByteBuffer;Landroid/media/ExifInterface;)Lcom/facebook/imagepipeline/image/EncodedImage;
invoke-static {v2, v1, v0}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;->access$100(Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer;Lcom/facebook/common/memory/PooledByteBuffer;Landroid/media/ExifInterface;)Lcom/facebook/imagepipeline/image/EncodedImage;
move-result-object v0
return-object v0
:cond_30
:goto_30
const/4 v0, 0x0
return-object v0
.end method
.method protected bridge synthetic getResult()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 94
invoke-virtual {p0}, Lcom/facebook/imagepipeline/producers/LocalExifThumbnailProducer$1;->getResult()Lcom/facebook/imagepipeline/image/EncodedImage;
move-result-object v0
return-object v0
.end method