Home
last modified time | relevance | path

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

/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DJobStatus.java110 CONSTRAINT_BATTERY_NOT_LOW
995 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_LOW
1687 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 …]
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DJobStatusTest.java30 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()
/aosp12/frameworks/proto_logging/stats/enums/server/job/
H A Denums.proto33 CONSTRAINT_BATTERY_NOT_LOW = 2; enumerator