541 lines
14 KiB
Smali
541 lines
14 KiB
Smali
.class public Lcom/facebook/drawee/drawable/g;
|
|
.super Landroid/graphics/drawable/Drawable;
|
|
.source "ForwardingDrawable.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/graphics/drawable/Drawable$Callback;
|
|
.implements Lcom/facebook/drawee/drawable/c;
|
|
.implements Lcom/facebook/drawee/drawable/q;
|
|
.implements Lcom/facebook/drawee/drawable/r;
|
|
|
|
|
|
# static fields
|
|
.field private static final Io:Landroid/graphics/Matrix;
|
|
|
|
|
|
# instance fields
|
|
.field protected HP:Lcom/facebook/drawee/drawable/r;
|
|
|
|
.field private final HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
.field private In:Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
sput-object v0, Lcom/facebook/drawee/drawable/g;->Io:Landroid/graphics/Matrix;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
|
|
|
|
new-instance v0, Lcom/facebook/drawee/drawable/d;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/drawee/drawable/d;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-static {p1, p0, p0}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable$Callback;Lcom/facebook/drawee/drawable/r;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/graphics/RectF;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HP:Lcom/facebook/drawee/drawable/r;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0, p1}, Lcom/facebook/drawee/drawable/r;->a(Landroid/graphics/RectF;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/g;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lcom/facebook/drawee/drawable/r;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/g;->HP:Lcom/facebook/drawee/drawable/r;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroid/graphics/Matrix;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/drawable/g;->c(Landroid/graphics/Matrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b(Landroid/graphics/RectF;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/facebook/drawee/drawable/g;->Io:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/facebook/drawee/drawable/g;->c(Landroid/graphics/Matrix;)V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/g;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
|
|
|
|
sget-object v0, Lcom/facebook/drawee/drawable/g;->Io:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/drawee/drawable/g;->e(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected final c(Landroid/graphics/Matrix;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HP:Lcom/facebook/drawee/drawable/r;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0, p1}, Lcom/facebook/drawee/drawable/r;->b(Landroid/graphics/Matrix;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
|
|
.locals 2
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, v1, v1}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable$Callback;Lcom/facebook/drawee/drawable/r;)V
|
|
|
|
invoke-static {p1, v1, v1}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable$Callback;Lcom/facebook/drawee/drawable/r;)V
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
invoke-static {p1, v1}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/d;)V
|
|
|
|
invoke-static {p1, p0}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
invoke-static {p1, p0, p0}, Lcom/facebook/drawee/drawable/e;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable$Callback;Lcom/facebook/drawee/drawable/r;)V
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/g;->invalidateSelf()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCurrent()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/g;->getCurrent()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIntrinsicHeight()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicWidth()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getOpacity()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getOpacity()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPadding(Landroid/graphics/Rect;)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->getPadding(Landroid/graphics/Rect;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public invalidateDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/drawable/g;->invalidateSelf()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isStateful()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public mutate()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method protected onBoundsChange(Landroid/graphics/Rect;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setBounds(Landroid/graphics/Rect;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onLevelChange(I)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onLevelChange(I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method protected onStateChange([I)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onStateChange([I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public scheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p2, p3, p4}, Lcom/facebook/drawee/drawable/g;->scheduleSelf(Ljava/lang/Runnable;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAlpha(I)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
iput p1, v0, Lcom/facebook/drawee/drawable/d;->mAlpha:I
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/drawable/d;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDither(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/drawable/d;->setDither(Z)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setDither(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFilterBitmap(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->HQ:Lcom/facebook/drawee/drawable/d;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/drawable/d;->setFilterBitmap(Z)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->setFilterBitmap(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHotspot(FF)V
|
|
.locals 1
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/graphics/drawable/Drawable;->setHotspot(FF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisible(ZZ)Z
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/g;->In:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
invoke-virtual {v1, p1, p2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public unscheduleDrawable(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p2}, Lcom/facebook/drawee/drawable/g;->unscheduleSelf(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|