Searched refs:userTypeDetails (Results 1 – 2 of 2) sorted by relevance
1323 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfFull() local1324 return userTypeDetails != null && userTypeDetails.isFull(); in isUserTypeSubtypeOfFull()1329 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfProfile() local1330 return userTypeDetails != null && userTypeDetails.isProfile(); in isUserTypeSubtypeOfProfile()1335 UserTypeDetails userTypeDetails = mUserTypes.get(userType); in isUserTypeSubtypeOfSystem() local1336 return userTypeDetails != null && userTypeDetails.isSystem(); in isUserTypeSubtypeOfSystem()1342 final UserTypeDetails userTypeDetails = getUserTypeDetailsNoChecks(userId); in hasBadge() local1343 return userTypeDetails != null && userTypeDetails.hasBadge(); in hasBadge()1351 final UserTypeDetails userTypeDetails = getUserTypeDetails(userInfo); in getUserBadgeLabelResId() local1352 if (userInfo == null || userTypeDetails == null || !userTypeDetails.hasBadge()) { in getUserBadgeLabelResId()[all …]
327 final UserTypeDetails userTypeDetails = in testProfileTypeInformation() local330 .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 …]