Home
last modified time | relevance | path

Searched refs:mSwitchUserPref (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java100 private RestrictedPreference mSwitchUserPref; field in UserDetailsSettingsTest
142 doReturn(mSwitchUserPref).when(mFragment).findPreference(KEY_SWITCH_USER); in setUp()
174 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_userSelected_shouldSetupSwitchPref()
175 verify(mSwitchUserPref).setOnPreferenceClickListener(mFragment); in initialize_userSelected_shouldSetupSwitchPref()
189 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_guestSelected_shouldSetupSwitchPref()
190 verify(mSwitchUserPref).setOnPreferenceClickListener(mFragment); in initialize_guestSelected_shouldSetupSwitchPref()
215 mFragment.mSwitchUserPref = mSwitchUserPref; in onResume_canSwitch_shouldEnableSwitchPref()
220 verify(mSwitchUserPref).setEnabled(true); in onResume_canSwitch_shouldEnableSwitchPref()
226 mFragment.mSwitchUserPref = mSwitchUserPref; in onResume_userInCall_shouldDisableSwitchPref()
231 verify(mSwitchUserPref).setEnabled(false); in onResume_userInCall_shouldDisableSwitchPref()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java82 RestrictedPreference mSwitchUserPref; field in UserDetailsSettings
116 mSwitchUserPref.setEnabled(canSwitchUserNow()); in onResume()
133 } else if (preference == mSwitchUserPref) { in onPreferenceClick()
240 mSwitchUserPref = findPreference(KEY_SWITCH_USER);
245 mSwitchUserPref.setTitle(
250 mSwitchUserPref.setDisabledByAdmin(RestrictedLockUtilsInternal.getDeviceOwner(context));
252 mSwitchUserPref.setDisabledByAdmin(null);
253 mSwitchUserPref.setSelectable(true);
254 mSwitchUserPref.setOnPreferenceClickListener(this);