Searched refs:CONSTRAINT_BATTERY_NOT_LOW (Results 1 – 3 of 3) sorted by relevance
23 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()
75 static final int CONSTRAINT_BATTERY_NOT_LOW = JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW; // 1 << 1 field in JobStatus831 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_LOW1134 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW1287 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 …]
33 CONSTRAINT_BATTERY_NOT_LOW = 2; enumerator