/frameworks/base/core/java/android/content/pm/ |
D | UserInfo.java | 188 public String userType; field in UserInfo 251 public UserInfo(int id, String name, String iconPath, int flags, String userType) { in UserInfo() argument 255 this.userType = userType; in UserInfo() 307 return UserManager.isUserTypeGuest(userType); in isGuest() 312 return UserManager.isUserTypeRestricted(userType); in isRestricted() 321 return UserManager.isUserTypeManagedProfile(userType); in isManagedProfile() 325 return UserManager.isUserTypeCloneProfile(userType); in isCloneProfile() 346 return UserManager.isUserTypeDemo(userType); in isDemo() 424 userType = orig.userType; in UserInfo() 456 + ", type=" + userType in toFullString() [all …]
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 44 UserInfo createUserWithThrow(in String name, in String userType, int flags); in createUserWithThrow() argument 45 UserInfo preCreateUserWithThrow(in String userType); in preCreateUserWithThrow() argument 46 … UserInfo createProfileForUserWithThrow(in String name, in String userType, int flags, int userId, in createProfileForUserWithThrow() argument 49 String[] getPreInstallableSystemPackages(in String userType); in getPreInstallableSystemPackages() argument 62 boolean canAddMoreProfilesToUser(in String userType, int userId, boolean allowedToRemoveOne); in canAddMoreProfilesToUser() argument 66 boolean isUserOfType(int userId, in String userType); in isUserOfType() argument 107 …UserInfo createProfileForUserEvenWhenDisallowedWithThrow(in String name, in String userType, int f… in createProfileForUserEvenWhenDisallowedWithThrow() argument
|
D | UserManager.java | 1886 return userInfo == null ? "" : userInfo.userType; in getUserType() 2014 public boolean isUserOfType(@NonNull String userType) { in isUserOfType() argument 2016 return mService.isUserOfType(mUserId, userType); in isUserOfType() 2027 public static boolean isUserTypeManagedProfile(String userType) { in isUserTypeManagedProfile() argument 2028 return USER_TYPE_PROFILE_MANAGED.equals(userType); in isUserTypeManagedProfile() 2035 public static boolean isUserTypeGuest(String userType) { in isUserTypeGuest() argument 2036 return USER_TYPE_FULL_GUEST.equals(userType); in isUserTypeGuest() 2044 public static boolean isUserTypeRestricted(String userType) { in isUserTypeRestricted() argument 2045 return USER_TYPE_FULL_RESTRICTED.equals(userType); in isUserTypeRestricted() 2052 public static boolean isUserTypeDemo(String userType) { in isUserTypeDemo() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 891 public int[] getProfileIds(@UserIdInt int userId, @Nullable String userType, in getProfileIds() argument 899 return getProfileIdsLU(userId, userType, enabledOnly).toArray(); in getProfileIds() 908 private List<UserInfo> getProfilesLU(@UserIdInt int userId, @Nullable String userType, in getProfilesLU() argument 910 IntArray profileIds = getProfileIdsLU(userId, userType, enabledOnly); in getProfilesLU() 934 private IntArray getProfileIdsLU(@UserIdInt int userId, @Nullable String userType, in getProfileIdsLU() argument 957 if (userType != null && !userType.equals(profile.userType)) { in getProfileIdsLU() 1345 public boolean isUserOfType(@UserIdInt int userId, String userType) { in isUserOfType() argument 1347 return userType != null && userType.equals(getUserTypeNoChecks(userId)); in isUserOfType() 1357 return userInfo != null ? userInfo.userType : null; in getUserTypeNoChecks() 1374 final String typeStr = userInfo != null ? userInfo.userType : null; in getUserTypeDetails() [all …]
|
D | UserSystemPackageInstaller.java | 484 return getInstallablePackagesForUserType(mUm.getUserInfo(userId).userType); in getInstallablePackagesForUserId() 494 @Nullable Set<String> getInstallablePackagesForUserType(String userType) { in getInstallablePackagesForUserType() argument 500 || (isImplicitWhitelistSystemMode(mode) && mUm.isUserTypeSubtypeOfSystem(userType)); in getInstallablePackagesForUserType() 501 final Set<String> whitelistedPackages = getWhitelistedPackagesForUserType(userType); in getInstallablePackagesForUserType() 547 @NonNull Set<String> getWhitelistedPackagesForUserType(String userType) { in getWhitelistedPackagesForUserType() argument 548 final long userTypeMask = getUserTypeMask(userType); in getWhitelistedPackagesForUserType() 632 long getUserTypeMask(String userType) { in getUserTypeMask() argument 633 final int userTypeIndex = Arrays.binarySearch(mUserTypes, userType); in getUserTypeMask()
|
D | UserManagerInternal.java | 191 public abstract UserInfo createUserEvenWhenDisallowed(String name, String userType, in createUserEvenWhenDisallowed() argument
|
D | UserTypeFactory.java | 574 private static void validateUserTypeIsProfile(String userType, in validateUserTypeIsProfile() argument 576 UserTypeDetails.Builder builder = builders.get(userType); in validateUserTypeIsProfile() 578 throw new IllegalArgumentException("Illegal upgrade of user type " + userType in validateUserTypeIsProfile()
|
D | PackageManagerShellCommand.java | 2567 String userType = null; in runCreateUser() local 2594 if (userType != null && !userType.equals(newUserType)) { in runCreateUser() 2596 + userType + " and " + newUserType + ")"); in runCreateUser() 2599 userType = newUserType; in runCreateUser() 2617 if (userType == null) { in runCreateUser() 2618 userType = UserInfo.getDefaultUserType(flags); in runCreateUser() 2621 if (UserManager.isUserTypeRestricted(userType)) { in runCreateUser() 2629 um.preCreateUserWithThrow(userType) : in runCreateUser() 2630 um.createUserWithThrow(name, userType, flags); in runCreateUser() 2632 info = um.createProfileForUserWithThrow(name, userType, flags, userId, null); in runCreateUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 377 private void createUserWithTypeAndCheckFlags(String userType, in createUserWithTypeAndCheckFlags() argument 379 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags() 380 assertWithMessage("Wrong user type").that(userInfo.userType).isEqualTo(userType); in createUserWithTypeAndCheckFlags() 393 assertWithMessage("Wrong user type").that(userInfo.userType).isEqualTo(expectedUserType); in createUserWithFlagsAndCheckType() 512 assertThat(userInfo1.userType).isEqualTo(UserManager.USER_TYPE_PROFILE_MANAGED); in testAddManagedProfile() 1088 private UserInfo createUser(String name, String userType, int flags) { in createUser() argument 1089 UserInfo user = mUserManager.createUser(name, userType, flags); in createUser() 1096 private UserInfo createProfileForUser(String name, String userType, int userHandle) { in createProfileForUser() argument 1097 return createProfileForUser(name, userType, userHandle, null); in createProfileForUser() 1100 private UserInfo createProfileForUser(String name, String userType, int userHandle, in createProfileForUser() argument [all …]
|
D | UserManagerServiceUserInfoTest.java | 244 private UserInfo createUser(@UserIdInt int userId, @UserInfoFlag int flags, String userType) { in createUser() argument 245 return new UserInfo(userId, "A Name", "A path", flags, userType); in createUser() 269 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals()
|
D | UserSystemPackageInstallerTest.java | 164 final String userType = userTypes.keyAt(i); in testDetermineWhitelistedPackagesForUserTypes() local 167 expectedUserTypeBitSet1 |= mUserSystemPackageInstaller.getUserTypeMask(userType); in testDetermineWhitelistedPackagesForUserTypes() 178 final String userType = userTypes.keyAt(i); in testDetermineWhitelistedPackagesForUserTypes() local 181 expectedUserTypeBitSet3 |= mUserSystemPackageInstaller.getUserTypeMask(userType); in testDetermineWhitelistedPackagesForUserTypes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthCredentialView.java | 408 @UserType int userType, @Utils.CredentialType int credentialType) { in getLastAttemptBeforeWipeMessageRes() 409 switch (userType) { in getLastAttemptBeforeWipeMessageRes() 417 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getLastAttemptBeforeWipeMessageRes() 460 private static @StringRes int getNowWipingMessageRes(@UserType int userType) { in getNowWipingMessageRes() argument 461 switch (userType) { in getNowWipingMessageRes() 469 throw new IllegalArgumentException("Unrecognized user type:" + userType); in getNowWipingMessageRes()
|
/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/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainerController.java | 471 int userType = USER_TYPE_PRIMARY; in reportFailedUnlockAttempt() local 475 userType = USER_TYPE_SECONDARY_USER; in reportFailedUnlockAttempt() 478 userType = USER_TYPE_WORK_PROFILE; in reportFailedUnlockAttempt() 481 mView.showAlmostAtWipeDialog(failedAttempts, remainingBeforeWipe, userType); in reportFailedUnlockAttempt() 485 mView.showWipeDialog(failedAttempts, userType); in reportFailedUnlockAttempt()
|
D | KeyguardSecurityContainer.java | 675 void showAlmostAtWipeDialog(int attempts, int remaining, int userType) { in showAlmostAtWipeDialog() argument 677 switch (userType) { in showAlmostAtWipeDialog() 694 void showWipeDialog(int attempts, int userType) { in showWipeDialog() argument 696 switch (userType) { in showWipeDialog()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 660 @Nullable String userType) { in setUpUser() argument 661 if (userType == null) { in setUpUser() 662 userType = UserInfo.getDefaultUserType(flags); in setUpUser() 665 userType); in setUpUser()
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 1429 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1430 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1439 userTypesYes.add(userType); in readInstallInUserType() 1441 final String userType = parser.getAttributeValue(null, "user-type"); in readInstallInUserType() local 1442 if (TextUtils.isEmpty(userType)) { in readInstallInUserType() 1451 userTypesNo.add(userType); in readInstallInUserType()
|
/frameworks/opt/car/services/src/com/android/internal/car/ |
D | CarServiceHelperService.java | 661 public UserInfo createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument 664 UserHelperLite.safeName(name), userType, UserInfo.flagsToString(flags)); in createUserEvenWhenDisallowed() 668 UserInfo user = umi.createUserEvenWhenDisallowed(name, userType, flags, in createUserEvenWhenDisallowed()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerImpl.java | 533 if (UserManager.USER_TYPE_PROFILE_MANAGED.equals(user.userType)) { in updateCurrentProfilesCache()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 234 uh.userType = type; in addUser()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 94 MANAGED_PROFILE_INFO.userType = UserManager.USER_TYPE_PROFILE_MANAGED;
|
/frameworks/base/core/api/ |
D | test-lint-baseline.txt | 921 Missing nullability on parameter `userType` in method `UserInfo` 932 MissingNullability: android.content.pm.UserInfo#userType: 933 Missing nullability on field `userType` in class `class android.content.pm.UserInfo` 2422 MutableBareField: android.content.pm.UserInfo#userType: 2423 Bare field userType must be marked final, or moved behind accessors if mutable 2609 …ages in android.os.UserManager.createProfileForUser(String name, String userType, int flags, int u…
|
D | test-current.txt | 912 field public String userType;
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 2780 target.id, UserManager.getUserTypeForStatsd(target.userType), target.flags);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 10533 String userType = demo ? UserManager.USER_TYPE_FULL_DEMO 10547 userType, userInfoFlags, disallowedPackages, token);
|