Home
last modified time | relevance | path

Searched refs:userType (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DUserInfo.java188 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/
DIUserManager.aidl44 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
DUserManager.java1886 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/
DUserManagerService.java891 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 …]
DUserSystemPackageInstaller.java484 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()
DUserManagerInternal.java191 public abstract UserInfo createUserEvenWhenDisallowed(String name, String userType, in createUserEvenWhenDisallowed() argument
DUserTypeFactory.java574 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()
DPackageManagerShellCommand.java2567 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/
DUserManagerTest.java377 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 …]
DUserManagerServiceUserInfoTest.java244 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()
DUserSystemPackageInstallerTest.java164 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/
DAuthCredentialView.java408 @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/
DCallerInfo.java132 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/
DKeyguardSecurityContainerController.java471 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()
DKeyguardSecurityContainer.java675 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/
DUserControllerTest.java660 @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/
DSystemConfig.java1429 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/
DCarServiceHelperService.java661 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/
DNotificationLockscreenUserManagerImpl.java533 if (UserManager.USER_TYPE_PROFILE_MANAGED.equals(user.userType)) { in updateCurrentProfilesCache()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java234 uh.userType = type; in addUser()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java94 MANAGED_PROFILE_INFO.userType = UserManager.USER_TYPE_PROFILE_MANAGED;
/frameworks/base/core/api/
Dtest-lint-baseline.txt921 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…
Dtest-current.txt912 field public String userType;
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java2780 target.id, UserManager.getUserTypeForStatsd(target.userType), target.flags);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java10533 String userType = demo ? UserManager.USER_TYPE_FULL_DEMO
10547 userType, userInfoFlags, disallowedPackages, token);

12