Searched refs:TestEventType (Results 1 – 2 of 2) sorted by relevance
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
D | SimpleAppFullLifecycleTest.java | 34 import androidx.lifecycle.testapp.SimpleAppLifecycleTestActivity.TestEventType; 51 new Pair(TestEventType.PROCESS_EVENT, Event.ON_CREATE), 52 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_CREATE), 53 new Pair(TestEventType.PROCESS_EVENT, Event.ON_START), 54 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_START), 55 new Pair(TestEventType.PROCESS_EVENT, Event.ON_RESUME), 56 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_RESUME), 63 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_PAUSE), 64 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_STOP), 65 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_DESTROY), [all …]
|
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/ |
D | SimpleAppLifecycleTestActivity.java | 39 public enum TestEventType { enum in SimpleAppLifecycleTestActivity 48 private TestEventType mType; 50 TestObserver(TestEventType type) { in TestObserver() 62 static List<Pair<TestEventType, Lifecycle.Event>> sCollectedEvents = new ArrayList<>(); 79 private static TestObserver sProcessObserver = new TestObserver(TestEventType.PROCESS_EVENT); 84 getLifecycle().addObserver(new TestObserver(TestEventType.ACTIVITY_EVENT)); in onCreate() 96 public static List<Pair<TestEventType, Lifecycle.Event>> awaitForEvents() in awaitForEvents()
|