/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | UserInfo.java | 238 public String userType; field in UserInfo 311 this.userType = userType; in UserInfo() 368 return UserManager.isUserTypeGuest(userType); in isGuest() 373 return UserManager.isUserTypeRestricted(userType); in isRestricted() 382 return UserManager.isUserTypeManagedProfile(userType); in isManagedProfile() 386 return UserManager.isUserTypeCloneProfile(userType); in isCloneProfile() 413 return UserManager.isUserTypeDemo(userType) || (flags & FLAG_DEMO) != 0; in isDemo() 485 userType = orig.userType; in UserInfo() 517 + ", type=" + userType in toFullString() 541 dest.writeString8(userType); in writeToParcel() [all …]
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | IUserManager.aidl | 46 UserInfo createUserWithThrow(in String name, in String userType, int flags); in createUserWithThrow() argument 47 UserInfo preCreateUserWithThrow(in String userType); in preCreateUserWithThrow() argument 48 … UserInfo createProfileForUserWithThrow(in String name, in String userType, int flags, int userId, in createProfileForUserWithThrow() argument 51 String[] getPreInstallableSystemPackages(in String userType); in getPreInstallableSystemPackages() argument 67 boolean isUserTypeEnabled(in String userType); in isUserTypeEnabled() argument 68 boolean canAddMoreUsersOfType(in String userType); in canAddMoreUsersOfType() argument 69 int getRemainingCreatableUserCount(in String userType); in getRemainingCreatableUserCount() argument 70 int getRemainingCreatableProfileCount(in String userType, int userId); in getRemainingCreatableProfileCount() argument 71 boolean canAddMoreProfilesToUser(in String userType, int userId, boolean allowedToRemoveOne); in canAddMoreProfilesToUser() argument 76 boolean isUserOfType(int userId, in String userType); in isUserOfType() argument [all …]
|
H A D | UserManager.java | 2541 return userInfo == null ? "" : userInfo.userType; in getUserType() 2760 public boolean isUserOfType(@NonNull String userType) { in isUserOfType() argument 2762 return mService.isUserOfType(mUserId, userType); in isUserOfType() 2774 return USER_TYPE_PROFILE_MANAGED.equals(userType); in isUserTypeManagedProfile() 2782 return USER_TYPE_FULL_GUEST.equals(userType); in isUserTypeGuest() 2791 return USER_TYPE_FULL_RESTRICTED.equals(userType); in isUserTypeRestricted() 2799 return USER_TYPE_FULL_DEMO.equals(userType); in isUserTypeDemo() 2807 return USER_TYPE_PROFILE_CLONE.equals(userType); in isUserTypeCloneProfile() 3971 return mService.preCreateUserWithThrow(userType); in preCreateUser() 4745 if (userType.equals(USER_TYPE_FULL_GUEST)) { in canAddMoreUsers() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | CredentialInteractor.kt | 180 userType: UserType, 184 remaining == 1 -> getLastAttemptBeforeWipeMessage(request, devicePolicyManager, userType) 185 remaining <= 0 -> getNowWipingMessage(devicePolicyManager, userType) 192 userType: UserType, 194 when (userType) { 262 userType: UserType, 265 when (userType) { 273 when (userType) {
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserJourneyLogger.java | 227 public static int getUserTypeForStatsd(@NonNull String userType) { in getUserTypeForStatsd() argument 228 switch (userType) { in getUserTypeForStatsd() 275 int userType, int userFlags, @UserJourneyErrorCode int errorCode) { in logUserLifecycleJourneyReported() argument 278 userType, userFlags, ERROR_CODE_INVALID_SESSION_ID, -1); in logUserLifecycleJourneyReported() 282 session.mSessionId, journey, originalUserId, targetUserId, userType, userFlags, in logUserLifecycleJourneyReported() 292 int targetUserId, int userType, int userFlags, int errorCode, long elapsedTime) { in writeUserLifecycleJourneyReported() argument 294 sessionId, journey, originalUserId, targetUserId, userType, userFlags, in writeUserLifecycleJourneyReported() 447 getUserTypeForStatsd(targetUser.userType), in logUserJourneyFinishWithError() 470 getUserTypeForStatsd(targetUser.userType), in logDelayedUserJourneyFinishWithError() 529 getUserTypeForStatsd(targetUser.userType), in logUserCreateJourneyFinish()
|
H A D | UserManagerService.java | 1183 if (userType != null && !userType.equals(profile.userType)) { in getProfileIdsLU() 1677 return userType != null && userType.equals(getUserTypeNoChecks(userId)); in isUserOfType() 3095 UserManager.isUserTypeGuest(userType) || UserManager.isUserTypeDemo(userType) in getRemainingCreatableUserCount() 3134 if (user.userType.equals(userType) in getNumberOfUsersOfType() 4023 + " from " + userInfo.userType in upgradeProfileToTypeLU() 4415 String userType = null; 4464 userType = userType != null ? userType.intern() : null; 4669 @NonNull String userType) 4782 userType = userType.intern(); // Now that we know it's valid, we can intern it. 5230 if (user.info.preCreated && !user.info.partial && user.info.userType.equals(userType)) { [all …]
|
H A D | UserSystemPackageInstaller.java | 507 return getInstallablePackagesForUserType(mUm.getUserInfo(userId).userType); in getInstallablePackagesForUserId() 517 @Nullable Set<String> getInstallablePackagesForUserType(String userType) { in getInstallablePackagesForUserType() argument 523 || (isImplicitWhitelistSystemMode(mode) && mUm.isUserTypeSubtypeOfSystem(userType)); in getInstallablePackagesForUserType() 524 final Set<String> whitelistedPackages = getWhitelistedPackagesForUserType(userType); in getInstallablePackagesForUserType() 572 @NonNull Set<String> getWhitelistedPackagesForUserType(String userType) { in getWhitelistedPackagesForUserType() argument 573 final long userTypeMask = getUserTypeMask(userType); in getWhitelistedPackagesForUserType() 657 long getUserTypeMask(String userType) { in getUserTypeMask() argument 658 final int userTypeIndex = Arrays.binarySearch(mUserTypes, userType); in getUserTypeMask()
|
H A D | UserTypeFactory.java | 632 private static void validateUserTypeIsProfile(String userType, in validateUserTypeIsProfile() argument 634 UserTypeDetails.Builder builder = builders.get(userType); in validateUserTypeIsProfile() 636 throw new IllegalArgumentException("Illegal upgrade of user type " + userType in validateUserTypeIsProfile()
|
H A D | UserManagerInternal.java | 279 @Nullable String name, @NonNull String userType, @UserInfo.UserInfoFlag int flags, in createUserEvenWhenDisallowed() argument
|
H A D | PackageManagerShellCommand.java | 2924 String userType = null; in runCreateUser() local 2954 if (userType != null && !userType.equals(newUserType)) { in runCreateUser() 2956 + userType + " and " + newUserType + ")"); in runCreateUser() 2959 userType = newUserType; in runCreateUser() 2977 if (userType == null) { in runCreateUser() 2978 userType = UserInfo.getDefaultUserType(flags); in runCreateUser() 2982 if (UserManager.isUserTypeRestricted(userType)) { in runCreateUser() 2990 um.preCreateUserWithThrow(userType) : in runCreateUser() 2991 um.createUserWithThrow(name, userType, flags); in runCreateUser() 2993 info = um.createProfileForUserWithThrow(name, userType, flags, userId, null); in runCreateUser()
|
H A D | UserManagerServiceShellCommand.java | 233 user.userType.replace("android.os.usertype.", ""), in runList()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerTest.java | 246 final String userType = UserManager.USER_TYPE_FULL_SECONDARY; in testAddTooManyUsers() local 257 if (userType.equals(user.userType)) { in testAddTooManyUsers() 279 assertThat(mUserManager.canAddMoreUsers(userType)).isTrue(); in testAddTooManyUsers() 288 .that(mUserManager.canAddMoreUsers(userType)).isFalse(); in testAddTooManyUsers() 293 assertThat(createUser("User beyond", userType, 0)).isNull(); in testAddTooManyUsers() 622 private void createUserWithTypeAndCheckFlags(String userType, in createUserWithTypeAndCheckFlags() argument 624 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags() 625 assertWithMessage("Wrong user type").that(userInfo.userType).isEqualTo(userType); in createUserWithTypeAndCheckFlags() 1616 return createProfileForUser(name, userType, userHandle, null); in createProfileForUser() 1622 name, userType, 0, userHandle, disallowedPackages); in createProfileForUser() [all …]
|
H A D | UserJourneyLoggerTest.java | 536 int targetUserId, int userType, int userFlags, int errorCode, int times) { in captureAndAssert() argument 551 assertThat(mUserType.getValue()).isEqualTo(userType); in captureAndAssert() 559 int targetUserId, int userType, int userFlags, int errorCode) { in captureLogAndAssert() argument 561 targetUserId, userType, userFlags, errorCode); in captureLogAndAssert() 564 targetUserId, userType, userFlags, errorCode, 1); in captureLogAndAssert()
|
H A D | UserManagerServiceUserInfoTest.java | 342 private UserInfo createUser(@UserIdInt int userId, @UserInfoFlag int flags, String userType) { in createUser() argument 343 return new UserInfo(userId, "A Name", "A path", flags, userType); in createUser() 367 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals()
|
H A D | UserSystemPackageInstallerTest.java | 166 final String userType = userTypes.keyAt(i); in testDetermineWhitelistedPackagesForUserTypes() local 169 expectedUserTypeBitSet1 |= mUserSystemPackageInstaller.getUserTypeMask(userType); in testDetermineWhitelistedPackagesForUserTypes() 180 final String userType = userTypes.keyAt(i); in testDetermineWhitelistedPackagesForUserTypes() local 183 expectedUserTypeBitSet3 |= mUserSystemPackageInstaller.getUserTypeMask(userType); in testDetermineWhitelistedPackagesForUserTypes()
|
/aosp14/frameworks/base/telecomm/java/android/telecom/ |
H A D | CallerInfo.java | 132 public long userType; field in CallerInfo 195 userType = USER_TYPE_CURRENT; in CallerInfo() 217 info.userType = USER_TYPE_CURRENT; in getCallerInfo() 271 info.userType = USER_TYPE_WORK; in getCallerInfo() 772 .append("\nuserType " + userType) in toString()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardSecurityContainerController.java | 1107 int userType = USER_TYPE_PRIMARY; in reportFailedUnlockAttempt() local 1111 userType = USER_TYPE_SECONDARY_USER; in reportFailedUnlockAttempt() 1114 userType = USER_TYPE_WORK_PROFILE; in reportFailedUnlockAttempt() 1117 mView.showAlmostAtWipeDialog(failedAttempts, remainingBeforeWipe, userType); in reportFailedUnlockAttempt() 1121 mView.showWipeDialog(failedAttempts, userType); in reportFailedUnlockAttempt()
|
H A D | KeyguardSecurityContainer.java | 750 void showAlmostAtWipeDialog(int attempts, int remaining, int userType) { in showAlmostAtWipeDialog() argument 752 switch (userType) { in showAlmostAtWipeDialog() 773 void showWipeDialog(int attempts, int userType) { in showWipeDialog() argument 775 switch (userType) { in showWipeDialog()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceTest.java | 492 systemUser.info.userType = UserManager.USER_TYPE_SYSTEM_HEADLESS; in setSystemUserHeadless() 495 systemUser.info.userType = UserManager.USER_TYPE_FULL_SYSTEM; in setSystemUserHeadless()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | SystemConfig.java | 1639 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1640 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1649 userTypesYes.add(userType); in readInstallInUserType() 1651 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1652 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1661 userTypesNo.add(userType); in readInstallInUserType()
|
H A D | SystemService.java | 158 mUserType = userInfo.userType; in TargetUser()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | UserControllerTest.java | 1064 @Nullable String userType) { in setUpUser() argument 1065 if (userType == null) { in setUpUser() 1066 userType = UserInfo.getDefaultUserType(flags); in setUpUser() 1069 userType); in setUpUser()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BroadcastQueueImpl.java | 1558 … int userType = FrameworkStatsLog.USER_LIFECYCLE_JOURNEY_REPORTED__USER_TYPE__TYPE_UNKNOWN; in logBootCompletedBroadcastCompletionLatencyIfPossible() local 1566 userType = UserJourneyLogger.getUserTypeForStatsd(userInfo.userType); in logBootCompletedBroadcastCompletionLatencyIfPossible() 1577 + " userType:" + (userInfo != null? userInfo.userType : null)); in logBootCompletedBroadcastCompletionLatencyIfPossible() 1586 userType); in logBootCompletedBroadcastCompletionLatencyIfPossible()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
H A D | GameServiceProviderSelectorImplTest.java | 402 userInfo.userType = UserManager.USER_TYPE_PROFILE_MANAGED; in managedUserInfo()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationLockscreenUserManagerImpl.java | 519 if (UserManager.USER_TYPE_PROFILE_MANAGED.equals(user.userType)) { in updateCurrentProfilesCache()
|