Searched refs:addBaseUserRestriction (Results 1 – 4 of 4) sorted by relevance
134 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in getAvailabilityStatus_adminUser_baseRestricted_notDpmRestricted_disabledForUser()144 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in getAvailabilityStatus_adminUser_baseRestricted_dpmRestricted_available()175 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in getAvailabilityStatus_demoMode_demoUser_baseRestricted_disabledForUser()220 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in performClick_showsBlockedToast_adminUser_baseRestricted_notDpmRestricted()232 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in performClick_showsBlockedToast_adminUser_baseRestricted_dpmRestricted()268 addBaseUserRestriction(DISALLOW_FACTORY_RESET); in performClick_showsBlockedToast_demoUser_baseRestricted()295 private void addBaseUserRestriction(String restriction) { in addBaseUserRestriction() method in FactoryResetEntryPreferenceControllerTest
83 mUserManager.addBaseUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS); in isAvailable_hasRestriction_shouldReturnFalse()
93 public void addBaseUserRestriction(String restriction) { in addBaseUserRestriction() method in ShadowUserManager
390 mUserManager.addBaseUserRestriction(UserManager.DISALLOW_REMOVE_USER); in initialize_disallowRemoveUserRestriction_shouldNotShowRemovePreference()