Home
last modified time | relevance | path

Searched refs:DISALLOW_ADD_USER (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DAddProfilePreferenceControllerTest.java92 when(mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)).thenReturn(false); in onCreate_userCanAddNewProfile_showsAddProfileButton()
104 when(mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)).thenReturn(true); in onCreate_userRestrictedFromAddingNewProfileAndNotInDemo_doesNotShowActionButton()
116 when(mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)).thenReturn(false); in testCallOnClick_profileLimitReached_showErrorDialog()
DAddProfileHandlerTest.java95 when(mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)).thenReturn(true); in userRestricted_canNotAddProfile()
102 when(mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)).thenReturn(false); in userNotRestricted_canAddProfile()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java76 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in run()
77 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); in run()
/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java72 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
74 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java85 verify(mMockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_normalSystem()
100 when(mMockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarMultiUserTestBase.java251 assertWithMessage("%s restriction", UserManager.DISALLOW_ADD_USER) in assertCanAddUser()
252 .that(restrictions.getBoolean(UserManager.DISALLOW_ADD_USER, false)).isFalse(); in assertCanAddUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileGridRecyclerView.java19 import static android.os.UserManager.DISALLOW_ADD_USER;
169 if (!mUserManager.hasUserRestriction(DISALLOW_ADD_USER, fgUserHandle)) { in createProfileRecords()
DAddProfileHandler.java137 return !userManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER); in canAddProfiles()
DPermissionsPreferenceController.java70 PERMISSIONS_LIST.add(new ProfilePermission(UserManager.DISALLOW_ADD_USER, in PERMISSIONS_LIST.add() argument
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHelper.java56 UserManager.DISALLOW_ADD_USER,
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionsFragment.java47 UserManager.DISALLOW_ADD_USER,
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java21 import static android.os.UserManager.DISALLOW_ADD_USER;
169 if (!mUserManager.hasUserRestriction(DISALLOW_ADD_USER, fgUserHandle)) { in createUserRecords()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DPermissionsPreferenceControllerTest.java51 private static final String TEST_RESTRICTION = UserManager.DISALLOW_ADD_USER;