155 lines
3.8 KiB
Smali
155 lines
3.8 KiB
Smali
.class public final Lcom/facebook/drawee/drawable/e;
|
|
.super Ljava/lang/Object;
|
|
.source "DrawableUtils.java"
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable$Callback;Lcom/facebook/drawee/drawable/r;)V
|
|
.locals 0
|
|
.param p0 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/graphics/drawable/Drawable$Callback;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/facebook/drawee/drawable/r;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
instance-of p1, p0, Lcom/facebook/drawee/drawable/q;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
check-cast p0, Lcom/facebook/drawee/drawable/q;
|
|
|
|
invoke-interface {p0, p2}, Lcom/facebook/drawee/drawable/q;->a(Lcom/facebook/drawee/drawable/r;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
.param p0 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/graphics/drawable/Drawable;->setBounds(Landroid/graphics/Rect;)V
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getChangingConfigurations()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/graphics/drawable/Drawable;->setChangingConfigurations(I)V
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getLevel()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/graphics/drawable/Drawable;->setLevel(I)Z
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->isVisible()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getState()[I
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/d;)V
|
|
.locals 0
|
|
.param p0 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Lcom/facebook/drawee/drawable/d;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p1, p0}, Lcom/facebook/drawee/drawable/d;->d(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static k(II)I
|
|
.locals 2
|
|
|
|
const/16 v0, 0xff
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const v0, 0xffffff
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
and-int/2addr p0, v0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
shr-int/lit8 v1, p1, 0x7
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
ushr-int/lit8 v1, p0, 0x18
|
|
|
|
mul-int v1, v1, p1
|
|
|
|
shr-int/lit8 p1, v1, 0x8
|
|
|
|
shl-int/lit8 p1, p1, 0x18
|
|
|
|
and-int/2addr p0, v0
|
|
|
|
or-int/2addr p0, p1
|
|
|
|
return p0
|
|
.end method
|