b.smali

.class public final Lsg/bigo/live/support64/component/preparelive/view/b;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final a:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 11
    const-class v0, Lsg/bigo/live/support64/component/preparelive/view/b;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lsg/bigo/live/support64/component/preparelive/view/b;->a:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .registers 1

    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;)I
    .registers 4

    const/4 v0, -0x1

    :try_start_1
    const-string v1, "activity"

    .line 30
    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/app/ActivityManager;

    .line 31
    invoke-virtual {p0}, Landroid/app/ActivityManager;->getDeviceConfigurationInfo()Landroid/content/pm/ConfigurationInfo;

    move-result-object p0

    .line 32
    iget v1, p0, Landroid/content/pm/ConfigurationInfo;->reqGlEsVersion:I

    if-eqz v1, :cond_19

    .line 33
    iget p0, p0, Landroid/content/pm/ConfigurationInfo;->reqGlEsVersion:I
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_13} :catch_1c
    .catchall {:try_start_1 .. :try_end_13} :catchall_1a

    const/high16 v0, -0x10000

    and-int/2addr p0, v0

    shr-int/lit8 p0, p0, 0x10

    return p0

    :cond_19
    return v0

    :catchall_1a
    move-exception p0

    goto :goto_25

    :catch_1c
    move-exception p0

    .line 40
    :try_start_1d
    sget-object v1, Lsg/bigo/live/support64/component/preparelive/view/b;->a:Ljava/lang/String;

    const-string v2, "[getVersionFromActivityManager] error "

    invoke-static {v1, v2, p0}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_24
    .catchall {:try_start_1d .. :try_end_24} :catchall_1a

    return v0

    .line 42
    :goto_25
    throw p0
.end method