459 lines
15 KiB
Smali
459 lines
15 KiB
Smali
.class public final Lcom/google/android/material/progressindicator/IndeterminateDrawable;
|
|
.super Lf/h/a/g/g/a;
|
|
.source "IndeterminateDrawable.java"
|
|
|
|
|
|
# instance fields
|
|
.field public animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate<",
|
|
"Landroid/animation/AnimatorSet;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;Lcom/google/android/material/progressindicator/DrawingDelegate;Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;",
|
|
"Lcom/google/android/material/progressindicator/DrawingDelegate;",
|
|
"Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate<",
|
|
"Landroid/animation/AnimatorSet;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1, p2}, Lf/h/a/g/g/a;-><init>(Landroid/content/Context;Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;)V
|
|
|
|
iput-object p3, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
invoke-virtual {p0, p4}, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->setAnimatorDelegate(Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcom/google/android/material/progressindicator/IndeterminateDrawable;)Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic clearAnimationCallbacks()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->clearAnimationCallbacks()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
.locals 11
|
|
.param p1 # Landroid/graphics/Canvas;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->isVisible()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->getClipBounds(Landroid/graphics/Rect;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
iget-object v1, p0, Lf/h/a/g/g/a;->spec:Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
|
|
invoke-virtual {p0}, Lf/h/a/g/g/a;->getGrowFraction()F
|
|
|
|
move-result v2
|
|
|
|
invoke-interface {v0, p1, v1, v2}, Lcom/google/android/material/progressindicator/DrawingDelegate;->adjustCanvas(Landroid/graphics/Canvas;Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;F)V
|
|
|
|
iget-object v0, p0, Lf/h/a/g/g/a;->spec:Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
|
|
iget v0, v0, Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;->indicatorWidth:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p0}, Lf/h/a/g/g/a;->getGrowFraction()F
|
|
|
|
move-result v1
|
|
|
|
mul-float v1, v1, v0
|
|
|
|
iget-object v0, p0, Lf/h/a/g/g/a;->spec:Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
|
|
iget v0, v0, Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;->indicatorCornerRadius:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-virtual {p0}, Lf/h/a/g/g/a;->getGrowFraction()F
|
|
|
|
move-result v2
|
|
|
|
mul-float v0, v0, v2
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
iget-object v4, p0, Lf/h/a/g/g/a;->paint:Landroid/graphics/Paint;
|
|
|
|
iget v5, p0, Lf/h/a/g/g/a;->combinedTrackColor:I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/high16 v7, 0x3f800000 # 1.0f
|
|
|
|
move-object v3, p1
|
|
|
|
move v8, v1
|
|
|
|
move v9, v0
|
|
|
|
invoke-interface/range {v2 .. v9}, Lcom/google/android/material/progressindicator/DrawingDelegate;->fillTrackWithColor(Landroid/graphics/Canvas;Landroid/graphics/Paint;IFFFF)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
iget-object v3, v2, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->segmentColors:[I
|
|
|
|
array-length v4, v3
|
|
|
|
if-ge v10, v4, :cond_1
|
|
|
|
iget-object v4, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
iget-object v5, p0, Lf/h/a/g/g/a;->paint:Landroid/graphics/Paint;
|
|
|
|
aget v6, v3, v10
|
|
|
|
iget-object v2, v2, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->segmentPositions:[F
|
|
|
|
mul-int/lit8 v3, v10, 0x2
|
|
|
|
aget v7, v2, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
aget v8, v2, v3
|
|
|
|
move-object v2, v4
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v4, v5
|
|
|
|
move v5, v6
|
|
|
|
move v6, v7
|
|
|
|
move v7, v8
|
|
|
|
move v8, v1
|
|
|
|
move v9, v0
|
|
|
|
invoke-interface/range {v2 .. v9}, Lcom/google/android/material/progressindicator/DrawingDelegate;->fillTrackWithColor(Landroid/graphics/Canvas;Landroid/graphics/Paint;IFFFF)V
|
|
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic getAlpha()I
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->getAlpha()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getAnimatorDelegate()Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate<",
|
|
"Landroid/animation/AnimatorSet;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDrawingDelegate()Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getIntrinsicHeight()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
iget-object v1, p0, Lf/h/a/g/g/a;->spec:Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
|
|
invoke-interface {v0, v1}, Lcom/google/android/material/progressindicator/DrawingDelegate;->getPreferredHeight(Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getIntrinsicWidth()I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->drawingDelegate:Lcom/google/android/material/progressindicator/DrawingDelegate;
|
|
|
|
iget-object v1, p0, Lf/h/a/g/g/a;->spec:Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;
|
|
|
|
invoke-interface {v0, v1}, Lcom/google/android/material/progressindicator/DrawingDelegate;->getPreferredWidth(Lcom/google/android/material/progressindicator/ProgressIndicatorSpec;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getOpacity()I
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->getOpacity()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic hideNow()Z
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->hideNow()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic isRunning()Z
|
|
.locals 1
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public bridge synthetic registerAnimationCallback(Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-super {p0, p1}, Lf/h/a/g/g/a;->registerAnimationCallback(Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setAlpha(I)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Lf/h/a/g/g/a;->setAlpha(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimatorDelegate(Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate<",
|
|
"Landroid/animation/AnimatorSet;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
invoke-virtual {p1, p0}, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->registerDrawable(Lcom/google/android/material/progressindicator/IndeterminateDrawable;)V
|
|
|
|
invoke-virtual {p0}, Lf/h/a/g/g/a;->getHideAnimator()Landroid/animation/ValueAnimator;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/google/android/material/progressindicator/IndeterminateDrawable$a;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/progressindicator/IndeterminateDrawable$a;-><init>(Lcom/google/android/material/progressindicator/IndeterminateDrawable;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
invoke-virtual {p0, p1}, Lf/h/a/g/g/a;->setGrowFraction(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/ColorFilter;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-super {p0, p1}, Lf/h/a/g/g/a;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic setVisible(ZZ)Z
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1, p2}, Lf/h/a/g/g/a;->setVisible(ZZ)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setVisible(ZZZ)Z
|
|
.locals 1
|
|
|
|
invoke-super {p0, p1, p2, p3}, Lf/h/a/g/g/a;->setVisible(ZZZ)Z
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->isRunning()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->cancelAnimatorImmediately()V
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->resetPropertiesForNewStart()V
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/google/android/material/progressindicator/IndeterminateDrawable;->animatorDelegate:Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/progressindicator/IndeterminateAnimatorDelegate;->startAnimator()V
|
|
|
|
:cond_1
|
|
return p2
|
|
.end method
|
|
|
|
.method public bridge synthetic start()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->start()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic stop()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lf/h/a/g/g/a;->stop()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic unregisterAnimationCallback(Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;)Z
|
|
.locals 0
|
|
.param p1 # Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-super {p0, p1}, Lf/h/a/g/g/a;->unregisterAnimationCallback(Landroidx/vectordrawable/graphics/drawable/Animatable2Compat$AnimationCallback;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|