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.java106 private RestrictedPreference mSwitchUserPref; field in UserDetailsSettingsTest
152 doReturn(mSwitchUserPref).when(mFragment).findPreference(KEY_SWITCH_USER); in setUp()
186 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_userSelected_shouldSetupSwitchPref()
187 verify(mSwitchUserPref).setOnPreferenceClickListener(mFragment); in initialize_userSelected_shouldSetupSwitchPref()
201 verify(mSwitchUserPref).setTitle("Switch to " + mUserInfo.name); in initialize_guestSelected_shouldSetupSwitchPref()
202 verify(mSwitchUserPref).setOnPreferenceClickListener(mFragment); in initialize_guestSelected_shouldSetupSwitchPref()
228 mFragment.mSwitchUserPref = mSwitchUserPref; in onResume_canSwitch_shouldEnableSwitchPref()
233 verify(mSwitchUserPref).setEnabled(true); in onResume_canSwitch_shouldEnableSwitchPref()
240 mFragment.mSwitchUserPref = mSwitchUserPref; in onResume_userInCall_shouldDisableSwitchPref()
245 verify(mSwitchUserPref).setEnabled(false); in onResume_userInCall_shouldDisableSwitchPref()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java91 RestrictedPreference mSwitchUserPref; field in UserDetailsSettings
129 mSwitchUserPref.setEnabled(canSwitchUserNow()); in onResume()
151 } else if (preference == mSwitchUserPref) { in onPreferenceClick()
344 mSwitchUserPref = findPreference(KEY_SWITCH_USER);
353 mSwitchUserPref.setTitle(
358 mSwitchUserPref.setDisabledByAdmin(RestrictedLockUtilsInternal.getDeviceOwner(context));
360 mSwitchUserPref.setDisabledByAdmin(null);
361 mSwitchUserPref.setSelectable(true);
362 mSwitchUserPref.setOnPreferenceClickListener(this);