List of usage examples for android.app.job JobScheduler cancelAll
public abstract void cancelAll();
From source file:com.example.android.sampletvinput.syncservice.SyncUtils.java
public static void cancelAll(Context context) { JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); jobScheduler.cancelAll(); }
From source file:nuclei.task.TaskScheduler.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP) private static void cancelAllL(Context context) { JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); jobScheduler.cancelAll(); }
From source file:com.google.android.media.tv.companionlibrary.EpgSyncJobService.java
/** * Cancels all pending jobs./* w w w. j a v a2s . com*/ * @param context Application's context. */ public static void cancelAllSyncRequests(Context context) { JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); jobScheduler.cancelAll(); }