/frameworks/av/include/media/stagefright/foundation/ |
D | ColorUtils.h | 32 struct ColorUtils { struct 181 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") { 184 case ColorUtils::kColorStandardUnspecified: return "Unspecified"; 185 case ColorUtils::kColorStandardBT709: return "BT709"; 186 case ColorUtils::kColorStandardBT601_625: return "BT601_625"; 187 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted"; 188 case ColorUtils::kColorStandardBT601_525: return "BT601_525"; 189 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted"; 190 case ColorUtils::kColorStandardBT2020: return "BT2020"; 191 case ColorUtils::kColorStandardBT2020Constant: return "BT2020Constant"; [all …]
|
/frameworks/support/v4/tests/java/android/support/v4/graphics/ |
D | ColorUtilsTest.java | 103 ColorUtils.colorToHSL(entry.rgb, hsl); in testColorToHslLimits() 150 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 3.0f)); in testMinAlphas() 152 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 4.5f)); in testMinAlphas() 154 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 3.0f)); in testMinAlphas() 156 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 4.5f)); in testMinAlphas() 162 assertEquals(0f, ColorUtils.circularInterpolate(0, 180, 0f), 0f); in testCircularInterpolationForwards() 163 assertEquals(90f, ColorUtils.circularInterpolate(0, 180, 0.5f), 0f); in testCircularInterpolationForwards() 164 assertEquals(180f, ColorUtils.circularInterpolate(0, 180, 1f), 0f); in testCircularInterpolationForwards() 169 assertEquals(180f, ColorUtils.circularInterpolate(180, 0, 0f), 0f); in testCircularInterpolationBackwards() 170 assertEquals(90f, ColorUtils.circularInterpolate(180, 0, 0.5f), 0f); in testCircularInterpolationBackwards() [all …]
|
/frameworks/support/design/base/android/support/design/widget/ |
D | CircularBorderDrawable.java | 29 import android.support.v4.graphics.ColorUtils; 188 colors[0] = ColorUtils.compositeColors(mTopOuterStrokeColor, mCurrentBorderTintColor); in createGradientShader() 189 colors[1] = ColorUtils.compositeColors(mTopInnerStrokeColor, mCurrentBorderTintColor); in createGradientShader() 190 colors[2] = ColorUtils.compositeColors( in createGradientShader() 191 ColorUtils.setAlphaComponent(mTopInnerStrokeColor, 0), mCurrentBorderTintColor); in createGradientShader() 192 colors[3] = ColorUtils.compositeColors( in createGradientShader() 193 ColorUtils.setAlphaComponent(mBottomInnerStrokeColor, 0), mCurrentBorderTintColor); in createGradientShader() 194 colors[4] = ColorUtils.compositeColors(mBottomInnerStrokeColor, mCurrentBorderTintColor); in createGradientShader() 195 colors[5] = ColorUtils.compositeColors(mBottomOuterStrokeColor, mCurrentBorderTintColor); in createGradientShader()
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
D | Palette.java | 26 import android.support.v4.graphics.ColorUtils; 441 this(ColorUtils.HSLToColor(hsl), population); in Swatch() 463 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl); in getHsl() 497 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated() 499 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated() 504 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha); in ensureTextColorsGenerated() 505 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha); in ensureTextColorsGenerated() 510 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated() 512 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha( in ensureTextColorsGenerated() 517 mBodyTextColor = ColorUtils.setAlphaComponent(Color.BLACK, darkBodyAlpha); in ensureTextColorsGenerated() [all …]
|
D | ColorCutQuantizer.java | 20 import android.support.v4.graphics.ColorUtils; 430 ColorUtils.colorToHSL(rgb, mTempHsl); in shouldIgnoreColor()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 31 typedef ColorUtils CU; 96 int32_t ColorUtils::wrapColorAspectsIntoColorStandard( in wrapColorAspectsIntoColorStandard() 115 status_t ColorUtils::unwrapColorAspectsFromColorStandard( in unwrapColorAspectsFromColorStandard() 153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange() 167 status_t ColorUtils::unwrapColorAspectsFromColorRange( in unwrapColorAspectsFromColorRange() 193 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer( in wrapColorAspectsIntoColorTransfer() 209 status_t ColorUtils::unwrapColorAspectsFromColorTransfer( in unwrapColorAspectsFromColorTransfer() 230 status_t ColorUtils::convertPlatformColorAspectsToCodecAspects( in convertPlatformColorAspectsToCodecAspects() 240 status_t ColorUtils::convertCodecColorAspectsToPlatformAspects( in convertCodecColorAspectsToPlatformAspects() 310 void ColorUtils::convertCodecColorAspectsToIsoAspects( in convertCodecColorAspectsToIsoAspects() [all …]
|
D | Android.mk | 18 ColorUtils.cpp \
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | AppCompatBaseViewTest.java | 26 import android.support.v4.graphics.ColorUtils; 397 ColorUtils.compositeColors(emeraldDefault, backgroundColor), in testBackgroundTintingAcrossModeChange() 404 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), in testBackgroundTintingAcrossModeChange() 469 ColorUtils.compositeColors(emeraldDefault, backgroundColor), in testBackgroundTintingViewCompatAcrossModeChange() 476 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), in testBackgroundTintingViewCompatAcrossModeChange() 590 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen), in testBackgroundTranslucentTintingAcrossBackgroundChange() 597 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorGreen), in testBackgroundTranslucentTintingAcrossBackgroundChange() 604 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen), in testBackgroundTranslucentTintingAcrossBackgroundChange() 613 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorRed), in testBackgroundTranslucentTintingAcrossBackgroundChange() 620 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorRed), in testBackgroundTranslucentTintingAcrossBackgroundChange() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 23 import android.support.v4.graphics.ColorUtils; 89 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) in getControllerColor() 101 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { in getButtonTextColor() 135 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor); in setVolumeSliderColor()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ThemeUtils.java | 22 import android.support.v4.graphics.ColorUtils; 110 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha)); in getThemeAttrColor()
|
D | AppCompatDrawableManager.java | 40 import android.support.v4.graphics.ColorUtils; 591 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor); in createButtonColorStateList() 595 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor); in createButtonColorStateList()
|
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/ |
D | SwatchTests.java | 26 import static android.support.v4.graphics.ColorUtils.HSLToColor; 27 import static android.support.v4.graphics.ColorUtils.calculateContrast;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationCustomViewWrapper.java | 28 import android.support.v4.graphics.ColorUtils; 125 || ColorUtils.calculateLuminance(backgroundColor) > 0.5; in isColorLight()
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
D | AppCompatColorStateListInflater.java | 28 import android.support.v4.graphics.ColorUtils; 169 return ColorUtils.setAlphaComponent(color, Math.round(Color.alpha(color) * alphaMod)); in modulateColorAlpha()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskViewHeader.java | 36 import android.support.v4.graphics.ColorUtils; 96 ColorUtils.colorToHSL(color, mTmpHSL); in setColorAndDim() 100 mHighlightPaint.setColor(ColorUtils.HSLToColor(mTmpHSL)); in setColorAndDim() 433 ColorUtils.colorToHSL(color, mTmpHSL); in updateBackgroundColor() 435 mOverlayBackground.setColorAndDim(ColorUtils.HSLToColor(mTmpHSL), dimAlpha); in updateBackgroundColor()
|
/frameworks/av/include/media/stagefright/ |
D | CodecBase.h | 40 struct CodecBase : public AHandler, /* static */ ColorUtils {
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
D | ColorUtils.java | 29 public final class ColorUtils { class 42 private ColorUtils() {} in ColorUtils() method in ColorUtils
|
/frameworks/av/media/libstagefright/omx/ |
D | GraphicBufferSource.cpp | 514 if (ColorUtils::convertDataSpaceToV0(dataSpace)) { in onDataSpaceChanged_l() 550 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem( in onDataSpaceChanged_l()
|
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 160 return transfer == ColorUtils::kColorTransferST2084 in isHdr() 161 || transfer == ColorUtils::kColorTransferHLG; in isHdr() 680 ColorUtils::setHDRStaticInfoIntoFormat(*(HDRStaticInfo*)data, msg); in convertMetaDataToMessage() 1313 if (ColorUtils::getHDRStaticInfoFromFormat(msg, &info)) { in convertMessageToMetaData()
|
D | MPEG4Writer.cpp | 2974 ColorUtils::convertCodecColorAspectsToIsoAspects( in writeColrBox()
|
D | ACodec.cpp | 3428 || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem( in setColorAspectsForVideoEncoder() 3479 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(aspects, origAspects)) { in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
|
D | MPEG4Extractor.cpp | 2799 ColorUtils::convertIsoColorAspectsToCodecAspects( in parseColorInfo()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.cpp | 393 ColorUtils::convertCodecColorAspectsToIsoAspects( in VideoTrackEntry()
|
/frameworks/av/media/libstagefright/matroska/ |
D | MatroskaExtractor.cpp | 1112 ColorUtils::convertIsoColorAspectsToCodecAspects( in getColorInformation()
|
/frameworks/base/docs/html/topic/libraries/support-library/ |
D | revisions.jd | 1657 <li>Added the {@link android.support.v4.graphics.ColorUtils ColorUtils} class
|