Package org.robolectric.shadows
Class ShadowJobScheduler.ShadowJobSchedulerImpl
java.lang.Object
org.robolectric.shadows.ShadowJobScheduler
org.robolectric.shadows.ShadowJobScheduler.ShadowJobSchedulerImpl
- Enclosing class:
 - ShadowJobScheduler
 
@Implements(value=android.app.JobSchedulerImpl.class,
            isInAndroidSdk=false,
            minSdk=21)
public static class ShadowJobScheduler.ShadowJobSchedulerImpl
extends ShadowJobScheduler
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowJobScheduler
ShadowJobScheduler.ShadowJobSchedulerImpl - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(int jobId) voidintenqueue(JobInfo job, JobWorkItem work) voidfailExpeditedJob(boolean enabled) Whether to fail a job if it is set as expedited.voidfailOnJob(int jobId) getPendingJob(int jobId) intprotected intscheduleAsPackage(JobInfo job, String packageName, int userId, String tag) Simple implementation redirecting all calls toschedule(JobInfo). 
- 
Constructor Details
- 
ShadowJobSchedulerImpl
public ShadowJobSchedulerImpl() 
 - 
 - 
Method Details
- 
schedule
- Specified by:
 schedulein classShadowJobScheduler
 - 
scheduleAsPackage
@Implementation(minSdk=24) @HiddenApi protected int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag) Simple implementation redirecting all calls toschedule(JobInfo). Ignores all arguments other thanjob.- Specified by:
 scheduleAsPackagein classShadowJobScheduler
 - 
cancel
- Specified by:
 cancelin classShadowJobScheduler
 - 
cancelAll
- Specified by:
 cancelAllin classShadowJobScheduler
 - 
getAllPendingJobs
- Specified by:
 getAllPendingJobsin classShadowJobScheduler
 - 
getPendingJob
- Specified by:
 getPendingJobin classShadowJobScheduler
 - 
enqueue
- Specified by:
 enqueuein classShadowJobScheduler
 - 
failOnJob
public void failOnJob(int jobId) - Specified by:
 failOnJobin classShadowJobScheduler
 - 
failExpeditedJob
public void failExpeditedJob(boolean enabled) Description copied from class:ShadowJobSchedulerWhether to fail a job if it is set as expedited.- Specified by:
 failExpeditedJobin classShadowJobScheduler
 
 -