Home
last modified time | relevance | path

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

12

/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.bp67 "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.java36 import com.android.internal.graphics.ColorUtils;
128 ColorUtils.colorToHSL(background, hsl); in needsInversion()
158 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion()
164 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleView.java31 import com.android.internal.graphics.ColorUtils;
248 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255 /* alpha */); in checkTint()
254 double contrastRatio = ColorUtils.calculateContrast(Color.WHITE, backgroundColor); in checkTint()
256 int dark = ColorUtils.setAlphaComponent(Color.BLACK, DARK_ICON_ALPHA); in checkTint()
264 return ColorUtils.blendARGB(defaultTint, Color.WHITE, WHITE_SCRIM_ALPHA); in determineDominateColor()
DBadgedImageView.java26 import com.android.internal.graphics.ColorUtils;
109 mUpdateDotColor = ColorUtils.setAlphaComponent(color, 255 /* alpha */); in setDotColor()
/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/
DMediaArtworkProcessor.kt29 import com.android.internal.graphics.ColorUtils
82 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA)) in processArtwork()
DScrimView.java30 import androidx.core.graphics.ColorUtils;
141 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, in updateColorWithTint()
/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/legacy/recents/src/com/android/systemui/recents/views/
DTaskViewHeader.java39 import androidx.core.graphics.ColorUtils;
103 ColorUtils.colorToHSL(color, mTmpHSL); in setColorAndDim()
107 mHighlightPaint.setColor(ColorUtils.HSLToColor(mTmpHSL)); in setColorAndDim()
432 ColorUtils.colorToHSL(color, mTmpHSL); in updateBackgroundColor()
434 mOverlayBackground.setColorAndDim(ColorUtils.HSLToColor(mTmpHSL), dimAlpha); in updateBackgroundColor()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp705 *to = ColorUtils::wrapColorAspectsIntoColorRange(sfRange); in map()
715 (void)ColorUtils::unwrapColorAspectsFromColorRange(from, &sfRange); in map()
770 *standard = ColorUtils::wrapColorAspectsIntoColorStandard(sfPrimaries, sfMatrix); in map()
782 (void)ColorUtils::unwrapColorAspectsFromColorStandard(standard, &sfPrimaries, &sfMatrix); in map()
842 *to = ColorUtils::wrapColorAspectsIntoColorTransfer(sfTransfer); in map()
852 (void)ColorUtils::unwrapColorAspectsFromColorTransfer(from, &sfTransfer); in map()
934 *dataSpace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in map()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java40 import com.android.internal.graphics.ColorUtils;
456 mCurrentBehindTint = ColorUtils.blendARGB(ScrimState.BOUNCER.getBehindTint(), in applyExpansionToAlpha()
528 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims()
633 int tint = ColorUtils.blendARGB(initialScrimTint, finalScrimTint, animAmount); in startScrimAnimation()
DLockIcon.java39 import com.android.internal.graphics.ColorUtils;
415 int color = ColorUtils.blendARGB(mIconColor, Color.WHITE, mDozeAmount); in updateDarkTint()
/frameworks/av/media/codec2/components/base/
DAndroid.bp60 "libstagefright_foundation", // for ColorUtils and MIME
/frameworks/base/core/java/android/app/
DWallpaperColors.java32 import com.android.internal.graphics.ColorUtils;
390 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java39 import androidx.core.graphics.ColorUtils;
399 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCodecBase.h53 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotController.java44 import com.android.internal.graphics.ColorUtils;
383 final int color = ColorUtils.setAlphaComponent( in drawAppThemeSnapshot()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp58 return (mStandard == ColorUtils::kColorStandardBT709); in isBt709()
63 return ((mStandard == ColorUtils::kColorStandardBT601_625) in isJpeg()
64 || (mStandard == ColorUtils::kColorStandardBT601_525)) in isJpeg()
65 && (mRange == ColorUtils::kColorRangeFull); in isJpeg()

12