Home
last modified time | relevance | path

Searched refs:ColorUtils (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DColorUtils.h34 struct ColorUtils { struct
202 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
205 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
206 case ColorUtils::kColorStandardBT709: return "BT709";
207 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
208 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
209 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
210 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
211 case ColorUtils::kColorStandardBT2020: return "BT2020";
212 case ColorUtils::kColorStandardBT2020Constant: return "BT2020Constant";
[all …]
/frameworks/av/media/module/foundation/tests/colorutils/
DColorUtilsTest.cpp155 int32_t range = ColorUtils::wrapColorAspectsIntoColorRange(mRange); in TEST_P()
157 status_t status = ColorUtils::unwrapColorAspectsFromColorRange(range, &unwrappedRange); in TEST_P()
164 int32_t transfer = ColorUtils::wrapColorAspectsIntoColorTransfer(mTransfer); in TEST_P()
166 status_t status = ColorUtils::unwrapColorAspectsFromColorTransfer(transfer, &unwrappedTransfer); in TEST_P()
173 int32_t standard = ColorUtils::wrapColorAspectsIntoColorStandard(mPrimaries, mMatrixCoeffs); in TEST_P()
176 status_t status = ColorUtils::unwrapColorAspectsFromColorStandard(standard, &unwrappedPrimaries, in TEST_P()
193 status_t status = ColorUtils::convertCodecColorAspectsToPlatformAspects(aspects, &range, in TEST_P()
198 status = ColorUtils::convertPlatformColorAspectsToCodecAspects(range, standard, transfer, in TEST_P()
222 ColorUtils::convertCodecColorAspectsToIsoAspects(aspects, &primaries, &colorTransfer, in TEST_P()
226 ColorUtils::convertIsoColorAspectsToCodecAspects(primaries, colorTransfer, matrixCoeffs, in TEST_P()
[all …]
/frameworks/base/tests/Internal/src/com/android/internal/graphics/
DColorUtilsTest.java33 int alpha = ColorUtils.calculateMinimumBackgroundAlpha(Color.WHITE, Color.BLACK, 4.5f); in calculateMinimumBackgroundAlpha_satisfiestContrast()
36 int worstCase = ColorUtils.blendARGB(Color.WHITE, Color.BLACK, alpha/255f); in calculateMinimumBackgroundAlpha_satisfiestContrast()
37 worstCase = ColorUtils.setAlphaComponent(worstCase, 255); in calculateMinimumBackgroundAlpha_satisfiestContrast()
38 double contrast = ColorUtils.calculateContrast(Color.WHITE, worstCase); in calculateMinimumBackgroundAlpha_satisfiestContrast()
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DShades.java22 import com.android.internal.graphics.ColorUtils;
58 shades[0] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 99); in of()
59 shades[1] = ColorUtils.CAMToColor(hue, Math.min(40f, chroma), 95); in of()
62 shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar); in of()
/frameworks/av/media/module/foundation/
DColorUtils.cpp32 typedef ColorUtils CU;
101 int32_t ColorUtils::wrapColorAspectsIntoColorStandard( in wrapColorAspectsIntoColorStandard()
120 status_t ColorUtils::unwrapColorAspectsFromColorStandard( in unwrapColorAspectsFromColorStandard()
158 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange()
172 status_t ColorUtils::unwrapColorAspectsFromColorRange( in unwrapColorAspectsFromColorRange()
198 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer( in wrapColorAspectsIntoColorTransfer()
214 status_t ColorUtils::unwrapColorAspectsFromColorTransfer( in unwrapColorAspectsFromColorTransfer()
235 status_t ColorUtils::convertPlatformColorAspectsToCodecAspects( in convertPlatformColorAspectsToCodecAspects()
245 status_t ColorUtils::convertCodecColorAspectsToPlatformAspects( in convertCodecColorAspectsToPlatformAspects()
318 void ColorUtils::convertCodecColorAspectsToIsoAspects( in convertCodecColorAspectsToIsoAspects()
[all …]
DColorUtils_fill.cpp28 typedef ColorUtils CU;
35 void ColorUtils::fillHdrStaticInfoBuffer( const HDRStaticInfo &info, uint8_t *data) { in fillHdrStaticInfoBuffer()
DColorUtils_ndk.cpp28 void ColorUtils::setHDRStaticInfoIntoAMediaFormat( in setHDRStaticInfoIntoAMediaFormat()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DBoundsInfoDrawHelper.java34 import com.android.internal.graphics.ColorUtils;
41 ColorUtils.setAlphaComponent(Color.DKGRAY, 128);
43 ColorUtils.setAlphaComponent(Color.BLUE, 128);
45 ColorUtils.setAlphaComponent(Color.MAGENTA, 128);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapper.java23 import com.android.internal.graphics.ColorUtils;
59 ColorUtils.colorToHSL(mBackgroundColor, hsl); in onContentUpdated()
62 mBackgroundColor = ColorUtils.HSLToColor(hsl); in onContentUpdated()
DNotificationViewWrapper.java38 import com.android.internal.graphics.ColorUtils;
150 ColorUtils.colorToHSL(background, hsl); in needsInversion()
180 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion()
186 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DPlaceHolderIconDrawable.java30 import androidx.core.graphics.ColorUtils;
44 mPaint.setColor(ColorUtils.compositeColors( in PlaceHolderIconDrawable()
66 int newColor = ColorUtils.setAlphaComponent(placeholderColor, newAlpha); in animateIconUpdate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DDotIndicatorDecoration.java27 import androidx.core.graphics.ColorUtils;
121 ColorUtils.blendARGB(mSelectedColor, mUnselectedColor, progress / 2))); in drawSelectedDot()
130 ColorUtils.blendARGB( in drawFadingUnselectedDot()
146 return ColorUtils.setAlphaComponent(color, transitionAlphaOverride); in getTransitionAdjustedColor()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java21 import com.android.internal.graphics.ColorUtils;
81 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
123 int color = ColorUtils.HSLToColor(mHsl); in quantize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/drawable/
DIlluminationDrawable.kt38 import com.android.internal.graphics.ColorUtils
39 import com.android.internal.graphics.ColorUtils.blendARGB
167 ColorUtils.colorToHSL(backgroundColor, tmpHsl) in animateBackground()
182 val finalHighlight = ColorUtils.HSLToColor(tmpHsl) in animateBackground()
DSquigglyProgress.kt36 import com.android.internal.graphics.ColorUtils in <lambda>()
255 wavePaint.color = ColorUtils.setAlphaComponent(tintColor, alpha) in <lambda>()
257 ColorUtils.setAlphaComponent(tintColor, (DISABLED_ALPHA * (alpha / 255f)).toInt()) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthRippleView.kt30 import com.android.internal.graphics.ColorUtils in <lambda>()
139 dwellShader.color = ColorUtils.setAlphaComponent( in <lambda>()
178 dwellShader.color = ColorUtils.setAlphaComponent( in <lambda>()
294 rippleShader.color = ColorUtils.setAlphaComponent( in <lambda>()
310 dwellShader.color = ColorUtils.setAlphaComponent( in <lambda>()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleAnimation.kt23 import androidx.core.graphics.ColorUtils in <lambda>()
73 color = ColorUtils.setAlphaComponent(config.color, config.opacity) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DBackAnimationBackground.java27 import com.android.internal.graphics.ColorUtils;
66 mBackgroundIsDark = ColorUtils.calculateLuminance(color) < 0.5f; in ensureBackground()
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java32 import com.android.internal.graphics.ColorUtils;
130 ColorUtils.RGBToHSL(Color.red(colorValue), Color.green(colorValue), Color.blue(colorValue), in runTonalExtraction()
177 ColorUtils.colorToHSL(mainColor, mTmpHSL); in runTonalExtraction()
179 ColorUtils.colorToHSL(MAIN_COLOR_LIGHT, mTmpHSL); in runTonalExtraction()
184 ColorUtils.colorToHSL(MAIN_COLOR_DARK, mTmpHSL); in runTonalExtraction()
269 ColorUtils.colorToHSL(color, hsl); in applyFallback()
281 return ColorUtils.HSLToColor(mTmpHSL); in getColorInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserDetailItemView.java25 import androidx.core.graphics.ColorUtils;
148 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/
DRippleAnimationTest.kt21 import androidx.core.graphics.ColorUtils
75 assertThat(color).isEqualTo(ColorUtils.setAlphaComponent(config.color, config.opacity)) in init_shaderHasCorrectConfig()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp60 const bool isFullRange = (colorSpace.mRange == ColorUtils::kColorRangeFull); in getLibYUVMatrix()
101 return mRange == ColorUtils::kColorRangeLimited; in isLimitedRange()
106 return (mStandard == ColorUtils::kColorStandardBT2020 in isBt2020()
107 && mRange == ColorUtils::kColorRangeLimited); in isBt2020()
112 return (mStandard == ColorUtils::kColorStandardBT2020 in isBtV2020()
113 && mRange == ColorUtils::kColorRangeFull); in isBtV2020()
118 return (mStandard == ColorUtils::kColorStandardBT709 in isF709()
119 && mRange == ColorUtils::kColorRangeFull); in isF709()
124 return (mStandard == ColorUtils::kColorStandardBT709) in isH709()
125 && (mRange == ColorUtils::kColorRangeLimited); in isH709()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DColorUtils.java35 public class ColorUtils { class
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DLockIconView.java37 import com.android.internal.graphics.ColorUtils;
87 mLockIconColor = ColorUtils.blendARGB( in updateColorAndBackgroundVisibility()
97 mLockIconColor = ColorUtils.blendARGB( in updateColorAndBackgroundVisibility()
/frameworks/base/core/java/android/app/
DWallpaperColors.java36 import com.android.internal.graphics.ColorUtils;
272 ColorUtils.colorToHSL(primaryColor.toArgb(), tmpHsl); in WallpaperColors()
564 int blackTransparent = ColorUtils.setAlphaComponent(Color.BLACK, dimmingLayerAlpha); in calculateDarkHints()
571 ColorUtils.colorToHSL(pixelColor, tmpHsl); in calculateDarkHints()
576 int compositeColors = ColorUtils.compositeColors(blackTransparent, pixelColor); in calculateDarkHints()
579 double adjustedLuminance = ColorUtils.calculateLuminance(compositeColors); in calculateDarkHints()

1234