Home
last modified time | relevance | path

Searched refs:userTypeDetails (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1406 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfFull() local
1407 return userTypeDetails != null && userTypeDetails.isFull(); in isUserTypeSubtypeOfFull()
1412 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfProfile() local
1413 return userTypeDetails != null && userTypeDetails.isProfile(); in isUserTypeSubtypeOfProfile()
1418 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfSystem() local
1419 return userTypeDetails != null && userTypeDetails.isSystem(); in isUserTypeSubtypeOfSystem()
1425 final UserTypeDetails userTypeDetails = getUserTypeDetailsNoChecks(userId); in hasBadge() local
1426 return userTypeDetails != null && userTypeDetails.hasBadge(); in hasBadge()
1434 final UserTypeDetails userTypeDetails = getUserTypeDetails(userInfo); in getUserBadgeLabelResId() local
1435 if (userInfo == null || userTypeDetails == null || !userTypeDetails.hasBadge()) { in getUserBadgeLabelResId()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java461 final UserTypeDetails userTypeDetails = in testProfileTypeInformation() local
464 .that(userTypeDetails).isNotNull(); in testProfileTypeInformation()
465 assertThat(userTypeDetails.getName()).isEqualTo(UserManager.USER_TYPE_PROFILE_MANAGED); in testProfileTypeInformation()
473 assertThat(mUserManager.hasBadge(userId)).isEqualTo(userTypeDetails.hasBadge()); in testProfileTypeInformation()
475 .isEqualTo(userTypeDetails.getIconBadge()); in testProfileTypeInformation()
477 .isEqualTo(userTypeDetails.getBadgePlain()); in testProfileTypeInformation()
479 .isEqualTo(userTypeDetails.getBadgeNoBackground()); in testProfileTypeInformation()
483 Resources.getSystem().getColor(userTypeDetails.getBadgeColor(badgeIndex), null)); in testProfileTypeInformation()
485 Resources.getSystem().getColor(userTypeDetails.getDarkThemeBadgeColor(badgeIndex), in testProfileTypeInformation()
489 Resources.getSystem().getString(userTypeDetails.getBadgeLabel(badgeIndex), "Test")); in testProfileTypeInformation()
[all …]