Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPatch.cpp43 const int8_t numColors = patch->numColors; in Patch() local
44 if (uint8_t(numColors) < sizeof(uint32_t) * 4) { in Patch()
45 for (int8_t i = 0; i < numColors; i++) { in Patch()
/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()
1099 int numColors = numOpaqueColors + numAlphaColors; in analyze_image() local
1100 *paletteEntries = numColors; in analyze_image()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
DPaletteDetailActivity.java123 private void loadImage(final int numColors) { in loadImage() argument
129 new Palette.Builder(bitmap).maximumColorCount(numColors).generate( in loadImage()
DPaletteActivity.java182 void setNumColors(int numColors) { in setNumColors() argument
183 mNumColors = numColors; in setNumColors()
/frameworks/base/tools/aapt2/compile/
DPng.cpp954 int8_t numColors; in do9Patch() local
1113 numColors = numRows * numCols; in do9Patch()
1114 image->info9Patch.numColors = numColors; in do9Patch()
1115 image->colors.resize(numColors); in do9Patch()
1165 assert(colorIndex == numColors); in do9Patch()
1168 for (i = 0; i < numColors; i++) { in do9Patch()
1171 if (i == numColors - 1) printf("\n"); in do9Patch()
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
DPalette.java124 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument
125 return from(bitmap).maximumColorCount(numColors).generate(); in generate()
142 final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) { in generateAsync() argument
143 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
/frameworks/base/include/androidfw/
DResourceTypes.h126 uint8_t numColors; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp166 for (int i=0; i<numColors; i++) { in deviceToFile()
186 for (int i=0; i<numColors; i++) { in fileToDevice()
200 + numColors * sizeof(uint32_t); in serializedSize()
225 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()