261 lines
6.4 KiB
Smali
261 lines
6.4 KiB
Smali
.class public final Landroidx/core/widget/EdgeEffectCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/widget/EdgeEffectCompat$Api31Impl;,
|
|
Landroidx/core/widget/EdgeEffectCompat$Api21Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 55
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 56
|
|
new-instance v0, Landroid/widget/EdgeEffect;
|
|
|
|
invoke-direct {v0, p1}, Landroid/widget/EdgeEffect;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static create(Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/widget/EdgeEffect;
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 69
|
|
invoke-static {p0, p1}, Landroidx/core/widget/EdgeEffectCompat$Api31Impl;->create(Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/widget/EdgeEffect;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 72
|
|
:cond_0
|
|
new-instance p1, Landroid/widget/EdgeEffect;
|
|
|
|
invoke-direct {p1, p0}, Landroid/widget/EdgeEffect;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static getDistance(Landroid/widget/EdgeEffect;)F
|
|
.locals 2
|
|
.param p0 # Landroid/widget/EdgeEffect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 90
|
|
invoke-static {p0}, Landroidx/core/widget/EdgeEffectCompat$Api31Impl;->getDistance(Landroid/widget/EdgeEffect;)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static onPull(Landroid/widget/EdgeEffect;FF)V
|
|
.locals 0
|
|
.param p0 # Landroid/widget/EdgeEffect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 197
|
|
invoke-static {p0, p1, p2}, Landroidx/core/widget/EdgeEffectCompat$Api21Impl;->onPull(Landroid/widget/EdgeEffect;FF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static onPullDistance(Landroid/widget/EdgeEffect;FF)F
|
|
.locals 2
|
|
.param p0 # Landroid/widget/EdgeEffect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 246
|
|
invoke-static {p0, p1, p2}, Landroidx/core/widget/EdgeEffectCompat$Api31Impl;->onPullDistance(Landroid/widget/EdgeEffect;FF)F
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
.line 248
|
|
:cond_0
|
|
invoke-static {p0, p1, p2}, Landroidx/core/widget/EdgeEffectCompat;->onPull(Landroid/widget/EdgeEffect;FF)V
|
|
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public draw(Landroid/graphics/Canvas;)Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 301
|
|
invoke-virtual {v0, p1}, Landroid/widget/EdgeEffect;->draw(Landroid/graphics/Canvas;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public finish()V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 130
|
|
invoke-virtual {v0}, Landroid/widget/EdgeEffect;->finish()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isFinished()Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 119
|
|
invoke-virtual {v0}, Landroid/widget/EdgeEffect;->isFinished()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onAbsorb(I)Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 283
|
|
invoke-virtual {v0, p1}, Landroid/widget/EdgeEffect;->onAbsorb(I)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onPull(F)Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 148
|
|
invoke-virtual {v0, p1}, Landroid/widget/EdgeEffect;->onPull(F)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onPull(FF)Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 173
|
|
invoke-static {v0, p1, p2}, Landroidx/core/widget/EdgeEffectCompat;->onPull(Landroid/widget/EdgeEffect;FF)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onRelease()Z
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 264
|
|
invoke-virtual {v0}, Landroid/widget/EdgeEffect;->onRelease()V
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 265
|
|
invoke-virtual {v0}, Landroid/widget/EdgeEffect;->isFinished()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public setSize(II)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/core/widget/EdgeEffectCompat;->mEdgeEffect:Landroid/widget/EdgeEffect;
|
|
|
|
.line 105
|
|
invoke-virtual {v0, p1, p2}, Landroid/widget/EdgeEffect;->setSize(II)V
|
|
|
|
return-void
|
|
.end method
|