/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | IdleConstraintTest.java | 109 kTestEnvironment.setExpectedExecutions(1); in verifyIdleState() 110 kTestEnvironment.setExpectedWaitForRun(); in verifyIdleState() 113 kTestEnvironment.readyToRun(); in verifyIdleState() 117 kTestEnvironment.awaitExecution()); in verifyIdleState() 125 kTestEnvironment.setExpectedExecutions(0); in verifyActiveState() 126 kTestEnvironment.setExpectedWaitForRun(); in verifyActiveState() 130 kTestEnvironment.readyToRun(); in verifyActiveState() 134 kTestEnvironment.awaitExecution(250)); in verifyActiveState() 253 kTestEnvironment.setExpectedExecutions(0); in runIdleJobStartsOnlyWhenIdle() 254 kTestEnvironment.setExpectedWaitForRun(); in runIdleJobStartsOnlyWhenIdle() [all …]
|
D | BatteryConstraintTest.java | 167 kTestEnvironment.setExpectedExecutions(1); in testChargingConstraintExecutes() 168 kTestEnvironment.setExpectedWaitForRun(); in testChargingConstraintExecutes() 171 kTestEnvironment.readyToRun(); in testChargingConstraintExecutes() 174 kTestEnvironment.awaitExecution()); in testChargingConstraintExecutes() 187 kTestEnvironment.setExpectedExecutions(1); in testBatteryNotLowConstraintExecutes_withPower() 188 kTestEnvironment.setExpectedWaitForRun(); in testBatteryNotLowConstraintExecutes_withPower() 191 kTestEnvironment.readyToRun(); in testBatteryNotLowConstraintExecutes_withPower() 194 kTestEnvironment.awaitExecution()); in testBatteryNotLowConstraintExecutes_withPower() 212 kTestEnvironment.setExpectedExecutions(1); in testBatteryNotLowConstraintExecutes_withoutPower() 213 kTestEnvironment.setExpectedWaitForRun(); in testBatteryNotLowConstraintExecutes_withoutPower() [all …]
|
D | TimingConstraintsTest.java | 39 kTestEnvironment.setExpectedExecutions(1); in testScheduleOnce() 41 final boolean executed = kTestEnvironment.awaitExecution(); in testScheduleOnce() 50 kTestEnvironment.setExpectedExecutions(1); in testSchedulePeriodic() 54 kTestEnvironment.awaitExecution()); in testSchedulePeriodic() 67 kTestEnvironment.setExpectedExecutions(0); in testSchedulePeriodic_lowFlex() 71 kTestEnvironment.awaitExecution()); in testSchedulePeriodic_lowFlex() 83 kTestEnvironment.setExpectedExecutions(0); in testCancel() 88 kTestEnvironment.awaitTimeout()); in testCancel() 97 kTestEnvironment.setExpectedExecutions(1); in testExplicitZeroLatency() 99 final boolean executed = kTestEnvironment.awaitExecution(); in testExplicitZeroLatency() [all …]
|
D | JobParametersTest.java | 44 kTestEnvironment.setExpectedExecutions(1); in testClipData() 47 assertTrue("Job didn't fire immediately", kTestEnvironment.awaitExecution()); in testClipData() 49 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testClipData() 62 kTestEnvironment.setExpectedExecutions(1); in testExtras() 65 assertTrue("Job didn't fire immediately", kTestEnvironment.awaitExecution()); in testExtras() 67 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testExtras() 79 kTestEnvironment.setExpectedExecutions(1); in testExpedited() 82 assertTrue("Job didn't fire immediately", kTestEnvironment.awaitExecution()); in testExpedited() 84 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testExpedited() 91 kTestEnvironment.setExpectedExecutions(1); in testExpedited() [all …]
|
D | ComponentConstraintTest.java | 40 kTestEnvironment.setExpectedExecutions(1); in testScheduleAfterComponentEnabled() 43 assertTrue("Job with enabled service didn't fire.", kTestEnvironment.awaitExecution()); in testScheduleAfterComponentEnabled() 62 kTestEnvironment.setExpectedExecutions(0); in testComponentDisabledAfterSchedule() 66 assertTrue("Job with disabled service fired.", kTestEnvironment.awaitTimeout()); in testComponentDisabledAfterSchedule() 71 kTestEnvironment.setExpectedExecutions(1); in testComponentDisabledAndReenabledAfterSchedule() 75 assertTrue("Job with disabled service fired.", kTestEnvironment.awaitTimeout()); in testComponentDisabledAndReenabledAfterSchedule() 78 assertTrue("Job with enabled service didn't fire.", kTestEnvironment.awaitExecution()); in testComponentDisabledAndReenabledAfterSchedule()
|
D | ConnectivityConstraintTest.java | 193 kTestEnvironment.setExpectedExecutions(1); in testUnmeteredConstraintExecutes_withWifi() 201 kTestEnvironment.awaitExecution()); in testUnmeteredConstraintExecutes_withWifi() 214 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withWifi() 222 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withWifi() 237 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withWifi_DataSaverOn() 245 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withWifi_DataSaverOn() 258 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withMobile() 266 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withMobile() 283 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withMeteredWifi() 290 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withMeteredWifi() [all …]
|
D | JobWorkItemTest.java | 61 kTestEnvironment.setExpectedExecutions(1); in testDeliveryCountBumped() 62 kTestEnvironment.setExpectedWork(new MockJobService.TestWorkItem[]{ in testDeliveryCountBumped() 64 kTestEnvironment.readyToWork(); in testDeliveryCountBumped() 67 assertTrue("Job didn't fire immediately", kTestEnvironment.awaitExecution()); in testDeliveryCountBumped() 69 List<JobWorkItem> executedJWIs = kTestEnvironment.getLastReceivedWork(); in testDeliveryCountBumped()
|
D | BaseJobSchedulerTest.java | 50 static MockJobService.TestEnvironment kTestEnvironment = field in BaseJobSchedulerTest 113 kTestEnvironment.setUp(); in setUp()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | EnqueueJobWorkTest.java | 111 kTestEnvironment.setExpectedExecutions(1); in testEnqueueOneWork() 112 kTestEnvironment.setExpectedWork(work); in testEnqueueOneWork() 114 kTestEnvironment.readyToWork(); in testEnqueueOneWork() 116 kTestEnvironment.awaitExecution()); in testEnqueueOneWork() 117 compareWork(work, kTestEnvironment.getLastReceivedWork()); in testEnqueueOneWork() 118 if (kTestEnvironment.getLastErrorMessage() != null) { in testEnqueueOneWork() 119 fail(kTestEnvironment.getLastErrorMessage()); in testEnqueueOneWork() 139 kTestEnvironment.setExpectedExecutions(1); in testEnqueueMultipleWork() 140 kTestEnvironment.setExpectedWork(work); in testEnqueueMultipleWork() 150 kTestEnvironment.readyToWork(); in testEnqueueMultipleWork() [all …]
|
D | ClipDataJobTest.java | 74 kTestEnvironment.setExpectedExecutions(1); in testClipDataGrant() 91 kTestEnvironment.awaitExecution()); in testClipDataGrant() 94 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckRead()); in testClipDataGrant() 95 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckWrite()); in testClipDataGrant() 132 kTestEnvironment.setExpectedExecutions(1); in testClipDataGrantReschedule() 151 kTestEnvironment.awaitExecution()); in testClipDataGrantReschedule() 154 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckRead()); in testClipDataGrantReschedule() 155 assertEquals(PackageManager.PERMISSION_GRANTED, kTestEnvironment.getLastPermCheckWrite()); in testClipDataGrantReschedule()
|
D | ConstraintTest.java | 49 static MockJobService.TestEnvironment kTestEnvironment = field in ConstraintTest 108 kTestEnvironment.setUp(); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/ |
D | CameraContentJobService.java | 66 private static TestEnvironment kTestEnvironment; field in CameraContentJobService.TestEnvironment 73 if (kTestEnvironment == null) { in getTestEnvironment() 74 kTestEnvironment = new TestEnvironment(); in getTestEnvironment() 76 return kTestEnvironment; in getTestEnvironment()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 107 private static TestEnvironment kTestEnvironment; field in TriggerContentJobService.TestEnvironment 120 if (kTestEnvironment == null) { in getTestEnvironment() 121 kTestEnvironment = new TestEnvironment(); in getTestEnvironment() 123 return kTestEnvironment; in getTestEnvironment()
|
D | MockJobService.java | 367 private static TestEnvironment kTestEnvironment; field in MockJobService.TestEnvironment 385 if (kTestEnvironment == null) { in getTestEnvironment() 386 kTestEnvironment = new TestEnvironment(); in getTestEnvironment() 388 return kTestEnvironment; in getTestEnvironment()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 107 private static TestEnvironment kTestEnvironment; field in TriggerContentJobService.TestEnvironment 120 if (kTestEnvironment == null) { in getTestEnvironment() 121 kTestEnvironment = new TestEnvironment(); in getTestEnvironment() 123 return kTestEnvironment; in getTestEnvironment()
|
D | MockJobService.java | 367 private static TestEnvironment kTestEnvironment; field in MockJobService.TestEnvironment 384 if (kTestEnvironment == null) { in getTestEnvironment() 385 kTestEnvironment = new TestEnvironment(); in getTestEnvironment() 387 return kTestEnvironment; in getTestEnvironment()
|