Home
last modified time | relevance | path

Searched refs:isConstraintSatisfied (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java201 assertFalse(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
204 assertTrue(job1.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
207 assertTrue(job2.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testBatteryNotLow()
214 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
217 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
220 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_BatteryNotLow()
226 assertFalse(mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_CHARGING)); in testFlexibilityController_Charging()
228 assertTrue(mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_CHARGING)); in testFlexibilityController_Charging()
230 assertFalse(mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_CHARGING)); in testFlexibilityController_Charging()
239 mFlexibilityController.isConstraintSatisfied(JobStatus.CONSTRAINT_BATTERY_NOT_LOW)); in testFlexibilityController_Charging_BatterNotLow()
[all …]
DBackgroundJobsControllerTest.java233 assertTrue(directJob1.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
235 assertTrue(directJob2.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
237 assertTrue(proxyJob1.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
239 assertTrue(proxyJob2.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
243 assertTrue(directJob1.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
245 assertTrue(directJob2.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
247 assertTrue(proxyJob1.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
249 assertTrue(proxyJob2.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testRestartedBroadcastWithoutStopping()
274 assertTrue(directJob1.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testStopped_disabled()
276 assertTrue(directJob2.isConstraintSatisfied(CONSTRAINT_BACKGROUND_NOT_RESTRICTED)); in testStopped_disabled()
[all …]
DTimeControllerTest.java463 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
464 assertFalse(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
465 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
473 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
474 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
475 assertFalse(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
483 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
484 assertTrue(jobMiddle.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
485 assertTrue(jobLatest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in runTestCheckExpiredDelaysAndResetAlarm()
520 assertTrue(jobEarliest.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)); in testCheckExpiredDelaysAndResetAlarm_SomeNotReady()
[all …]
DPrefetchControllerTest.java306 assertFalse(job.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintNotSatisfiedWhenLaunchLate()
322 assertTrue(job.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenLaunchSoon()
345 assertTrue(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
347 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
354 assertFalse(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
356 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
361 assertTrue(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
363 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenTop()
387 assertFalse(jobNonWidget.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenWidget()
393 assertTrue(jobWidget.isConstraintSatisfied(JobStatus.CONSTRAINT_PREFETCH)); in testConstraintSatisfiedWhenWidget()
[all …]
DConnectivityControllerTest.java1054 assertFalse(red.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1055 assertFalse(blue.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1056 assertFalse(red2.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1057 assertFalse(blue2.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1071 assertFalse(red.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1072 assertTrue(blue.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1073 assertFalse(red2.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1074 assertFalse(blue2.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1105 assertFalse(red.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
1106 assertTrue(blue.isConstraintSatisfied(CONSTRAINT_CONNECTIVITY)); in testUpdates()
[all …]
DFlexibilityControllerTest.java1340 assertTrue(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in testTopAppBypass()
1345 assertFalse(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in testTopAppBypass()
1410 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1413 assertTrue(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1416 assertFalse(mFlexibilityController.isConstraintSatisfied(CONSTRAINT_IDLE)); in testSetConstraintSatisfied_Constraints()
1912 assertTrue(js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in runTestUnsupportedDevice()
2013 js.isConstraintSatisfied(CONSTRAINT_FLEXIBLE)); in assertSatisfiedJobsMatchSatisfiedConstraints()
DQuotaControllerTest.java2226 assertTrue(jobRunning.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
2229 assertFalse(jobPending.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testIsWithinQuotaLocked_UnderDuration_OverJobCountInWindow()
4605 assertFalse(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4606 assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4622 assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4623 assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4624 assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4629 assertTrue(jobTop.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4630 assertTrue(jobFg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
4631 assertTrue(jobBg.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in testTracking_OutOfQuota_ForegroundAndBackground()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobServiceContext.java505 job.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_CHARGING), in executeRunnableJob()
506 job.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW), in executeRunnableJob()
507 job.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW), in executeRunnableJob()
508 job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY), in executeRunnableJob()
509 job.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE), in executeRunnableJob()
510 job.isConstraintSatisfied(JobStatus.CONSTRAINT_CONNECTIVITY), in executeRunnableJob()
511 job.isConstraintSatisfied(JobStatus.CONSTRAINT_CONTENT_TRIGGER), in executeRunnableJob()
529 job.isConstraintSatisfied(JobStatus.CONSTRAINT_FLEXIBLE), in executeRunnableJob()
1560 completedJob.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_CHARGING), in closeAndCleanupJobLocked()
1561 completedJob.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW), in closeAndCleanupJobLocked()
[all …]
DJobSchedulerService.java2373 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE),
2374 cancelled.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_CHARGING),
2375 cancelled.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_BATTERY_NOT_LOW),
2376 cancelled.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_STORAGE_NOT_LOW),
2377 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY),
2378 cancelled.isConstraintSatisfied(JobInfo.CONSTRAINT_FLAG_DEVICE_IDLE),
2379 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_CONNECTIVITY),
2380 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_CONTENT_TRIGGER),
2398 cancelled.isConstraintSatisfied(JobStatus.CONSTRAINT_FLEXIBLE),
5370 && !js.isConstraintSatisfied(JobStatus.CONSTRAINT_CONNECTIVITY)
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DTimeController.java153 && !job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE) in evaluateStateLocked()
171 && !job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY) in evaluateStateLocked()
201 || job.isConstraintSatisfied(JobStatus.CONSTRAINT_TIMING_DELAY)) in canStopTrackingJobLocked()
203 || job.isConstraintSatisfied(JobStatus.CONSTRAINT_DEADLINE)); in canStopTrackingJobLocked()
DConnectivityController.java504 if (!jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_CONNECTIVITY)) { in evaluateStateLocked()
516 && jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_CONNECTIVITY)) { in evaluateStateLocked()
1007 && (!jobStatus.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA))) { in isStrictSatisfied()
DJobStatus.java1922 mReadyNotDozing = isConstraintSatisfied(CONSTRAINT_DEVICE_NOT_DOZING) || canRunInDoze(); in updateExpeditedDependencies()
2143 public boolean isConstraintSatisfied(int constraint) { in isConstraintSatisfied() method in JobStatus
DFlexibilityController.java613 boolean isConstraintSatisfied(int constraint) { in isConstraintSatisfied() method in FlexibilityController
DQuotaController.java4581 } else if (js.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)) { in dumpControllerStateLocked()
4728 js.isConstraintSatisfied(JobStatus.CONSTRAINT_WITHIN_QUOTA)); in dumpControllerStateLocked()
/frameworks/base/services/
Dart-profile1845 HSPLcom/android/server/job/controllers/JobStatus;->isConstraintSatisfied(I)Z
Dart-wear-profile13319 HPLcom/android/server/job/controllers/JobStatus;->isConstraintSatisfied(I)Z