Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DJobStatusTest.java24 import static com.android.server.job.controllers.JobStatus.CONSTRAINT_CHARGING;
127 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
137 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_NonRequestedConstraints()
157 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()
159 assertTrue(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()
163 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()
165 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedCharging()
334 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedMixture_NoDeadline()
341 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedMixture_NoDeadline()
350 assertFalse(job.wouldBeReadyWithConstraint(CONSTRAINT_CHARGING)); in testWouldBeReadyWithConstraint_RequestedMixture_NoDeadline()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DJobStatus.java73 static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; // 1 < 0 field in JobStatus
827 return (requiredConstraints&CONSTRAINT_CHARGING) != 0; in hasChargingConstraint()
835 return (requiredConstraints&(CONSTRAINT_CHARGING|CONSTRAINT_BATTERY_NOT_LOW)) != 0; in hasPowerConstraint()
935 return setConstraintSatisfied(CONSTRAINT_CHARGING, state); in setChargingConstraintSatisfied()
1128 static final int CONSTRAINTS_OF_INTEREST = CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW
1134 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW
1284 if ((constraints&CONSTRAINT_CHARGING) != 0) { in dumpConstraints()
1331 case CONSTRAINT_CHARGING: in getProtoConstraint()
1332 return JobServerProtoEnums.CONSTRAINT_CHARGING; in getProtoConstraint()
1356 if ((constraints & CONSTRAINT_CHARGING) != 0) { in dumpConstraints()
[all …]
/frameworks/base/core/proto/android/server/job/
Denums.proto32 CONSTRAINT_CHARGING = 1; enumerator