tmap/smali/s1/p0.smali
2022-06-10 21:38:30 +09:00

331 lines
7.1 KiB
Smali

.class public final Ls1/p0;
.super Ljava/lang/Object;
.source "ViewConfigurationCompat.java"
# static fields
.field public static final a:Ljava/lang/String; = "ViewConfigCompat"
.field public static b:Ljava/lang/reflect/Method;
# direct methods
.method public static constructor <clinit>()V
.locals 3
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x19
if-ne v0, v1, :cond_0
.line 2
:try_start_0
const-class v0, Landroid/view/ViewConfiguration;
const-string v1, "getScaledScrollFactor"
const/4 v2, 0x0
new-array v2, v2, [Ljava/lang/Class;
.line 3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
sput-object v0, Ls1/p0;->b:Ljava/lang/reflect/Method;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const-string v0, "ViewConfigCompat"
const-string v1, "Could not find method getScaledScrollFactor() on ViewConfiguration"
.line 4
invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
:goto_0
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Landroid/view/ViewConfiguration;Landroid/content/Context;)F
.locals 3
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x19
if-lt v0, v1, :cond_0
sget-object v0, Ls1/p0;->b:Ljava/lang/reflect/Method;
if-eqz v0, :cond_0
const/4 v1, 0x0
:try_start_0
new-array v1, v1, [Ljava/lang/Object;
.line 2
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Integer;
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
int-to-float p0, p0
return p0
:catch_0
const-string p0, "ViewConfigCompat"
const-string v0, "Could not find method getScaledScrollFactor() on ViewConfiguration"
.line 3
invoke-static {p0, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 4
:cond_0
new-instance p0, Landroid/util/TypedValue;
invoke-direct {p0}, Landroid/util/TypedValue;-><init>()V
.line 5
invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v0
const v1, 0x101004d
const/4 v2, 0x1
invoke-virtual {v0, v1, p0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
move-result v0
if-eqz v0, :cond_1
.line 6
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p1
invoke-virtual {p0, p1}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result p0
return p0
:cond_1
const/4 p0, 0x0
return p0
.end method
.method public static b(Landroid/view/ViewConfiguration;Landroid/content/Context;)F
.locals 2
.param p0 # Landroid/view/ViewConfiguration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledHorizontalScrollFactor()F
move-result p0
return p0
.line 3
:cond_0
invoke-static {p0, p1}, Ls1/p0;->a(Landroid/view/ViewConfiguration;Landroid/content/Context;)F
move-result p0
return p0
.end method
.method public static c(Landroid/view/ViewConfiguration;)I
.locals 2
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1c
if-lt v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledHoverSlop()I
move-result p0
return p0
.line 3
:cond_0
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I
move-result p0
div-int/lit8 p0, p0, 0x2
return p0
.end method
.method public static d(Landroid/view/ViewConfiguration;)I
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledPagingTouchSlop()I
move-result p0
return p0
.end method
.method public static e(Landroid/view/ViewConfiguration;Landroid/content/Context;)F
.locals 2
.param p0 # Landroid/view/ViewConfiguration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledVerticalScrollFactor()F
move-result p0
return p0
.line 3
:cond_0
invoke-static {p0, p1}, Ls1/p0;->a(Landroid/view/ViewConfiguration;Landroid/content/Context;)F
move-result p0
return p0
.end method
.method public static f(Landroid/view/ViewConfiguration;)Z
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 1
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->hasPermanentMenuKey()Z
move-result p0
return p0
.end method
.method public static g(Landroid/view/ViewConfiguration;Landroid/content/Context;)Z
.locals 2
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1c
if-lt v0, v1, :cond_0
.line 2
invoke-virtual {p0}, Landroid/view/ViewConfiguration;->shouldShowMenuShortcutsWhenKeyboardPresent()Z
move-result p0
return p0
.line 3
:cond_0
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p0
const-string p1, "config_showMenuShortcutsWhenKeyboardPresent"
const-string v0, "bool"
const-string v1, "android"
.line 4
invoke-virtual {p0, p1, v0, v1}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
move-result p1
if-eqz p1, :cond_1
.line 5
invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getBoolean(I)Z
move-result p0
if-eqz p0, :cond_1
const/4 p0, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x0
:goto_0
return p0
.end method