Home
last modified time | relevance | path

Searched refs:CaptionStyle (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionHelper.java27 import android.view.accessibility.CaptioningManager.CaptionStyle;
122 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContentResolver); in getBackgroundColor()
123 return attrs.hasBackgroundColor() ? attrs.backgroundColor : CaptionStyle.COLOR_UNSPECIFIED; in getBackgroundColor()
138 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContentResolver); in getForegroundColor()
139 return attrs.hasForegroundColor() ? attrs.foregroundColor : CaptionStyle.COLOR_UNSPECIFIED; in getForegroundColor()
154 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContentResolver); in getWindowColor()
155 return attrs.hasWindowColor() ? attrs.windowColor : CaptionStyle.COLOR_UNSPECIFIED; in getWindowColor()
170 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContentResolver); in getEdgeColor()
186 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContentResolver); in getEdgeType()
206 public CaptionStyle getUserStyle() { in getUserStyle()
DCaptionUtils.java20 import android.view.accessibility.CaptioningManager.CaptionStyle;
32 if (!CaptionStyle.hasColor(value)) { in parseColor()
34 colorValue = CaptionStyle.COLOR_UNSPECIFIED; in parseColor()
52 if (!CaptionStyle.hasColor(value)) { in parseOpacity()
76 if (!CaptionStyle.hasColor(colorValue)) { in mergeColorOpacity()
DCaptioningForegroundColorController.java21 import android.view.accessibility.CaptioningManager.CaptionStyle;
34 private int mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED;
64 final boolean isNonDefaultColor = CaptionStyle.hasColor(value); in onValueChanged()
75 final int lastOpacity = mCachedNonDefaultOpacity != CaptionStyle.COLOR_UNSPECIFIED in getNonDefaultOpacity()
78 mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED; in getNonDefaultOpacity()
DCaptioningBackgroundColorController.java22 import android.view.accessibility.CaptioningManager.CaptionStyle;
35 private int mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED;
72 final boolean isNonDefaultColor = CaptionStyle.hasColor(value); in onValueChanged()
83 final int lastOpacity = mCachedNonDefaultOpacity != CaptionStyle.COLOR_UNSPECIFIED in getNonDefaultOpacity()
86 mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED; in getNonDefaultOpacity()
DCaptioningWindowColorController.java22 import android.view.accessibility.CaptioningManager.CaptionStyle;
35 private int mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED;
72 final boolean isNonDefaultColor = CaptionStyle.hasColor(value); in onValueChanged()
83 final int lastOpacity = mCachedNonDefaultOpacity != CaptionStyle.COLOR_UNSPECIFIED in getNonDefaultOpacity()
86 mCachedNonDefaultOpacity = CaptionStyle.COLOR_UNSPECIFIED; in getNonDefaultOpacity()
DCaptioningTypefaceController.java21 import android.view.accessibility.CaptioningManager.CaptionStyle;
48 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContext.getContentResolver()); in updateState()
DCaptioningPreviewPreferenceController.java24 import android.view.accessibility.CaptioningManager.CaptionStyle;
121 final CaptionStyle style = mCaptionHelper.getUserStyle(); in refreshPreviewText()
125 final CaptionStyle defStyle = CaptionStyle.DEFAULT; in refreshPreviewText()
DPresetPreference.java22 import android.view.accessibility.CaptioningManager.CaptionStyle;
44 return getValue() != CaptionStyle.PRESET_CUSTOM in shouldDisableDependents()
DEdgeTypePreference.java24 import android.view.accessibility.CaptioningManager.CaptionStyle;
51 return getValue() == CaptionStyle.EDGE_TYPE_NONE || super.shouldDisableDependents(); in shouldDisableDependents()
DCaptioningCustomController.java93 mCaptionHelper.getRawUserStyle() == CaptioningManager.CaptionStyle.PRESET_CUSTOM; in refreshShowingCustom()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DCaptioningManagerCompat.java26 public static final class CaptionStyle { class in CaptioningManagerCompat
27 public static final CaptioningManager.CaptionStyle DEFAULT =
28 CaptioningManager.CaptionStyle.DEFAULT;
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DCaptionHelperTest.java32 import android.view.accessibility.CaptioningManager.CaptionStyle;
171 mCaptionHelper.setEdgeType(CaptionStyle.EDGE_TYPE_OUTLINE); in setEdgeType_shouldReturnSpecificType()
174 assertThat(edgeType).isEqualTo(CaptionStyle.EDGE_TYPE_OUTLINE); in setEdgeType_shouldReturnSpecificType()
179 mCaptionHelper.setRawUserStyle(CaptionStyle.PRESET_CUSTOM); in setRawUserStyle_shouldReturnSpecificStyle()
183 assertThat(style).isEqualTo(CaptionStyle.PRESET_CUSTOM); in setRawUserStyle_shouldReturnSpecificStyle()
DCaptioningEdgeTypeControllerTest.java30 import android.view.accessibility.CaptioningManager.CaptionStyle;
88 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, CaptionStyle.EDGE_TYPE_OUTLINE); in getSummary_outlineValue_shouldReturnOutline()
99 mPreference.setValue(CaptionStyle.EDGE_TYPE_OUTLINE); in setOutlineValue_shouldReturnOutline()
110 mController.onValueChanged(mPreference, CaptionStyle.EDGE_TYPE_OUTLINE); in onValueChanged_shouldSetCaptionEnabled()
DCaptioningPresetControllerTest.java30 import android.view.accessibility.CaptioningManager.CaptionStyle;
88 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, CaptionStyle.PRESET_CUSTOM); in getSummary_customValue_shouldReturnCustom()
99 mPreference.setValue(CaptionStyle.PRESET_CUSTOM); in setCustomValue_shouldReturnCustom()
110 mController.onValueChanged(mPreference, CaptionStyle.PRESET_CUSTOM); in onValueChanged_shouldSetCaptionEnabled()
DCaptionUtilsTest.java36 assertThat(color).isEqualTo(CaptioningManager.CaptionStyle.COLOR_UNSPECIFIED); in parseColor_defaultPackedColor_shouldReturnUnspecified()
57 assertThat(color).isEqualTo(CaptioningManager.CaptionStyle.COLOR_UNSPECIFIED); in parseOpacity_defaultPackedColor_shouldReturnUnspecified()
DCaptioningCustomControllerTest.java27 import android.view.accessibility.CaptioningManager.CaptionStyle;
87 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, CaptionStyle.PRESET_CUSTOM); in displayPreference_customValue_shouldIsVisible()
DEdgeTypePreferenceTest.java29 import android.view.accessibility.CaptioningManager.CaptionStyle;
68 mEdgeTypePreference.setValue(CaptionStyle.EDGE_TYPE_NONE); in shouldDisableDependents_edgeTypeNone_returnTrue()
DCaptioningForegroundColorControllerTest.java30 import android.view.accessibility.CaptioningManager.CaptionStyle;
113 assertThat(CaptionStyle.hasColor(captionHelper.getForegroundColor())).isFalse(); in setNoneColorValue_shouldNotHaveColor()
DCaptioningBackgroundColorControllerTest.java30 import android.view.accessibility.CaptioningManager.CaptionStyle;
113 assertThat(CaptionStyle.hasColor(captionHelper.getBackgroundColor())).isFalse(); in setNoneColorValue_shouldNotHaveColor()
DCaptioningWindowColorControllerTest.java30 import android.view.accessibility.CaptioningManager.CaptionStyle;
114 assertThat(CaptionStyle.hasColor(captionHelper.getWindowColor())).isFalse(); in setNoneColorValue_shouldNotHaveColor()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionSettingsFragment.java60 public void onUserStyleChanged(@NonNull CaptioningManager.CaptionStyle userStyle) {
184 final CaptioningManager.CaptionStyle style = mCaptioningManager.getUserStyle(); in refreshPreviewText()
188 final CaptioningManager.CaptionStyle defStyle = in refreshPreviewText()
189 CaptioningManager.CaptionStyle.DEFAULT; in refreshPreviewText()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java39 import android.view.accessibility.CaptioningManager.CaptionStyle;
121 public void onUserStyleChanged(CaptionStyle userStyle) { in onUserStyleChanged()