Home
last modified time | relevance | path

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

123

/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DColorUtils.h34 struct ColorUtils { struct
192 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
195 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
196 case ColorUtils::kColorStandardBT709: return "BT709";
197 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
198 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
199 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
200 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
201 case ColorUtils::kColorStandardBT2020: return "BT2020";
202 case ColorUtils::kColorStandardBT2020Constant: return "BT2020Constant";
[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/av/media/libstagefright/foundation/
DColorUtils.cpp32 typedef ColorUtils CU;
97 int32_t ColorUtils::wrapColorAspectsIntoColorStandard( in wrapColorAspectsIntoColorStandard()
116 status_t ColorUtils::unwrapColorAspectsFromColorStandard( in unwrapColorAspectsFromColorStandard()
154 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange()
168 status_t ColorUtils::unwrapColorAspectsFromColorRange( in unwrapColorAspectsFromColorRange()
194 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer( in wrapColorAspectsIntoColorTransfer()
210 status_t ColorUtils::unwrapColorAspectsFromColorTransfer( in unwrapColorAspectsFromColorTransfer()
231 status_t ColorUtils::convertPlatformColorAspectsToCodecAspects( in convertPlatformColorAspectsToCodecAspects()
241 status_t ColorUtils::convertCodecColorAspectsToPlatformAspects( in convertCodecColorAspectsToPlatformAspects()
312 void ColorUtils::convertCodecColorAspectsToIsoAspects( in convertCodecColorAspectsToIsoAspects()
[all …]
DAndroid.bp65 "ColorUtils.cpp",
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java31 import com.android.internal.graphics.ColorUtils;
474 this(ColorUtils.HSLToColor(hsl), population); in Swatch()
496 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl); in getHsl()
530 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated()
532 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated()
537 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha); in ensureTextColorsGenerated()
538 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha); in ensureTextColorsGenerated()
543 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated()
545 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated()
550 mBodyTextColor = ColorUtils.setAlphaComponent(Color.BLACK, darkBodyAlpha); in ensureTextColorsGenerated()
[all …]
DVariationalKMeansQuantizer.java21 import com.android.internal.graphics.ColorUtils;
82 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
DColorCutQuantizer.java45 import com.android.internal.graphics.ColorUtils;
452 ColorUtils.colorToHSL(rgb, mTempHsl); in shouldIgnoreColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapper.java23 import com.android.internal.graphics.ColorUtils;
58 ColorUtils.colorToHSL(mBackgroundColor, hsl); in onContentUpdated()
61 mBackgroundColor = ColorUtils.HSLToColor(hsl); in onContentUpdated()
DNotificationViewWrapper.java39 import com.android.internal.graphics.ColorUtils;
144 ColorUtils.colorToHSL(background, hsl); in needsInversion()
174 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion()
180 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DIlluminationDrawable.kt36 import com.android.internal.graphics.ColorUtils
37 import com.android.internal.graphics.ColorUtils.blendARGB
135 ColorUtils.colorToHSL(backgroundColor, tmpHsl) in animateBackground()
145 val finalHighlight = ColorUtils.HSLToColor(tmpHsl) in animateBackground()
DLightSourceDrawable.kt38 import com.android.internal.graphics.ColorUtils
131 ColorUtils.setAlphaComponent(highlightColor, (rippleData.alpha * 255).toInt()) in draw()
DMediaDataManager.kt40 import com.android.internal.graphics.ColorUtils in <lambda>()
482 ColorUtils.colorToHSL(color, tmpHsl) in computeBackgroundColor()
494 color = ColorUtils.HSLToColor(tmpHsl) in computeBackgroundColor()
/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/core/java/com/android/internal/colorextraction/drawable/
DScrimDrawable.java33 import com.android.internal.graphics.ColorUtils;
76 mMainColor = ColorUtils.blendARGB(mainFrom, mainColor, ratio); in setColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DMediaArtworkProcessor.kt30 import com.android.internal.graphics.ColorUtils
85 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA)) in processArtwork()
DScrimView.java32 import androidx.core.graphics.ColorUtils;
143 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, in updateColorWithTint()
/frameworks/base/core/java/android/app/
DWallpaperColors.java32 import com.android.internal.graphics.ColorUtils;
228 ColorUtils.colorToHSL(primaryColor.toArgb(), tmpHsl); in WallpaperColors()
398 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java34 import com.android.internal.graphics.ColorUtils;
161 int color = ColorUtils.blendARGB(mIconColor, Color.WHITE, mDozeAmount); in updateDarkTint()
DScrimController.java41 import com.android.internal.graphics.ColorUtils;
496 mBehindTint = ColorUtils.blendARGB(ScrimState.BOUNCER.getBehindTint(), in applyExpansionToAlpha()
613 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims()
722 int tint = ColorUtils.blendARGB(initialScrimTint, finalScrimTint, animAmount); in startScrimAnimation()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp709 *to = ColorUtils::wrapColorAspectsIntoColorRange(sfRange); in map()
719 (void)ColorUtils::unwrapColorAspectsFromColorRange(from, &sfRange); in map()
774 *standard = ColorUtils::wrapColorAspectsIntoColorStandard(sfPrimaries, sfMatrix); in map()
786 (void)ColorUtils::unwrapColorAspectsFromColorStandard(standard, &sfPrimaries, &sfMatrix); in map()
846 *to = ColorUtils::wrapColorAspectsIntoColorTransfer(sfTransfer); in map()
856 (void)ColorUtils::unwrapColorAspectsFromColorTransfer(from, &sfTransfer); in map()
938 *dataSpace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in map()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExperimentConfig.java44 import com.android.internal.graphics.ColorUtils;
237 notifColor = ColorUtils.setAlphaComponent(notifColor, 255); in createFromNotif()
DBubbleViewInfoTask.java47 import com.android.internal.graphics.ColorUtils;
196 info.dotColor = ColorUtils.blendARGB(badgeBitmapInfo.color, in populate()
/frameworks/av/media/codec2/components/base/
DAndroid.bp60 "libstagefright_foundation", // for ColorUtils and MIME
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java38 import androidx.core.graphics.ColorUtils;
410 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCodecBase.h64 struct CodecBase : public AHandler, /* static */ ColorUtils {

123