/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | CaptionHelper.java | 27 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()
|
D | CaptionUtils.java | 20 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()
|
D | CaptioningForegroundColorController.java | 21 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()
|
D | CaptioningBackgroundColorController.java | 22 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()
|
D | CaptioningWindowColorController.java | 22 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()
|
D | CaptioningTypefaceController.java | 21 import android.view.accessibility.CaptioningManager.CaptionStyle; 48 final CaptionStyle attrs = CaptionStyle.getCustomStyle(mContext.getContentResolver()); in updateState()
|
D | CaptioningPreviewPreferenceController.java | 24 import android.view.accessibility.CaptioningManager.CaptionStyle; 121 final CaptionStyle style = mCaptionHelper.getUserStyle(); in refreshPreviewText() 125 final CaptionStyle defStyle = CaptionStyle.DEFAULT; in refreshPreviewText()
|
D | PresetPreference.java | 22 import android.view.accessibility.CaptioningManager.CaptionStyle; 44 return getValue() != CaptionStyle.PRESET_CUSTOM in shouldDisableDependents()
|
D | EdgeTypePreference.java | 24 import android.view.accessibility.CaptioningManager.CaptionStyle; 51 return getValue() == CaptionStyle.EDGE_TYPE_NONE || super.shouldDisableDependents(); in shouldDisableDependents()
|
D | CaptioningCustomController.java | 93 mCaptionHelper.getRawUserStyle() == CaptioningManager.CaptionStyle.PRESET_CUSTOM; in refreshShowingCustom()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | CaptioningManagerCompat.java | 26 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/ |
D | CaptionHelperTest.java | 32 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()
|
D | CaptioningEdgeTypeControllerTest.java | 30 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()
|
D | CaptioningPresetControllerTest.java | 30 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()
|
D | CaptionUtilsTest.java | 36 assertThat(color).isEqualTo(CaptioningManager.CaptionStyle.COLOR_UNSPECIFIED); in parseColor_defaultPackedColor_shouldReturnUnspecified() 57 assertThat(color).isEqualTo(CaptioningManager.CaptionStyle.COLOR_UNSPECIFIED); in parseOpacity_defaultPackedColor_shouldReturnUnspecified()
|
D | CaptioningCustomControllerTest.java | 27 import android.view.accessibility.CaptioningManager.CaptionStyle; 87 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, CaptionStyle.PRESET_CUSTOM); in displayPreference_customValue_shouldIsVisible()
|
D | EdgeTypePreferenceTest.java | 29 import android.view.accessibility.CaptioningManager.CaptionStyle; 68 mEdgeTypePreference.setValue(CaptionStyle.EDGE_TYPE_NONE); in shouldDisableDependents_edgeTypeNone_returnTrue()
|
D | CaptioningForegroundColorControllerTest.java | 30 import android.view.accessibility.CaptioningManager.CaptionStyle; 113 assertThat(CaptionStyle.hasColor(captionHelper.getForegroundColor())).isFalse(); in setNoneColorValue_shouldNotHaveColor()
|
D | CaptioningBackgroundColorControllerTest.java | 30 import android.view.accessibility.CaptioningManager.CaptionStyle; 113 assertThat(CaptionStyle.hasColor(captionHelper.getBackgroundColor())).isFalse(); in setNoneColorValue_shouldNotHaveColor()
|
D | CaptioningWindowColorControllerTest.java | 30 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/ |
D | CaptionSettingsFragment.java | 60 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/ |
D | CaptionWindowLayout.java | 39 import android.view.accessibility.CaptioningManager.CaptionStyle; 121 public void onUserStyleChanged(CaptionStyle userStyle) { in onUserStyleChanged()
|