Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java100 TwoStatePreference mGrantAdminPref; field in UserDetailsSettings
189 } else if (preference == mGrantAdminPref) { in onPreferenceChange()
349 mGrantAdminPref = findPreference(KEY_GRANT_ADMIN);
351 mGrantAdminPref.setChecked(mUserInfo.isAdmin());
421 mGrantAdminPref.setOnPreferenceChangeListener(this);
493 mGrantAdminPref.setChecked(isSetAdmin);
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java110 private SwitchPreference mGrantAdminPref; field in UserDetailsSettingsTest
153 doReturn(mGrantAdminPref).when(mFragment).findPreference(KEY_GRANT_ADMIN); in setUp()
754 mFragment.mGrantAdminPref = mGrantAdminPref; in onPreferenceChange_grantAdminClicked_isNotAdmin_shouldLogGrantAdmin()
757 mFragment.onPreferenceChange(mGrantAdminPref, true); in onPreferenceChange_grantAdminClicked_isNotAdmin_shouldLogGrantAdmin()
767 mFragment.mGrantAdminPref = mGrantAdminPref; in onPreferenceChange_grantAdminClicked_isAdmin_shouldLogRevokeAdmin()
770 mFragment.onPreferenceChange(mGrantAdminPref, false); in onPreferenceChange_grantAdminClicked_isAdmin_shouldLogRevokeAdmin()