public class AppIdleController extends StateController
mContext, mLock, mStateChangedListener
Modifier and Type | Method and Description |
---|---|
void |
dumpControllerStateLocked(PrintWriter pw,
int filterUid) |
static AppIdleController |
get(JobSchedulerService service) |
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 AppIdleController 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