Home
last modified time | relevance | path

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

/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()
1100 int numColors = numOpaqueColors + numAlphaColors; in analyze_image() local
1101 *paletteEntries = numColors; in analyze_image()
[all …]
/frameworks/base/tools/aapt2/compile/
DPng.cpp991 int8_t numColors; in do9Patch() local
1155 numColors = numRows * numCols; in do9Patch()
1156 image->info9Patch.numColors = numColors; in do9Patch()
1157 image->colors.resize(numColors); in do9Patch()
1207 assert(colorIndex == numColors); in do9Patch()
1210 for (i = 0; i < numColors; i++) { in do9Patch()
1213 if (i == numColors - 1) printf("\n"); in do9Patch()
DNinePatch.cpp612 data.numColors = static_cast<uint8_t>(region_colors.size()); in SerializeBase()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java128 public static Palette generate(Bitmap bitmap, int numColors) { in generate() argument
129 return from(bitmap).maximumColorCount(numColors).generate(); in generate()
146 final Bitmap bitmap, final int numColors, final Palette.PaletteAsyncListener listener) { in generateAsync() argument
147 return from(bitmap).maximumColorCount(numColors).generate(listener); in generateAsync()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.cpp234 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp107 if (iter.numRectsToDraw() == chunk->numColors) { in getTransparentRegion()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp664 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h128 uint8_t numColors; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp168 for (int i=0; i<numColors; i++) { in deviceToFile()
188 for (int i=0; i<numColors; i++) { in fileToDevice()
202 + numColors * sizeof(uint32_t); in serializedSize()
227 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()