Home
last modified time | relevance | path

Searched refs:kTestEnvironment (Results 1 – 14 of 14) sorted by relevance

/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DStorageConstraintTest.java77 kTestEnvironment.setExpectedExecutions(1); in testNotLowConstraintExecutes()
78 kTestEnvironment.setExpectedWaitForRun(); in testNotLowConstraintExecutes()
81 kTestEnvironment.readyToRun(); in testNotLowConstraintExecutes()
84 kTestEnvironment.awaitExecution()); in testNotLowConstraintExecutes()
97 kTestEnvironment.setExpectedExecutions(0); in testNotLowConstraintFails()
98 kTestEnvironment.setExpectedWaitForRun(); in testNotLowConstraintFails()
102 kTestEnvironment.readyToRun(); in testNotLowConstraintFails()
105 kTestEnvironment.awaitExecution(250)); in testNotLowConstraintFails()
108 kTestEnvironment.setExpectedExecutions(1); in testNotLowConstraintFails()
109 kTestEnvironment.setExpectedWaitForRun(); in testNotLowConstraintFails()
[all …]
DBatteryConstraintTest.java186 kTestEnvironment.setExpectedExecutions(1); in testChargingConstraintExecutes()
187 kTestEnvironment.setExpectedWaitForRun(); in testChargingConstraintExecutes()
190 kTestEnvironment.readyToRun(); in testChargingConstraintExecutes()
193 kTestEnvironment.awaitExecution()); in testChargingConstraintExecutes()
206 kTestEnvironment.setExpectedExecutions(1); in testBatteryNotLowConstraintExecutes_withPower()
207 kTestEnvironment.setExpectedWaitForRun(); in testBatteryNotLowConstraintExecutes_withPower()
210 kTestEnvironment.readyToRun(); in testBatteryNotLowConstraintExecutes_withPower()
213 kTestEnvironment.awaitExecution()); in testBatteryNotLowConstraintExecutes_withPower()
231 kTestEnvironment.setExpectedExecutions(1); in testBatteryNotLowConstraintExecutes_withoutPower()
232 kTestEnvironment.setExpectedWaitForRun(); in testBatteryNotLowConstraintExecutes_withoutPower()
[all …]
DTimingConstraintsTest.java39 kTestEnvironment.setExpectedExecutions(1); in testScheduleOnce()
41 final boolean executed = kTestEnvironment.awaitExecution(); in testScheduleOnce()
52 kTestEnvironment.setExpectedExecutions(0); in testCancel()
57 kTestEnvironment.awaitTimeout()); in testCancel()
66 kTestEnvironment.setExpectedExecutions(1); in testExplicitZeroLatency()
68 final boolean executed = kTestEnvironment.awaitExecution(); in testExplicitZeroLatency()
70 kTestEnvironment.awaitExecution()); in testExplicitZeroLatency()
85 kTestEnvironment.setExpectedExecutions(1); in testJobParameters_expiredDeadline()
87 assertTrue("Failed to execute deadline job", kTestEnvironment.awaitExecution()); in testJobParameters_expiredDeadline()
89 kTestEnvironment.getLastJobParameters().isOverrideDeadlineExpired()); in testJobParameters_expiredDeadline()
[all …]
DConnectivityConstraintTest.java124 kTestEnvironment.setExpectedExecutions(1); in testUnmeteredConstraintExecutes_withWifi()
132 kTestEnvironment.awaitExecution()); in testUnmeteredConstraintExecutes_withWifi()
145 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withWifi()
153 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withWifi()
168 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withWifi_DataSaverOn()
176 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withWifi_DataSaverOn()
189 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_withMobile()
197 kTestEnvironment.awaitExecution()); in testConnectivityConstraintExecutes_withMobile()
215 kTestEnvironment.setExpectedExecutions(1); in testConnectivityConstraintExecutes_transitionNetworks()
216 kTestEnvironment.setExpectedStopped(); in testConnectivityConstraintExecutes_transitionNetworks()
[all …]
DDeviceStatesTest.java108 kTestEnvironment.setExpectedExecutions(1); in verifyIdleState()
109 kTestEnvironment.setExpectedWaitForRun(); in verifyIdleState()
112 kTestEnvironment.readyToRun(); in verifyIdleState()
115 kTestEnvironment.awaitExecution()); in verifyIdleState()
123 kTestEnvironment.setExpectedExecutions(0); in verifyActiveState()
124 kTestEnvironment.setExpectedWaitForRun(); in verifyActiveState()
128 kTestEnvironment.readyToRun(); in verifyActiveState()
131 kTestEnvironment.awaitExecution(250)); in verifyActiveState()
DConstraintTest.java45 static MockJobService.TestEnvironment kTestEnvironment = field in ConstraintTest
104 kTestEnvironment.setUp(); in setUp()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DEnqueueJobWorkTest.java111 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 …]
DClipDataJobTest.java74 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()
DConstraintTest.java49 static MockJobService.TestEnvironment kTestEnvironment = field in ConstraintTest
108 kTestEnvironment.setUp(); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/
DCameraContentJobService.java66 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/
DTriggerContentJobService.java107 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()
DMockJobService.java367 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()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DTriggerContentJobService.java107 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()
DMockJobService.java367 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()