337 lines
7.0 KiB
Smali
337 lines
7.0 KiB
Smali
.class Landroid/support/transition/ViewUtilsApi14;
|
|
.super Ljava/lang/Object;
|
|
.source "ViewUtilsApi14.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/support/transition/ViewUtilsImpl;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/View;)Landroid/support/transition/ViewOverlayImpl;
|
|
.locals 0
|
|
|
|
.line 32
|
|
invoke-static {p1}, Landroid/support/transition/ViewOverlayApi14;->d(Landroid/view/View;)Landroid/support/transition/ViewOverlayApi14;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;F)V
|
|
.locals 1
|
|
|
|
.line 42
|
|
sget v0, Landroid/support/transition/R$a1;->save_non_transition_alpha:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Float;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 44
|
|
invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v0
|
|
|
|
mul-float v0, v0, p2
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setAlpha(F)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_0
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setAlpha(F)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;IIII)V
|
|
.locals 0
|
|
|
|
.line 145
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setLeft(I)V
|
|
|
|
.line 146
|
|
invoke-virtual {p1, p3}, Landroid/view/View;->setTop(I)V
|
|
|
|
.line 147
|
|
invoke-virtual {p1, p4}, Landroid/view/View;->setRight(I)V
|
|
|
|
.line 148
|
|
invoke-virtual {p1, p5}, Landroid/view/View;->setBottom(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
.locals 2
|
|
|
|
.line 78
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
.line 79
|
|
instance-of v1, v0, Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 80
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
.line 81
|
|
invoke-virtual {p0, v0, p2}, Landroid/support/transition/ViewUtilsApi14;->a(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
.line 82
|
|
invoke-virtual {v0}, Landroid/view/View;->getScrollX()I
|
|
|
|
move-result v1
|
|
|
|
neg-int v1, v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result v0
|
|
|
|
neg-int v0, v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p2, v1, v0}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
.line 84
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p2, v0, v1}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
.line 85
|
|
invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
|
|
|
|
move-result-object p1
|
|
|
|
.line 86
|
|
invoke-virtual {p1}, Landroid/graphics/Matrix;->isIdentity()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 87
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroid/view/View;)Landroid/support/transition/WindowIdImpl;
|
|
.locals 1
|
|
|
|
.line 37
|
|
new-instance v0, Landroid/support/transition/WindowIdApi14;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Landroid/support/transition/WindowIdApi14;-><init>(Landroid/os/IBinder;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
.locals 2
|
|
|
|
.line 93
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
.line 94
|
|
instance-of v1, v0, Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 95
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
.line 96
|
|
invoke-virtual {p0, v0, p2}, Landroid/support/transition/ViewUtilsApi14;->b(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
.line 97
|
|
invoke-virtual {v0}, Landroid/view/View;->getScrollX()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getScrollY()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p2, v1, v0}, Landroid/graphics/Matrix;->postTranslate(FF)Z
|
|
|
|
.line 99
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v0
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p2, v0, v1}, Landroid/graphics/Matrix;->postTranslate(FF)Z
|
|
|
|
.line 100
|
|
invoke-virtual {p1}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
|
|
|
|
move-result-object p1
|
|
|
|
.line 101
|
|
invoke-virtual {p1}, Landroid/graphics/Matrix;->isIdentity()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 102
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
.line 103
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->invert(Landroid/graphics/Matrix;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 104
|
|
invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->postConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Landroid/view/View;)F
|
|
.locals 1
|
|
|
|
.line 52
|
|
sget v0, Landroid/support/transition/R$a1;->save_non_transition_alpha:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Float;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 54
|
|
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v0
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
return p1
|
|
|
|
.line 56
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public d(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 62
|
|
sget v0, Landroid/support/transition/R$a1;->save_non_transition_alpha:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 63
|
|
sget v0, Landroid/support/transition/R$a1;->save_non_transition_alpha:I
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getAlpha()F
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 71
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 72
|
|
sget v0, Landroid/support/transition/R$a1;->save_non_transition_alpha:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|