Home
last modified time | relevance | path

Searched refs:CONSTRAINT_BATTERY_NOT_LOW (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java201 assertFalse(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
204 assertTrue(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
207 assertTrue(job2.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
214 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
217 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
220 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
239 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_Charging_BatterNotLow()
245 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_Charging_BatterNotLow()
251 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_Charging_BatterNotLow()
257 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_Charging_BatterNotLow()
[all …]
DJobStatusTest.java34 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
827 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
837 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
897 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
899 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
903 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
905 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
1277 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1289 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
1301 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_FlexibilityDoesNotAffectReadiness()
[all …]
DFlexibilityControllerTest.java46 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
321 CONSTRAINT_BATTERY_NOT_LOW, true, in testAppliedConstraints()
340 CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_CONNECTIVITY); in testAppliedConstraints()
352 setDeviceConfigInt(KEY_APPLIED_CONSTRAINTS, CONSTRAINT_BATTERY_NOT_LOW); in testAppliedConstraints()
1423 CONSTRAINT_IDLE & CONSTRAINT_CHARGING & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
1424 CONSTRAINT_IDLE & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
1426 CONSTRAINT_CHARGING & CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
1429 CONSTRAINT_BATTERY_NOT_LOW, in testSetConstraintSatisfied_Jobs()
1438 jb.setRequiresBatteryNotLow((constraints & CONSTRAINT_BATTERY_NOT_LOW) != 0); in testSetConstraintSatisfied_Jobs()
1448 CONSTRAINT_BATTERY_NOT_LOW, false, FROZEN_TIME); in testSetConstraintSatisfied_Jobs()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java111 public static final int CONSTRAINT_BATTERY_NOT_LOW = field in JobStatus
144 CONSTRAINT_BATTERY_NOT_LOW
1569 return hasConstraint(CONSTRAINT_BATTERY_NOT_LOW); in hasBatteryNotLowConstraint()
1574 return hasConstraint(CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW); in hasPowerConstraint()
1813 return setConstraintSatisfied(CONSTRAINT_BATTERY_NOT_LOW, nowElapsed, state); in setBatteryNotLowConstraintSatisfied()
1982 case CONSTRAINT_BATTERY_NOT_LOW: in constraintToStopReason()
2072 if ((CONSTRAINT_BATTERY_NOT_LOW & unsatisfiedConstraints) != 0) { in getPendingJobReason()
2073 if ((CONSTRAINT_BATTERY_NOT_LOW & requiredConstraints) != 0) { in getPendingJobReason()
2331 static final int CONSTRAINTS_OF_INTEREST = CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW
2338 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW
[all …]
DBatteryController.java181 logDeviceWideConstraintStateToStatsd(JobStatus.CONSTRAINT_BATTERY_NOT_LOW, in maybeReportNewChargingStateLocked()
191 JobStatus.CONSTRAINT_BATTERY_NOT_LOW, batteryNotLow, nowElapsed); in maybeReportNewChargingStateLocked()
DFlexibilityController.java29 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
88 static final int SYSTEM_WIDE_FLEXIBLE_CONSTRAINTS = CONSTRAINT_BATTERY_NOT_LOW
/frameworks/proto_logging/stats/enums/server/job/
Denums.proto33 CONSTRAINT_BATTERY_NOT_LOW = 2; enumerator
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java382 enabled |= JobStatus.CONSTRAINT_BATTERY_NOT_LOW; in enableFlexPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java260 js.addDynamicConstraints(JobStatus.CONSTRAINT_BATTERY_NOT_LOW in testDynamicConstraintsNotPersisted()