Home
last modified time | relevance | path

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

/frameworks/base/packages/EasterEgg/src/com/android/egg/widget/
DPaintChipsWidget.kt208 fun buildWidget(context: Context, numShades: Int, numColors: Int, clickable: ClickBehavior): in buildWidget()
216 grid.setInt(R.id.paint_grid, "setColumnCount", numColors) in buildWidget()
218 Log.v(TAG, "building widget: shade rows=$numShades, color columns=$numColors") in buildWidget()
222 COLORS_NEUTRAL1 -> if (numColors < 2) return@colorLoop in buildWidget()
223 COLORS_NEUTRAL2 -> if (numColors < 4) return@colorLoop in buildWidget()
224 COLORS_ACCENT2 -> if (numColors < 3) return@colorLoop in buildWidget()
225 COLORS_ACCENT3 -> if (numColors < 5) return@colorLoop in buildWidget()
/frameworks/base/tools/aapt/
DImages.cpp557 int8_t numColors; in do_9patch() local
714 numColors = numRows * numCols; in do_9patch()
715 image->info9Patch.numColors = numColors; in do_9patch()
716 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); in do_9patch()
769 assert(colorIndex == numColors); in do_9patch()
771 for (i=0; i<numColors; i++) { in do_9patch()
775 if (i == numColors - 1) printf("\n"); in do_9patch()
817 for (int i = 0; i < outPatch->numColors; i++) { in checkNinePatchSerialization()
1101 int numColors = numOpaqueColors + numAlphaColors; in analyze_image() local
1102 *paletteEntries = numColors; in analyze_image()
[all …]
/frameworks/base/libs/androidfw/
DPng.cpp939 int8_t numColors; in do9Patch() local
1095 numColors = numRows * numCols; in do9Patch()
1096 image->info9Patch.numColors = numColors; in do9Patch()
1097 image->colors.resize(numColors); in do9Patch()
1147 assert(colorIndex == numColors); in do9Patch()
1150 for (i = 0; i < numColors; i++) { in do9Patch()
1153 if (i == numColors - 1) printf("\n"); in do9Patch()
DNinePatch.cpp592 data.numColors = static_cast<uint8_t>(region_colors.size()); in SerializeBase()
DResourceTypes.cpp178 for (int i=0; i<numColors; i++) { in deviceToFile()
198 for (int i=0; i<numColors; i++) { in fileToDevice()
212 + numColors * sizeof(uint32_t); in serializedSize()
237 memcpy(data, colors, patch.numColors * sizeof(uint32_t)); in serialize()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.cpp307 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
/frameworks/base/libs/hwui/jni/
DNinePatch.cpp105 if (iter.numRectsToDraw() == chunk->numColors) { in getTransparentRegion()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp788 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h150 uint8_t numColors; member