cdj.smali

.class public Ldxoptimizer/cdj;
.super Ljava/lang/Object;
.source "DeviceFeatureUtils.java"


# direct methods
.method public static a(Landroid/content/Context;)Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 19
    invoke-static {p0}, Ldxoptimizer/cfb;->a(Landroid/content/Context;)Landroid/content/pm/PackageManager;

    move-result-object v1

    .line 20
    if-nez v1, :cond_8

    .line 23
    :cond_7
    :goto_7
    return v0

    :cond_8
    const-string v2, "android.hardware.touchscreen.multitouch"

    invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_20

    const-string v2, "android.hardware.touchscreen.multitouch.distinct"

    .line 24
    invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_20

    const-string v2, "android.hardware.touchscreen.multitouch.jazzhand"

    invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    :cond_20
    const/4 v0, 0x1

    goto :goto_7
.end method

.method public static b(Landroid/content/Context;)Z
    .registers 3

    .prologue
    const/4 v0, 0x1

    .line 37
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v1

    .line 38
    if-eqz v1, :cond_e

    invoke-virtual {v1, v0}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v1

    if-eqz v1, :cond_e

    :goto_d
    return v0

    :cond_e
    const/4 v0, 0x0

    goto :goto_d
.end method

.method public static c(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 42
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 43
    if-eqz v0, :cond_f

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method

.method public static d(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 48
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 49
    if-eqz v0, :cond_f

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method

.method public static e(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 53
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 54
    if-eqz v0, :cond_f

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method

.method public static f(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 58
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 59
    if-eqz v0, :cond_f

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_f

    const/4 v0, 0x1

    :goto_e
    return v0

    :cond_f
    const/4 v0, 0x0

    goto :goto_e
.end method

.method public static g(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 63
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 64
    if-eqz v0, :cond_10

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_10

    const/4 v0, 0x1

    :goto_f
    return v0

    :cond_10
    const/4 v0, 0x0

    goto :goto_f
.end method

.method public static h(Landroid/content/Context;)Z
    .registers 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0xe
    .end annotation

    .prologue
    .line 70
    invoke-static {p0}, Ldxoptimizer/cdj;->i(Landroid/content/Context;)Landroid/hardware/SensorManager;

    move-result-object v0

    .line 71
    if-eqz v0, :cond_17

    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v1

    if-nez v1, :cond_15

    const/16 v1, 0xd

    .line 72
    invoke-virtual {v0, v1}, Landroid/hardware/SensorManager;->getDefaultSensor(I)Landroid/hardware/Sensor;

    move-result-object v0

    if-eqz v0, :cond_17

    :cond_15
    const/4 v0, 0x1

    .line 71
    :goto_16
    return v0

    .line 72
    :cond_17
    const/4 v0, 0x0

    goto :goto_16
.end method

.method private static i(Landroid/content/Context;)Landroid/hardware/SensorManager;
    .registers 2

    .prologue
    .line 29
    :try_start_0
    const-string v0, "sensor"

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

    move-result-object v0

    check-cast v0, Landroid/hardware/SensorManager;
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_8} :catch_9

    .line 31
    :goto_8
    return-object v0

    .line 30
    :catch_9
    move-exception v0

    .line 31
    const/4 v0, 0x0

    goto :goto_8
.end method