Searched refs:CONSTRAINT_BATTERY_NOT_LOW (Results 1 – 3 of 3) sorted by relevance
110 CONSTRAINT_BATTERY_NOT_LOW995 return hasConstraint(CONSTRAINT_BATTERY_NOT_LOW); in hasBatteryNotLowConstraint()1000 return hasConstraint(CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW); in hasPowerConstraint()1149 return setConstraintSatisfied(CONSTRAINT_BATTERY_NOT_LOW, nowElapsed, state); in setBatteryNotLowConstraintSatisfied()1289 case CONSTRAINT_BATTERY_NOT_LOW: in constraintToStopReason()1524 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW1687 if ((constraints& CONSTRAINT_BATTERY_NOT_LOW) != 0) { in dumpConstraints()1732 case CONSTRAINT_BATTERY_NOT_LOW: in getProtoConstraint()1733 return JobServerProtoEnums.CONSTRAINT_BATTERY_NOT_LOW; in getProtoConstraint()1762 if ((constraints & CONSTRAINT_BATTERY_NOT_LOW) != 0) { in dumpConstraints()[all …]
30 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;238 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()248 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()308 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()310 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()314 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()316 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
33 CONSTRAINT_BATTERY_NOT_LOW = 2; enumerator