/frameworks/av/include/media/stagefright/foundation/ |
H A D | ColorUtils.h | 32 struct ColorUtils { struct in namespace:android 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 [all...] |
/frameworks/support/v4/tests/java/android/support/v4/graphics/ |
H A D | ColorUtilsTest.java | 103 ColorUtils.colorToHSL(entry.rgb, hsl); 150 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 3.0f)); 152 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 4.5f)); 154 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 3.0f)); 156 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 4.5f)); 162 assertEquals(0f, ColorUtils.circularInterpolate(0, 180, 0f), 0f); 163 assertEquals(90f, ColorUtils.circularInterpolate(0, 180, 0.5f), 0f); 164 assertEquals(180f, ColorUtils.circularInterpolate(0, 180, 1f), 0f); 169 assertEquals(180f, ColorUtils.circularInterpolate(180, 0, 0f), 0f); 170 assertEquals(90f, ColorUtils [all...] |
/frameworks/support/design/base/android/support/design/widget/ |
H A D | CircularBorderDrawable.java | 29 import android.support.v4.graphics.ColorUtils; 188 colors[0] = ColorUtils.compositeColors(mTopOuterStrokeColor, mCurrentBorderTintColor); 189 colors[1] = ColorUtils.compositeColors(mTopInnerStrokeColor, mCurrentBorderTintColor); 190 colors[2] = ColorUtils.compositeColors( 191 ColorUtils.setAlphaComponent(mTopInnerStrokeColor, 0), mCurrentBorderTintColor); 192 colors[3] = ColorUtils.compositeColors( 193 ColorUtils.setAlphaComponent(mBottomInnerStrokeColor, 0), mCurrentBorderTintColor); 194 colors[4] = ColorUtils.compositeColors(mBottomInnerStrokeColor, mCurrentBorderTintColor); 195 colors[5] = ColorUtils.compositeColors(mBottomOuterStrokeColor, mCurrentBorderTintColor);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 23 import android.support.v4.graphics.ColorUtils; 89 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor) 101 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { 135 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor);
|
/frameworks/av/include/media/stagefright/ |
H A D | CodecBase.h | 28 #include <media/stagefright/foundation/ColorUtils.h> 40 struct CodecBase : public AHandler, /* static */ ColorUtils {
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | Android.mk | 18 ColorUtils.cpp \
|
H A D | ColorUtils.cpp | 18 #define LOG_TAG "ColorUtils" 25 #include <media/stagefright/foundation/ColorUtils.h> 31 typedef ColorUtils CU; 96 int32_t ColorUtils::wrapColorAspectsIntoColorStandard( 115 status_t ColorUtils::unwrapColorAspectsFromColorStandard( 153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { 167 status_t ColorUtils::unwrapColorAspectsFromColorRange( 193 int32_t ColorUtils::wrapColorAspectsIntoColorTransfer( 209 status_t ColorUtils::unwrapColorAspectsFromColorTransfer( 230 status_t ColorUtils [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 26 import android.support.v4.graphics.ColorUtils; 441 this(ColorUtils.HSLToColor(hsl), population); 463 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl); 497 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha( 499 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha( 504 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha); 505 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha); 510 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha( 512 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha( 517 mBodyTextColor = ColorUtils [all...] |
H A D | ColorCutQuantizer.java | 20 import android.support.v4.graphics.ColorUtils; 430 ColorUtils.colorToHSL(rgb, mTempHsl);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ThemeUtils.java | 22 import android.support.v4.graphics.ColorUtils; 110 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha));
|
H A D | AppCompatDrawableManager.java | 40 import android.support.v4.graphics.ColorUtils; 591 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor); 595 colors[i] = ColorUtils.compositeColors(colorControlHighlight, baseColor);
|
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/ |
H A D | SwatchTests.java | 26 import static android.support.v4.graphics.ColorUtils.HSLToColor; 27 import static android.support.v4.graphics.ColorUtils.calculateContrast;
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | AppCompatBaseViewTest.java | 26 import android.support.v4.graphics.ColorUtils; 397 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 404 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), 469 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 476 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), 590 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen), 597 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorGreen), 604 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen), 613 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorRed), 620 view, ColorUtils [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationCustomViewWrapper.java | 28 import android.support.v4.graphics.ColorUtils; 125 || ColorUtils.calculateLuminance(backgroundColor) > 0.5;
|
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/ |
H A D | AppCompatColorStateListInflater.java | 28 import android.support.v4.graphics.ColorUtils; 169 return ColorUtils.setAlphaComponent(color, Math.round(Color.alpha(color) * alphaMod));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewHeader.java | 36 import android.support.v4.graphics.ColorUtils; 96 ColorUtils.colorToHSL(color, mTmpHSL); 100 mHighlightPaint.setColor(ColorUtils.HSLToColor(mTmpHSL)); 433 ColorUtils.colorToHSL(color, mTmpHSL); 435 mOverlayBackground.setColorAndDim(ColorUtils.HSLToColor(mTmpHSL), dimAlpha);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 25 #include <media/stagefright/foundation/ColorUtils.h> 393 ColorUtils::convertCodecColorAspectsToIsoAspects(
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 29 public final class ColorUtils { class 42 private ColorUtils() {} method in class:ColorUtils
|
/frameworks/av/media/libstagefright/omx/ |
H A D | GraphicBufferSource.cpp | 32 #include <media/stagefright/foundation/ColorUtils.h> 514 if (ColorUtils::convertDataSpaceToV0(dataSpace)) { 550 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(
|
/frameworks/av/media/libstagefright/ |
H A D | Utils.cpp | 160 return transfer == ColorUtils::kColorTransferST2084 161 || transfer == ColorUtils::kColorTransferHLG; 680 ColorUtils::setHDRStaticInfoIntoFormat(*(HDRStaticInfo*)data, msg); 1313 if (ColorUtils::getHDRStaticInfoFromFormat(msg, &info)) {
|
H A D | MPEG4Writer.cpp | 33 #include <media/stagefright/foundation/ColorUtils.h> 2974 ColorUtils::convertCodecColorAspectsToIsoAspects(
|
H A D | MPEG4Extractor.cpp | 37 #include <media/stagefright/foundation/ColorUtils.h> 2799 ColorUtils::convertIsoColorAspectsToCodecAspects(
|
H A D | ACodec.cpp | 3428 || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem( 3479 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(aspects, origAspects)) {
|
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 27 #include <media/stagefright/foundation/ColorUtils.h> 1112 ColorUtils::convertIsoColorAspectsToCodecAspects(
|