Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DColorPicker.java40 private static TypedArray sColors; field in ColorPicker.PaletteColorPicker
54 if (sColors == null) { in PaletteColorPicker()
55 sColors = res.obtainTypedArray(R.array.letter_tile_colors); in PaletteColorPicker()
56 sColorCount = sColors.length(); in PaletteColorPicker()
64 return sColors.getColor(color, sDefaultColor); in pickColor()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java38 private static int[] sColors; field in LetterTileDrawable
74 if (sColors == null) { in LetterTileDrawable()
82 sColors = new int[] { sDefaultColor }; in LetterTileDrawable()
85 sColors = new int[ta.length()]; in LetterTileDrawable()
87 sColors[i] = ta.getColor(i, sDefaultColor); in LetterTileDrawable()
188 final int color = Math.abs(identifier.hashCode()) % sColors.length; in pickColor()
189 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()