Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java23 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_BATTERY_NOT_LOW;
129 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
139 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
199 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
201 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
205 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
207 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_BATTERY_NOT_LOW)); in testWouldBeReadyWithConstraint_RequestedBatteryNotLow()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java75 static final int CONSTRAINT_BATTERY_NOT_LOW = JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; // 1 << 1 field in JobStatus
831 return (requiredConstraints&CONSTRAINT_BATTERY_NOT_LOW) != 0; in hasBatteryNotLowConstraint()
835 return (requiredConstraints&(CONSTRAINT_CHARGING|CONSTRAINT_BATTERY_NOT_LOW)) != 0; in hasPowerConstraint()
940 return setConstraintSatisfied(CONSTRAINT_BATTERY_NOT_LOW, state); in setBatteryNotLowConstraintSatisfied()
1128 static final int CONSTRAINTS_OF_INTEREST = CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW
1134 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW
1287 if ((constraints& CONSTRAINT_BATTERY_NOT_LOW) != 0) { in dumpConstraints()
1329 case CONSTRAINT_BATTERY_NOT_LOW: in getProtoConstraint()
1330 return JobServerProtoEnums.CONSTRAINT_BATTERY_NOT_LOW; in getProtoConstraint()
1359 if ((constraints & CONSTRAINT_BATTERY_NOT_LOW) != 0) { in dumpConstraints()
[all …]
/frameworks/base/core/proto/android/server/job/
Denums.proto33 CONSTRAINT_BATTERY_NOT_LOW = 2; enumerator