Home
last modified time | relevance | path

Searched refs:sColors (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java39 private static int[] sColors; field in LetterTileDrawable
86 if (sColors == null) { in LetterTileDrawable()
94 sColors = new int[]{sDefaultColor}; in LetterTileDrawable()
97 sColors = new int[ta.length()]; in LetterTileDrawable()
99 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
196 final int color = Math.abs(identifier.hashCode()) % sColors.length; in pickColor()
197 return sColors[color]; in pickColor()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java44 @NonNull private static int[] sColors; field in LetterTileDrawable
91 if (sColors == null) { in LetterTileDrawable()
99 sColors = new int[] {sDefaultColor}; in LetterTileDrawable()
102 sColors = new int[ta.length()]; in LetterTileDrawable()
104 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
209 final int color = Math.abs(identifier.hashCode()) % sColors.length; in pickColor()
210 return sColors[color]; in pickColor()
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java48 private static TypedArray sColors; field in LetterTileDrawable
79 if (sColors == null) { in LetterTileDrawable()
80 sColors = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable()
192 final int color = Math.abs(identifier.hashCode()) % sColors.length(); in pickColor()
193 return sColors.getColor(color, sDefaultColor); in pickColor()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDebugHelper.java39 private static final int[][] sColors = new int[][] { field in DebugHelper
68 if (mColorIndex == sColors.length) { in getNextColors()
72 return sColors[mColorIndex++]; in getNextColors()