zzaup.java 1.87 KB
package com.google.android.gms.internal;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import com.google.android.gms.common.util.zze;
import hv;
import hz;

public class zzaup
  extends hz
{
  private boolean a;
  private final AlarmManager b = (AlarmManager)getContext().getSystemService("alarm");
  private final hv c;
  
  protected zzaup(zzaue paramzzaue)
  {
    super(paramzzaue);
    this.c = new hv(paramzzaue)
    {
      public final void a()
      {
        zzaup.a(zzaup.this);
      }
    };
  }
  
  private PendingIntent a()
  {
    Intent localIntent = new Intent();
    Context localContext = getContext();
    zzKn().zzLg();
    localIntent = localIntent.setClassName(localContext, "com.google.android.gms.measurement.AppMeasurementReceiver");
    localIntent.setAction("com.google.android.gms.measurement.UPLOAD");
    return PendingIntent.getBroadcast(getContext(), 0, localIntent, 0);
  }
  
  public void cancel()
  {
    zzob();
    this.a = false;
    this.b.cancel(a());
    this.c.c();
  }
  
  protected void zzmS()
  {
    this.b.cancel(a());
  }
  
  public void zzy(long paramLong)
  {
    zzob();
    zzKn().zzLg();
    if (!zzaub.zzi(getContext(), false)) {
      zzKl().zzMd().log("Receiver not registered/enabled");
    }
    zzKn().zzLg();
    if (!zzaum.zzj(getContext(), false)) {
      zzKl().zzMd().log("Service not registered/enabled");
    }
    cancel();
    long l = zznR().elapsedRealtime();
    this.a = true;
    if ((paramLong < zzKn().zzLx()) && (!this.c.b())) {
      this.c.a(paramLong);
    }
    this.b.setInexactRepeating(2, l + paramLong, Math.max(zzKn().zzLy(), paramLong), a());
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzaup.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */