Searched refs:TestEnvironment (Results 1 – 2 of 2) sorted by relevance
39 TestEnvironment.getTestEnvironment().executedEvents.add( in onStartJob()40 new TestEnvironment.Event(TestEnvironment.EVENT_START_JOB, params.getJobId())); in onStartJob()48 int event = TestEnvironment.EVENT_STOP_JOB; in onStopJob()51 event = TestEnvironment.EVENT_PREEMPT_JOB; in onStopJob()54 TestEnvironment.getTestEnvironment().executedEvents in onStopJob()55 .add(new TestEnvironment.Event(event, params.getJobId())); in onStopJob()59 public static class TestEnvironment { class in MockPriorityJobService65 private static TestEnvironment kTestEnvironment;69 public static TestEnvironment getTestEnvironment() { in getTestEnvironment()71 kTestEnvironment = new TestEnvironment(); in getTestEnvironment()
26 import com.android.server.job.MockPriorityJobService.TestEnvironment;27 import com.android.server.job.MockPriorityJobService.TestEnvironment.Event;34 static TestEnvironment kTestEnvironment = TestEnvironment.getTestEnvironment();76 Event jobHigherExecution = new Event(TestEnvironment.EVENT_START_JOB, higherPriorityJobId); in testLowerPriorityJobPreempted()81 if (event.event == TestEnvironment.EVENT_PREEMPT_JOB) { in testLowerPriorityJobPreempted()107 Event jobLowerExecution = new Event(TestEnvironment.EVENT_START_JOB, lowerPriorityJobId); in testHigherPriorityJobNotPreempted()