Home
last modified time | relevance | path

Searched refs:numColors (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v7/palette/src/android/support/v7/graphics/
DPalette.java127 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument
129 checkNumberColorsParam(numColors); in generate()
135 ColorCutQuantizer quantizer = ColorCutQuantizer.fromBitmap(scaledBitmap, numColors); in generate()
170 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument
172 checkNumberColorsParam(numColors); in generateAsync()
179 return generate(params[0], numColors); in generateAsync()
516 private static void checkNumberColorsParam(int numColors) {
517 if (numColors < 1) {
/frameworks/base/libs/hwui/
DPatch.cpp63 const int8_t numColors = patch->numColors; in createMesh() local
64 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in createMesh()
65 for (int8_t i = 0; i < numColors; i++) { in createMesh()
/frameworks/base/tools/aapt/
DImages.cpp586 int8_t numColors; in do_9patch() local
739 numColors = numRows * numCols; in do_9patch()
740 image->info9Patch.numColors = numColors; in do_9patch()
741 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); in do_9patch()
791 assert(colorIndex == numColors); in do_9patch()
793 for (i=0; i<numColors; i++) { in do_9patch()
797 if (i == numColors - 1) printf("\n"); in do_9patch()
839 for (int i = 0; i < outPatch->numColors; i++) { in checkNinePatchSerialization()
/frameworks/base/include/androidfw/
DResourceTypes.h112 int8_t numColors; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp161 for (int i=0; i<numColors; i++) { in deviceToFile()
181 for (int i=0; i<numColors; i++) { in fileToDevice()
195 + numColors * sizeof(uint32_t); in serializedSize()
220 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()