Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPatch.cpp45 const int8_t numColors = patch->numColors; in Patch() local
46 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in Patch()
47 for (int8_t i = 0; i < numColors; i++) { in Patch()
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
DPalette.java118 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument
119 return from(bitmap).maximumColorCount(numColors).generate(); in generate()
136 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument
137 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
/frameworks/base/tools/aapt/
DImages.cpp556 int8_t numColors; in do_9patch() local
713 numColors = numRows * numCols; in do_9patch()
714 image->info9Patch.numColors = numColors; in do_9patch()
715 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); in do_9patch()
768 assert(colorIndex == numColors); in do_9patch()
770 for (i=0; i<numColors; i++) { in do_9patch()
774 if (i == numColors - 1) printf("\n"); in do_9patch()
816 for (int i = 0; i < outPatch->numColors; i++) { in checkNinePatchSerialization()
/frameworks/base/tools/aapt2/
DPng.cpp956 int8_t numColors; in do9Patch() local
1115 numColors = numRows * numCols; in do9Patch()
1116 image->info9Patch.numColors = numColors; in do9Patch()
1117 image->colors.resize(numColors); in do9Patch()
1167 assert(colorIndex == numColors); in do9Patch()
1170 for (i = 0; i < numColors; i++) { in do9Patch()
1173 if (i == numColors - 1) printf("\n"); in do9Patch()
/frameworks/base/include/androidfw/
DResourceTypes.h123 uint8_t numColors; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp164 for (int i=0; i<numColors; i++) { in deviceToFile()
184 for (int i=0; i<numColors; i++) { in fileToDevice()
198 + numColors * sizeof(uint32_t); in serializedSize()
223 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()