/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob() 78 mRunningJobInfo = TestEnvironment.getTestEnvironment().getModeJobInfo(); in onStartJob() 79 TestEnvironment.getTestEnvironment().setMode(TestEnvironment.MODE_ONESHOT, null); in onStartJob() 80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 82 if (mode == TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE) { in onStartJob() 86 } else if (mode == TestEnvironment.MODE_ONE_REPEAT_FINISH_TRUE) { in onStartJob() 105 public static final class TestEnvironment { class in TriggerContentJobService 107 private static TestEnvironment kTestEnvironment; 119 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() 121 kTestEnvironment = new TestEnvironment(); in getTestEnvironment()
|
D | MockJobService.java | 63 if (TestEnvironment.getTestEnvironment().getExpectedWork() != null) { in onDestroy() 64 TestEnvironment.getTestEnvironment().notifyExecution(mParams, 0, 0, mReceivedWork, in onDestroy() 90 TestWorkItem[] expectedWork = TestEnvironment.getTestEnvironment().getExpectedWork(); in onStartJob() 93 if (!TestEnvironment.getTestEnvironment().awaitDoWork()) { in onStartJob() 94 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob() 99 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob() 121 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 134 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 153 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 166 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 77 int mode = TestEnvironment.getTestEnvironment().getMode(); in onStartJob() 78 mRunningJobInfo = TestEnvironment.getTestEnvironment().getModeJobInfo(); in onStartJob() 79 TestEnvironment.getTestEnvironment().setMode(TestEnvironment.MODE_ONESHOT, null); in onStartJob() 80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 82 if (mode == TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE) { in onStartJob() 86 } else if (mode == TestEnvironment.MODE_ONE_REPEAT_FINISH_TRUE) { in onStartJob() 105 public static final class TestEnvironment { class in TriggerContentJobService 107 private static TestEnvironment kTestEnvironment; 119 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() 121 kTestEnvironment = new TestEnvironment(); in getTestEnvironment()
|
D | MockJobService.java | 63 if (TestEnvironment.getTestEnvironment().getExpectedWork() != null) { in onDestroy() 64 TestEnvironment.getTestEnvironment().notifyExecution(mParams, 0, 0, mReceivedWork, in onDestroy() 90 TestWorkItem[] expectedWork = TestEnvironment.getTestEnvironment().getExpectedWork(); in onStartJob() 93 if (!TestEnvironment.getTestEnvironment().awaitDoWork()) { in onStartJob() 94 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob() 99 TestEnvironment.getTestEnvironment().notifyExecution(params, permCheckRead, in onStartJob() 121 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 134 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 153 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() 166 TestEnvironment.getTestEnvironment().notifyExecution(params, in onStartJob() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/ |
D | CameraContentJobService.java | 50 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 64 public static final class TestEnvironment { class in CameraContentJobService 66 private static TestEnvironment kTestEnvironment; 72 public static TestEnvironment getTestEnvironment() { in getTestEnvironment() 74 kTestEnvironment = new TestEnvironment(); in getTestEnvironment()
|
D | CameraIntentsActivity.java | 132 private CameraContentJobService.TestEnvironment mTestEnv; 605 mTestEnv = CameraContentJobService.TestEnvironment.getTestEnvironment(); in onClick()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ConstraintTest.java | 49 static MockJobService.TestEnvironment kTestEnvironment = 50 MockJobService.TestEnvironment.getTestEnvironment(); 51 static TriggerContentJobService.TestEnvironment kTriggerTestEnvironment = 52 TriggerContentJobService.TestEnvironment.getTestEnvironment();
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConstraintTest.java | 45 static MockJobService.TestEnvironment kTestEnvironment = 46 MockJobService.TestEnvironment.getTestEnvironment(); 47 static TriggerContentJobService.TestEnvironment kTriggerTestEnvironment = 48 TriggerContentJobService.TestEnvironment.getTestEnvironment();
|
D | TriggerContentTest.java | 252 TriggerContentJobService.TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE, triggerJob); in testDescendantsObserver() 299 TriggerContentJobService.TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE, triggerJob); in testNonDescendantsObserver() 340 TriggerContentJobService.TestEnvironment.MODE_ONE_REPEAT_RESCHEDULE, triggerJob); in testPhotoAdded_Reschedule() 382 kTriggerTestEnvironment.setMode(TriggerContentJobService.TestEnvironment.MODE_ONESHOT, in testPhotoAdded_Reschedule() 409 TriggerContentJobService.TestEnvironment.MODE_ONE_REPEAT_FINISH_TRUE, triggerJob); in xxxtestPhotoAdded_FinishTrue() 449 kTriggerTestEnvironment.setMode(TriggerContentJobService.TestEnvironment.MODE_ONESHOT, in xxxtestPhotoAdded_FinishTrue()
|
/cts/tests/core/runner-axt/src/com/android/cts/runner/ |
D | CtsTestRunListener.java | 64 private TestEnvironment mEnvironment; 69 mEnvironment = new TestEnvironment(getInstrumentation().getTargetContext()); in testRunStarted() 191 static class TestEnvironment { class in CtsTestRunListener 209 TestEnvironment(Context context) { in TestEnvironment() method in CtsTestRunListener.TestEnvironment
|
/cts/tests/core/runner/src/com/android/cts/runner/ |
D | CtsTestRunListener.java | 64 private TestEnvironment mEnvironment; 69 mEnvironment = new TestEnvironment(getInstrumentation().getTargetContext()); in testRunStarted() 191 static class TestEnvironment { class in CtsTestRunListener 209 TestEnvironment(Context context) { in TestEnvironment() method in CtsTestRunListener.TestEnvironment
|