HomeSort by relevance Sort by last modified time
    Searched refs:ColorUtils (Results 1 - 25 of 87) sorted by null

1 2 3 4

  /frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
ColorUtils.h 32 struct ColorUtils {
185 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
188 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
189 case ColorUtils::kColorStandardBT709: return "BT709";
190 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
191 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
192 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
193 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
194 case ColorUtils::kColorStandardBT2020: return "BT2020";
195 case ColorUtils::kColorStandardBT2020Constant: return "BT2020Constant"
    [all...]
  /frameworks/base/tests/Internal/src/com/android/internal/graphics/
ColorUtilsTest.java 32 int alpha = ColorUtils.calculateMinimumBackgroundAlpha(Color.WHITE, Color.BLACK, 4.5f);
35 int worstCase = ColorUtils.blendARGB(Color.WHITE, Color.BLACK, alpha/255f);
36 worstCase = ColorUtils.setAlphaComponent(worstCase, 255);
37 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase);
  /packages/apps/Launcher3/src/com/android/launcher3/graphics/
IconPalette.java 22 import android.support.v4.graphics.ColorUtils;
98 ColorUtils.calculateContrast(colorOld, bg),
99 ColorUtils.calculateContrast(colorNew, bg));
123 if (ColorUtils.calculateContrast(fg, bg) >= minRatio) {
128 ColorUtils.colorToLAB(bg, lab);
130 ColorUtils.colorToLAB(fg, lab);
138 fg = ColorUtils.LABToColor(l, a, b);
139 if (ColorUtils.calculateContrast(fg, bg) > minRatio) {
145 return ColorUtils.LABToColor(low, a, b);
149 int whiteScrim = ColorUtils.setAlphaComponent(Color.WHITE, (int) (255 * whiteScrimAlpha))
    [all...]
ColorScrim.java 20 import android.support.v4.graphics.ColorUtils;
45 mCurrentColor = ColorUtils.setAlphaComponent(mColor,
59 ColorScrim scrim = new ColorScrim(view, ColorUtils.setAlphaComponent(
  /cts/tests/tests/graphics/src/android/graphics/cts/
RadialGradientTest.java 30 import com.android.compatibility.common.util.ColorUtils;
56 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1);
57 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(1, 0), 1);
58 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(2, 0), 1);
ColorMatrixColorFilterTest.java 32 import com.android.compatibility.common.util.ColorUtils;
59 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0));
62 ColorUtils.verifyColor(Color.GREEN, bitmap.getPixel(0, 0));
65 ColorUtils.verifyColor(Color.RED, bitmap.getPixel(0, 0));
69 ColorUtils.verifyColor(Color.WHITE, bitmap.getPixel(0, 0));
85 ColorUtils.verifyColor(Color.argb(128, 255, 0, 64), bitmap.getPixel(0, 0), 2);
89 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0));
96 ColorUtils.verifyColor(Color.CYAN, bitmap.getPixel(0, 0));
100 ColorUtils.verifyColor(Color.BLUE, bitmap.getPixel(0, 0));
LightingColorFilterTest.java 28 import com.android.compatibility.common.util.ColorUtils;
39 ColorUtils.verifyColor(expected, actual, TOLERANCE);
96 ColorUtils.verifyColor(Color.BLACK, filter.getColorAdd());
99 ColorUtils.verifyColor(0x12345678, filter.getColorAdd());
106 ColorUtils.verifyColor(Color.WHITE, filter.getColorMultiply());
109 ColorUtils.verifyColor(0x87654321, filter.getColorMultiply());
LinearGradientTest.java 33 import com.android.compatibility.common.util.ColorUtils;
95 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(0, 0), 1);
96 ColorUtils.verifyColor(Color.BLACK, bitmap.getPixel(20, 20), 1);
  /frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
ColorUtilsTest.java 96 ColorUtils.compositeColors(rgb, lab);
105 Color result = ColorUtils.compositeColors(Color.valueOf(0x7f007f00),
119 Color mixed = ColorUtils.compositeColors(green, red);
130 assertEquals(0, ColorUtils.compositeColors(Color.valueOf(0x00007f00),
134 Color result = ColorUtils.compositeColors(Color.valueOf(0.0f, 1.0f, 0.0f, 0.0001f),
161 ColorUtils.colorToHSL(entry.rgb, hsl);
208 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 3.0f));
210 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 4.5f));
212 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 3.0f));
214 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 4.5f))
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
TintedKeyButtonDrawable.java 23 import com.android.internal.graphics.ColorUtils;
57 final int intermediateColor = ColorUtils.compositeColors(
69 // Ensure alpha is clamped [0-255] or ColorUtils will crash
70 return ColorUtils.setAlphaComponent(color, alphaInt);
  /packages/apps/Launcher3/src/com/android/launcher3/views/
DoubleShadowBubbleTextView.java 23 import android.support.v4.graphics.ColorUtils;
62 ColorUtils.setAlphaComponent(mShadowInfo.ambientShadowColor, alpha));
71 ColorUtils.setAlphaComponent(mShadowInfo.keyShadowColor, alpha));
109 ColorUtils.setAlphaComponent(ambientShadowColor, textAlpha));
113 ColorUtils.setAlphaComponent(keyShadowColor, textAlpha));
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ColorUtils.java 24 public class ColorUtils {
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/res/content/
AppCompatResourcesTestCase.java 33 import androidx.core.graphics.ColorUtils;
64 final int expectedDisabled = ColorUtils.setAlphaComponent(colorForegound,
  /frameworks/av/media/libstagefright/foundation/
ColorUtils.cpp 18 #define LOG_TAG "ColorUtils"
25 #include <media/stagefright/foundation/ColorUtils.h>
31 typedef ColorUtils CU;
96 int32_t ColorUtils::wrapColorAspectsIntoColorStandard(
115 status_t ColorUtils::unwrapColorAspectsFromColorStandard(
153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) {
167 status_t ColorUtils::unwrapColorAspectsFromColorRange(
193 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer(
209 status_t ColorUtils::unwrapColorAspectsFromColorTransfer(
230 status_t ColorUtils::convertPlatformColorAspectsToCodecAspects
    [all...]
  /frameworks/base/core/java/com/android/internal/graphics/palette/
Palette.java 31 import com.android.internal.graphics.ColorUtils;
474 this(ColorUtils.HSLToColor(hsl), population);
496 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl);
530 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha(
532 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha(
537 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha);
538 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha);
543 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha(
545 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha(
550 mBodyTextColor = ColorUtils.setAlphaComponent(Color.BLACK, darkBodyAlpha)
    [all...]
VariationalKMeansQuantizer.java 21 import com.android.internal.graphics.ColorUtils;
82 ColorUtils.colorToHSL(pixels[i], hsl);
  /frameworks/support/palette/src/main/java/androidx/palette/graphics/
Palette.java 32 import androidx.core.graphics.ColorUtils;
471 this(ColorUtils.HSLToColor(hsl), population);
494 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl);
528 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha(
530 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha(
535 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha);
536 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha);
541 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha(
543 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha(
548 mBodyTextColor = ColorUtils.setAlphaComponent(Color.BLACK, darkBodyAlpha)
    [all...]
  /frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
AppCompatBaseImageViewTest.java 39 import androidx.core.graphics.ColorUtils;
202 ColorUtils.compositeColors(emeraldDefault, sourceColor),
209 view, ColorUtils.compositeColors(emeraldDisabled, sourceColor),
317 view, ColorUtils.compositeColors(emeraldDefault, colorGreen),
324 view, ColorUtils.compositeColors(emeraldDisabled, colorGreen),
331 view, ColorUtils.compositeColors(emeraldDefault, colorGreen),
340 view, ColorUtils.compositeColors(emeraldDefault, colorRed),
347 view, ColorUtils.compositeColors(emeraldDisabled, colorRed),
354 view, ColorUtils.compositeColors(emeraldDefault, colorRed),
AppCompatBaseViewTest.java 50 import androidx.core.graphics.ColorUtils;
408 ColorUtils.compositeColors(emeraldDefault, backgroundColor),
415 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor),
477 ColorUtils.compositeColors(emeraldDefault, backgroundColor),
484 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor),
595 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen),
602 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorGreen),
609 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen),
618 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorRed),
625 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorRed)
    [all...]
  /frameworks/support/palette/src/androidTest/java/androidx/palette/graphics/
SwatchTests.java 19 import static androidx.core.graphics.ColorUtils.HSLToColor;
20 import static androidx.core.graphics.ColorUtils.calculateContrast;
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
ThemeUtils.java 24 import androidx.core.graphics.ColorUtils;
111 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha));
  /cts/tests/tests/systemui/src/android/systemui/cts/
ColorUtils.java 22 public class ColorUtils {
  /frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
MediaRouterThemeHelper.java 23 import android.support.v4.graphics.ColorUtils;
122 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor)
133 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) {
165 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor);
  /frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
MediaRouterThemeHelper.java 27 import androidx.core.graphics.ColorUtils;
118 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor)
130 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) {
164 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor);
  /frameworks/av/media/libstagefright/include/media/stagefright/
CodecBase.h 32 #include <media/stagefright/foundation/ColorUtils.h>
53 struct CodecBase : public AHandler, /* static */ ColorUtils {

Completed in 1930 milliseconds

1 2 3 4