SwitchAnimationController.smali

.class public Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;
.super Ljava/lang/Object;
.source "SwitchAnimationController.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;,
        Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$b;,
        Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;
    }
.end annotation


# static fields
.field private static a:I

.field private static b:I

.field private static c:I


# instance fields
.field private d:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;

.field private e:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;

.field private f:Z

.field private g:I

.field private h:I

.field private i:I

.field private j:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 20
    const/16 v0, 0x100

    sput v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->a:I

    .line 21
    const/4 v0, 0x7

    sput v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->b:I

    .line 22
    const/16 v0, 0x10

    sput v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->c:I

    return-void
.end method

.method private constructor <init>()V
    .registers 3

    .prologue
    .line 32
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 27
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->f:Z

    .line 30
    sget v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->b:I

    iput v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    .line 33
    new-instance v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;-><init>(Lcom/cleanmaster/gameboost/view/button/e;)V

    iput-object v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->d:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;

    .line 34
    return-void
.end method

.method static a()Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;
    .registers 1

    .prologue
    .line 41
    new-instance v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;

    invoke-direct {v0}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;-><init>()V

    .line 42
    return-object v0
.end method

.method static synthetic a(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;)Z
    .registers 2

    .prologue
    .line 18
    iget-boolean v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->f:Z

    return v0
.end method

.method static synthetic b(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;)I
    .registers 2

    .prologue
    .line 18
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->g:I

    return v0
.end method

.method static synthetic c()I
    .registers 1

    .prologue
    .line 18
    sget v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->a:I

    return v0
.end method

.method static synthetic c(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;)Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;
    .registers 2

    .prologue
    .line 18
    iget-object v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->e:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;

    return-object v0
.end method

.method static synthetic d()I
    .registers 1

    .prologue
    .line 18
    sget v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->c:I

    return v0
.end method

.method static synthetic d(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;)Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;
    .registers 2

    .prologue
    .line 18
    iget-object v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->d:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$a;

    return-object v0
.end method


# virtual methods
.method a(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;)Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;
    .registers 4

    .prologue
    .line 51
    if-nez p1, :cond_a

    .line 52
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "onAnimateListener can not be null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 54
    :cond_a
    iput-object p1, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->e:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;

    .line 55
    return-object p0
.end method

.method public a(I)V
    .registers 3

    .prologue
    .line 96
    if-gtz p1, :cond_7

    .line 97
    sget v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->b:I

    iput v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    .line 101
    :goto_6
    return-void

    .line 100
    :cond_7
    iput p1, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    goto :goto_6
.end method

.method a(II)V
    .registers 5

    .prologue
    .line 70
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->f:Z

    .line 71
    iput p1, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->h:I

    .line 72
    iput p2, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->i:I

    .line 73
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    iput v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->g:I

    .line 74
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->i:I

    iget v1, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->h:I

    if-le v0, v1, :cond_27

    .line 75
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    iput v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->g:I

    .line 83
    :goto_19
    iget-object v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->e:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;

    invoke-interface {v0}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;->onAnimationStart()V

    .line 84
    new-instance v0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$b;

    invoke-direct {v0, p0}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$b;-><init>(Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;)V

    invoke-virtual {v0}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$b;->run()V

    .line 85
    :goto_26
    return-void

    .line 76
    :cond_27
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->i:I

    iget v1, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->h:I

    if-ge v0, v1, :cond_37

    .line 77
    iget v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->j:I

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    neg-int v0, v0

    iput v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->g:I

    goto :goto_19

    .line 79
    :cond_37
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->f:Z

    .line 80
    iget-object v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->e:Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;

    invoke-interface {v0}, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController$OnAnimateListener;->onAnimateComplete()V

    goto :goto_26
.end method

.method b()V
    .registers 2

    .prologue
    .line 88
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/gameboost/view/button/SwitchAnimationController;->f:Z

    .line 89
    return-void
.end method