.class public final Lj6/l;
.super Lj6/i4;
.source ""


# instance fields
.field public c:J

.field public d:Ljava/lang/String;

.field public e:Landroid/accounts/AccountManager;

.field public f:Ljava/lang/Boolean;

.field public g:J


# direct methods
.method public constructor <init>(Lcom/google/android/gms/measurement/internal/d;)V
    .registers 2

    invoke-direct {p0, p1}, Lj6/i4;-><init>(Lcom/google/android/gms/measurement/internal/d;)V

    return-void
.end method


# virtual methods
.method public final i()Z
    .registers 6

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    sget-object v1, Ljava/util/concurrent/TimeUnit;->MINUTES:Ljava/util/concurrent/TimeUnit;

    const/16 v2, 0xf

    invoke-virtual {v0, v2}, Ljava/util/Calendar;->get(I)I

    move-result v2

    const/16 v3, 0x10

    invoke-virtual {v0, v3}, Ljava/util/Calendar;->get(I)I

    move-result v0

    add-int/2addr v0, v2

    int-to-long v2, v0

    sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v1, v2, v3, v0}, Ljava/util/concurrent/TimeUnit;->convert(JLjava/util/concurrent/TimeUnit;)J

    move-result-wide v0

    iput-wide v0, p0, Lj6/l;->c:J

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Ljava/util/Locale;->ENGLISH:Ljava/util/Locale;

    invoke-virtual {v1, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x1

    add-int/2addr v2, v3

    invoke-direct {v4, v2}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v2, "-"

    invoke-static {v4, v1, v2, v0}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lj6/l;->d:Ljava/lang/String;

    const/4 v0, 0x0

    return v0
.end method

.method public final n()J
    .registers 3

    invoke-virtual {p0}, Lcom/google/android/gms/measurement/internal/e;->g()V

    iget-wide v0, p0, Lj6/l;->g:J

    return-wide v0
.end method

.method public final o()J
    .registers 3

    invoke-virtual {p0}, Lj6/i4;->j()V

    iget-wide v0, p0, Lj6/l;->c:J

    return-wide v0
.end method

.method public final p()Ljava/lang/String;
    .registers 2

    invoke-virtual {p0}, Lj6/i4;->j()V

    iget-object v0, p0, Lj6/l;->d:Ljava/lang/String;

    return-object v0
.end method

.method public final r()Z
    .registers 9

    const-string v0, "com.google"

    invoke-virtual {p0}, Lcom/google/android/gms/measurement/internal/e;->g()V

    iget-object v1, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 1
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->n:Lu5/c;

    .line 2
    invoke-interface {v1}, Lu5/c;->b()J

    move-result-wide v1

    iget-wide v3, p0, Lj6/l;->g:J

    sub-long v3, v1, v3

    const-wide/32 v5, 0x5265c00

    cmp-long v3, v3, v5

    const/4 v4, 0x0

    if-lez v3, :cond_1b

    iput-object v4, p0, Lj6/l;->f:Ljava/lang/Boolean;

    :cond_1b
    iget-object v3, p0, Lj6/l;->f:Ljava/lang/Boolean;

    if-nez v3, :cond_9e

    iget-object v3, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 3
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    const-string v5, "android.permission.GET_ACCOUNTS"

    .line 4
    invoke-static {v3, v5}, Lc0/a;->a(Landroid/content/Context;Ljava/lang/String;)I

    move-result v3

    const/4 v5, 0x0

    if-eqz v3, :cond_40

    iget-object v0, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v0

    .line 5
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->j:Lj6/e3;

    const-string v3, "Permission error checking for dasher/unicorn accounts"

    .line 6
    invoke-virtual {v0, v3}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_39
    :goto_39
    iput-wide v1, p0, Lj6/l;->g:J

    sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    iput-object v0, p0, Lj6/l;->f:Ljava/lang/Boolean;

    return v5

    :cond_40
    iget-object v3, p0, Lj6/l;->e:Landroid/accounts/AccountManager;

    if-nez v3, :cond_4e

    iget-object v3, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 7
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 8
    invoke-static {v3}, Landroid/accounts/AccountManager;->get(Landroid/content/Context;)Landroid/accounts/AccountManager;

    move-result-object v3

    iput-object v3, p0, Lj6/l;->e:Landroid/accounts/AccountManager;

    :cond_4e
    :try_start_4e
    iget-object v3, p0, Lj6/l;->e:Landroid/accounts/AccountManager;

    const-string v6, "service_HOSTED"

    filled-new-array {v6}, [Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v0, v6, v4, v4}, Landroid/accounts/AccountManager;->getAccountsByTypeAndFeatures(Ljava/lang/String;[Ljava/lang/String;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;)Landroid/accounts/AccountManagerFuture;

    move-result-object v3

    invoke-interface {v3}, Landroid/accounts/AccountManagerFuture;->getResult()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [Landroid/accounts/Account;

    const/4 v6, 0x1

    if-eqz v3, :cond_6d

    array-length v3, v3

    if-lez v3, :cond_6d

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v0, p0, Lj6/l;->f:Ljava/lang/Boolean;

    iput-wide v1, p0, Lj6/l;->g:J

    return v6

    :cond_6d
    iget-object v3, p0, Lj6/l;->e:Landroid/accounts/AccountManager;

    const-string v7, "service_uca"

    filled-new-array {v7}, [Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v3, v0, v7, v4, v4}, Landroid/accounts/AccountManager;->getAccountsByTypeAndFeatures(Ljava/lang/String;[Ljava/lang/String;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;)Landroid/accounts/AccountManagerFuture;

    move-result-object v0

    invoke-interface {v0}, Landroid/accounts/AccountManagerFuture;->getResult()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Landroid/accounts/Account;

    if-eqz v0, :cond_39

    array-length v0, v0

    if-lez v0, :cond_39

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v0, p0, Lj6/l;->f:Ljava/lang/Boolean;

    iput-wide v1, p0, Lj6/l;->g:J
    :try_end_8a
    .catch Landroid/accounts/AuthenticatorException; {:try_start_4e .. :try_end_8a} :catch_8f
    .catch Ljava/io/IOException; {:try_start_4e .. :try_end_8a} :catch_8d
    .catch Landroid/accounts/OperationCanceledException; {:try_start_4e .. :try_end_8a} :catch_8b

    return v6

    :catch_8b
    move-exception v0

    goto :goto_90

    :catch_8d
    move-exception v0

    goto :goto_90

    :catch_8f
    move-exception v0

    :goto_90
    iget-object v3, p0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v3}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v3

    .line 9
    iget-object v3, v3, Lcom/google/android/gms/measurement/internal/b;->g:Lj6/e3;

    const-string v4, "Exception checking account types"

    .line 10
    invoke-virtual {v3, v4, v0}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_39

    :cond_9e
    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    return v0
.end method
