Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/
DMessagingGroup.java342 int layoutColor) { in getAvatarSymbolIfMatching() argument
344 && layoutColor == mLayoutColor) { in getAvatarSymbolIfMatching()
351 int layoutColor) { in setCreatedAvatar() argument
353 || layoutColor != mLayoutColor) { in setCreatedAvatar()
356 setLayoutColor(layoutColor); in setCreatedAvatar()
368 public void setLayoutColor(int layoutColor) { in setLayoutColor() argument
369 if (layoutColor != mLayoutColor){ in setLayoutColor()
370 mLayoutColor = layoutColor; in setLayoutColor()
DMessagingLayout.java310 public Icon createAvatarSymbol(CharSequence senderName, String symbol, int layoutColor) { in createAvatarSymbol() argument
315 avatarIcon.setTint(findColor(senderName, layoutColor)); in createAvatarSymbol()
321 int color = findColor(senderName, layoutColor); in createAvatarSymbol()
333 private int findColor(CharSequence senderName, int layoutColor) { in findColor() argument
334 double luminance = ContrastColorUtil.calculateLuminance(layoutColor); in findColor()
340 return ContrastColorUtil.getShiftedColor(layoutColor, in findColor()