ViewUtilsApi21.smali
.class Landroidx/transition/ViewUtilsApi21;
.super Landroidx/transition/ViewUtilsApi19;
.source "ViewUtilsApi21.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "ViewUtilsApi21"
.field private static sSetAnimationMatrixMethod:Ljava/lang/reflect/Method;
.field private static sSetAnimationMatrixMethodFetched:Z
.field private static sTransformMatrixToGlobalMethod:Ljava/lang/reflect/Method;
.field private static sTransformMatrixToGlobalMethodFetched:Z
.field private static sTransformMatrixToLocalMethod:Ljava/lang/reflect/Method;
.field private static sTransformMatrixToLocalMethodFetched:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>()V
.registers 1
.line 30
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi19;-><init>()V
return-void
.end method
.method private fetchSetAnimationMatrix()V
.registers 7
.line 110
sget-boolean v0, Landroidx/transition/ViewUtilsApi21;->sSetAnimationMatrixMethodFetched:Z
if-nez v0, :cond_25
.line 112
const/4 v0, 0x1
:try_start_5
const-class v1, Landroid/view/View;
const-string/jumbo v2, "setAnimationMatrix"
new-array v3, v0, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Landroid/graphics/Matrix;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Landroidx/transition/ViewUtilsApi21;->sSetAnimationMatrixMethod:Ljava/lang/reflect/Method;
.line 114
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_1a
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_1a} :catch_1b
.line 117
goto :goto_23
.line 115
:catch_1b
move-exception v1
.line 116
.local v1, "e":Ljava/lang/NoSuchMethodException;
const-string v2, "ViewUtilsApi21"
const-string v3, "Failed to retrieve setAnimationMatrix method"
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 118
.end local v1 # "e":Ljava/lang/NoSuchMethodException;
:goto_23
sput-boolean v0, Landroidx/transition/ViewUtilsApi21;->sSetAnimationMatrixMethodFetched:Z
.line 120
:cond_25
return-void
.end method
.method private fetchTransformMatrixToGlobalMethod()V
.registers 7
.line 84
sget-boolean v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToGlobalMethodFetched:Z
if-nez v0, :cond_25
.line 86
const/4 v0, 0x1
:try_start_5
const-class v1, Landroid/view/View;
const-string/jumbo v2, "transformMatrixToGlobal"
new-array v3, v0, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Landroid/graphics/Matrix;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToGlobalMethod:Ljava/lang/reflect/Method;
.line 88
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_1a
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_1a} :catch_1b
.line 91
goto :goto_23
.line 89
:catch_1b
move-exception v1
.line 90
.local v1, "e":Ljava/lang/NoSuchMethodException;
const-string v2, "ViewUtilsApi21"
const-string v3, "Failed to retrieve transformMatrixToGlobal method"
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 92
.end local v1 # "e":Ljava/lang/NoSuchMethodException;
:goto_23
sput-boolean v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToGlobalMethodFetched:Z
.line 94
:cond_25
return-void
.end method
.method private fetchTransformMatrixToLocalMethod()V
.registers 7
.line 97
sget-boolean v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToLocalMethodFetched:Z
if-nez v0, :cond_25
.line 99
const/4 v0, 0x1
:try_start_5
const-class v1, Landroid/view/View;
const-string/jumbo v2, "transformMatrixToLocal"
new-array v3, v0, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Landroid/graphics/Matrix;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToLocalMethod:Ljava/lang/reflect/Method;
.line 101
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_1a
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_1a} :catch_1b
.line 104
goto :goto_23
.line 102
:catch_1b
move-exception v1
.line 103
.local v1, "e":Ljava/lang/NoSuchMethodException;
const-string v2, "ViewUtilsApi21"
const-string v3, "Failed to retrieve transformMatrixToLocal method"
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 105
.end local v1 # "e":Ljava/lang/NoSuchMethodException;
:goto_23
sput-boolean v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToLocalMethodFetched:Z
.line 107
:cond_25
return-void
.end method
# virtual methods
.method public setAnimationMatrix(Landroid/view/View;Landroid/graphics/Matrix;)V
.registers 6
.param p1, "view" # Landroid/view/View;
.param p2, "matrix" # Landroid/graphics/Matrix;
.line 71
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi21;->fetchSetAnimationMatrix()V
.line 72
sget-object v0, Landroidx/transition/ViewUtilsApi21;->sSetAnimationMatrixMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_1d
.line 74
const/4 v1, 0x1
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p2, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_10
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_8 .. :try_end_10} :catch_1c
.catch Ljava/lang/IllegalAccessException; {:try_start_8 .. :try_end_10} :catch_11
goto :goto_1d
.line 77
:catch_11
move-exception v0
.line 78
.local v0, "e":Ljava/lang/IllegalAccessException;
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/lang/IllegalAccessException;->getCause()Ljava/lang/Throwable;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.line 75
.end local v0 # "e":Ljava/lang/IllegalAccessException;
:catch_1c
move-exception v0
.line 81
:cond_1d
:goto_1d
return-void
.end method
.method public transformMatrixToGlobal(Landroid/view/View;Landroid/graphics/Matrix;)V
.registers 6
.param p1, "view" # Landroid/view/View;
.param p2, "matrix" # Landroid/graphics/Matrix;
.line 43
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi21;->fetchTransformMatrixToGlobalMethod()V
.line 44
sget-object v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToGlobalMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_1d
.line 46
const/4 v1, 0x1
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p2, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_10
.catch Ljava/lang/IllegalAccessException; {:try_start_8 .. :try_end_10} :catch_1c
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_8 .. :try_end_10} :catch_11
goto :goto_1d
.line 49
:catch_11
move-exception v0
.line 50
.local v0, "e":Ljava/lang/reflect/InvocationTargetException;
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.line 47
.end local v0 # "e":Ljava/lang/reflect/InvocationTargetException;
:catch_1c
move-exception v0
.line 53
:cond_1d
:goto_1d
return-void
.end method
.method public transformMatrixToLocal(Landroid/view/View;Landroid/graphics/Matrix;)V
.registers 6
.param p1, "view" # Landroid/view/View;
.param p2, "matrix" # Landroid/graphics/Matrix;
.line 57
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi21;->fetchTransformMatrixToLocalMethod()V
.line 58
sget-object v0, Landroidx/transition/ViewUtilsApi21;->sTransformMatrixToLocalMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_1d
.line 60
const/4 v1, 0x1
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
aput-object p2, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_10
.catch Ljava/lang/IllegalAccessException; {:try_start_8 .. :try_end_10} :catch_1c
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_8 .. :try_end_10} :catch_11
goto :goto_1d
.line 63
:catch_11
move-exception v0
.line 64
.local v0, "e":Ljava/lang/reflect/InvocationTargetException;
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.line 61
.end local v0 # "e":Ljava/lang/reflect/InvocationTargetException;
:catch_1c
move-exception v0
.line 67
:cond_1d
:goto_1d
return-void
.end method