87 lines
1.8 KiB
Smali
87 lines
1.8 KiB
Smali
.class final Lcom/facebook/drawee/drawable/ScalingUtils$h;
|
|
.super Lcom/facebook/drawee/drawable/ScalingUtils$a;
|
|
.source "ScalingUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/facebook/drawee/drawable/ScalingUtils;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "h"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Ka:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/facebook/drawee/drawable/ScalingUtils$h;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/drawee/drawable/ScalingUtils$h;-><init>()V
|
|
|
|
sput-object v0, Lcom/facebook/drawee/drawable/ScalingUtils$h;->Ka:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/drawable/ScalingUtils$a;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/graphics/Matrix;Landroid/graphics/Rect;IIFFFF)V
|
|
.locals 0
|
|
|
|
invoke-static {p7, p8}, Ljava/lang/Math;->min(FF)F
|
|
|
|
move-result p3
|
|
|
|
iget p4, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
int-to-float p4, p4
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
int-to-float p2, p2
|
|
|
|
invoke-virtual {p1, p3, p3}, Landroid/graphics/Matrix;->setScale(FF)V
|
|
|
|
const/high16 p3, 0x3f000000 # 0.5f
|
|
|
|
add-float/2addr p4, p3
|
|
|
|
float-to-int p4, p4
|
|
|
|
int-to-float p4, p4
|
|
|
|
add-float/2addr p2, p3
|
|
|
|
float-to-int p2, p2
|
|
|
|
int-to-float p2, p2
|
|
|
|
invoke-virtual {p1, p4, p2}, Landroid/graphics/Matrix;->postTranslate(FF)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "fit_start"
|
|
|
|
return-object v0
|
|
.end method
|