Searched refs:ColorUtils (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/av/include/media/stagefright/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
187 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
190 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
191 case ColorUtils::kColorStandardBT709: return "BT709";
192 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
193 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
194 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
195 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
196 case ColorUtils::kColorStandardBT2020: return "BT2020";
197 case ColorUtils
[all...]
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
187 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
190 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
191 case ColorUtils::kColorStandardBT709: return "BT709";
192 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
193 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
194 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
195 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
196 case ColorUtils::kColorStandardBT2020: return "BT2020";
197 case ColorUtils
[all...]
/frameworks/av/media/libstagefright/include/foundation/
H A DColorUtils.h32 struct ColorUtils { struct in namespace:android
187 inline static const char *asString(android::ColorUtils::ColorStandard i, const char *def = "??") {
190 case ColorUtils::kColorStandardUnspecified: return "Unspecified";
191 case ColorUtils::kColorStandardBT709: return "BT709";
192 case ColorUtils::kColorStandardBT601_625: return "BT601_625";
193 case ColorUtils::kColorStandardBT601_625_Unadjusted: return "BT601_625_Unadjusted";
194 case ColorUtils::kColorStandardBT601_525: return "BT601_525";
195 case ColorUtils::kColorStandardBT601_525_Unadjusted: return "BT601_525_Unadjusted";
196 case ColorUtils::kColorStandardBT2020: return "BT2020";
197 case ColorUtils
[all...]
/frameworks/support/core-utils/tests/java/android/support/v4/graphics/
H A DColorUtilsTest.java104 ColorUtils.colorToHSL(entry.rgb, hsl);
151 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 3.0f));
153 ColorUtils.calculateMinimumAlpha(Color.BLACK, entry.rgb, 4.5f));
155 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 3.0f));
157 ColorUtils.calculateMinimumAlpha(Color.WHITE, entry.rgb, 4.5f));
163 assertEquals(0f, ColorUtils.circularInterpolate(0, 180, 0f), 0f);
164 assertEquals(90f, ColorUtils.circularInterpolate(0, 180, 0.5f), 0f);
165 assertEquals(180f, ColorUtils.circularInterpolate(0, 180, 1f), 0f);
170 assertEquals(180f, ColorUtils.circularInterpolate(180, 0, 0f), 0f);
171 assertEquals(90f, ColorUtils
[all...]
/frameworks/support/design/base/android/support/design/widget/
H A DCircularBorderDrawable.java29 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/appcompat/tests/src/android/support/v7/res/content/
H A DAppCompatResourcesTestCase.java26 import android.support.v4.graphics.ColorUtils;
57 final int expectedDisabled = ColorUtils.setAlphaComponent(colorForegound,
/frameworks/av/media/libstagefright/foundation/
H A DColorUtils.cpp18 #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/base/core/java/com/android/internal/graphics/palette/
H A DPalette.java31 import com.android.internal.graphics.ColorUtils;
474 this(ColorUtils.HSLToColor(hsl), population);
496 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl);
530 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha(
532 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha(
537 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha);
538 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha);
543 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha(
545 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha(
550 mBodyTextColor = ColorUtils
[all...]
H A DColorCutQuantizer.java45 import com.android.internal.graphics.ColorUtils;
450 ColorUtils.colorToHSL(rgb, mTempHsl);
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java26 import android.support.v4.graphics.ColorUtils;
469 this(ColorUtils.HSLToColor(hsl), population);
491 ColorUtils.RGBToHSL(mRed, mGreen, mBlue, mHsl);
525 final int lightBodyAlpha = ColorUtils.calculateMinimumAlpha(
527 final int lightTitleAlpha = ColorUtils.calculateMinimumAlpha(
532 mBodyTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightBodyAlpha);
533 mTitleTextColor = ColorUtils.setAlphaComponent(Color.WHITE, lightTitleAlpha);
538 final int darkBodyAlpha = ColorUtils.calculateMinimumAlpha(
540 final int darkTitleAlpha = ColorUtils.calculateMinimumAlpha(
545 mBodyTextColor = ColorUtils
[all...]
H A DColorCutQuantizer.java20 import android.support.v4.graphics.ColorUtils;
432 ColorUtils.colorToHSL(rgb, mTempHsl);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DAppCompatBaseImageViewTest.java32 import android.support.v4.graphics.ColorUtils;
200 ColorUtils.compositeColors(emeraldDefault, sourceColor),
207 view, ColorUtils.compositeColors(emeraldDisabled, sourceColor),
315 view, ColorUtils.compositeColors(emeraldDefault, colorGreen),
322 view, ColorUtils.compositeColors(emeraldDisabled, colorGreen),
329 view, ColorUtils.compositeColors(emeraldDefault, colorGreen),
338 view, ColorUtils.compositeColors(emeraldDefault, colorRed),
345 view, ColorUtils.compositeColors(emeraldDisabled, colorRed),
352 view, ColorUtils.compositeColors(emeraldDefault, colorRed),
H A DAppCompatBaseViewTest.java40 import android.support.v4.graphics.ColorUtils;
400 ColorUtils.compositeColors(emeraldDefault, backgroundColor),
407 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor),
469 ColorUtils.compositeColors(emeraldDefault, backgroundColor),
476 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor),
587 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen),
594 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColorGreen),
601 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorGreen),
610 view, ColorUtils.compositeColors(emeraldDefault, backgroundColorRed),
617 view, ColorUtils
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DThemeUtils.java22 import android.support.v4.graphics.ColorUtils;
110 return ColorUtils.setAlphaComponent(color, Math.round(originalAlpha * alpha));
/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/
H A DSwatchTests.java19 import static android.support.v4.graphics.ColorUtils.HSLToColor;
20 import static android.support.v4.graphics.ColorUtils.calculateContrast;
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java23 import android.support.v4.graphics.ColorUtils;
96 if (ColorUtils.calculateContrast(COLOR_WHITE_ON_DARK_BACKGROUND, primaryColor)
108 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) {
142 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationViewWrapper.java23 import android.support.v4.graphics.ColorUtils;
118 || ColorUtils.calculateLuminance(backgroundColor) > 0.5;
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DAppCompatMenuItemIconTintingTest.java36 import android.support.v4.graphics.ColorUtils;
251 secondItem.getIcon(), ColorUtils.compositeColors(emeraldDefault, iconColorBlack),
259 secondItem.getIcon(), ColorUtils.compositeColors(emeraldDefault, iconColorRed),
/frameworks/av/include/media/stagefright/
H A DSoftVideoDecoderOMXComponent.h24 #include <media/stagefright/foundation/ColorUtils.h>
H A DCodecBase.h32 #include <media/stagefright/foundation/ColorUtils.h>
49 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/av/media/libstagefright/foundation/include/
H A DSoftVideoDecoderOMXComponent.h24 #include <media/stagefright/foundation/ColorUtils.h>
H A DCodecBase.h32 #include <media/stagefright/foundation/ColorUtils.h>
49 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/av/media/libstagefright/include/
H A DSoftVideoDecoderOMXComponent.h24 #include <media/stagefright/foundation/ColorUtils.h>
H A DCodecBase.h32 #include <media/stagefright/foundation/ColorUtils.h>
49 struct CodecBase : public AHandler, /* static */ ColorUtils {
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
H A DAppCompatColorStateListInflater.java28 import android.support.v4.graphics.ColorUtils;
169 return ColorUtils.setAlphaComponent(color, Math.round(Color.alpha(color) * alphaMod));

Completed in 1771 milliseconds

12