Home
last modified time | relevance | path

Searched refs:CaptionUtils (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DCaptionUtilsTest.java34 final int color = CaptionUtils.parseColor(0xFFFF00); in parseColor_defaultPackedColor_shouldReturnUnspecified()
41 final int color = CaptionUtils.parseColor(0x00); in parseColor_unrecognizedColor_shouldReturnTransparent()
48 final int color = CaptionUtils.parseColor(0xFFFF0000); in parseColor_redColor_shouldReturnRed()
55 final int color = CaptionUtils.parseOpacity(0xFFFF00); in parseOpacity_defaultPackedColor_shouldReturnUnspecified()
62 final int color = CaptionUtils.parseOpacity(0x00); in parseOpacity_unrecognizedColor_shouldReturnTransparent()
69 final int color = CaptionUtils.parseOpacity(0x80FFFFFF); in parseOpacity_halfTransparentValue_shouldReturnHalfTransparent()
76 final int color = CaptionUtils.mergeColorOpacity(0xFFFF0000, 0x80FFFFFF); in mergeColorOpacity_halfTransparentRedValue_shouldReturnMergeColorOpacityValue()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptioningForegroundOpacityController.java55 final int opacity = CaptionUtils.parseOpacity(foregroundColor); in displayPreference()
63 final int color = CaptionUtils.parseColor(foregroundColor); in onValueChanged()
64 final int merged = CaptionUtils.mergeColorOpacity(color, value); in onValueChanged()
DCaptioningWindowOpacityController.java55 final int opacity = CaptionUtils.parseOpacity(windowColor); in displayPreference()
63 final int color = CaptionUtils.parseColor(windowColor); in onValueChanged()
64 final int merged = CaptionUtils.mergeColorOpacity(color, value); in onValueChanged()
DCaptioningBackgroundOpacityController.java55 final int opacity = CaptionUtils.parseOpacity(backBackgroundColor); in displayPreference()
63 final int color = CaptionUtils.parseColor(backBackgroundColor); in onValueChanged()
64 final int merged = CaptionUtils.mergeColorOpacity(color, value); in onValueChanged()
DCaptioningForegroundColorController.java57 final int color = CaptionUtils.parseColor(foregroundColor); in displayPreference()
66 final int merged = CaptionUtils.mergeColorOpacity(value, opacity); in onValueChanged()
73 final int opacity = CaptionUtils.parseOpacity(foregroundColor); in getNonDefaultOpacity()
DCaptioningBackgroundColorController.java65 final int color = CaptionUtils.parseColor(backBackgroundColor); in displayPreference()
74 final int merged = CaptionUtils.mergeColorOpacity(value, opacity); in onValueChanged()
81 final int opacity = CaptionUtils.parseOpacity(backBackgroundColor); in getNonDefaultOpacity()
DCaptioningWindowColorController.java65 final int color = CaptionUtils.parseColor(windowColor); in displayPreference()
74 final int merged = CaptionUtils.mergeColorOpacity(value, opacity); in onValueChanged()
81 final int opacity = CaptionUtils.parseOpacity(windowColor); in getNonDefaultOpacity()
DCaptionUtils.java23 public final class CaptionUtils { class