ShadowJobScheduler.ShadowJobSchedulerImpl
@Implements(value=android.app.job.JobScheduler.class, minSdk=21) public abstract class ShadowJobScheduler extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ShadowJobScheduler.ShadowJobSchedulerImpl |
Constructor | Description |
---|---|
ShadowJobScheduler() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
cancel(int jobId) |
|
protected abstract void |
cancelAll() |
|
protected abstract int |
enqueue(JobInfo job,
JobWorkItem work) |
|
abstract void |
failOnJob(int jobId) |
|
protected abstract List<JobInfo> |
getAllPendingJobs() |
|
abstract JobInfo |
getPendingJob(int jobId) |
|
protected abstract int |
schedule(JobInfo job) |
|
protected abstract int |
scheduleAsPackage(JobInfo job,
String packageName,
int userId,
String tag) |
@Implementation protected abstract int schedule(JobInfo job)
@Implementation(minSdk=24) @HiddenApi protected abstract int scheduleAsPackage(JobInfo job, String packageName, int userId, String tag)
@Implementation protected abstract void cancel(int jobId)
@Implementation protected abstract void cancelAll()
@Implementation protected abstract List<JobInfo> getAllPendingJobs()
@Implementation(minSdk=24) @HiddenApi public abstract JobInfo getPendingJob(int jobId)
@Implementation(minSdk=26) protected abstract int enqueue(JobInfo job, JobWorkItem work)
public abstract void failOnJob(int jobId)