Searched refs:numColors (Results 1 – 9 of 9) sorted by relevance
208 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()
557 int8_t numColors; in do_9patch() local714 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() local1102 *paletteEntries = numColors; in analyze_image()[all …]
939 int8_t numColors; in do9Patch() local1095 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()
592 data.numColors = static_cast<uint8_t>(region_colors.size()); in SerializeBase()
178 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()
307 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
105 if (iter.numRectsToDraw() == chunk->numColors) { in getTransparentRegion()
788 if (chunk.numColors > 0 && chunk.numColors == NinePatchUtils::NumDistinctRects(lattice)) { in drawNinePatch()
150 uint8_t numColors; member