Home
last modified time | relevance | path

Searched refs:mCollectedEvents (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/
DFrameworkLifecycleRegistryActivity.java48 private List<Pair<TestEvent, Lifecycle.Event>> mCollectedEvents = new ArrayList<>(); field in FrameworkLifecycleRegistryActivity
49 private TestObserver mTestObserver = new TestObserver(mCollectedEvents);
55 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_CREATE)); in onCreate()
62 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_START)); in onStart()
68 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_RESUME)); in onResume()
74 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_DESTROY)); in onDestroy()
81 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_STOP)); in onStop()
87 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_PAUSE)); in onPause()
92 return new ArrayList<>(mCollectedEvents); in copyCollectedEvents()
DCollectingSupportActivity.java40 private final List<Pair<TestEvent, Event>> mCollectedEvents = new ArrayList<>(); field in CollectingSupportActivity
41 private TestObserver mTestObserver = new TestObserver(mCollectedEvents);
50 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_CREATE)); in onCreate()
67 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_START)); in onStart()
73 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_RESUME)); in onResume()
79 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_DESTROY)); in onDestroy()
85 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_STOP)); in onStop()
91 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Event.ON_PAUSE)); in onPause()
98 return new ArrayList<>(mCollectedEvents); in copyCollectedEvents()
DTestObserver.java36 private final List<Pair<TestEvent, Event>> mCollectedEvents; field in TestObserver
39 mCollectedEvents = collectedEvents; in TestObserver()
44 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_CREATE)); in create()
49 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_START)); in start()
54 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_RESUME)); in resume()
58 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_PAUSE)); in pause()
63 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_STOP)); in stop()
68 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_DESTROY)); in destroy()
DCollectingSupportFragment.java40 private final List<Pair<TestEvent, Lifecycle.Event>> mCollectedEvents = field in CollectingSupportFragment
42 private TestObserver mTestObserver = new TestObserver(mCollectedEvents);
47 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_CREATE)); in onCreate()
74 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_START)); in onStart()
80 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_RESUME)); in onResume()
86 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_DESTROY)); in onDestroy()
92 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_STOP)); in onStop()
98 mCollectedEvents.add(new Pair<>(OWNER_CALLBACK, Lifecycle.Event.ON_PAUSE)); in onPause()
103 return new ArrayList<>(mCollectedEvents); in copyCollectedEvents()
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/
DFragmentOperationsLifecycleTest.java107 final List<Lifecycle.Event> mCollectedEvents = new ArrayList<>(); field in FragmentOperationsLifecycleTest.CollectingObserver
111 mCollectedEvents.add(event); in anyEvent()
115 ArrayList<Lifecycle.Event> events = new ArrayList<>(mCollectedEvents); in getEventsAndReset()
116 mCollectedEvents.clear(); in getEventsAndReset()