947 lines
		
	
	
		
			18 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			947 lines
		
	
	
		
			18 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public abstract Ld1/h;
 | |
| .super Landroid/graphics/drawable/Drawable;
 | |
| .source "RoundedBitmapDrawable.java"
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final n:I = 0x3
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Landroid/graphics/Bitmap;
 | |
| 
 | |
| .field public b:I
 | |
| 
 | |
| .field public c:I
 | |
| 
 | |
| .field public final d:Landroid/graphics/Paint;
 | |
| 
 | |
| .field public final e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
| .field public final f:Landroid/graphics/Matrix;
 | |
| 
 | |
| .field public g:F
 | |
| 
 | |
| .field public final h:Landroid/graphics/Rect;
 | |
| 
 | |
| .field public final i:Landroid/graphics/RectF;
 | |
| 
 | |
| .field public j:Z
 | |
| 
 | |
| .field public k:Z
 | |
| 
 | |
| .field public l:I
 | |
| 
 | |
| .field public m:I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V
 | |
| 
 | |
|     const/16 v0, 0xa0
 | |
| 
 | |
|     .line 2
 | |
|     iput v0, p0, Ld1/h;->b:I
 | |
| 
 | |
|     const/16 v0, 0x77
 | |
| 
 | |
|     .line 3
 | |
|     iput v0, p0, Ld1/h;->c:I
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Landroid/graphics/Paint;
 | |
| 
 | |
|     const/4 v1, 0x3
 | |
| 
 | |
|     invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(I)V
 | |
| 
 | |
|     iput-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance v0, Landroid/graphics/Matrix;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Ld1/h;->f:Landroid/graphics/Matrix;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v0, Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     .line 7
 | |
|     new-instance v0, Landroid/graphics/RectF;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 8
 | |
|     iput-boolean v0, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iget p1, p1, Landroid/util/DisplayMetrics;->densityDpi:I
 | |
| 
 | |
|     iput p1, p0, Ld1/h;->b:I
 | |
| 
 | |
|     .line 10
 | |
|     :cond_0
 | |
|     iput-object p2, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     if-eqz p2, :cond_1
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0}, Ld1/h;->a()V
 | |
| 
 | |
|     .line 12
 | |
|     new-instance p1, Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     sget-object v0, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
 | |
| 
 | |
|     invoke-direct {p1, p2, v0, v0}, Landroid/graphics/BitmapShader;-><init>(Landroid/graphics/Bitmap;Landroid/graphics/Shader$TileMode;Landroid/graphics/Shader$TileMode;)V
 | |
| 
 | |
|     iput-object p1, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p1, -0x1
 | |
| 
 | |
|     .line 13
 | |
|     iput p1, p0, Ld1/h;->m:I
 | |
| 
 | |
|     iput p1, p0, Ld1/h;->l:I
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 14
 | |
|     iput-object p1, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static j(F)Z
 | |
|     .locals 1
 | |
| 
 | |
|     const v0, 0x3d4ccccd    # 0.05f
 | |
| 
 | |
|     cmpl-float p0, p0, v0
 | |
| 
 | |
|     if-lez p0, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public final a()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     iget v1, p0, Ld1/h;->b:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Bitmap;->getScaledWidth(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iput v0, p0, Ld1/h;->l:I
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     iget v1, p0, Ld1/h;->b:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Bitmap;->getScaledHeight(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iput v0, p0, Ld1/h;->m:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final b()Landroid/graphics/Bitmap;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public c()F
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->g:F
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public d()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->c:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public draw(Landroid/graphics/Canvas;)V
 | |
|     .locals 4
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Ld1/h;->t()V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/graphics/Paint;->getShader()Landroid/graphics/Shader;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v2, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     iget-object v3, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v1, p0, Ld1/h;->g:F
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1, v1, v2}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final e()Landroid/graphics/Paint;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public f(IIILandroid/graphics/Rect;Landroid/graphics/Rect;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     new-instance p1, Ljava/lang/UnsupportedOperationException;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public g()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/Paint;->isAntiAlias()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getAlpha()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/Paint;->getAlpha()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getColorFilter()Landroid/graphics/ColorFilter;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/Paint;->getColorFilter()Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getIntrinsicHeight()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->m:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getIntrinsicWidth()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->l:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getOpacity()I
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->c:I
 | |
| 
 | |
|     const/4 v1, -0x3
 | |
| 
 | |
|     const/16 v2, 0x77
 | |
| 
 | |
|     if-ne v0, v2, :cond_2
 | |
| 
 | |
|     iget-boolean v0, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Landroid/graphics/Bitmap;->hasAlpha()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/graphics/Paint;->getAlpha()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/16 v2, 0xff
 | |
| 
 | |
|     if-lt v0, v2, :cond_2
 | |
| 
 | |
|     iget v0, p0, Ld1/h;->g:F
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {v0}, Ld1/h;->j(F)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method public h()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/UnsupportedOperationException;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public i()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public k(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAntiAlias(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public l(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean p1, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v0, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Ld1/h;->s()V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p1, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget-object v0, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p1}, Ld1/h;->m(F)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public m(F)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->g:F
 | |
| 
 | |
|     cmpl-float v0, v0, p1
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v0, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {p1}, Ld1/h;->j(F)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget-object v1, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
 | |
| 
 | |
|     .line 6
 | |
|     :goto_0
 | |
|     iput p1, p0, Ld1/h;->g:F
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public n(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->c:I
 | |
| 
 | |
|     if-eq v0, p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Ld1/h;->c:I
 | |
| 
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     iput-boolean p1, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public o(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     new-instance p1, Ljava/lang/UnsupportedOperationException;
 | |
| 
 | |
|     invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public onBoundsChange(Landroid/graphics/Rect;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/graphics/drawable/Drawable;->onBoundsChange(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean p1, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Ld1/h;->s()V
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public p(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->b:I
 | |
| 
 | |
|     if-eq v0, p1, :cond_2
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     const/16 p1, 0xa0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iput p1, p0, Ld1/h;->b:I
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Ld1/h;->a()V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public q(Landroid/graphics/Canvas;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/graphics/Canvas;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Landroid/graphics/Canvas;->getDensity()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Ld1/h;->p(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public r(Landroid/util/DisplayMetrics;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/util/DisplayMetrics;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget p1, p1, Landroid/util/DisplayMetrics;->densityDpi:I
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Ld1/h;->p(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final s()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Ld1/h;->m:I
 | |
| 
 | |
|     iget v1, p0, Ld1/h;->l:I
 | |
| 
 | |
|     invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     div-int/lit8 v0, v0, 0x2
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     iput v0, p0, Ld1/h;->g:F
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setAlpha(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/Paint;->getAlpha()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eq p1, v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAlpha(I)V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setColorFilter(Landroid/graphics/ColorFilter;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setDither(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setDither(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setFilterBitmap(Z)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setFilterBitmap(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->invalidateSelf()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public t()V
 | |
|     .locals 9
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     iget-boolean v0, p0, Ld1/h;->k:Z
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget v0, p0, Ld1/h;->l:I
 | |
| 
 | |
|     iget v2, p0, Ld1/h;->m:I
 | |
| 
 | |
|     invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     .line 4
 | |
|     iget v4, p0, Ld1/h;->c:I
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v7
 | |
| 
 | |
|     iget-object v8, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     move-object v3, p0
 | |
| 
 | |
|     move v5, v6
 | |
| 
 | |
|     invoke-virtual/range {v3 .. v8}, Ld1/h;->f(IIILandroid/graphics/Rect;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/graphics/Rect;->width()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/Rect;->height()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 6
 | |
|     iget-object v2, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/graphics/Rect;->width()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     sub-int/2addr v2, v0
 | |
| 
 | |
|     div-int/lit8 v2, v2, 0x2
 | |
| 
 | |
|     invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v3, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/Rect;->height()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     sub-int/2addr v3, v0
 | |
| 
 | |
|     div-int/lit8 v3, v3, 0x2
 | |
| 
 | |
|     invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v4, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v4, v2, v3}, Landroid/graphics/Rect;->inset(II)V
 | |
| 
 | |
|     const/high16 v2, 0x3f000000    # 0.5f
 | |
| 
 | |
|     int-to-float v0, v0
 | |
| 
 | |
|     mul-float/2addr v0, v2
 | |
| 
 | |
|     .line 9
 | |
|     iput v0, p0, Ld1/h;->g:F
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 10
 | |
|     :cond_0
 | |
|     iget v3, p0, Ld1/h;->c:I
 | |
| 
 | |
|     iget v4, p0, Ld1/h;->l:I
 | |
| 
 | |
|     iget v5, p0, Ld1/h;->m:I
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     iget-object v7, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     move-object v2, p0
 | |
| 
 | |
|     invoke-virtual/range {v2 .. v7}, Ld1/h;->f(IIILandroid/graphics/Rect;Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 11
 | |
|     :goto_0
 | |
|     iget-object v0, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->h:Landroid/graphics/Rect;
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Landroid/graphics/RectF;->set(Landroid/graphics/Rect;)V
 | |
| 
 | |
|     .line 12
 | |
|     iget-object v0, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 13
 | |
|     iget-object v0, p0, Ld1/h;->f:Landroid/graphics/Matrix;
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     iget v3, v2, Landroid/graphics/RectF;->left:F
 | |
| 
 | |
|     iget v2, v2, Landroid/graphics/RectF;->top:F
 | |
| 
 | |
|     invoke-virtual {v0, v3, v2}, Landroid/graphics/Matrix;->setTranslate(FF)V
 | |
| 
 | |
|     .line 14
 | |
|     iget-object v0, p0, Ld1/h;->f:Landroid/graphics/Matrix;
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {v2}, Landroid/graphics/RectF;->width()F
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     iget-object v3, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     int-to-float v3, v3
 | |
| 
 | |
|     div-float/2addr v2, v3
 | |
| 
 | |
|     iget-object v3, p0, Ld1/h;->i:Landroid/graphics/RectF;
 | |
| 
 | |
|     .line 16
 | |
|     invoke-virtual {v3}, Landroid/graphics/RectF;->height()F
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     iget-object v4, p0, Ld1/h;->a:Landroid/graphics/Bitmap;
 | |
| 
 | |
|     invoke-virtual {v4}, Landroid/graphics/Bitmap;->getHeight()I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     int-to-float v4, v4
 | |
| 
 | |
|     div-float/2addr v3, v4
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {v0, v2, v3}, Landroid/graphics/Matrix;->preScale(FF)Z
 | |
| 
 | |
|     .line 18
 | |
|     iget-object v0, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->f:Landroid/graphics/Matrix;
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Landroid/graphics/BitmapShader;->setLocalMatrix(Landroid/graphics/Matrix;)V
 | |
| 
 | |
|     .line 19
 | |
|     iget-object v0, p0, Ld1/h;->d:Landroid/graphics/Paint;
 | |
| 
 | |
|     iget-object v2, p0, Ld1/h;->e:Landroid/graphics/BitmapShader;
 | |
| 
 | |
|     invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
 | |
| 
 | |
|     .line 20
 | |
|     :cond_1
 | |
|     iput-boolean v1, p0, Ld1/h;->j:Z
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 |