53 lines
1.7 KiB
Java
53 lines
1.7 KiB
Java
package c.i.a.f.i.b;
|
|
|
|
import android.app.AlarmManager;
|
|
import android.app.PendingIntent;
|
|
import android.app.job.JobScheduler;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Build;
|
|
/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
|
|
public final class h9 extends i9 {
|
|
public final AlarmManager d = ((AlarmManager) this.a.b.getSystemService("alarm"));
|
|
public final i e;
|
|
public Integer f;
|
|
|
|
public h9(k9 k9Var) {
|
|
super(k9Var);
|
|
this.e = new g9(this, k9Var.k, k9Var);
|
|
}
|
|
|
|
@Override // c.i.a.f.i.b.i9
|
|
public final boolean p() {
|
|
this.d.cancel(u());
|
|
if (Build.VERSION.SDK_INT < 24) {
|
|
return false;
|
|
}
|
|
((JobScheduler) this.a.b.getSystemService("jobscheduler")).cancel(t());
|
|
return false;
|
|
}
|
|
|
|
public final void s() {
|
|
n();
|
|
g().n.a("Unscheduling upload");
|
|
this.d.cancel(u());
|
|
this.e.c();
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
((JobScheduler) this.a.b.getSystemService("jobscheduler")).cancel(t());
|
|
}
|
|
}
|
|
|
|
public final int t() {
|
|
if (this.f == null) {
|
|
String valueOf = String.valueOf(this.a.b.getPackageName());
|
|
this.f = Integer.valueOf((valueOf.length() != 0 ? "measurement".concat(valueOf) : new String("measurement")).hashCode());
|
|
}
|
|
return this.f.intValue();
|
|
}
|
|
|
|
public final PendingIntent u() {
|
|
Context context = this.a.b;
|
|
return PendingIntent.getBroadcast(context, 0, new Intent().setClassName(context, "com.google.android.gms.measurement.AppMeasurementReceiver").setAction("com.google.android.gms.measurement.UPLOAD"), 0);
|
|
}
|
|
}
|