granularity level: instruction

		.class public final Lcom/google/android/gms/common/util/DeviceProperties;
.super Ljava/lang/Object;
.source "com.google.android.gms:play-services-basement@@18.1.0"


.field private static zza:Ljava/lang/Boolean;
.field private static zzb:Ljava/lang/Boolean;
.field private static zzc:Ljava/lang/Boolean;
.field private static zzd:Ljava/lang/Boolean;
.field private static zze:Ljava/lang/Boolean;
.field private static zzf:Ljava/lang/Boolean;
.field private static zzg:Ljava/lang/Boolean;
.field private static zzh:Ljava/lang/Boolean;
.field private static zzi:Ljava/lang/Boolean;
.field private static zzj:Ljava/lang/Boolean;
.field private static zzk:Ljava/lang/Boolean;
.field private static zzl:Ljava/lang/Boolean;


.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public static isAuto(Landroid/content/Context;)Z
	.locals 2

	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzi:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastO()Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	const-string v0, "android.hardware.type.automotive"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	const/4 v1, 0x1
	:cond_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzi:Ljava/lang/Boolean;
	:cond_1
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzi:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isBstar(Landroid/content/Context;)Z
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzl:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastR()Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	const-string v0, "com.google.android.play.feature.HPE_EXPERIENCE"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	const/4 v1, 0x1
	:cond_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzl:Ljava/lang/Boolean;
	:cond_1
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzl:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isLatchsky(Landroid/content/Context;)Z
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzf:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	const-string v0, "com.google.android.feature.services_updater"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	const-string v0, "cn.google.services"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	const/4 v1, 0x1
	:cond_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzf:Ljava/lang/Boolean;
	:cond_1
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzf:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isPhone(Landroid/content/Context;)Z
	.locals 3

	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zza:Ljava/lang/Boolean;
	if-nez v0, :cond_3
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isTablet(Landroid/content/Context;)Z
	move-result v0
	const/4 v1, 0x0
	if-nez v0, :cond_2
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearable(Landroid/content/Context;)Z
	move-result v0
	if-nez v0, :cond_2
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzb(Landroid/content/Context;)Z
	move-result v0
	if-nez v0, :cond_2
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzh:Ljava/lang/Boolean;
	if-nez v0, :cond_0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const-string v2, "org.chromium.arc"
	invoke-virtual {v0, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v0
	sput-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzh:Ljava/lang/Boolean;
	:cond_0
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzh:Ljava/lang/Boolean;
	invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v0
	if-nez v0, :cond_2
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isAuto(Landroid/content/Context;)Z
	move-result v0
	if-nez v0, :cond_2
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isTv(Landroid/content/Context;)Z
	move-result v0
	if-nez v0, :cond_2
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzk:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const-string v2, "com.google.android.feature.AMATI_EXPERIENCE"
	invoke-virtual {v0, v2}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object v0
	sput-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzk:Ljava/lang/Boolean;
	:cond_1
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzk:Ljava/lang/Boolean;
	invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result v0
	if-nez v0, :cond_2
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isBstar(Landroid/content/Context;)Z
	move-result p0
	if-nez p0, :cond_2
	const/4 v1, 0x1
	:cond_2
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zza:Ljava/lang/Boolean;
	:cond_3
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zza:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isSevenInchTablet(Landroid/content/Context;)Z
	.locals 0

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzc(Landroid/content/res/Resources;)Z
	move-result p0
	return p0
.end method

.method public static isSidewinder(Landroid/content/Context;)Z
	.locals 0

	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zza(Landroid/content/Context;)Z
	move-result p0
	return p0
.end method

.method public static isTablet(Landroid/content/Context;)Z
	.locals 0

	invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
	move-result-object p0
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isTablet(Landroid/content/res/Resources;)Z
	move-result p0
	return p0
.end method

.method public static isTablet(Landroid/content/res/Resources;)Z
	.locals 4

	const/4 v0, 0x0
	if-nez p0, :cond_0
	return v0
	:cond_0
	sget-object v1, Lcom/google/android/gms/common/util/DeviceProperties;->zzb:Ljava/lang/Boolean;
	if-nez v1, :cond_3
	invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
	move-result-object v1
	iget v1, v1, Landroid/content/res/Configuration;->screenLayout:I
	and-int/lit8 v1, v1, 0xf
	const/4 v2, 0x3
	const/4 v3, 0x1
	if-le v1, v2, :cond_1
	:goto_0
	const/4 v0, 0x1
	goto :goto_1
	:cond_1
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzc(Landroid/content/res/Resources;)Z
	move-result p0
	if-eqz p0, :cond_2
	goto :goto_0
	:goto_1
	:cond_2
	invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzb:Ljava/lang/Boolean;
	:cond_3
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzb:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isTv(Landroid/content/Context;)Z
	.locals 2

	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzj:Ljava/lang/Boolean;
	if-nez v0, :cond_2
	const-string v0, "com.google.android.tv"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	const/4 v1, 0x1
	if-nez v0, :cond_1
	const-string v0, "android.hardware.type.television"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	if-nez v0, :cond_1
	const-string v0, "android.software.leanback"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:cond_1
	:goto_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzj:Ljava/lang/Boolean;
	:cond_2
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzj:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isUserBuild()Z
	.locals 2

	sget v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I
	sget-object v0, Landroid/os/Build;->TYPE:Ljava/lang/String;
	const-string v1, "user"
	invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result v0
	return v0
.end method

.method public static isWearable(Landroid/content/Context;)Z
	.locals 2

	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzd:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastKitKatWatch()Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	const-string v0, "android.hardware.type.watch"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	const/4 v1, 0x1
	:cond_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzd:Ljava/lang/Boolean;
	:cond_1
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzd:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static isWearableWithoutPlayStore(Landroid/content/Context;)Z
	.locals 1

	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearable(Landroid/content/Context;)Z
	move-result v0
	if-eqz v0, :cond_0
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastN()Z
	move-result v0
	if-eqz v0, :cond_1
	:cond_0
	invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zza(Landroid/content/Context;)Z
	move-result p0
	if-eqz p0, :cond_2
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastO()Z
	move-result p0
	if-eqz p0, :cond_1
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastR()Z
	move-result p0
	if-eqz p0, :cond_2
	:cond_1
	const/4 p0, 0x1
	return p0
	:cond_2
	const/4 p0, 0x0
	return p0
.end method

.method public static zza(Landroid/content/Context;)Z
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zze:Ljava/lang/Boolean;
	if-nez v0, :cond_1
	invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastLollipop()Z
	move-result v0
	const/4 v1, 0x0
	if-eqz v0, :cond_0
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	const-string v0, "cn.google"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	const/4 v1, 0x1
	:cond_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zze:Ljava/lang/Boolean;
	:cond_1
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zze:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static zzb(Landroid/content/Context;)Z
	.locals 2

	sget-object v0, Lcom/google/android/gms/common/util/DeviceProperties;->zzg:Ljava/lang/Boolean;
	if-nez v0, :cond_2
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const-string v1, "android.hardware.type.iot"
	invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result v0
	const/4 v1, 0x1
	if-nez v0, :cond_1
	invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object p0
	const-string v0, "android.hardware.type.embedded"
	invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
	move-result p0
	if-eqz p0, :cond_0
	goto :goto_0
	:cond_0
	const/4 v1, 0x0
	:cond_1
	:goto_0
	invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzg:Ljava/lang/Boolean;
	:cond_2
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzg:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method

.method public static zzc(Landroid/content/res/Resources;)Z
	.locals 3

	const/4 v0, 0x0
	if-nez p0, :cond_0
	return v0
	:cond_0
	sget-object v1, Lcom/google/android/gms/common/util/DeviceProperties;->zzc:Ljava/lang/Boolean;
	if-nez v1, :cond_2
	invoke-virtual {p0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
	move-result-object p0
	iget v1, p0, Landroid/content/res/Configuration;->screenLayout:I
	and-int/lit8 v1, v1, 0xf
	const/4 v2, 0x3
	if-gt v1, v2, :cond_1
	iget p0, p0, Landroid/content/res/Configuration;->smallestScreenWidthDp:I
	const/16 v1, 0x258
	if-lt p0, v1, :cond_1
	const/4 v0, 0x1
	:cond_1
	invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
	move-result-object p0
	sput-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzc:Ljava/lang/Boolean;
	:cond_2
	sget-object p0, Lcom/google/android/gms/common/util/DeviceProperties;->zzc:Ljava/lang/Boolean;
	invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
	move-result p0
	return p0
.end method