Home
last modified time | relevance | path

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

12345

/aosp12/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DColorUtils.h34 struct ColorUtils { struct
220 case ColorUtils::kColorTransferLinear: return "Linear";
221 case ColorUtils::kColorTransferSRGB: return "SRGB";
223 case ColorUtils::kColorTransferGamma22: return "Gamma22";
224 case ColorUtils::kColorTransferGamma28: return "Gamma28";
225 case ColorUtils::kColorTransferST2084: return "ST2084";
226 case ColorUtils::kColorTransferHLG: return "HLG";
227 case ColorUtils::kColorTransferGamma26: return "Gamma26";
235 case ColorUtils::kColorRangeUnspecified: return "Unspecified";
236 case ColorUtils::kColorRangeFull: return "Full";
[all …]
/aosp12/frameworks/av/media/libstagefright/foundation/tests/colorutils/
H A DColorUtilsTest.cpp257 EXPECT_EQ(range, ColorUtils::kColorRangeFull) in TEST_P()
305 bool status = ColorUtils::convertDataSpaceToV0(dataSpace); in TEST_P()
376 ColorUtils::copyColorConfig(format, copyFormat); in TEST()
411 ColorUtils::setColorAspectsIntoFormat(aspects, format); in TEST_P()
442 ColorUtils::setHDRStaticInfoIntoFormat(infoHDR, format); in TEST()
525 status = ColorUtils::unwrapColorAspectsFromColorStandard(ColorUtils::kColorStandardVendorStart, in TEST()
539 status = ColorUtils::unwrapColorAspectsFromColorRange( in TEST()
584 ColorUtils::getColorAspectsFromFormat(format, aspects); in TEST()
688 ColorUtils::kColorStandardBT709, ColorUtils::kColorTransferLinear),
702 ColorUtils::kColorStandardBT2020, ColorUtils::kColorTransferST2084),
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DIconPalette.java29 import androidx.core.graphics.ColorUtils;
101 ColorUtils.calculateContrast(colorOld, bg), in contrastChange()
102 ColorUtils.calculateContrast(colorNew, bg)); in contrastChange()
126 if (ColorUtils.calculateContrast(fg, bg) >= minRatio) { in findContrastColor()
131 ColorUtils.colorToLAB(bg, lab); in findContrastColor()
133 ColorUtils.colorToLAB(fg, lab); in findContrastColor()
141 fg = ColorUtils.LABToColor(l, a, b); in findContrastColor()
142 if (ColorUtils.calculateContrast(fg, bg) > minRatio) { in findContrastColor()
148 return ColorUtils.LABToColor(low, a, b); in findContrastColor()
153 return ColorUtils.compositeColors(whiteScrim, color); in getMutedColor()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DNotificationUtils.java31 import com.android.internal.graphics.ColorUtils;
199 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground()
204 ColorUtils.colorToLAB(foregroundColor, lab); in findContrastColorAgainstLightBackground()
212 foregroundColor = ColorUtils.LABToColor(l, a, b); in findContrastColorAgainstLightBackground()
213 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground()
219 return ColorUtils.LABToColor(low, a, b); in findContrastColorAgainstLightBackground()
234 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground()
239 ColorUtils.colorToHSL(foregroundColor, hsl); in findContrastColorAgainstDarkBackground()
246 foregroundColor = ColorUtils.HSLToColor(hsl); in findContrastColorAgainstDarkBackground()
247 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) in findContrastColorAgainstDarkBackground()
/aosp12/frameworks/av/media/libstagefright/foundation/
H A DColorUtils.cpp32 typedef ColorUtils CU;
97 int32_t ColorUtils::wrapColorAspectsIntoColorStandard( in wrapColorAspectsIntoColorStandard()
168 status_t ColorUtils::unwrapColorAspectsFromColorRange( in unwrapColorAspectsFromColorRange()
194 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer( in wrapColorAspectsIntoColorTransfer()
312 void ColorUtils::convertCodecColorAspectsToIsoAspects( in convertCodecColorAspectsToIsoAspects()
331 void ColorUtils::convertIsoColorAspectsToCodecAspects( in convertIsoColorAspectsToCodecAspects()
372 void ColorUtils::setDefaultCodecColorAspectsIfNeeded( in setDefaultCodecColorAspectsIfNeeded()
616 void ColorUtils::getColorConfigFromDataSpace( in getColorConfigFromDataSpace()
645 void ColorUtils::getColorConfigFromFormat( in getColorConfigFromFormat()
699 void ColorUtils::setColorAspectsIntoFormat( in setColorAspectsIntoFormat()
[all …]
H A DColorUtils_fill.cpp28 typedef ColorUtils CU;
35 void ColorUtils::fillHdrStaticInfoBuffer( const HDRStaticInfo &info, uint8_t *data) { in fillHdrStaticInfoBuffer()
/aosp12/frameworks/base/tests/Internal/src/com/android/internal/graphics/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/
H A 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()
65 shades[i] = ColorUtils.CAMToColor(hue, chroma, lStar); in of()
H A DColorScheme.kt22 import com.android.internal.graphics.ColorUtils
71 get() = ColorUtils.setAlphaComponent(if (darkTheme) neutral1[8] else neutral1[0], 0xFF)
74 get() = ColorUtils.setAlphaComponent(if (darkTheme) accent1[2] else accent1[6], 0xFF)
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationCustomViewWrapper.java23 import com.android.internal.graphics.ColorUtils;
59 ColorUtils.colorToHSL(mBackgroundColor, hsl); in onContentUpdated()
62 mBackgroundColor = ColorUtils.HSLToColor(hsl); in onContentUpdated()
H A DNotificationViewWrapper.java39 import com.android.internal.graphics.ColorUtils;
147 ColorUtils.colorToHSL(background, hsl); in needsInversion()
177 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion()
183 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
H A DPlaceHolderIconDrawable.java30 import androidx.core.graphics.ColorUtils;
44 mPaint.setColor(ColorUtils.compositeColors( in PlaceHolderIconDrawable()
66 int newColor = ColorUtils.setAlphaComponent(placeholderColor, newAlpha); in animateIconUpdate()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
H A DDotIndicatorDecoration.java27 import androidx.core.graphics.ColorUtils;
119 ColorUtils.blendARGB(mSelectedColor, mUnselectedColor, progress / 2))); in drawSelectedDot()
128 ColorUtils.blendARGB( in drawFadingUnselectedDot()
144 return ColorUtils.setAlphaComponent(color, transitionAlphaOverride); in getTransitionAdjustedColor()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DAuthRippleView.kt30 import com.android.internal.graphics.ColorUtils
140 dwellShader.color = ColorUtils.setAlphaComponent(
245 rippleShader.color = ColorUtils.setAlphaComponent(
278 rippleShader.color = ColorUtils.setAlphaComponent(
300 dwellShader.color = ColorUtils.setAlphaComponent(
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DIlluminationDrawable.kt37 import com.android.internal.graphics.ColorUtils
38 import com.android.internal.graphics.ColorUtils.blendARGB
164 ColorUtils.colorToHSL(backgroundColor, tmpHsl)
174 val finalHighlight = ColorUtils.HSLToColor(tmpHsl)
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DVariationalKMeansQuantizer.java21 import com.android.internal.graphics.ColorUtils;
81 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
123 int color = ColorUtils.HSLToColor(mHsl); in quantize()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/states/
H A DHintState.java22 import androidx.core.graphics.ColorUtils;
57 return ColorUtils.setAlphaComponent( in getWorkspaceScrimColor()
/aosp12/frameworks/base/core/java/com/android/internal/colorextraction/types/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DLockIconView.java34 import com.android.internal.graphics.ColorUtils;
87 mLockIconColor = ColorUtils.blendARGB( in updateColorAndBackgroundVisibility()
95 mLockIconColor = ColorUtils.blendARGB( in updateColorAndBackgroundVisibility()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
H A DTutorialStepIndicator.java26 import androidx.core.graphics.ColorUtils;
113 ColorUtils.setAlphaComponent(stepIndicatorColor, 0x22)); in initializeStepIndicators()
/aosp12/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCamUtils.java23 import com.android.internal.graphics.ColorUtils;
104 return ColorUtils.XYZToColor(xT * CamUtils.WHITE_POINT_D65[0], in intFromLstar()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserDetailItemView.java25 import androidx.core.graphics.ColorUtils;
148 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DMediaArtworkProcessor.kt30 import com.android.internal.graphics.ColorUtils
84 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA))
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DScrimView.java29 import androidx.core.graphics.ColorUtils;
142 return ColorUtils.calculateLuminance( in isScrimDark()
/aosp12/packages/apps/Dialer/java/com/android/incallui/
H A DThemeColorManager.java23 import android.support.v4.graphics.ColorUtils;
141 return ColorUtils.setAlphaComponent(color, Color.alpha(sourceColorWithAlpha)); in applyAlpha()

12345