.class public final Lcom/facebook/drawee/generic/e; .super Ljava/lang/Object; .source "WrappingUtils.java" # static fields .field private static final LH:Landroid/graphics/drawable/Drawable; # direct methods .method static constructor ()V .locals 2 new-instance v0, Landroid/graphics/drawable/ColorDrawable; const/4 v1, 0x0 invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;->(I)V sput-object v0, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; return-void .end method .method static a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;Landroid/graphics/PointF;)Landroid/graphics/drawable/Drawable; .locals 1 .param p0 # Landroid/graphics/drawable/Drawable; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p1 # Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p2 # Landroid/graphics/PointF; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .annotation runtime Ljavax/annotation/Nullable; .end annotation invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z if-eqz p0, :cond_2 if-nez p1, :cond_0 goto :goto_0 :cond_0 new-instance v0, Lcom/facebook/drawee/drawable/p; invoke-direct {v0, p0, p1}, Lcom/facebook/drawee/drawable/p;->(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V if-eqz p2, :cond_1 invoke-virtual {v0, p2}, Lcom/facebook/drawee/drawable/p;->a(Landroid/graphics/PointF;)V :cond_1 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object v0 :cond_2 :goto_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object p0 .end method .method static a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;)Landroid/graphics/drawable/Drawable; .locals 2 .param p0 # Landroid/graphics/drawable/Drawable; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p1 # Lcom/facebook/drawee/generic/d; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param :try_start_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z if-eqz p0, :cond_1 if-eqz p1, :cond_1 iget-object v0, p1, Lcom/facebook/drawee/generic/d;->LB:Lcom/facebook/drawee/generic/d$a; sget-object v1, Lcom/facebook/drawee/generic/d$a;->LE:Lcom/facebook/drawee/generic/d$a; if-eq v0, v1, :cond_0 goto :goto_0 :cond_0 new-instance v0, Lcom/facebook/drawee/drawable/m; invoke-direct {v0, p0}, Lcom/facebook/drawee/drawable/m;->(Landroid/graphics/drawable/Drawable;)V invoke-static {v0, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V iget p0, p1, Lcom/facebook/drawee/generic/d;->Kv:I invoke-virtual {v0, p0}, Lcom/facebook/drawee/drawable/m;->R(I)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object v0 :cond_1 :goto_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object p0 :catchall_0 move-exception p0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z throw p0 .end method .method static a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable; .locals 2 .param p0 # Landroid/graphics/drawable/Drawable; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p1 # Lcom/facebook/drawee/generic/d; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param :try_start_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z if-eqz p0, :cond_2 if-eqz p1, :cond_2 iget-object v0, p1, Lcom/facebook/drawee/generic/d;->LB:Lcom/facebook/drawee/generic/d$a; sget-object v1, Lcom/facebook/drawee/generic/d$a;->LF:Lcom/facebook/drawee/generic/d$a; if-eq v0, v1, :cond_0 goto :goto_0 :cond_0 instance-of v0, p0, Lcom/facebook/drawee/drawable/g; if-eqz v0, :cond_1 move-object v0, p0 check-cast v0, Lcom/facebook/drawee/drawable/g; invoke-static {v0}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/c;)Lcom/facebook/drawee/drawable/c; move-result-object v0 sget-object v1, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; invoke-interface {v0, v1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v1 invoke-static {v1, p1, p2}, Lcom/facebook/drawee/generic/e;->b(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-interface {v0, p1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object p0 :cond_1 :try_start_1 invoke-static {p0, p1, p2}, Lcom/facebook/drawee/generic/e;->b(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable; move-result-object p0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object p0 :cond_2 :goto_0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z return-object p0 :catchall_0 move-exception p0 invoke-static {}, Lcom/facebook/imagepipeline/i/b;->isTracing()Z throw p0 .end method .method private static a(Lcom/facebook/drawee/drawable/c;)Lcom/facebook/drawee/drawable/c; .locals 2 :goto_0 invoke-interface {p0}, Lcom/facebook/drawee/drawable/c;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 if-eq v0, p0, :cond_0 instance-of v1, v0, Lcom/facebook/drawee/drawable/c; if-eqz v1, :cond_0 move-object p0, v0 check-cast p0, Lcom/facebook/drawee/drawable/c; goto :goto_0 :cond_0 return-object p0 .end method .method static a(Lcom/facebook/drawee/drawable/c;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/drawable/p; .locals 2 sget-object v0, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; invoke-interface {p0, v0}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v0 const/4 v1, 0x0 invoke-static {v0, p1, v1}, Lcom/facebook/drawee/generic/e;->a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;Landroid/graphics/PointF;)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-interface {p0, p1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; const-string p0, "Parent has no child drawable!" invoke-static {p1, p0}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; check-cast p1, Lcom/facebook/drawee/drawable/p; return-object p1 .end method .method static a(Lcom/facebook/drawee/drawable/c;Lcom/facebook/drawee/generic/d;)V .locals 3 .param p1 # Lcom/facebook/drawee/generic/d; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param invoke-interface {p0}, Lcom/facebook/drawee/drawable/c;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 if-eqz p1, :cond_1 iget-object v1, p1, Lcom/facebook/drawee/generic/d;->LB:Lcom/facebook/drawee/generic/d$a; sget-object v2, Lcom/facebook/drawee/generic/d$a;->LE:Lcom/facebook/drawee/generic/d$a; if-ne v1, v2, :cond_1 instance-of v1, v0, Lcom/facebook/drawee/drawable/m; if-eqz v1, :cond_0 check-cast v0, Lcom/facebook/drawee/drawable/m; invoke-static {v0, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V iget p0, p1, Lcom/facebook/drawee/generic/d;->Kv:I invoke-virtual {v0, p0}, Lcom/facebook/drawee/drawable/m;->R(I)V return-void :cond_0 sget-object v0, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; invoke-interface {p0, v0}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v0 invoke-static {v0, p1}, Lcom/facebook/drawee/generic/e;->a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-interface {p0, p1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; return-void :cond_1 instance-of p1, v0, Lcom/facebook/drawee/drawable/m; if-eqz p1, :cond_2 check-cast v0, Lcom/facebook/drawee/drawable/m; sget-object p1, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; invoke-virtual {v0, p1}, Lcom/facebook/drawee/drawable/m;->e(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-interface {p0, p1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; sget-object p0, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; const/4 p1, 0x0 invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V :cond_2 return-void .end method .method static a(Lcom/facebook/drawee/drawable/c;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)V .locals 3 .param p1 # Lcom/facebook/drawee/generic/d; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param invoke-static {p0}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/c;)Lcom/facebook/drawee/drawable/c; move-result-object p0 invoke-interface {p0}, Lcom/facebook/drawee/drawable/c;->getDrawable()Landroid/graphics/drawable/Drawable; move-result-object v0 if-eqz p1, :cond_1 iget-object v1, p1, Lcom/facebook/drawee/generic/d;->LB:Lcom/facebook/drawee/generic/d$a; sget-object v2, Lcom/facebook/drawee/generic/d$a;->LF:Lcom/facebook/drawee/generic/d$a; if-ne v1, v2, :cond_1 instance-of v1, v0, Lcom/facebook/drawee/drawable/j; if-eqz v1, :cond_0 check-cast v0, Lcom/facebook/drawee/drawable/j; invoke-static {v0, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V return-void :cond_0 if-eqz v0, :cond_2 sget-object v1, Lcom/facebook/drawee/generic/e;->LH:Landroid/graphics/drawable/Drawable; invoke-interface {p0, v1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; invoke-static {v0, p1, p2}, Lcom/facebook/drawee/generic/e;->b(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-interface {p0, p1}, Lcom/facebook/drawee/drawable/c;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; return-void :cond_1 instance-of p0, v0, Lcom/facebook/drawee/drawable/j; if-eqz p0, :cond_2 check-cast v0, Lcom/facebook/drawee/drawable/j; const/4 p0, 0x0 invoke-interface {v0, p0}, Lcom/facebook/drawee/drawable/j;->w(Z)V invoke-interface {v0}, Lcom/facebook/drawee/drawable/j;->gF()V const/4 p1, 0x0 invoke-interface {v0, p0, p1}, Lcom/facebook/drawee/drawable/j;->a(IF)V invoke-interface {v0, p1}, Lcom/facebook/drawee/drawable/j;->k(F)V invoke-interface {v0, p0}, Lcom/facebook/drawee/drawable/j;->x(Z)V :cond_2 return-void .end method .method private static a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V .locals 2 iget-boolean v0, p1, Lcom/facebook/drawee/generic/d;->LC:Z invoke-interface {p0, v0}, Lcom/facebook/drawee/drawable/j;->w(Z)V iget-object v0, p1, Lcom/facebook/drawee/generic/d;->LD:[F invoke-interface {p0, v0}, Lcom/facebook/drawee/drawable/j;->a([F)V iget v0, p1, Lcom/facebook/drawee/generic/d;->Kn:I iget v1, p1, Lcom/facebook/drawee/generic/d;->Km:F invoke-interface {p0, v0, v1}, Lcom/facebook/drawee/drawable/j;->a(IF)V iget v0, p1, Lcom/facebook/drawee/generic/d;->mPadding:F invoke-interface {p0, v0}, Lcom/facebook/drawee/drawable/j;->k(F)V iget-boolean p1, p1, Lcom/facebook/drawee/generic/d;->Ko:Z invoke-interface {p0, p1}, Lcom/facebook/drawee/drawable/j;->x(Z)V return-void .end method .method static b(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Landroid/graphics/drawable/Drawable; .locals 1 .param p0 # Landroid/graphics/drawable/Drawable; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p1 # Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .annotation runtime Ljavax/annotation/Nullable; .end annotation const/4 v0, 0x0 invoke-static {p0, p1, v0}, Lcom/facebook/drawee/generic/e;->a(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;Landroid/graphics/PointF;)Landroid/graphics/drawable/Drawable; move-result-object p0 return-object p0 .end method .method private static b(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/generic/d;Landroid/content/res/Resources;)Landroid/graphics/drawable/Drawable; .locals 2 instance-of v0, p0, Landroid/graphics/drawable/BitmapDrawable; if-eqz v0, :cond_0 check-cast p0, Landroid/graphics/drawable/BitmapDrawable; new-instance v0, Lcom/facebook/drawee/drawable/k; invoke-virtual {p0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap; move-result-object v1 invoke-virtual {p0}, Landroid/graphics/drawable/BitmapDrawable;->getPaint()Landroid/graphics/Paint; move-result-object p0 invoke-direct {v0, p2, v1, p0}, Lcom/facebook/drawee/drawable/k;->(Landroid/content/res/Resources;Landroid/graphics/Bitmap;Landroid/graphics/Paint;)V invoke-static {v0, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V return-object v0 :cond_0 instance-of p2, p0, Landroid/graphics/drawable/NinePatchDrawable; if-eqz p2, :cond_1 check-cast p0, Landroid/graphics/drawable/NinePatchDrawable; new-instance p2, Lcom/facebook/drawee/drawable/o; invoke-direct {p2, p0}, Lcom/facebook/drawee/drawable/o;->(Landroid/graphics/drawable/NinePatchDrawable;)V invoke-static {p2, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V return-object p2 :cond_1 instance-of p2, p0, Landroid/graphics/drawable/ColorDrawable; if-eqz p2, :cond_2 sget p2, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v0, 0xb if-lt p2, v0, :cond_2 check-cast p0, Landroid/graphics/drawable/ColorDrawable; invoke-static {p0}, Lcom/facebook/drawee/drawable/l;->a(Landroid/graphics/drawable/ColorDrawable;)Lcom/facebook/drawee/drawable/l; move-result-object p0 invoke-static {p0, p1}, Lcom/facebook/drawee/generic/e;->a(Lcom/facebook/drawee/drawable/j;Lcom/facebook/drawee/generic/d;)V return-object p0 :cond_2 const/4 p1, 0x1 new-array p1, p1, [Ljava/lang/Object; const/4 p2, 0x0 aput-object p0, p1, p2 const-string p2, "WrappingUtils" const-string v0, "Don\'t know how to round that drawable: %s" invoke-static {p2, v0, p1}, Lcom/facebook/common/e/a;->b(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V return-object p0 .end method