Searched refs:mLifecycle (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
H A DObservableActivity.java30 private final Lifecycle mLifecycle = new Lifecycle(); field in class:ObservableActivity
33 return mLifecycle;
38 mLifecycle.onAttach(this);
45 mLifecycle.onAttach(this);
51 mLifecycle.onStart();
57 mLifecycle.onResume();
63 mLifecycle.onPause();
69 mLifecycle.onStop();
75 mLifecycle.onDestroy();
82 mLifecycle
[all...]
H A DObservablePreferenceFragment.java33 private final Lifecycle mLifecycle = new Lifecycle(); field in class:ObservablePreferenceFragment
36 return mLifecycle;
43 mLifecycle.onAttach(context);
49 mLifecycle.onCreate(savedInstanceState);
55 mLifecycle.setPreferenceScreen(preferenceScreen);
63 mLifecycle.onSaveInstanceState(outState);
69 mLifecycle.onStart();
76 mLifecycle.onStop();
83 mLifecycle.onResume();
90 mLifecycle
[all...]
H A DObservableDialogFragment.java30 protected final Lifecycle mLifecycle = createLifecycle(); field in class:ObservableDialogFragment
35 mLifecycle.onAttach(context);
40 mLifecycle.onStart();
46 mLifecycle.onResume();
52 mLifecycle.onPause();
58 mLifecycle.onStop();
64 mLifecycle.onDestroy();
70 mLifecycle.onCreateOptionsMenu(menu, inflater);
76 mLifecycle.onPrepareOptionsMenu(menu);
82 boolean lifecycleHandled = mLifecycle
[all...]
H A DObservableFragment.java29 private final Lifecycle mLifecycle = new Lifecycle(); field in class:ObservableFragment
32 return mLifecycle;
39 mLifecycle.onAttach(context);
45 mLifecycle.onCreate(savedInstanceState);
53 mLifecycle.onSaveInstanceState(outState);
59 mLifecycle.onStart();
66 mLifecycle.onStop();
73 mLifecycle.onResume();
80 mLifecycle.onPause();
87 mLifecycle
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
H A DLifecycleTest.java40 private Lifecycle<Object> mLifecycle; field in class:LifecycleTest
45 mLifecycle = new Lifecycle<>();
51 mLifecycle.addObserver(mObj1);
53 mLifecycle.dispatch(mDispatchedObjects::add);
60 mLifecycle.addObserver(mObj1);
61 mLifecycle.removeObserver(mObj1);
63 mLifecycle.dispatch(mDispatchedObjects::add);
70 mLifecycle.addObserver(mObj1);
71 mLifecycle.addObserver(mObj2);
73 mLifecycle
[all...]
/frameworks/support/lifecycle/common/src/test/java/android/arch/lifecycle/
H A DFullLifecycleObserverTest.java44 private Lifecycle mLifecycle; field in class:FullLifecycleObserverTest
49 mLifecycle = mock(Lifecycle.class);
50 when(mOwner.getLifecycle()).thenReturn(mLifecycle);
57 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
64 when(mLifecycle.getCurrentState()).thenReturn(STARTED);
69 when(mLifecycle.getCurrentState()).thenReturn(RESUMED);
74 when(mLifecycle.getCurrentState()).thenReturn(STARTED);
79 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
84 when(mLifecycle.getCurrentState()).thenReturn(INITIALIZED);
H A DReflectiveGenericLifecycleObserverTest.java48 private Lifecycle mLifecycle; field in class:ReflectiveGenericLifecycleObserverTest
53 mLifecycle = mock(Lifecycle.class);
54 when(mOwner.getLifecycle()).thenReturn(mLifecycle);
61 when(mLifecycle.getCurrentState()).thenReturn(STARTED);
98 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
120 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
126 when(mLifecycle.getCurrentState()).thenReturn(STARTED);
131 when(mLifecycle.getCurrentState()).thenReturn(RESUMED);
136 when(mLifecycle.getCurrentState()).thenReturn(STARTED);
141 when(mLifecycle
[all...]
/frameworks/support/lifecycle/runtime/src/test/java/
H A DNoPackageTest.java36 private Lifecycle mLifecycle; field in class:NoPackageTest
42 mLifecycle = mock(Lifecycle.class);
43 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycle);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DFooterPreferenceMixinTest.java51 private Lifecycle mLifecycle; field in class:FooterPreferenceMixinTest
57 mLifecycle = new Lifecycle();
61 mMixin = new FooterPreferenceMixin(mFragment, mLifecycle);
83 mLifecycle.setPreferenceScreen(mScreen);
/frameworks/support/lifecycle/extensions/src/test/java/android/arch/lifecycle/
H A DComputableLiveDataTest.java200 private LifecycleRegistry mLifecycle; field in class:ComputableLiveDataTest.TestLifecycleOwner
203 mLifecycle = new LifecycleRegistry(this);
208 return mLifecycle;
212 mLifecycle.handleLifecycleEvent(event);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/paging/
H A DLivePagedListProviderTest.java140 private LifecycleRegistry mLifecycle; field in class:LivePagedListProviderTest.TestLifecycleOwner
143 mLifecycle = new LifecycleRegistry(this);
148 return mLifecycle;
152 mLifecycle.handleLifecycleEvent(event);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
H A DLifecycleTest.java54 mLifecycle.addObserver(mFragObserver);
249 private final Lifecycle mLifecycle; field in class:LifecycleTest.OnStartObserver
252 mLifecycle = lifecycle;
257 mLifecycle.addObserver(new LifecycleObserver() {
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/
H A DLiveDataQueryTest.java342 private LifecycleRegistry mLifecycle; field in class:LiveDataQueryTest.TestLifecycleOwner
345 mLifecycle = new LifecycleRegistry(this);
350 return mLifecycle;
354 mLifecycle.handleLifecycleEvent(event);
/frameworks/support/lifecycle/runtime/src/test/java/android/arch/lifecycle/
H A DLifecycleRegistryTest.java46 private Lifecycle mLifecycle; field in class:LifecycleRegistryTest
52 mLifecycle = mock(Lifecycle.class);
53 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycle);
570 when(mLifecycle.getCurrentState()).thenReturn(LifecycleRegistry.getStateAfter(event));

Completed in 314 milliseconds