Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionSettingsFragment.java50 private CaptioningManager mCaptioningManager; field in CaptionSettingsFragment
107 mCaptioningManager = in onCreate()
147 mCaptioningManager.addCaptioningChangeListener (mCaptionChangeListener); in onStart()
156 mCaptioningManager.removeCaptioningChangeListener (mCaptionChangeListener); in onStop()
161 mFontScale = mCaptioningManager.getFontScale(); in loadCaptionSettings()
162 mStyleId = mCaptioningManager.getRawUserStyle(); in loadCaptionSettings()
163 mLocale = mCaptioningManager.getLocale(); in loadCaptionSettings()
168 boolean enabled = mCaptioningManager.isEnabled(); in refreshPreviewText()
184 final CaptioningManager.CaptionStyle style = mCaptioningManager.getUserStyle(); in refreshPreviewText()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionHelper.java46 private final CaptioningManager mCaptioningManager; field in CaptionHelper
51 mCaptioningManager = context.getSystemService(CaptioningManager.class); in CaptionHelper()
74 return mCaptioningManager.isEnabled(); in isEnabled()
88 final float fontScale = mCaptioningManager.getFontScale(); in applyCaptionProperties()
100 final Locale locale = mCaptioningManager.getLocale(); in applyCaptionProperties()
202 return mCaptioningManager.getRawUserStyle(); in getRawUserStyle()
207 return mCaptioningManager.getUserStyle(); in getUserStyle()
212 return mCaptioningManager.getLocale(); in getLocale()
DCaptioningAppearancePreferenceController.java31 private final CaptioningManager mCaptioningManager; field in CaptioningAppearancePreferenceController
35 mCaptioningManager = context.getSystemService(CaptioningManager.class); in CaptioningAppearancePreferenceController()
64 final float fontScale = mCaptioningManager.getFontScale(); in geFontScaleSummary()
74 final int preset = mCaptioningManager.getRawUserStyle(); in getPresetSummary()
DCaptioningFontSizeController.java32 private final CaptioningManager mCaptioningManager; field in CaptioningFontSizeController
37 mCaptioningManager = context.getSystemService(CaptioningManager.class); in CaptioningFontSizeController()
50 final float fontSize = mCaptioningManager.getFontScale(); in updateState()
DCaptioningLocalePreferenceController.java32 private final CaptioningManager mCaptioningManager; field in CaptioningLocalePreferenceController
36 mCaptioningManager = context.getSystemService(CaptioningManager.class); in CaptioningLocalePreferenceController()
48 final String rawLocale = mCaptioningManager.getRawLocale(); in displayPreference()
/packages/apps/TV/src/com/android/tv/util/
DCaptionSettings.java36 private final CaptioningManager mCaptioningManager; field in CaptionSettings
42 mCaptioningManager = in CaptionSettings()
49 Locale l = mCaptioningManager.getLocale(); in getSystemLanguage()
60 Locale l = mCaptioningManager.getLocale(); in getSystemPreferenceLanguageList()
90 return mCaptioningManager.isEnabled(); in isSystemSettingEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DCaptionHelperTest.java58 private CaptioningManager mCaptioningManager; field in CaptionHelperTest
70 when(mContext.getSystemService(CaptioningManager.class)).thenReturn(mCaptioningManager); in setUp()
78 when(mCaptioningManager.getFontScale()).thenReturn(fontScale); in applyCaptionProperties_verifyAction()
93 when(mCaptioningManager.getFontScale()).thenReturn(fontScale); in applyCaptionProperties_withoutPreviewWindow_verifyAction()
106 when(mCaptioningManager.getLocale()).thenReturn(Locale.US); in applyCaptionProperties_localeUS_verifyAction()
117 when(mCaptioningManager.isEnabled()).thenReturn(false); in enableCaptioningManager_shouldSetCaptionEnabled()
128 when(mCaptioningManager.isEnabled()).thenReturn(true); in disableCaptioningManager_shouldSetCaptionDisabled()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DCaptioningManagerCompat.java20 private final CaptioningManager mCaptioningManager; field in CaptioningManagerCompat
23 mCaptioningManager = captioningManager; in CaptioningManagerCompat()
32 return mCaptioningManager.getRawUserStyle(); in getRawUserStyle()