Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/pm/
DUserInfo.java246 public String userType; field in UserInfo
315 public UserInfo(int id, String name, String iconPath, int flags, String userType) { in UserInfo() argument
319 this.userType = userType; in UserInfo()
376 return UserManager.isUserTypeGuest(userType); in isGuest()
381 return UserManager.isUserTypeRestricted(userType); in isRestricted()
390 return UserManager.isUserTypeManagedProfile(userType); in isManagedProfile()
394 return UserManager.isUserTypeCloneProfile(userType); in isCloneProfile()
399 return UserManager.isUserTypeCommunalProfile(userType); in isCommunalProfile()
404 return UserManager.isUserTypePrivateProfile(userType); in isPrivateProfile()
432 return UserManager.isUserTypeDemo(userType) || (flags & FLAG_DEMO) != 0; in isDemo()
[all …]
DLauncherUserInfo.java103 public Builder(@NonNull String userType, int userSerialNumber) { in Builder() argument
104 this.mUserType = userType; in Builder()
117 private LauncherUserInfo(@NonNull String userType, int userSerialNumber) { in LauncherUserInfo() argument
118 this.mUserType = userType; in LauncherUserInfo()
/frameworks/base/core/java/android/os/
DIUserManager.aidl46 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
68 boolean isUserTypeEnabled(in String userType); in isUserTypeEnabled() argument
69 boolean canAddMoreUsersOfType(in String userType); in canAddMoreUsersOfType() argument
70 int getRemainingCreatableUserCount(in String userType); in getRemainingCreatableUserCount() argument
71 int getRemainingCreatableProfileCount(in String userType, int userId); in getRemainingCreatableProfileCount() argument
72 boolean canAddMoreProfilesToUser(in String userType, int userId, boolean allowedToRemoveOne); in canAddMoreProfilesToUser() argument
77 boolean isUserOfType(int userId, in String userType); in isUserOfType() argument
[all …]
DUserManager.java2761 return userInfo == null ? "" : userInfo.userType; in getUserType()
3048 public boolean isUserOfType(@NonNull String userType) { in isUserOfType() argument
3050 return mService.isUserOfType(mUserId, userType); in isUserOfType()
3062 public static boolean isUserTypeManagedProfile(@Nullable String userType) { in isUserTypeManagedProfile() argument
3063 return USER_TYPE_PROFILE_MANAGED.equals(userType); in isUserTypeManagedProfile()
3071 public static boolean isUserTypeGuest(@Nullable String userType) { in isUserTypeGuest() argument
3072 return USER_TYPE_FULL_GUEST.equals(userType); in isUserTypeGuest()
3081 public static boolean isUserTypeRestricted(@Nullable String userType) { in isUserTypeRestricted() argument
3082 return USER_TYPE_FULL_RESTRICTED.equals(userType); in isUserTypeRestricted()
3090 public static boolean isUserTypeDemo(@Nullable String userType) { in isUserTypeDemo() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DShellRecentTaskListProviderTest.kt208 createSingleTask(taskId = 1, userId = 10, userType = STANDARD), in loadRecentTasks_assignsCorrectUserType()
209 createSingleTask(taskId = 2, userId = 20, userType = WORK), in loadRecentTasks_assignsCorrectUserType()
210 createSingleTask(taskId = 3, userId = 30, userType = CLONED), in loadRecentTasks_assignsCorrectUserType()
211 createSingleTask(taskId = 4, userId = 40, userType = PRIVATE), in loadRecentTasks_assignsCorrectUserType()
216 assertThat(result.map { it.userType }) in loadRecentTasks_assignsCorrectUserType()
231 userType: RecentTask.UserType = STANDARD in createRecentTask()
241 userType = userType, in createRecentTask()
249 userType: RecentTask.UserType = STANDARD, in createRecentTask()
253 whenever(isCloneProfile).thenReturn(userType == CLONED) in createRecentTask()
254 whenever(isManagedProfile).thenReturn(userType == WORK) in createRecentTask()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/
DBadgedAppIconLoader.kt43 userType: RecentTask.UserType, in <lambda>()
51 val iconType = getIconType(userType) in <lambda>()
61 private fun getIconType(userType: RecentTask.UserType): Int = in <lambda>()
62 when (userType) { in <lambda>()
DRecentTask.kt33 val userType: UserType, constant in com.android.systemui.mediaprojection.appselector.data.RecentTask
39 userType: UserType,
49 userType,
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DCredentialInteractor.kt186 userType: UserType, in Context()
190 remaining == 1 -> getLastAttemptBeforeWipeMessage(request, devicePolicyManager, userType) in Context()
191 remaining <= 0 -> getNowWipingMessage(devicePolicyManager, userType) in Context()
198 userType: UserType, in Context()
200 when (userType) { in Context()
268 userType: UserType, in Context()
271 when (userType) { in Context()
279 when (userType) { in Context()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/data/repository/
DProfileTypeRepositoryImpl.kt45 val userType = userManager.getUserInfo(userId).userType in getProfileType() constant
46 when (userType) { in getProfileType()
/frameworks/base/services/core/java/com/android/server/pm/
DUserJourneyLogger.java228 public static int getUserTypeForStatsd(@NonNull String userType) { in getUserTypeForStatsd() argument
229 switch (userType) { in getUserTypeForStatsd()
279 int userType, int userFlags, @UserJourneyErrorCode int errorCode) { in logUserLifecycleJourneyReported() argument
282 userType, userFlags, ERROR_CODE_INVALID_SESSION_ID, -1); in logUserLifecycleJourneyReported()
286 session.mSessionId, journey, originalUserId, targetUserId, userType, userFlags, in logUserLifecycleJourneyReported()
296 int targetUserId, int userType, int userFlags, int errorCode, long elapsedTime) { in writeUserLifecycleJourneyReported() argument
298 sessionId, journey, originalUserId, targetUserId, userType, userFlags, in writeUserLifecycleJourneyReported()
451 getUserTypeForStatsd(targetUser.userType), in logUserJourneyFinishWithError()
474 getUserTypeForStatsd(targetUser.userType), in logDelayedUserJourneyFinishWithError()
533 getUserTypeForStatsd(targetUser.userType), in logUserCreateJourneyFinish()
DUserManagerService.java1470 public int[] getProfileIds(@UserIdInt int userId, @Nullable String userType, in getProfileIds() argument
1478 return getProfileIdsLU(userId, userType, enabledOnly, excludeHidden).toArray(); in getProfileIds()
1487 private List<UserInfo> getProfilesLU(@UserIdInt int userId, @Nullable String userType, in getProfilesLU() argument
1489 IntArray profileIds = getProfileIdsLU(userId, userType, enabledOnly, /* excludeHidden */ in getProfilesLU()
1514 private IntArray getProfileIdsLU(@UserIdInt int userId, @Nullable String userType, in getProfileIdsLU() argument
1537 if (userType != null && !userType.equals(profile.userType)) { in getProfileIdsLU()
1962 .setInt(UserJourneyLogger.getUserTypeForStatsd(userData.info.userType)) in logQuietModeEnabled()
2152 public boolean isUserOfType(@UserIdInt int userId, String userType) { in isUserOfType() argument
2154 return userType != null && userType.equals(getUserTypeNoChecks(userId)); in isUserOfType()
2164 return userInfo != null ? userInfo.userType : null; in getUserTypeNoChecks()
[all …]
DUserSystemPackageInstaller.java507 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()
DUserManagerInternal.java280 @Nullable String name, @NonNull String userType, @UserInfo.UserInfoFlag int flags, in createUserEvenWhenDisallowed() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserActionsUtil.kt101 userType: String in canAddMoreUsers()
107 return currentUserCanCreateUsers(manager, repository) && manager.canAddMoreUsers(userType) in canAddMoreUsers()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java417 final String userType = UserManager.USER_TYPE_FULL_SECONDARY; in testAddTooManyUsers() local
418 final UserTypeDetails userTypeDetails = UserTypeFactory.getUserTypes().get(userType); in testAddTooManyUsers()
428 if (userType.equals(user.userType)) { in testAddTooManyUsers()
450 assertThat(mUserManager.canAddMoreUsers(userType)).isTrue(); in testAddTooManyUsers()
452 final UserInfo user = createUser("User " + usersAdded, userType, 0); in testAddTooManyUsers()
459 .that(mUserManager.canAddMoreUsers(userType)).isFalse(); in testAddTooManyUsers()
464 assertThat(createUser("User beyond", userType, 0)).isNull(); in testAddTooManyUsers()
793 private void createUserWithTypeAndCheckFlags(String userType, in createUserWithTypeAndCheckFlags() argument
795 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags()
796 assertWithMessage("Wrong user type").that(userInfo.userType).isEqualTo(userType); in createUserWithTypeAndCheckFlags()
[all …]
DUserJourneyLoggerTest.java632 int targetUserId, int userType, int userFlags, int errorCode, int times) { in captureAndAssert() argument
647 assertThat(mUserType.getValue()).isEqualTo(userType); in captureAndAssert()
655 int targetUserId, int userType, int userFlags, int errorCode) { in captureLogAndAssert() argument
657 targetUserId, userType, userFlags, errorCode); in captureLogAndAssert()
660 targetUserId, userType, userFlags, errorCode, 1); in captureLogAndAssert()
DUserManagerServiceUserInfoTest.java357 private UserInfo createUser(@UserIdInt int userId, @UserInfoFlag int flags, String userType) { in createUser() argument
358 return new UserInfo(userId, "A Name", "A path", flags, userType); in createUser()
382 assertEquals("UserType not preserved", one.userType, two.userType); in assertUserInfoEquals()
DUserSystemPackageInstallerTest.java166 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/
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/opt/car/services/builtInServices/src/com/android/internal/car/
DCarServiceHelperInterface.java42 UserHandle createUserEvenWhenDisallowed(@Nullable String name, @NonNull String userType, in createUserEvenWhenDisallowed() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionRecentsViewControllerTest.kt67 userType = RecentTask.UserType.STANDARD, in <lambda>()
80 userType = RecentTask.UserType.STANDARD, in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java681 int userType = UserIconInfo.TYPE_MAIN; in getBadgedIcon() local
687 userType = UserIconInfo.TYPE_CLONED; in getBadgedIcon()
689 userType = UserIconInfo.TYPE_WORK; in getBadgedIcon()
691 userType = UserIconInfo.TYPE_PRIVATE; in getBadgedIcon()
700 icon, new IconOptions().setUser(new UserIconInfo(user, userType))) in getBadgedIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DRecentTaskViewHolder.kt66 val icon = iconLoader.loadIcon(task.userId, task.userType, component) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityContainerController.java1144 int userType = USER_TYPE_PRIMARY; in showMessageForFailedUnlockAttempt() local
1154 userType = USER_TYPE_SECONDARY_USER; in showMessageForFailedUnlockAttempt()
1157 userType = USER_TYPE_WORK_PROFILE; in showMessageForFailedUnlockAttempt()
1161 userType); in showMessageForFailedUnlockAttempt()
1166 mView.showWipeDialog(failedAttempts, userType); in showMessageForFailedUnlockAttempt()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DCarServiceHelperServiceUpdatableImpl.java370 public UserHandle createUserEvenWhenDisallowed(String name, String userType, int flags) { in createUserEvenWhenDisallowed() argument
371 return mCarServiceHelperInterface.createUserEvenWhenDisallowed(name, userType, flags); in createUserEvenWhenDisallowed()

12