/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 45 UserInfo createUserWithThrow(in String name, in String userType, int flags); in createUserWithThrow() argument 46 UserInfo preCreateUserWithThrow(in String userType); in preCreateUserWithThrow() argument 47 … UserInfo createProfileForUserWithThrow(in String name, in String userType, int flags, int userId, in createProfileForUserWithThrow() argument 50 String[] getPreInstallableSystemPackages(in String userType); in getPreInstallableSystemPackages() argument 63 boolean isUserTypeEnabled(in String userType); in isUserTypeEnabled() argument 64 boolean canAddMoreUsersOfType(in String userType); in canAddMoreUsersOfType() argument 65 int getRemainingCreatableUserCount(in String userType); in getRemainingCreatableUserCount() argument 66 int getRemainingCreatableProfileCount(in String userType, int userId); in getRemainingCreatableProfileCount() argument 67 boolean canAddMoreProfilesToUser(in String userType, int userId, boolean allowedToRemoveOne); in canAddMoreProfilesToUser() argument 71 boolean isUserOfType(int userId, in String userType); in isUserOfType() argument [all …]
|
D | UserManager.java | 2140 return userInfo == null ? "" : userInfo.userType; in getUserType() 2302 public boolean isUserOfType(@NonNull String userType) { in isUserOfType() argument 2304 return mService.isUserOfType(mUserId, userType); in isUserOfType() 2315 public static boolean isUserTypeManagedProfile(@Nullable String userType) { in isUserTypeManagedProfile() argument 2316 return USER_TYPE_PROFILE_MANAGED.equals(userType); in isUserTypeManagedProfile() 2323 public static boolean isUserTypeGuest(@Nullable String userType) { in isUserTypeGuest() argument 2324 return USER_TYPE_FULL_GUEST.equals(userType); in isUserTypeGuest() 2332 public static boolean isUserTypeRestricted(@Nullable String userType) { in isUserTypeRestricted() argument 2333 return USER_TYPE_FULL_RESTRICTED.equals(userType); in isUserTypeRestricted() 2340 public static boolean isUserTypeDemo(@Nullable String userType) { in isUserTypeDemo() argument [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 206 public String userType; field in UserInfo 269 public UserInfo(int id, String name, String iconPath, int flags, String userType) { in UserInfo() argument 273 this.userType = userType; in UserInfo() 325 return UserManager.isUserTypeGuest(userType); in isGuest() 330 return UserManager.isUserTypeRestricted(userType); in isRestricted() 339 return UserManager.isUserTypeManagedProfile(userType); in isManagedProfile() 343 return UserManager.isUserTypeCloneProfile(userType); in isCloneProfile() 364 return UserManager.isUserTypeDemo(userType) || (flags & FLAG_DEMO) != 0; in isDemo() 442 userType = orig.userType; in UserInfo() 474 + ", type=" + userType in toFullString() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 935 public int[] getProfileIds(@UserIdInt int userId, @Nullable String userType, in getProfileIds() argument 943 return getProfileIdsLU(userId, userType, enabledOnly).toArray(); in getProfileIds() 952 private List<UserInfo> getProfilesLU(@UserIdInt int userId, @Nullable String userType, in getProfilesLU() argument 954 IntArray profileIds = getProfileIdsLU(userId, userType, enabledOnly); in getProfilesLU() 978 private IntArray getProfileIdsLU(@UserIdInt int userId, @Nullable String userType, in getProfileIdsLU() argument 1001 if (userType != null && !userType.equals(profile.userType)) { in getProfileIdsLU() 1393 public boolean isUserOfType(@UserIdInt int userId, String userType) { in isUserOfType() argument 1395 return userType != null && userType.equals(getUserTypeNoChecks(userId)); in isUserOfType() 1405 return userInfo != null ? userInfo.userType : null; in getUserTypeNoChecks() 1422 final String typeStr = userInfo != null ? userInfo.userType : null; in getUserTypeDetails() [all …]
|
D | UserSystemPackageInstaller.java | 505 return getInstallablePackagesForUserType(mUm.getUserInfo(userId).userType); in getInstallablePackagesForUserId() 515 @Nullable Set<String> getInstallablePackagesForUserType(String userType) { in getInstallablePackagesForUserType() argument 521 || (isImplicitWhitelistSystemMode(mode) && mUm.isUserTypeSubtypeOfSystem(userType)); in getInstallablePackagesForUserType() 522 final Set<String> whitelistedPackages = getWhitelistedPackagesForUserType(userType); in getInstallablePackagesForUserType() 568 @NonNull Set<String> getWhitelistedPackagesForUserType(String userType) { in getWhitelistedPackagesForUserType() argument 569 final long userTypeMask = getUserTypeMask(userType); in getWhitelistedPackagesForUserType() 653 long getUserTypeMask(String userType) { in getUserTypeMask() argument 654 final int userTypeIndex = Arrays.binarySearch(mUserTypes, userType); in getUserTypeMask()
|
D | UserManagerInternal.java | 176 public abstract UserInfo createUserEvenWhenDisallowed(String name, String userType, in createUserEvenWhenDisallowed() argument
|
D | UserTypeFactory.java | 578 private static void validateUserTypeIsProfile(String userType, in validateUserTypeIsProfile() argument 580 UserTypeDetails.Builder builder = builders.get(userType); in validateUserTypeIsProfile() 582 throw new IllegalArgumentException("Illegal upgrade of user type " + userType in validateUserTypeIsProfile()
|
D | PackageManagerShellCommand.java | 2792 String userType = null; in runCreateUser() local 2820 if (userType != null && !userType.equals(newUserType)) { in runCreateUser() 2822 + userType + " and " + newUserType + ")"); in runCreateUser() 2825 userType = newUserType; in runCreateUser() 2843 if (userType == null) { in runCreateUser() 2844 userType = UserInfo.getDefaultUserType(flags); in runCreateUser() 2848 if (UserManager.isUserTypeRestricted(userType)) { in runCreateUser() 2856 um.preCreateUserWithThrow(userType) : in runCreateUser() 2857 um.createUserWithThrow(name, userType, flags); in runCreateUser() 2859 info = um.createProfileForUserWithThrow(name, userType, flags, userId, null); in runCreateUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthCredentialView.java | 431 @UserType int userType, @Utils.CredentialType int credentialType) { in getLastAttemptBeforeWipeMessage() 432 switch (userType) { in getLastAttemptBeforeWipeMessage() 440 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getLastAttemptBeforeWipeMessage() 515 private String getNowWipingMessage(@UserType int userType) { in getNowWipingMessage() argument 517 getNowWipingUpdatableStringId(userType), in getNowWipingMessage() 518 () -> getNowWipingDefaultMessage(userType)); in getNowWipingMessage() 521 private String getNowWipingUpdatableStringId(@UserType int userType) { in getNowWipingUpdatableStringId() argument 522 switch (userType) { in getNowWipingUpdatableStringId() 530 private String getNowWipingDefaultMessage(@UserType int userType) { in getNowWipingDefaultMessage() argument 532 switch (userType) { in getNowWipingDefaultMessage() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 221 final String userType = UserManager.USER_TYPE_FULL_SECONDARY; in testAddTooManyUsers() local 222 final UserTypeDetails userTypeDetails = UserTypeFactory.getUserTypes().get(userType); in testAddTooManyUsers() 232 if (userType.equals(user.userType)) { in testAddTooManyUsers() 254 assertThat(mUserManager.canAddMoreUsers(userType)).isTrue(); in testAddTooManyUsers() 256 final UserInfo user = createUser("User " + usersAdded, userType, 0); in testAddTooManyUsers() 263 .that(mUserManager.canAddMoreUsers(userType)).isFalse(); in testAddTooManyUsers() 268 assertThat(createUser("User beyond", userType, 0)).isNull(); in testAddTooManyUsers() 442 private void createUserWithTypeAndCheckFlags(String userType, in createUserWithTypeAndCheckFlags() argument 444 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags() 445 assertWithMessage("Wrong user type").that(userInfo.userType).isEqualTo(userType); in createUserWithTypeAndCheckFlags() [all …]
|
D | UserManagerServiceUserInfoTest.java | 246 private UserInfo createUser(@UserIdInt int userId, @UserInfoFlag int flags, String userType) { in createUser() argument 247 return new UserInfo(userId, "A Name", "A path", flags, userType); in createUser() 271 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals()
|
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()
|
/frameworks/base/telecomm/java/android/telecom/ |
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()
|
/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/ |
D | CarServiceHelperInterface.java | 46 UserHandle createUserEvenWhenDisallowed(@Nullable String name, @NonNull String userType, in createUserEvenWhenDisallowed() argument
|
D | CarServiceHelperService.java | 582 public UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument 585 UserHelperLite.safeName(name), userType, UserInfo.flagsToString(flags)); in createUserEvenWhenDisallowed() 589 UserInfo user = umi.createUserEvenWhenDisallowed(name, userType, flags, in createUserEvenWhenDisallowed()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainerController.java | 993 int userType = USER_TYPE_PRIMARY; in reportFailedUnlockAttempt() local 997 userType = USER_TYPE_SECONDARY_USER; in reportFailedUnlockAttempt() 1000 userType = USER_TYPE_WORK_PROFILE; in reportFailedUnlockAttempt() 1003 mView.showAlmostAtWipeDialog(failedAttempts, remainingBeforeWipe, userType); in reportFailedUnlockAttempt() 1007 mView.showWipeDialog(failedAttempts, userType); in reportFailedUnlockAttempt()
|
D | KeyguardSecurityContainer.java | 731 void showAlmostAtWipeDialog(int attempts, int remaining, int userType) { in showAlmostAtWipeDialog() argument 733 switch (userType) { in showAlmostAtWipeDialog() 754 void showWipeDialog(int attempts, int userType) { in showWipeDialog() argument 756 switch (userType) { in showWipeDialog()
|
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/ |
D | CarServiceHelperServiceUpdatableImpl.java | 308 public UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument 309 return mCarServiceHelperInterface.createUserEvenWhenDisallowed(name, userType, flags); in createUserEvenWhenDisallowed()
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 1653 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1654 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1663 userTypesYes.add(userType); in readInstallInUserType() 1665 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1666 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1675 userTypesNo.add(userType); in readInstallInUserType()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 862 @Nullable String userType) { in setUpUser() argument 863 if (userType == null) { in setUpUser() 864 userType = UserInfo.getDefaultUserType(flags); in setUpUser() 867 userType); in setUpUser()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameServiceProviderSelectorImplTest.java | 402 userInfo.userType = UserManager.USER_TYPE_PROFILE_MANAGED; in managedUserInfo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 1992 … int userType = FrameworkStatsLog.USER_LIFECYCLE_JOURNEY_REPORTED__USER_TYPE__TYPE_UNKNOWN; in logBootCompletedBroadcastCompletionLatencyIfPossible() local 1999 userType = UserManager.getUserTypeForStatsd(userInfo.userType); in logBootCompletedBroadcastCompletionLatencyIfPossible() 2010 + " userType:" + (userInfo != null? userInfo.userType : null)); in logBootCompletedBroadcastCompletionLatencyIfPossible() 2019 userType); in logBootCompletedBroadcastCompletionLatencyIfPossible()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 258 uh.userType = type; in addUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerImpl.java | 494 if (UserManager.USER_TYPE_PROFILE_MANAGED.equals(user.userType)) { in updateCurrentProfilesCache()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 1805 profile.userType = USER_TYPE_FULL_SECONDARY; in testUserProfiles_canProfileUseBoundServices_managedProfile() 1808 managed.userType = USER_TYPE_PROFILE_MANAGED; in testUserProfiles_canProfileUseBoundServices_managedProfile() 1811 clone.userType = USER_TYPE_PROFILE_CLONE; in testUserProfiles_canProfileUseBoundServices_managedProfile()
|