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/ |
D | AddProfilePreferenceControllerTest.java | 92 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()
|
D | AddProfileHandlerTest.java | 95 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/ |
D | DisallowAddUserTask.java | 76 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/ |
D | UserCapabilities.java | 72 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/ |
D | DisallowAddUserTaskTest.java | 85 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/ |
D | CarMultiUserTestBase.java | 251 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/ |
D | ProfileGridRecyclerView.java | 19 import static android.os.UserManager.DISALLOW_ADD_USER; 169 if (!mUserManager.hasUserRestriction(DISALLOW_ADD_USER, fgUserHandle)) { in createProfileRecords()
|
D | AddProfileHandler.java | 137 return !userManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER); in canAddProfiles()
|
D | PermissionsPreferenceController.java | 70 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/ |
D | UserHelper.java | 56 UserManager.DISALLOW_ADD_USER,
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserRestrictionsFragment.java | 47 UserManager.DISALLOW_ADD_USER,
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserGridRecyclerView.java | 21 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/ |
D | PermissionsPreferenceControllerTest.java | 51 private static final String TEST_RESTRICTION = UserManager.DISALLOW_ADD_USER;
|