773 lines
17 KiB
Smali
773 lines
17 KiB
Smali
.class public Lf/n/a/l/c;
|
|
.super Landroid/widget/ImageView;
|
|
.source "TransformImageView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf/n/a/l/c$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:[F
|
|
|
|
.field public final e:[F
|
|
|
|
.field public final f:[F
|
|
|
|
.field public g:Landroid/graphics/Matrix;
|
|
|
|
.field public h:I
|
|
|
|
.field public i:I
|
|
|
|
.field public j:Lf/n/a/l/c$a;
|
|
|
|
.field public k:[F
|
|
|
|
.field public l:[F
|
|
|
|
.field public m:Z
|
|
|
|
.field public n:Z
|
|
|
|
.field public o:I
|
|
|
|
.field public p:Ljava/lang/String;
|
|
|
|
.field public q:Ljava/lang/String;
|
|
|
|
.field public r:Lf/n/a/i/b;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lf/n/a/l/c;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/16 p1, 0x8
|
|
|
|
new-array p1, p1, [F
|
|
|
|
iput-object p1, p0, Lf/n/a/l/c;->d:[F
|
|
|
|
const/4 p1, 0x2
|
|
|
|
new-array p1, p1, [F
|
|
|
|
iput-object p1, p0, Lf/n/a/l/c;->e:[F
|
|
|
|
const/16 p1, 0x9
|
|
|
|
new-array p1, p1, [F
|
|
|
|
iput-object p1, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
new-instance p1, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lf/n/a/l/c;->m:Z
|
|
|
|
iput-boolean p1, p0, Lf/n/a/l/c;->n:Z
|
|
|
|
iput p1, p0, Lf/n/a/l/c;->o:I
|
|
|
|
invoke-virtual {p0}, Lf/n/a/l/c;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/graphics/Matrix;)F
|
|
.locals 5
|
|
.param p1 # Landroid/graphics/Matrix;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aget v1, v0, v1
|
|
|
|
float-to-double v1, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
aget p1, p1, v3
|
|
|
|
float-to-double v3, p1
|
|
|
|
invoke-static {v1, v2, v3, v4}, Ljava/lang/Math;->atan2(DD)D
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide v2, 0x404ca5dc1a63c1f8L # 57.29577951308232
|
|
|
|
mul-double v0, v0, v2
|
|
|
|
neg-double v0, v0
|
|
|
|
double-to-float p1, v0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public b(Landroid/graphics/Matrix;)F
|
|
.locals 6
|
|
.param p1 # Landroid/graphics/Matrix;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget v0, v0, v1
|
|
|
|
float-to-double v0, v0
|
|
|
|
const-wide/high16 v2, 0x4000000000000000L # 2.0
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v0
|
|
|
|
const/4 v4, 0x3
|
|
|
|
iget-object v5, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
invoke-virtual {p1, v5}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->f:[F
|
|
|
|
aget p1, p1, v4
|
|
|
|
float-to-double v4, p1
|
|
|
|
invoke-static {v4, v5, v2, v3}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v2
|
|
|
|
add-double/2addr v2, v0
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-float p1, v0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
sget-object v0, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
|
|
|
|
invoke-virtual {p0, v0}, Lf/n/a/l/c;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 6
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
float-to-int v3, v1
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
aput-object v3, v2, v4
|
|
|
|
float-to-int v3, v0
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
aput-object v3, v2, v5
|
|
|
|
const-string v3, "Image size: [%d:%d]"
|
|
|
|
invoke-static {v3, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "TransformImageView"
|
|
|
|
invoke-static {v3, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
new-instance v2, Landroid/graphics/RectF;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v2, v3, v3, v1, v0}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
invoke-static {v2}, Lf/n/a/k/a;->A(Landroid/graphics/RectF;)[F
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lf/n/a/l/c;->k:[F
|
|
|
|
invoke-static {v2}, Lf/n/a/k/a;->y(Landroid/graphics/RectF;)[F
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lf/n/a/l/c;->l:[F
|
|
|
|
iput-boolean v5, p0, Lf/n/a/l/c;->n:Z
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->j:Lf/n/a/l/c$a;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
check-cast v0, Lcom/yalantis/ucrop/UCropActivity$a;
|
|
|
|
iget-object v1, v0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v1, v1, Lcom/yalantis/ucrop/UCropActivity;->o:Lcom/yalantis/ucrop/view/UCropView;
|
|
|
|
invoke-virtual {v1}, Landroid/widget/FrameLayout;->animate()Landroid/view/ViewPropertyAnimator;
|
|
|
|
move-result-object v1
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;
|
|
|
|
move-result-object v1
|
|
|
|
const-wide/16 v2, 0x12c
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Landroid/view/animation/AccelerateInterpolator;
|
|
|
|
invoke-direct {v2}, Landroid/view/animation/AccelerateInterpolator;-><init>()V
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;
|
|
|
|
iget-object v1, v0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iget-object v1, v1, Lcom/yalantis/ucrop/UCropActivity;->A:Landroid/view/View;
|
|
|
|
invoke-virtual {v1, v4}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
iget-object v0, v0, Lcom/yalantis/ucrop/UCropActivity$a;->a:Lcom/yalantis/ucrop/UCropActivity;
|
|
|
|
iput-boolean v4, v0, Lcom/yalantis/ucrop/UCropActivity;->n:Z
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/app/AppCompatActivity;->supportInvalidateOptionsMenu()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(FFF)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0, p1, p2, p3}, Landroid/graphics/Matrix;->postRotate(FFF)Z
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, p1}, Lf/n/a/l/c;->setImageMatrix(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->j:Lf/n/a/l/c$a;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p2, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, p2}, Lf/n/a/l/c;->a(Landroid/graphics/Matrix;)F
|
|
|
|
move-result p2
|
|
|
|
check-cast p1, Lcom/yalantis/ucrop/UCropActivity$a;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/yalantis/ucrop/UCropActivity$a;->a(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(FFF)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0, p1, p1, p2, p3}, Landroid/graphics/Matrix;->postScale(FFFF)Z
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, p1}, Lf/n/a/l/c;->setImageMatrix(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->j:Lf/n/a/l/c$a;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p2, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, p2}, Lf/n/a/l/c;->b(Landroid/graphics/Matrix;)F
|
|
|
|
move-result p2
|
|
|
|
check-cast p1, Lcom/yalantis/ucrop/UCropActivity$a;
|
|
|
|
invoke-virtual {p1, p2}, Lcom/yalantis/ucrop/UCropActivity$a;->b(F)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public g(FF)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpl-float v1, p1, v0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
cmpl-float v0, p2, v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/graphics/Matrix;->postTranslate(FF)Z
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, p1}, Lf/n/a/l/c;->setImageMatrix(Landroid/graphics/Matrix;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public getCurrentAngle()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, v0}, Lf/n/a/l/c;->a(Landroid/graphics/Matrix;)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentScale()F
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p0, v0}, Lf/n/a/l/c;->b(Landroid/graphics/Matrix;)F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getExifInfo()Lf/n/a/i/b;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->r:Lf/n/a/i/b;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getImageInputPath()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->p:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getImageOutputPath()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->q:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMaxBitmapSize()I
|
|
.locals 6
|
|
|
|
iget v0, p0, Lf/n/a/l/c;->o:I
|
|
|
|
if-gtz v0, :cond_3
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "window"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/WindowManager;
|
|
|
|
new-instance v1, Landroid/graphics/Point;
|
|
|
|
invoke-direct {v1}, Landroid/graphics/Point;-><init>()V
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V
|
|
|
|
:cond_0
|
|
iget v0, v1, Landroid/graphics/Point;->x:I
|
|
|
|
iget v1, v1, Landroid/graphics/Point;->y:I
|
|
|
|
int-to-double v2, v0
|
|
|
|
const-wide/high16 v4, 0x4000000000000000L # 2.0
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v2
|
|
|
|
int-to-double v0, v1
|
|
|
|
invoke-static {v0, v1, v4, v5}, Ljava/lang/Math;->pow(DD)D
|
|
|
|
move-result-wide v0
|
|
|
|
add-double/2addr v0, v2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-int v0, v0
|
|
|
|
new-instance v1, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {v1}, Landroid/graphics/Canvas;-><init>()V
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Canvas;->getMaximumBitmapWidth()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Canvas;->getMaximumBitmapHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_1
|
|
:try_start_0
|
|
invoke-static {}, Lf/n/a/k/a;->D()I
|
|
|
|
move-result v1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
const-string v2, "EglUtils"
|
|
|
|
const-string v3, "getMaxTextureSize: "
|
|
|
|
invoke-static {v2, v3, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-lez v1, :cond_2
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:cond_2
|
|
const-string v1, "maxBitmapSize: "
|
|
|
|
const-string v2, "BitmapLoadUtils"
|
|
|
|
invoke-static {v1, v0, v2}, Lf/e/b/a/a;->N(Ljava/lang/String;ILjava/lang/String;)V
|
|
|
|
iput v0, p0, Lf/n/a/l/c;->o:I
|
|
|
|
:cond_3
|
|
iget v0, p0, Lf/n/a/l/c;->o:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getViewBitmap()Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Lf/n/a/k/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lf/n/a/k/b;
|
|
|
|
iget-object v0, v0, Lf/n/a/k/b;->b:Landroid/graphics/Bitmap;
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onLayout(ZIIII)V
|
|
.locals 0
|
|
|
|
invoke-super/range {p0 .. p5}, Landroid/widget/ImageView;->onLayout(ZIIII)V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lf/n/a/l/c;->m:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-boolean p1, p0, Lf/n/a/l/c;->n:Z
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingLeft()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingTop()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingRight()I
|
|
|
|
move-result p4
|
|
|
|
sub-int/2addr p3, p4
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getHeight()I
|
|
|
|
move-result p4
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingBottom()I
|
|
|
|
move-result p5
|
|
|
|
sub-int/2addr p4, p5
|
|
|
|
sub-int/2addr p3, p1
|
|
|
|
iput p3, p0, Lf/n/a/l/c;->h:I
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
iput p4, p0, Lf/n/a/l/c;->i:I
|
|
|
|
invoke-virtual {p0}, Lf/n/a/l/c;->d()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
.locals 1
|
|
|
|
new-instance v0, Lf/n/a/k/b;
|
|
|
|
invoke-direct {v0, p1}, Lf/n/a/k/b;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
invoke-virtual {p0, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageMatrix(Landroid/graphics/Matrix;)V
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Matrix;->set(Landroid/graphics/Matrix;)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->d:[F
|
|
|
|
iget-object v1, p0, Lf/n/a/l/c;->k:[F
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/Matrix;->mapPoints([F[F)V
|
|
|
|
iget-object p1, p0, Lf/n/a/l/c;->g:Landroid/graphics/Matrix;
|
|
|
|
iget-object v0, p0, Lf/n/a/l/c;->e:[F
|
|
|
|
iget-object v1, p0, Lf/n/a/l/c;->l:[F
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/Matrix;->mapPoints([F[F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxBitmapSize(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lf/n/a/l/c;->o:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p1, "TransformImageView"
|
|
|
|
const-string v0, "Invalid ScaleType. Only ScaleType.MATRIX can be used"
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTransformImageListener(Lf/n/a/l/c$a;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/n/a/l/c;->j:Lf/n/a/l/c$a;
|
|
|
|
return-void
|
|
.end method
|