Searched refs:swatch (Results 1 – 8 of 8) sorted by relevance
75 for (Palette.Swatch swatch : swatches) { in findBackgroundSwatch()76 if (swatch != dominantSwatch in findBackgroundSwatch()77 && swatch.getPopulation() > highestNonWhitePopulation in findBackgroundSwatch()78 && !isWhiteOrBlack(swatch.getHsl())) { in findBackgroundSwatch()79 second = swatch; in findBackgroundSwatch()80 highestNonWhitePopulation = swatch.getPopulation(); in findBackgroundSwatch()
65 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_white() local67 assertCloseColors(swatch.getRgb(), Color.WHITE); in findBackgroundSwatch_white()77 Palette.Swatch swatch = MediaNotificationProcessor.findBackgroundSwatch(mArtwork); in findBackgroundSwatch_red() local79 assertCloseColors(swatch.getRgb(), Color.RED); in findBackgroundSwatch_red()
133 private static void addSwatchToRow(TableRow row, View swatch, int rowNumber) { in addSwatchToRow() argument135 row.addView(swatch); in addSwatchToRow()137 row.addView(swatch, 0); in addSwatchToRow()148 View swatch, String[] contentDescriptions) { in setSwatchDescription() argument169 swatch.setContentDescription(description); in setSwatchDescription()
116 Swatch swatch = mSwatches.get(i); in findDominantSwatch() local117 if (swatch.getPopulation() > maxPop) { in findDominantSwatch()118 maxSwatch = swatch; in findDominantSwatch()119 maxPop = swatch.getPopulation(); in findDominantSwatch()172 Swatch swatch = (Swatch) o; in equals() local173 return mPopulation == swatch.mPopulation && mColor.toArgb() == swatch.mColor.toArgb(); in equals()
210 Swatch swatch = vbox.getAverageColor(); in generateAverageColors() local211 colors.add(swatch); in generateAverageColors()
81 val swatch = MediaNotificationProcessor.findBackgroundSwatch(artwork) in processArtwork() constant84 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA)) in processArtwork()
208 Palette.Swatch swatch = swatches.get(i); in fromBitmap() local209 int colorInt = swatch.getInt(); in fromBitmap()210 populationByColor.put(colorInt, swatch.getPopulation()); in fromBitmap()
749 Palette.Swatch swatch = swatches.get(i); in isGrayscale() local750 if (!isGrayscaleColor(swatch.getInt())) { in isGrayscale()