KeyCycleOscillator$ProgressSet.smali
.class public Landroidx/constraintlayout/motion/widget/KeyCycleOscillator$ProgressSet;
.super Landroidx/constraintlayout/motion/widget/KeyCycleOscillator;
.source "KeyCycleOscillator.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/constraintlayout/motion/widget/KeyCycleOscillator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ProgressSet"
.end annotation
# instance fields
.field public mNoMethod:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator$ProgressSet;->mNoMethod:Z
return-void
.end method
# virtual methods
.method public setProperty(Landroid/view/View;F)V
.registers 12
const-string/jumbo v0, "unable to setProgress"
const-string v1, "KeyCycleOscillator"
instance-of v2, p1, Landroidx/constraintlayout/motion/widget/MotionLayout;
if-eqz v2, :cond_13
check-cast p1, Landroidx/constraintlayout/motion/widget/MotionLayout;
invoke-virtual {p0, p2}, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator;->get(F)F
move-result p2
invoke-virtual {p1, p2}, Landroidx/constraintlayout/motion/widget/MotionLayout;->setProgress(F)V
goto :goto_49
:cond_13
iget-boolean v2, p0, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator$ProgressSet;->mNoMethod:Z
if-eqz v2, :cond_18
return-void
:cond_18
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x1
:try_start_1b
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v5
const-string v6, "setProgress"
new-array v7, v4, [Ljava/lang/Class;
sget-object v8, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
aput-object v8, v7, v3
invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v2
:try_end_2b
.catch Ljava/lang/NoSuchMethodException; {:try_start_1b .. :try_end_2b} :catch_2c
goto :goto_2e
:catch_2c
iput-boolean v4, p0, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator$ProgressSet;->mNoMethod:Z
:goto_2e
if-eqz v2, :cond_49
:try_start_30
new-array v4, v4, [Ljava/lang/Object;
invoke-virtual {p0, p2}, Landroidx/constraintlayout/motion/widget/KeyCycleOscillator;->get(F)F
move-result p2
invoke-static {p2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object p2
aput-object p2, v4, v3
invoke-virtual {v2, p1, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_3f
.catch Ljava/lang/IllegalAccessException; {:try_start_30 .. :try_end_3f} :catch_45
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_30 .. :try_end_3f} :catch_40
goto :goto_49
:catch_40
move-exception p1
invoke-static {v1, v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_49
:catch_45
move-exception p1
invoke-static {v1, v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:cond_49
:goto_49
return-void
.end method