/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/ |
D | AppSearchModuleTest.java | 63 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/ |
D | DevelopmentSwitchBarControllerTest.java | 57 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 …]
|
D | PictureColorModePreferenceControllerTest.java | 57 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()
|
D | LogPersistPreferenceControllerTest.java | 53 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/ |
D | SettingsPreferenceFragment.java | 61 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/ |
D | PreferenceControllerState.java | 43 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/ |
D | PrintJobMessagePreferenceControllerTest.java | 66 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()
|
D | PrintSettingsPreferenceControllerTest.java | 76 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()
|
D | PrintJobPreferenceControllerTest.java | 65 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/ |
D | SettingsPreferenceFragment.java | 73 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/ |
D | DeviceAdminListPreferenceControllerTest.java | 46 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/ |
D | ZenAccessSettingObserverMixinTest.java | 62 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/ |
D | ProxySubscriptionManager.java | 121 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()
|
D | GlobalSettingsChangeListener.java | 72 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/ |
D | WifiP2PPreferenceControllerTest.java | 69 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/ |
D | AccountHeaderPreferenceControllerTest.java | 68 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/ |
D | VpnPreferenceControllerTest.java | 70 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/ |
D | ContactDiscoveryPreferenceControllerTest.java | 83 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/ |
D | AssistFlashScreenPreferenceControllerTest.java | 68 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()
|
D | AssistContextPreferenceControllerTest.java | 60 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/ |
D | AutofillLoggingLevelPreferenceControllerTest.java | 71 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/ |
D | WifiTrackerBaseTest.java | 44 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/ |
D | BluetoothDetailsHearingDeviceController.java | 48 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/ |
D | VisiblePatternProfilePreferenceControllerTest.java | 69 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()
|
D | RestrictedEncryptionPreferenceControllerTest.java | 48 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()
|