Weather/smali/android/support/v4/os/BuildCompat.smali
2021-05-10 10:13:34 +02:00

122 lines
1.9 KiB
Smali

.class public Landroid/support/v4/os/BuildCompat;
.super Ljava/lang/Object;
.source "BuildCompat.java"
# direct methods
.method private constructor <init>()V
.locals 0
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static isAtLeastN()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 39
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public static isAtLeastNMR1()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 52
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x19
if-lt v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public static isAtLeastO()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 65
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public static isAtLeastOMR1()Z
.locals 2
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 78
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1b
if-lt v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public static isAtLeastP()Z
.locals 2
.line 91
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
const-string v1, "P"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
return v0
.end method