.class public final Landroid/support/v4/view/ViewConfigurationCompat; .super Ljava/lang/Object; .source "ViewConfigurationCompat.java" # static fields .field private static final TAG:Ljava/lang/String; = "ViewConfigCompat" .field private static sGetScaledScrollFactorMethod:Ljava/lang/reflect/Method; # direct methods .method static constructor ()V .locals 3 .line 37 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x19 if-ne v0, v1, :cond_0 .line 39 :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 40 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, Landroid/support/v4/view/ViewConfigurationCompat;->sGetScaledScrollFactorMethod: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 42 invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I :cond_0 :goto_0 return-void .end method .method private constructor ()V .locals 0 .line 120 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static getLegacyScrollFactor(Landroid/view/ViewConfiguration;Landroid/content/Context;)F .locals 3 .line 104 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x19 if-lt v0, v1, :cond_0 sget-object v0, Landroid/support/v4/view/ViewConfigurationCompat;->sGetScaledScrollFactorMethod:Ljava/lang/reflect/Method; if-eqz v0, :cond_0 .line 106 :try_start_0 sget-object v0, Landroid/support/v4/view/ViewConfigurationCompat;->sGetScaledScrollFactorMethod:Ljava/lang/reflect/Method; const/4 v1, 0x0 new-array v1, v1, [Ljava/lang/Object; 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 108 invoke-static {p0, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I .line 112 :cond_0 new-instance p0, Landroid/util/TypedValue; invoke-direct {p0}, Landroid/util/TypedValue;->()V .line 113 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 115 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 getScaledHorizontalScrollFactor(Landroid/view/ViewConfiguration;Landroid/content/Context;)F .locals 2 .param p0 # Landroid/view/ViewConfiguration; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .param p1 # Landroid/content/Context; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .line 79 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1a if-lt v0, v1, :cond_0 .line 80 invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledHorizontalScrollFactor()F move-result p0 return p0 .line 82 :cond_0 invoke-static {p0, p1}, Landroid/support/v4/view/ViewConfigurationCompat;->getLegacyScrollFactor(Landroid/view/ViewConfiguration;Landroid/content/Context;)F move-result p0 return p0 .end method .method public static getScaledPagingTouchSlop(Landroid/view/ViewConfiguration;)I .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 55 invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledPagingTouchSlop()I move-result p0 return p0 .end method .method public static getScaledVerticalScrollFactor(Landroid/view/ViewConfiguration;Landroid/content/Context;)F .locals 2 .param p0 # Landroid/view/ViewConfiguration; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .param p1 # Landroid/content/Context; .annotation build Landroid/support/annotation/NonNull; .end annotation .end param .line 96 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0x1a if-lt v0, v1, :cond_0 .line 97 invoke-virtual {p0}, Landroid/view/ViewConfiguration;->getScaledVerticalScrollFactor()F move-result p0 return p0 .line 99 :cond_0 invoke-static {p0, p1}, Landroid/support/v4/view/ViewConfigurationCompat;->getLegacyScrollFactor(Landroid/view/ViewConfiguration;Landroid/content/Context;)F move-result p0 return p0 .end method .method public static hasPermanentMenuKey(Landroid/view/ViewConfiguration;)Z .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 66 invoke-virtual {p0}, Landroid/view/ViewConfiguration;->hasPermanentMenuKey()Z move-result p0 return p0 .end method