Lines Matching refs:constraints
59 // Soft override: ignore constraints like time that don't affect API availability
61 // Full override: ignore all constraints including API-affecting like connectivity
434 * the constraints are satisfied <strong>or</strong> the deadline on the job has expired.
437 // Deadline constraint trumps other constraints (except for periodic jobs where deadline
438 // is an implementation detail. A periodic job should only run if its constraints are
455 // Soft override covers all non-"functional" constraints
460 * @return Whether the constraints set on this job are satisfied.
544 void dumpConstraints(PrintWriter pw, int constraints) {
545 if ((constraints&CONSTRAINT_CHARGING) != 0) {
548 if ((constraints&CONSTRAINT_TIMING_DELAY) != 0) {
551 if ((constraints&CONSTRAINT_DEADLINE) != 0) {
554 if ((constraints&CONSTRAINT_IDLE) != 0) {
557 if ((constraints&CONSTRAINT_CONNECTIVITY) != 0) {
560 if ((constraints&CONSTRAINT_UNMETERED) != 0) {
563 if ((constraints&CONSTRAINT_NOT_ROAMING) != 0) {
566 if ((constraints&CONSTRAINT_APP_NOT_IDLE) != 0) {
569 if ((constraints&CONSTRAINT_CONTENT_TRIGGER) != 0) {
572 if ((constraints&CONSTRAINT_DEVICE_NOT_DOZING) != 0) {
649 pw.print(prefix); pw.print("Required constraints:");
653 pw.print(prefix); pw.print("Satisfied constraints:");
656 pw.print(prefix); pw.print("Unsatisfied constraints:");