public class DeviceIdleJobsController extends StateController
DEBUG, mContext, mLock, mStateChangedListener
Modifier and Type | Method and Description |
---|---|
void |
dumpControllerStateLocked(PrintWriter pw,
int filterUid) |
static DeviceIdleJobsController |
get(JobSchedulerService service)
Returns a singleton for the DeviceIdleJobsController
|
void |
maybeStartTrackingJobLocked(JobStatus jobStatus,
JobStatus lastJob)
Implement the logic here to decide whether a job should be tracked by this controller.
|
void |
maybeStopTrackingJobLocked(JobStatus jobStatus,
JobStatus incomingJob,
boolean forUpdate)
Remove task - this will happen if the task is cancelled, completed, etc.
|
prepareForExecutionLocked, rescheduleForFailure
public static DeviceIdleJobsController get(JobSchedulerService service)
public void maybeStartTrackingJobLocked(JobStatus jobStatus, JobStatus lastJob)
StateController
maybeStartTrackingJobLocked
in class StateController
public void maybeStopTrackingJobLocked(JobStatus jobStatus, JobStatus incomingJob, boolean forUpdate)
StateController
maybeStopTrackingJobLocked
in class StateController
public void dumpControllerStateLocked(PrintWriter pw, int filterUid)
dumpControllerStateLocked
in class StateController