/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/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 | 67 "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 | 31 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()
|
D | BadgedImageView.java | 26 import com.android.internal.graphics.ColorUtils; 109 mUpdateDotColor = 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | MediaArtworkProcessor.kt | 29 import com.android.internal.graphics.ColorUtils 82 canvas.drawColor(ColorUtils.setAlphaComponent(swatch.rgb, COLOR_ALPHA)) in processArtwork()
|
D | ScrimView.java | 30 import androidx.core.graphics.ColorUtils; 141 int mainTinted = ColorUtils.blendARGB(mColors.getMainColor(), mTintColor, in updateColorWithTint()
|
/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/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ScrimController.java | 40 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()
|
D | LockIcon.java | 39 import com.android.internal.graphics.ColorUtils; 415 int color = ColorUtils.blendARGB(mIconColor, Color.WHITE, mDozeAmount); in updateDarkTint()
|
/frameworks/av/media/codec2/components/base/ |
D | Android.bp | 60 "libstagefright_foundation", // for ColorUtils and MIME
|
/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/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 39 import androidx.core.graphics.ColorUtils; 399 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()
|