Searched refs:DISALLOW_ADD_USER (Results 1 – 9 of 9) sorted by relevance
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTaskTest.java | 85 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_normalSystem() 100 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() 126 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() 128 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTask.java | 72 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in run() 73 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); in run()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserCapabilities.java | 72 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities() 74 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserCapabilities.java | 72 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities() 74 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | CarUserManagerHelper.java | 80 UserManager.DISALLOW_ADD_USER, 628 return !foregroundUserHasUserRestriction(UserManager.DISALLOW_ADD_USER); in canForegroundUserAddUsers() 719 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_ADD_USER); in canCurrentProcessAddUsers()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | CarUserManagerHelperTest.java | 222 .hasUserRestriction(UserManager.DISALLOW_ADD_USER); in testCurrentProcessCanAddUsers() 226 .hasUserRestriction(UserManager.DISALLOW_ADD_USER); in testCurrentProcessCanAddUsers() 640 testInfo, UserManager.DISALLOW_ADD_USER, /* enable= */ true); in testSetUserRestriction() 642 UserManager.DISALLOW_ADD_USER, true, UserHandle.of(userId)); in testSetUserRestriction()
|
/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | PermissionsPreferenceController.java | 70 PERMISSIONS_LIST.add(new UserPermission(UserManager.DISALLOW_ADD_USER, in PERMISSIONS_LIST.add() argument
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UsersFragment.java | 44 UserManager.DISALLOW_ADD_USER,
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | PermissionsPreferenceControllerTest.java | 53 private static final String TEST_RESTRICTION = UserManager.DISALLOW_ADD_USER;
|