Home
last modified time | relevance | path

Searched refs:layoutColor (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DCompactMessagingLayout.java143 final int layoutColor = mLayoutColor; in setGroupFacePileAsync() local
158 final Icon icon = getSenderIcon(sender, nameToPrefixMap, layoutColor); in setGroupFacePileAsync()
170 lastIcon = getSenderIcon(null, null, layoutColor); in setGroupFacePileAsync()
174 secondLastIcon = getSenderIcon(null, null, layoutColor); in setGroupFacePileAsync()
202 int layoutColor) { in getSenderIcon() argument
205 layoutColor); in getSenderIcon()
215 return mPeopleHelper.createAvatarSymbol(senderName, symbol, layoutColor); in getSenderIcon()
218 return mPeopleHelper.createAvatarSymbol(/* name = */ "", /* symbol = */ "", layoutColor); in getSenderIcon()
DPeopleHelper.java112 @ColorInt int layoutColor) { in createAvatarSymbol() argument
116 avatarIcon.setTint(findColor(name, layoutColor)); in createAvatarSymbol()
122 int color = findColor(name, layoutColor); in createAvatarSymbol()
134 private int findColor(@NonNull CharSequence senderName, int layoutColor) { in findColor() argument
135 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
141 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
DMessagingGroup.java464 int layoutColor) { in getAvatarSymbolIfMatching() argument
466 && layoutColor == mLayoutColor) { in getAvatarSymbolIfMatching()
473 int layoutColor) { in setCreatedAvatar() argument
475 || layoutColor != mLayoutColor) { in setCreatedAvatar()
478 setLayoutColor(layoutColor); in setCreatedAvatar()
490 public void setLayoutColor(int layoutColor) { in setLayoutColor() argument
491 if (layoutColor != mLayoutColor){ in setLayoutColor()
492 mLayoutColor = layoutColor; in setLayoutColor()
DMessagingLayout.java397 public Icon createAvatarSymbol(CharSequence senderName, String symbol, int layoutColor) { in createAvatarSymbol() argument
398 return mPeopleHelper.createAvatarSymbol(senderName, symbol, layoutColor); in createAvatarSymbol()
401 private int findColor(CharSequence senderName, int layoutColor) { in findColor() argument
402 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
408 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
DConversationLayout.java1193 List<List<MessagingMessage>> groups, int layoutColor) { in loadConversationHeaderData() argument
1209 layoutColor); in loadConversationHeaderData()
1265 layoutColor); in loadConversationHeaderData()
1276 layoutColor); in loadConversationHeaderData()
1285 "", "", layoutColor); in loadConversationHeaderData()
1290 "", "", layoutColor); in loadConversationHeaderData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DSingleLineViewInflater.kt375 val layoutColor = getSmallIconColor(/* isHeader = */ false) in getDefaultAvatar() constant
381 /* layoutColor = */ layoutColor in getDefaultAvatar()
386 return peopleHelper.createAvatarSymbol(/* name = */ "", /* symbol = */ "", layoutColor) in getDefaultAvatar()