.class public final Lj6/w5;
.super Lj6/y5;
.source ""


# instance fields
.field public final d:Landroid/app/AlarmManager;

.field public e:Lj6/k;

.field public f:Ljava/lang/Integer;


# direct methods
.method public constructor <init>(Lj6/b6;)V
    .registers 3

    invoke-direct {p0, p1}, Lj6/y5;-><init>(Lj6/b6;)V

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

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

    const-string v0, "alarm"

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

    move-result-object p1

    check-cast p1, Landroid/app/AlarmManager;

    iput-object p1, p0, Lj6/w5;->d:Landroid/app/AlarmManager;

    return-void
.end method


# virtual methods
.method public final j()Z
    .registers 3

    iget-object v0, p0, Lj6/w5;->d:Landroid/app/AlarmManager;

    if-eqz v0, :cond_b

    invoke-virtual {p0}, Lj6/w5;->m()Landroid/app/PendingIntent;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    :cond_b
    invoke-virtual {p0}, Lj6/w5;->o()V

    const/4 v0, 0x0

    return v0
.end method

.method public final k()V
    .registers 3

    invoke-virtual {p0}, Lj6/y5;->h()V

    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 1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v1, "Unscheduling upload"

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

    iget-object v0, p0, Lj6/w5;->d:Landroid/app/AlarmManager;

    if-eqz v0, :cond_1b

    invoke-virtual {p0}, Lj6/w5;->m()Landroid/app/PendingIntent;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    :cond_1b
    invoke-virtual {p0}, Lj6/w5;->n()Lj6/k;

    move-result-object v0

    invoke-virtual {v0}, Lj6/k;->a()V

    invoke-virtual {p0}, Lj6/w5;->o()V

    return-void
.end method

.method public final l()I
    .registers 4

    iget-object v0, p0, Lj6/w5;->f:Ljava/lang/Integer;

    if-nez v0, :cond_2c

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

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

    .line 2
    invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

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

    move-result-object v0

    const-string v1, "measurement"

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

    move-result v2

    if-eqz v2, :cond_1d

    invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_22

    :cond_1d
    new-instance v0, Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    :goto_22
    invoke-virtual {v0}, Ljava/lang/String;->hashCode()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lj6/w5;->f:Ljava/lang/Integer;

    :cond_2c
    iget-object v0, p0, Lj6/w5;->f:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    return v0
.end method

.method public final m()Landroid/app/PendingIntent;
    .registers 5

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

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

    .line 2
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string v2, "com.google.android.gms.measurement.AppMeasurementReceiver"

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v1

    const-string v2, "com.google.android.gms.measurement.UPLOAD"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v1

    sget v2, Lg6/j0;->a:I

    const/4 v3, 0x0

    .line 3
    invoke-static {v0, v3, v1, v2}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    return-object v0
.end method

.method public final n()Lj6/k;
    .registers 3

    iget-object v0, p0, Lj6/w5;->e:Lj6/k;

    if-nez v0, :cond_f

    new-instance v0, Lj6/s5;

    iget-object v1, p0, Lj6/x5;->b:Lj6/b6;

    .line 1
    iget-object v1, v1, Lj6/b6;->l:Lcom/google/android/gms/measurement/internal/d;

    .line 2
    invoke-direct {v0, p0, v1}, Lj6/s5;-><init>(Lj6/w5;Lj6/j4;)V

    iput-object v0, p0, Lj6/w5;->e:Lj6/k;

    :cond_f
    iget-object v0, p0, Lj6/w5;->e:Lj6/k;

    return-object v0
.end method

.method public final o()V
    .registers 3
    .annotation build Landroid/annotation/TargetApi;
        value = 0x18
    .end annotation

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

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

    const-string v1, "jobscheduler"

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

    move-result-object v0

    check-cast v0, Landroid/app/job/JobScheduler;

    if-eqz v0, :cond_15

    invoke-virtual {p0}, Lj6/w5;->l()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/app/job/JobScheduler;->cancel(I)V

    :cond_15
    return-void
.end method
