Home
last modified time | relevance | path

Searched refs:sColors (Results 1 – 3 of 3) 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
87 if (sColors == null) { in LetterTileDrawable()
95 sColors = new int[]{sDefaultColor}; in LetterTileDrawable()
98 sColors = new int[ta.length()]; in LetterTileDrawable()
100 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
201 final int color = Math.abs(identifier.hashCode()) % sColors.length; in pickColor()
202 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()