Searched refs:ColorUtils (Results 1 - 25 of 56) sorted by relevance

123

/frameworks/av/include/media/stagefright/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
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
[all...]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
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
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
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
[all...]
/frameworks/base/tests/Internal/src/com/android/internal/graphics/
H A DColorUtilsTest.java32 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);
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DColorUtilsTest.java96 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
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DTintedKeyButtonDrawable.java23 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);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/res/content/
H A DAppCompatResourcesTestCase.java33 import androidx.core.graphics.ColorUtils;
64 final int expectedDisabled = ColorUtils.setAlphaComponent(colorForegound,
/frameworks/av/media/libstagefright/foundation/
H A DColorUtils.cpp18 #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
[all...]
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DPalette.java31 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
[all...]
H A DVariationalKMeansQuantizer.java21 import com.android.internal.graphics.ColorUtils;
82 ColorUtils.colorToHSL(pixels[i], hsl);
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
H A DPalette.java32 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
[all...]
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
H A DAppCompatBaseImageViewTest.java39 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),
H A DAppCompatBaseViewTest.java50 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
[all...]
/frameworks/support/palette/src/androidTest/java/androidx/palette/graphics/
H A DSwatchTests.java19 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/
H A DThemeUtils.java24 import androidx.core.graphics.ColorUtils;
111 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha));
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouterThemeHelper.java23 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/
H A DMediaRouterThemeHelper.java27 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/base/core/java/com/android/internal/colorextraction/drawable/
H A DGradientDrawable.java38 import com.android.internal.graphics.ColorUtils;
100 mMainColor = ColorUtils.blendARGB(mainFrom, mainColor, ratio);
101 mSecondaryColor = ColorUtils.blendARGB(secFrom, secondaryColor, ratio);
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/
H A DTonalTest.java29 import com.android.internal.graphics.ColorUtils;
123 final int blacklistedColor = ColorUtils.HSLToColor(hsl);
141 final int blacklistedColor = ColorUtils.HSLToColor(hsl);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DAppCompatMenuItemIconTintingTest.java40 import androidx.core.graphics.ColorUtils;
251 secondItem.getIcon(), ColorUtils.compositeColors(emeraldDefault, iconColorBlack),
259 secondItem.getIcon(), ColorUtils.compositeColors(emeraldDefault, iconColorRed),
/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A DTonal.java31 import com.android.internal.graphics.ColorUtils;
132 ColorUtils.RGBToHSL(Color.red(colorValue), Color.green(colorValue),
152 ColorUtils.RGBToHSL(Color.red(colorValue), Color.green(colorValue), Color.blue(colorValue),
198 ColorUtils.colorToHSL(mainColor, mTmpHSL);
200 ColorUtils.colorToHSL(THRESHOLD_COLOR_LIGHT, mTmpHSL);
205 ColorUtils.colorToHSL(THRESHOLD_COLOR_DARK, mTmpHSL);
283 return ColorUtils.HSLToColor(mTmpHSL);
/frameworks/av/include/media/stagefright/
H A DCodecBase.h32 #include <media/stagefright/foundation/ColorUtils.h>
53 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DCodecBase.h32 #include <media/stagefright/foundation/ColorUtils.h>
53 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/
H A DAppCompatColorStateListInflater.java30 import androidx.core.graphics.ColorUtils;
170 return ColorUtils.setAlphaComponent(color, Math.round(Color.alpha(color) * alphaMod));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScrimView.java33 import android.support.v4.graphics.ColorUtils;
269 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor,
271 int secondaryTinted = ColorUtils.blendARGB(mColors.getSecondaryColor(), mTintColor,

Completed in 498 milliseconds

123