Searched refs:newUserType (Results 1 – 3 of 3) sorted by relevance
314 UserTypeDetails newUserType = newUserTypeBuilder.createUserTypeDetails(); in testUpgradeProfileType_updateTypeAndFlags() local316 mUserManagerService.upgradeProfileToTypeLU(userInfo, newUserType); in testUpgradeProfileType_updateTypeAndFlags()356 UserTypeDetails newUserType = newUserTypeBuilder.createUserTypeDetails(); in testUpgradeProfileType_updateRestrictions() local358 mUserManagerService.upgradeProfileToTypeLU(userInfo, newUserType); in testUpgradeProfileType_updateRestrictions()
2571 String newUserType = null; in runCreateUser() local2575 newUserType = UserManager.USER_TYPE_PROFILE_MANAGED; in runCreateUser()2577 newUserType = UserManager.USER_TYPE_FULL_RESTRICTED; in runCreateUser()2579 newUserType = UserManager.USER_TYPE_FULL_GUEST; in runCreateUser()2581 newUserType = UserManager.USER_TYPE_FULL_DEMO; in runCreateUser()2587 newUserType = getNextArgRequired(); in runCreateUser()2593 if (newUserType != null) { in runCreateUser()2594 if (userType != null && !userType.equals(newUserType)) { in runCreateUser()2596 + userType + " and " + newUserType + ")"); in runCreateUser()2599 userType = newUserType; in runCreateUser()
2921 final UserTypeDetails newUserType = userTypes.get( in upgradeUserTypesLU() local2924 if (newUserType == null) { in upgradeUserTypesLU()2930 upgradeProfileToTypeLU(userData.info, newUserType); in upgradeUserTypesLU()2948 + " to " + newUserType.getName()); in upgradeProfileToTypeLU()2957 if (!canAddMoreProfilesToUser(newUserType.getName(), userInfo.profileGroupId, false)) { in upgradeProfileToTypeLU()2959 "Exceeded maximum profiles of type " + newUserType.getName() + " for user " in upgradeProfileToTypeLU()2961 + newUserType.getMaxAllowedPerParent()); in upgradeProfileToTypeLU()2974 userInfo.userType = newUserType.getName(); in upgradeProfileToTypeLU()2976 userInfo.flags = newUserType.getDefaultUserInfoFlags() | (userInfo.flags ^ oldFlags); in upgradeProfileToTypeLU()2980 if (!BundleUtils.isEmpty(newUserType.getDefaultRestrictions())) { in upgradeProfileToTypeLU()[all …]