Searched refs:CONSTRAINT_CHARGING (Results 1 – 3 of 3) sorted by relevance
24 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 …]
73 static final int CONSTRAINT_CHARGING = JobInfo.CONSTRAINT_FLAG_CHARGING; // 1 < 0 field in JobStatus827 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_LOW1134 CONSTRAINT_CHARGING | CONSTRAINT_BATTERY_NOT_LOW | CONSTRAINT_STORAGE_NOT_LOW1284 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 …]
32 CONSTRAINT_CHARGING = 1; enumerator