Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DMessagingGroup.java449 int layoutColor) { in getAvatarSymbolIfMatching() argument
451 && layoutColor == mLayoutColor) { in getAvatarSymbolIfMatching()
458 int layoutColor) { in setCreatedAvatar() argument
460 || layoutColor != mLayoutColor) { in setCreatedAvatar()
463 setLayoutColor(layoutColor); in setCreatedAvatar()
475 public void setLayoutColor(int layoutColor) { in setLayoutColor() argument
476 if (layoutColor != mLayoutColor){ in setLayoutColor()
477 mLayoutColor = layoutColor; in setLayoutColor()
DMessagingLayout.java339 public Icon createAvatarSymbol(CharSequence senderName, String symbol, int layoutColor) { in createAvatarSymbol() argument
344 avatarIcon.setTint(findColor(senderName, layoutColor)); in createAvatarSymbol()
350 int color = findColor(senderName, layoutColor); in createAvatarSymbol()
362 private int findColor(CharSequence senderName, int layoutColor) { in findColor() argument
363 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
369 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()
DConversationLayout.java909 private Icon createAvatarSymbol(CharSequence senderName, String symbol, int layoutColor) { in createAvatarSymbol() argument
914 avatarIcon.setTint(findColor(senderName, layoutColor)); in createAvatarSymbol()
920 int color = findColor(senderName, layoutColor); in createAvatarSymbol()
932 private int findColor(CharSequence senderName, int layoutColor) { in findColor() argument
933 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
939 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()