.class public final synthetic Lx4/b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Le5/n$b;
.implements Lm8/g$a;


# static fields
.field public static final synthetic r:Lx4/b;

.field public static final synthetic s:Lx4/b;


# direct methods
.method public static synthetic constructor <clinit>()V
    .registers 2

    new-instance v0, Lx4/b;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lx4/b;-><init>(I)V

    sput-object v0, Lx4/b;->r:Lx4/b;

    new-instance v0, Lx4/b;

    const/4 v1, 0x2

    invoke-direct {v0, v1}, Lx4/b;-><init>(I)V

    sput-object v0, Lx4/b;->s:Lx4/b;

    return-void
.end method

.method public synthetic constructor <init>(I)V
    .registers 2

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

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/Object;)Ljava/lang/String;
    .registers 5

    check-cast p1, Landroid/content/Context;

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const-string v2, "android.hardware.type.television"

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

    move-result v1

    if-eqz v1, :cond_13

    const-string p1, "tv"

    goto :goto_46

    :cond_13
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const-string v2, "android.hardware.type.watch"

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

    move-result v1

    if-eqz v1, :cond_22

    const-string p1, "watch"

    goto :goto_46

    :cond_22
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const-string v2, "android.hardware.type.automotive"

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

    move-result v1

    if-eqz v1, :cond_31

    const-string p1, "auto"

    goto :goto_46

    :cond_31
    const/16 v1, 0x1a

    if-lt v0, v1, :cond_44

    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    const-string v0, "android.hardware.type.embedded"

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

    move-result p1

    if-eqz p1, :cond_44

    const-string p1, "embedded"

    goto :goto_46

    :cond_44
    const-string p1, ""

    :goto_46
    return-object p1
.end method

.method public apply(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 2

    check-cast p1, Landroid/database/Cursor;

    invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z

    move-result p1

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    return-object p1
.end method
