Home
last modified time | relevance | path

Searched refs:mLifecycle (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DObservableActivity.java40 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableActivity
43 return mLifecycle; in getSettingsLifecycle()
48 mLifecycle.onAttach(this); in onCreate()
49 mLifecycle.onCreate(savedInstanceState); in onCreate()
50 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
57 mLifecycle.onAttach(this); in onCreate()
58 mLifecycle.onCreate(savedInstanceState); in onCreate()
59 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
65 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
71 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
[all …]
DObservablePreferenceFragment.java43 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservablePreferenceFragment
46 return mLifecycle; in getSettingsLifecycle()
53 mLifecycle.onAttach(context); in onAttach()
59 mLifecycle.onCreate(savedInstanceState); in onCreate()
60 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
66 mLifecycle.setPreferenceScreen(preferenceScreen); in setPreferenceScreen()
74 mLifecycle.onSaveInstanceState(outState); in onSaveInstanceState()
80 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
87 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
94 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
[all …]
DObservableFragment.java38 private final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableFragment
41 return mLifecycle; in getSettingsLifecycle()
48 mLifecycle.onAttach(context); in onAttach()
54 mLifecycle.onCreate(savedInstanceState); in onCreate()
55 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
63 mLifecycle.onSaveInstanceState(outState); in onSaveInstanceState()
69 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
76 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
83 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
90 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop()
[all …]
DObservableDialogFragment.java39 protected final Lifecycle mLifecycle = new Lifecycle(this); field in ObservableDialogFragment
42 return mLifecycle; in getSettingsLifecycle()
48 mLifecycle.onAttach(context); in onAttach()
53 mLifecycle.onCreate(savedInstanceState); in onCreate()
54 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
60 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
66 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
72 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
78 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop()
84 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DLifecycleTest.java41 private Lifecycle<Object> mLifecycle; field in LifecycleTest
46 mLifecycle = new Lifecycle<>(); in setUp()
52 mLifecycle.addObserver(mObj1); in addObserver_addsObserver()
54 mLifecycle.dispatch(mDispatchedObjects::add); in addObserver_addsObserver()
61 mLifecycle.addObserver(mObj1); in removeObserver()
62 mLifecycle.removeObserver(mObj1); in removeObserver()
64 mLifecycle.dispatch(mDispatchedObjects::add); in removeObserver()
71 mLifecycle.addObserver(mObj1); in dispatch()
72 mLifecycle.addObserver(mObj2); in dispatch()
74 mLifecycle.dispatch(mDispatchedObjects::add); in dispatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DLifecycleFragment.java39 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in LifecycleFragment
42 return mLifecycle; in getLifecycle()
48 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
55 mLifecycle.handleLifecycleEvent(ON_START); in onStart()
62 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
69 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
76 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop()
83 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestroy()
DSysuiLifecycle.java47 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in SysuiLifecycle.ViewLifecycle
56 return mLifecycle; in getLifecycle()
61 mLifecycle.markState(RESUMED); in onViewAttachedToWindow()
66 mLifecycle.markState(DESTROYED); in onViewDetachedFromWindow()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionBarShadowControllerTest.java58 private Lifecycle mLifecycle; field in ActionBarShadowControllerTest
67 mLifecycleOwner = () -> mLifecycle; in setUp()
68 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
75 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_shouldAddScrollWatcherAndUpdateActionBar()
84 ActionBarShadowController.attachToView(mActivity, mLifecycle, mScrollView); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar()
95 ActionBarShadowController.attachToView(mView, mLifecycle, mRecyclerView); in attachToView_customViewAsActionBar_shouldUpdateElevationOnScroll()
106 ActionBarShadowController.attachToView(mActivity, mLifecycle, mRecyclerView); in attachToView_lifecycleChange_shouldAttachDetach()
110 mLifecycle.handleLifecycleEvent(ON_START); in attachToView_lifecycleChange_shouldAttachDetach()
111 mLifecycle.handleLifecycleEvent(ON_STOP); in attachToView_lifecycleChange_shouldAttachDetach()
114 mLifecycle.handleLifecycleEvent(ON_START); in attachToView_lifecycleChange_shouldAttachDetach()
[all …]
DFooterPreferenceMixinCompatTest.java51 private Lifecycle mLifecycle; field in FooterPreferenceMixinCompatTest
57 mLifecycleOwner = () -> mLifecycle; in setUp()
58 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
62 mMixin = new FooterPreferenceMixinCompat(mFragment, mLifecycle); in setUp()
84 mLifecycle.setPreferenceScreen(mScreen); in createFooter_screenAvailableDelayed_canAttachToScreen()
DFooterPreferenceMixinTest.java51 private Lifecycle mLifecycle; field in FooterPreferenceMixinTest
57 mLifecycleOwner = () -> mLifecycle; in setUp()
58 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
62 mMixin = new FooterPreferenceMixin(mFragment, mLifecycle); in setUp()
84 mLifecycle.setPreferenceScreen(mScreen); in createFooter_screenAvailableDelayed_canAttachToScreen()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
DSuggestionControllerMixinTest.java55 private Lifecycle mLifecycle; field in SuggestionControllerMixinTest
62 mLifecycleOwner = () -> mLifecycle; in setUp()
63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
76 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController()
78 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_onStartStop_shouldStartStopController()
81 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_onStartStop_shouldStartStopController()
90 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion()
101 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing()
111 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
119 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in doneLoadingg_shouldSetSuggestionLoaded()
DSuggestionControllerMixinCompatTest.java55 private Lifecycle mLifecycle; field in SuggestionControllerMixinCompatTest
62 mLifecycleOwner = () -> mLifecycle; in setUp()
63 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
76 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController()
78 mLifecycle.handleLifecycleEvent(ON_START); in goThroughLifecycle_onStartStop_shouldStartStopController()
81 mLifecycle.handleLifecycleEvent(ON_STOP); in goThroughLifecycle_onStartStop_shouldStartStopController()
90 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion()
101 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing()
111 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
119 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in doneLoadingg_shouldSetSuggestionLoaded()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
DLifecycleTest.java53 private Lifecycle mLifecycle; field in LifecycleTest
61 mLifecycle.addObserver(mFragObserver); in TestDialogFragment()
159 mLifecycleOwner = () -> mLifecycle; in setUp()
160 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
234 mLifecycle.addObserver(new OnStartObserver(mLifecycle)); in addObserverDuringObserve_shoudNotCrash()
235 mLifecycle.handleLifecycleEvent(ON_START); in addObserverDuringObserve_shoudNotCrash()
266 private final Lifecycle mLifecycle; field in LifecycleTest.OnStartObserver
269 mLifecycle = lifecycle; in OnStartObserver()
274 mLifecycle.addObserver(new LifecycleObserver() { in onStart()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DBluetoothAddressPreferenceControllerTest.java46 private Lifecycle mLifecycle; field in BluetoothAddressPreferenceControllerTest
71 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testNoBluetooth()
81 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testHasBluetooth()
91 new ConcreteBluetoothAddressPreferenceController(mContext, mLifecycle); in testHasBluetoothStateChangedFilter()
DIpAddressPreferenceControllerTest.java47 private Lifecycle mLifecycle; field in IpAddressPreferenceControllerTest
63 new ConcreteIpAddressPreferenceController(mContext, mLifecycle); in testHasIntentFilters()
DUptimePreferenceControllerTest.java46 private Lifecycle mLifecycle; field in UptimePreferenceControllerTest
62 new ConcreteUptimePreferenceController(mContext, mLifecycle); in testDisplayPreference()
DConnectivityPreferenceControllerTest.java49 private Lifecycle mLifecycle; field in ConnectivityPreferenceControllerTest
59 spy(new ConcreteConnectivityPreferenceController(mContext, mLifecycle)); in testBroadcastReceiver()
DImsStatusPreferenceControllerTest.java47 private Lifecycle mLifecycle; field in ImsStatusPreferenceControllerTest
72 new ConcreteImsStatusPreferenceController(mContext, mLifecycle); in testIsAvailable()
DWifiMacAddressPreferenceControllerTest.java52 private Lifecycle mLifecycle; field in WifiMacAddressPreferenceControllerTest
78 mController = new ConcreteWifiMacAddressPreferenceController(mContext, mLifecycle); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DLogpersistPreferenceControllerTest.java46 private Lifecycle mLifecycle; field in LogpersistPreferenceControllerTest
59 mLifecycleOwner = () -> mLifecycle; in setUp()
60 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
62 mLifecycle) { in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java108 private final LifecycleRegistry mLifecycle = new LifecycleRegistry(this); field in QSTileImpl
132 return mLifecycle; in getLifecycle()
363 mLifecycle.markState(RESUMED); in handleSetListeningInternal()
370 mLifecycle.markState(DESTROYED); in handleSetListeningInternal()