Home
last modified time | relevance | path

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

12

/frameworks/av/include/media/stagefright/foundation/
DColorUtils.h32 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/
DColorUtilsTest.java103 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/
DCircularBorderDrawable.java29 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/
DPalette.java26 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 …]
DColorCutQuantizer.java20 import android.support.v4.graphics.ColorUtils;
430 ColorUtils.colorToHSL(rgb, mTempHsl); in shouldIgnoreColor()
/frameworks/av/media/libstagefright/foundation/
DColorUtils.cpp31 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 …]
DAndroid.mk18 ColorUtils.cpp \
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DAppCompatBaseViewTest.java26 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/
DMediaRouterThemeHelper.java23 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/
DThemeUtils.java22 import android.support.v4.graphics.ColorUtils;
110 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha)); in getThemeAttrColor()
DAppCompatDrawableManager.java40 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/
DSwatchTests.java26 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/
DNotificationCustomViewWrapper.java28 import android.support.v4.graphics.ColorUtils;
125 || ColorUtils.calculateLuminance(backgroundColor) > 0.5; in isColorLight()
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
DAppCompatColorStateListInflater.java28 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/
DTaskViewHeader.java36 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/
DCodecBase.h40 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/support/v4/java/android/support/v4/graphics/
DColorUtils.java29 public final class ColorUtils { class
42 private ColorUtils() {} in ColorUtils() method in ColorUtils
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp514 if (ColorUtils::convertDataSpaceToV0(dataSpace)) { in onDataSpaceChanged_l()
550 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem( in onDataSpaceChanged_l()
/frameworks/av/media/libstagefright/
DUtils.cpp160 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()
DMPEG4Writer.cpp2974 ColorUtils::convertCodecColorAspectsToIsoAspects( in writeColrBox()
DACodec.cpp3428 || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem( in setColorAspectsForVideoEncoder()
3479 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(aspects, origAspects)) { in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
DMPEG4Extractor.cpp2799 ColorUtils::convertIsoColorAspectsToCodecAspects( in parseColorInfo()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp393 ColorUtils::convertCodecColorAspectsToIsoAspects( in VideoTrackEntry()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp1112 ColorUtils::convertIsoColorAspectsToCodecAspects( in getColorInformation()
/frameworks/base/docs/html/topic/libraries/support-library/
Drevisions.jd1657 <li>Added the {@link android.support.v4.graphics.ColorUtils ColorUtils} class

12