/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | ColorUtils.h | 34 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/av/media/libstagefright/foundation/tests/colorutils/ |
D | ColorUtilsTest.cpp | 155 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/ |
D | ColorUtilsTest.java | 33 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/ |
D | ColorUtils.cpp | 32 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 …]
|
D | Android.bp | 65 "ColorUtils.cpp",
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 31 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 …]
|
D | VariationalKMeansQuantizer.java | 21 import com.android.internal.graphics.ColorUtils; 82 ColorUtils.colorToHSL(pixels[i], hsl); in quantize()
|
D | ColorCutQuantizer.java | 45 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/ |
D | NotificationCustomViewWrapper.java | 23 import com.android.internal.graphics.ColorUtils; 58 ColorUtils.colorToHSL(mBackgroundColor, hsl); in onContentUpdated() 61 mBackgroundColor = ColorUtils.HSLToColor(hsl); in onContentUpdated()
|
D | NotificationViewWrapper.java | 36 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/ |
D | BubbleView.java | 37 import com.android.internal.graphics.ColorUtils; 293 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255 /* alpha */); in checkTint() 299 double contrastRatio = ColorUtils.calculateContrast(Color.WHITE, backgroundColor); in checkTint() 301 int dark = ColorUtils.setAlphaComponent(Color.BLACK, DARK_ICON_ALPHA); in checkTint() 309 return ColorUtils.blendARGB(defaultTint, Color.WHITE, WHITE_SCRIM_ALPHA); in determineDominateColor()
|
D | BadgedImageView.java | 26 import com.android.internal.graphics.ColorUtils; 124 mDotColor = ColorUtils.setAlphaComponent(color, 255 /* alpha */); in setDotColor()
|
/frameworks/base/core/java/com/android/internal/colorextraction/types/ |
D | Tonal.java | 32 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/ |
D | ScrimDrawable.java | 33 import com.android.internal.graphics.ColorUtils; 76 mMainColor = ColorUtils.blendARGB(mainFrom, mainColor, ratio); in setColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | MediaArtworkProcessor.kt | 30 import com.android.internal.graphics.ColorUtils 84 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA)) in processArtwork()
|
D | ScrimView.java | 32 import androidx.core.graphics.ColorUtils; 143 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, in updateColorWithTint()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | TaskViewHeader.java | 39 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/ |
D | Codec2Mapper.cpp | 705 *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/core/java/android/app/ |
D | WallpaperColors.java | 32 import com.android.internal.graphics.ColorUtils; 390 ColorUtils.colorToHSL(pixels[i], tmpHsl); in calculateDarkHints()
|
/frameworks/av/media/codec2/components/base/ |
D | Android.bp | 60 "libstagefright_foundation", // for ColorUtils and MIME
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 42 import com.android.internal.graphics.ColorUtils; 473 mCurrentBehindTint = ColorUtils.blendARGB(ScrimState.BOUNCER.getBehindTint(), in applyExpansionToAlpha() 570 float minOpacity = ColorUtils.calculateMinimumBackgroundAlpha(textColor, mainColor, in updateScrims() 675 int tint = ColorUtils.blendARGB(initialScrimTint, finalScrimTint, animAmount); in startScrimAnimation()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 39 import androidx.core.graphics.ColorUtils; 411 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | CodecBase.h | 53 struct CodecBase : public AHandler, /* static */ ColorUtils {
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotController.java | 44 import com.android.internal.graphics.ColorUtils; 383 final int color = ColorUtils.setAlphaComponent( in drawAppThemeSnapshot()
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 58 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()
|