public class BatteryController extends StateController
Modifier and Type | Class and Description |
---|---|
class |
BatteryController.ChargingTracker |
DEBUG, mContext, mLock, mStateChangedListener
Modifier and Type | Method and Description |
---|---|
void |
dumpControllerStateLocked(PrintWriter pw,
int filterUid) |
static BatteryController |
get(JobSchedulerService taskManagerService) |
static BatteryController |
getForTesting(StateChangedListener stateChangedListener,
Context context) |
BatteryController.ChargingTracker |
getTracker() |
void |
maybeStartTrackingJobLocked(JobStatus taskStatus,
JobStatus lastJob)
Implement the logic here to decide whether a job should be tracked by this controller.
|
void |
maybeStopTrackingJobLocked(JobStatus taskStatus,
JobStatus incomingJob,
boolean forUpdate)
Remove task - this will happen if the task is cancelled, completed, etc.
|
prepareForExecutionLocked, rescheduleForFailure
public static BatteryController get(JobSchedulerService taskManagerService)
public BatteryController.ChargingTracker getTracker()
public static BatteryController getForTesting(StateChangedListener stateChangedListener, Context context)
public void maybeStartTrackingJobLocked(JobStatus taskStatus, JobStatus lastJob)
StateController
maybeStartTrackingJobLocked
in class StateController
public void maybeStopTrackingJobLocked(JobStatus taskStatus, JobStatus incomingJob, boolean forUpdate)
StateController
maybeStopTrackingJobLocked
in class StateController
public void dumpControllerStateLocked(PrintWriter pw, int filterUid)
dumpControllerStateLocked
in class StateController