Home
last modified time | relevance | path

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

123456

/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/
DAppSearchModuleTest.java63 private Lifecycle mLifecycle; field in AppSearchModuleTest
77 mLifecycle = in setUp()
124 mLifecycle.onStart(); in testBothIndexersEnabled()
125 assertThat(mLifecycle.mAppsIndexerManagerService).isNotNull(); in testBothIndexersEnabled()
126 assertThat(mLifecycle.mContactsIndexerManagerService).isNotNull(); in testBothIndexersEnabled()
128 mLifecycle.onUserUnlocking(mUser); in testBothIndexersEnabled()
132 mLifecycle.onUserStopping(mUser); in testBothIndexersEnabled()
147 mLifecycle.onStart(); in testContactsIndexerDisabled()
148 assertNull(mLifecycle.mContactsIndexerManagerService); in testContactsIndexerDisabled()
150 mLifecycle.onUserUnlocking(mUser); in testContactsIndexerDisabled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java57 private Lifecycle mLifecycle; field in DevelopmentSwitchBarControllerTest
65 mLifecycleOwner = () -> mLifecycle; in setUp()
66 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
80 true /* isAvailable */, mLifecycle); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
84 mLifecycle.handleLifecycleEvent(ON_START); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
87 mLifecycle.handleLifecycleEvent(ON_STOP); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
95 true /* isAvailable */, mLifecycle); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
99 mLifecycle.handleLifecycleEvent(ON_START); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
102 mLifecycle.handleLifecycleEvent(ON_STOP); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
111 true /* isAvailable */, mLifecycle); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
[all …]
DPictureColorModePreferenceControllerTest.java57 private Lifecycle mLifecycle; field in PictureColorModePreferenceControllerTest
63 mLifecycleOwner = () -> mLifecycle; in setup()
64 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
65 mController = new PictureColorModePreferenceController(mContext, mLifecycle); in setup()
130 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldStartListening()
137 mLifecycle.handleLifecycleEvent(ON_RESUME); in onPause_shouldStopListening()
138 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause_shouldStopListening()
DLogPersistPreferenceControllerTest.java53 private Lifecycle mLifecycle; field in LogPersistPreferenceControllerTest
59 mLifecycleOwner = () -> mLifecycle; in setup()
60 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
61 mController = spy(new LogPersistPreferenceController(mContext, mFragment, mLifecycle)); in setup()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSettingsPreferenceFragment.java61 private final Lifecycle mLifecycle = new Lifecycle(this); field in SettingsPreferenceFragment
67 return mLifecycle; in getSettingsLifecycle()
77 mLifecycle.onAttach(context); in onAttach()
83 mLifecycle.onCreate(savedInstanceState); in onCreate()
84 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
145 mLifecycle.setPreferenceScreen(preferenceScreen);
153 mLifecycle.onSaveInstanceState(outState);
159 mLifecycle.handleLifecycleEvent(ON_START);
167 mLifecycle.handleLifecycleEvent(ON_RESUME);
180 mLifecycle.handleLifecycleEvent(ON_PAUSE);
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/data/
DPreferenceControllerState.java43 private Lifecycle mLifecycle; field in PreferenceControllerState
53 mLifecycle = new Lifecycle(); in onAttach()
54 mLifecycle.onAttach(); in onAttach()
59 mLifecycle.onCreate(extras); in onCreate()
70 mLifecycle.onStart(); in onStart()
76 mLifecycle.onResume(); in onResume()
81 mLifecycle.onPause(); in onPause()
86 mLifecycle.onStop(); in onStop()
91 mLifecycle.onDestroy(); in onDestroy()
161 return mLifecycle; in getLifecycle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintJobMessagePreferenceControllerTest.java66 private Lifecycle mLifecycle; field in PrintJobMessagePreferenceControllerTest
80 mLifecycleOwner = () -> mLifecycle; in setUp()
81 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
82 mLifecycle.addObserver(mController); in setUp()
87 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
88 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
97 mLifecycle.handleLifecycleEvent(ON_START); in updateUi_visiblePreference()
101 mLifecycle.handleLifecycleEvent(ON_STOP); in updateUi_visiblePreference()
107 mLifecycle.handleLifecycleEvent(ON_START); in updateUi_invisiblePreference()
111 mLifecycle.handleLifecycleEvent(ON_STOP); in updateUi_invisiblePreference()
DPrintSettingsPreferenceControllerTest.java76 private Lifecycle mLifecycle; field in PrintSettingsPreferenceControllerTest
85 mLifecycleOwner = () -> mLifecycle; in setUp()
86 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
89 mLifecycle.addObserver(mController); in setUp()
94 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
95 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
105 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_printManagerIsNull_doNothing()
106 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_printManagerIsNull_doNothing()
DPrintJobPreferenceControllerTest.java65 private Lifecycle mLifecycle; field in PrintJobPreferenceControllerTest
84 mLifecycleOwner = () -> mLifecycle; in setUp()
85 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
86 mLifecycle.addObserver(mController); in setUp()
91 mLifecycle.handleLifecycleEvent(ON_START); in onStartStop_shouldRegisterPrintStateListener()
92 mLifecycle.handleLifecycleEvent(ON_STOP); in onStartStop_shouldRegisterPrintStateListener()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSettingsPreferenceFragment.java73 private final Lifecycle mLifecycle = new Lifecycle(this); field in SettingsPreferenceFragment
79 return mLifecycle; in getSettingsLifecycle()
89 mLifecycle.onAttach(context); in onAttach()
95 mLifecycle.onCreate(savedInstanceState); in onCreate()
96 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
222 mLifecycle.setPreferenceScreen(preferenceScreen);
230 mLifecycle.onSaveInstanceState(outState);
236 mLifecycle.handleLifecycleEvent(ON_START);
244 mLifecycle.handleLifecycleEvent(ON_RESUME);
262 mLifecycle.handleLifecycleEvent(ON_PAUSE);
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminListPreferenceControllerTest.java46 private Lifecycle mLifecycle; field in DeviceAdminListPreferenceControllerTest
52 final LifecycleOwner lifecycleOwner = () -> mLifecycle; in setUp()
53 mLifecycle = new Lifecycle(lifecycleOwner); in setUp()
55 mLifecycle.addObserver(new DeviceAdminListPreferenceController(mContext, "test_key")); in setUp()
60 mLifecycle.handleLifecycleEvent(ON_START); in onStart_registerReceiver()
68 mLifecycle.handleLifecycleEvent(ON_START); in onStop_unregisterReceiver()
69 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop_unregisterReceiver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessSettingObserverMixinTest.java62 private Lifecycle mLifecycle; field in ZenAccessSettingObserverMixinTest
68 mLifecycleOwner = () -> mLifecycle; in setUp()
69 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
73 mLifecycle.addObserver(mMixin); in setUp()
82 mLifecycle.handleLifecycleEvent(ON_START); in onStart_shouldRegisterListener()
93 mLifecycle.handleLifecycleEvent(ON_START); in onStop_shouldUnregisterListener()
94 mLifecycle.handleLifecycleEvent(ON_STOP); in onStop_shouldUnregisterListener()
/packages/apps/Settings/src/com/android/settings/network/
DProxySubscriptionManager.java121 private Lifecycle mLifecycle; field in ProxySubscriptionManager
147 if (mLifecycle == lifecycle) { in setLifecycle()
150 if (mLifecycle != null) { in setLifecycle()
151 mLifecycle.removeObserver(this); in setLifecycle()
156 mLifecycle = lifecycle; in setLifecycle()
180 if (mLifecycle != null) { in onDestroy()
181 mLifecycle.removeObserver(this); in onDestroy()
182 mLifecycle = null; in onDestroy()
DGlobalSettingsChangeListener.java72 private Lifecycle mLifecycle; field in GlobalSettingsChangeListener
85 if (mLifecycle != null) { in notifyChangeBasedOn()
86 mLifecycle.removeObserver(this); in notifyChangeBasedOn()
91 mLifecycle = lifecycle; in notifyChangeBasedOn()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
DWifiP2PPreferenceControllerTest.java69 private Lifecycle mLifecycle; field in WifiP2PPreferenceControllerTest
76 mLifecycleOwner = () -> mLifecycle; in setUp()
77 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
83 mController = new WifiP2pPreferenceController(mContext, mLifecycle, mWifiManager); in setUp()
94 mLifecycle.handleLifecycleEvent(ON_RESUME); in testOnResume_shouldRegisterListener()
100 mLifecycle.handleLifecycleEvent(ON_RESUME); in testOnPause_shouldUnregisterListener()
101 mLifecycle.handleLifecycleEvent(ON_PAUSE); in testOnPause_shouldUnregisterListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountHeaderPreferenceControllerTest.java68 private Lifecycle mLifecycle; field in AccountHeaderPreferenceControllerTest
78 mLifecycleOwner = () -> mLifecycle; in setUp()
79 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
85 mLifecycle, mActivity, mFragment, null /* args */); in isAvailable_noArgs_shouldReturnNull()
97 mLifecycle, mActivity, mFragment, args); in onResume_shouldDisplayAccountInEntityHeader()
104 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldDisplayAccountInEntityHeader()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DVpnPreferenceControllerTest.java70 private Lifecycle mLifecycle; field in VpnPreferenceControllerTest
91 mLifecycleOwner = () -> mLifecycle; in setUp()
92 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
93 mLifecycle.addObserver(mController); in setUp()
115 mLifecycle.handleLifecycleEvent(ON_RESUME); in goThroughLifecycle_shouldRegisterUnregisterListener()
119 mLifecycle.handleLifecycleEvent(ON_PAUSE); in goThroughLifecycle_shouldRegisterUnregisterListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DContactDiscoveryPreferenceControllerTest.java83 private Lifecycle mLifecycle; field in ContactDiscoveryPreferenceControllerTest
91 mLifecycleOwner = () -> mLifecycle; in setUp()
92 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
109 mLifecycle.addObserver(mPreferenceControllerUT); in setUp()
135 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in testRegisterObserver()
138 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_PAUSE); in testRegisterObserver()
172 mLifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in getUceChangeObserver()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DAssistFlashScreenPreferenceControllerTest.java68 private Lifecycle mLifecycle; field in AssistFlashScreenPreferenceControllerTest
74 mLifecycleOwner = () -> mLifecycle; in setUp()
75 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
77 mController = spy(new AssistFlashScreenPreferenceController(mContext, mLifecycle)); in setUp()
78 mLifecycle.addObserver(mController); in setUp()
124 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldUpdatePreference()
DAssistContextPreferenceControllerTest.java60 private Lifecycle mLifecycle; field in AssistContextPreferenceControllerTest
66 mLifecycleOwner = () -> mLifecycle; in setUp()
67 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
69 mController = new AssistContextPreferenceController(mContext, mLifecycle); in setUp()
95 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume_shouldUpdatePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/
DAutofillLoggingLevelPreferenceControllerTest.java71 private Lifecycle mLifecycle; field in AutofillLoggingLevelPreferenceControllerTest
76 mLifecycleOwner = () -> mLifecycle; in setup()
77 mLifecycle = new Lifecycle(mLifecycleOwner); in setup()
83 mController = new AutofillLoggingLevelPreferenceController(mContext, mLifecycle); in setup()
168 mLifecycle.handleLifecycleEvent(ON_CREATE); in onDestory_shouldUnregisterObserver()
169 mLifecycle.handleLifecycleEvent(ON_DESTROY); in onDestory_shouldUnregisterObserver()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/helper/
DWifiTrackerBaseTest.java44 Lifecycle mLifecycle; field in WifiTrackerBaseTest
52 mWifiTrackerBase = new WifiTrackerBase(mLifecycle, mWorkerThread); in setUp()
57 mWifiTrackerBase = new WifiTrackerBase(mLifecycle); in constructor_createWorkerThread()
76 mWifiTrackerBase = new WifiTrackerBase(mLifecycle); in getWorkerThreadHandler_isNotNull()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsHearingDeviceController.java48 private Lifecycle mLifecycle; field in BluetoothDetailsHearingDeviceController
58 mLifecycle = lifecycle; in BluetoothDetailsHearingDeviceController()
104 mFragment, mCachedDevice, mLifecycle)); in initSubControllers()
108 mManager, mCachedDevice, mLifecycle)); in initSubControllers()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DVisiblePatternProfilePreferenceControllerTest.java69 private Lifecycle mLifecycle; field in VisiblePatternProfilePreferenceControllerTest
92 mLifecycleOwner = () -> mLifecycle; in setUp()
93 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
94 mController = new VisiblePatternProfilePreferenceController(mContext, mLifecycle); in setUp()
131 mController = new VisiblePatternProfilePreferenceController(mContext, mLifecycle, "key"); in getPreferenceKey_whenGivenValue_returnsGivenValue()
DRestrictedEncryptionPreferenceControllerTest.java48 private Lifecycle mLifecycle; field in RestrictedEncryptionPreferenceControllerTest
54 mLifecycleOwner = () -> mLifecycle; in setUp()
55 mLifecycle = new Lifecycle(mLifecycleOwner); in setUp()
59 new ResetCredentialsPreferenceController(mContext, mLifecycle); in setUp()

123456