/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 | 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 | 39 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/ |
D | IlluminationDrawable.kt | 36 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()
|
D | LightSourceDrawable.kt | 38 import com.android.internal.graphics.ColorUtils 131 ColorUtils.setAlphaComponent(highlightColor, (rippleData.alpha * 255).toInt()) in draw()
|
D | MediaDataManager.kt | 40 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/ |
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 85 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/core/java/android/app/ |
D | WallpaperColors.java | 32 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/ |
D | LockIcon.java | 34 import com.android.internal.graphics.ColorUtils; 161 int color = ColorUtils.blendARGB(mIconColor, Color.WHITE, mDozeAmount); in updateDarkTint()
|
D | ScrimController.java | 41 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/ |
D | Codec2Mapper.cpp | 709 *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/ |
D | BubbleExperimentConfig.java | 44 import com.android.internal.graphics.ColorUtils; 237 notifColor = ColorUtils.setAlphaComponent(notifColor, 255); in createFromNotif()
|
D | BubbleViewInfoTask.java | 47 import com.android.internal.graphics.ColorUtils; 196 info.dotColor = ColorUtils.blendARGB(badgeBitmapInfo.color, in populate()
|
/frameworks/av/media/codec2/components/base/ |
D | Android.bp | 60 "libstagefright_foundation", // for ColorUtils and MIME
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardStatusView.java | 38 import androidx.core.graphics.ColorUtils; 410 final int blendedTextColor = ColorUtils.blendARGB(mTextColor, Color.WHITE, mDarkAmount); in updateDark()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | CodecBase.h | 64 struct CodecBase : public AHandler, /* static */ ColorUtils {
|