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.java1323 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfFull() local
1324 return userTypeDetails != null && userTypeDetails.isFull(); in isUserTypeSubtypeOfFull()
1329 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfProfile() local
1330 return userTypeDetails != null && userTypeDetails.isProfile(); in isUserTypeSubtypeOfProfile()
1335 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfSystem() local
1336 return userTypeDetails != null && userTypeDetails.isSystem(); in isUserTypeSubtypeOfSystem()
1342 final UserTypeDetails userTypeDetails = getUserTypeDetailsNoChecks(userId); in hasBadge() local
1343 return userTypeDetails != null && userTypeDetails.hasBadge(); in hasBadge()
1351 final UserTypeDetails userTypeDetails = getUserTypeDetails(userInfo); in getUserBadgeLabelResId() local
1352 if (userInfo == null || userTypeDetails == null || !userTypeDetails.hasBadge()) { in getUserBadgeLabelResId()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java327 final UserTypeDetails userTypeDetails = in testProfileTypeInformation() local
330 .that(userTypeDetails).isNotNull(); in testProfileTypeInformation()
331 assertThat(userTypeDetails.getName()).isEqualTo(UserManager.USER_TYPE_PROFILE_MANAGED); in testProfileTypeInformation()
339 assertThat(mUserManager.hasBadge(userId)).isEqualTo(userTypeDetails.hasBadge()); in testProfileTypeInformation()
341 .isEqualTo(userTypeDetails.getIconBadge()); in testProfileTypeInformation()
343 .isEqualTo(userTypeDetails.getBadgePlain()); in testProfileTypeInformation()
345 .isEqualTo(userTypeDetails.getBadgeNoBackground()); in testProfileTypeInformation()
349 Resources.getSystem().getColor(userTypeDetails.getBadgeColor(badgeIndex), null)); in testProfileTypeInformation()
351 Resources.getSystem().getColor(userTypeDetails.getDarkThemeBadgeColor(badgeIndex), in testProfileTypeInformation()
355 Resources.getSystem().getString(userTypeDetails.getBadgeLabel(badgeIndex), "Test")); in testProfileTypeInformation()
[all …]