Home
last modified time | relevance | path

Searched refs:mEnginesHelper (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DPreferredEngineEntryPreferenceController.java35 private TtsEngines mEnginesHelper; field in PreferredEngineEntryPreferenceController
40 mEnginesHelper = new TtsEngines(context); in PreferredEngineEntryPreferenceController()
51 TextToSpeech.EngineInfo info = mEnginesHelper.getEngineInfo( in onCreateInternal()
52 mEnginesHelper.getDefaultEngine()); in onCreateInternal()
53 Intent subSettingsIntent = mEnginesHelper.getSettingsIntent(info.name); in onCreateInternal()
64 TextToSpeech.EngineInfo info = mEnginesHelper.getEngineInfo( in updateState()
65 mEnginesHelper.getDefaultEngine()); in updateState()
DTtsPlaybackSettingsManager.java67 private final TtsEngines mEnginesHelper; field in TtsPlaybackSettingsManager
73 mEnginesHelper = enginesHelper; in TtsPlaybackSettingsManager()
115 if (!mEnginesHelper.isLocaleSetToDefaultForEngine(mTts.getCurrentEngine())) { in getStoredTtsLocale()
116 currentLocale = mEnginesHelper.getLocalePrefForEngine(mTts.getCurrentEngine()); in getStoredTtsLocale()
131 return mEnginesHelper.parseLocaleString(mTts.getVoice().getLocale().toString()); in getEffectiveTtsLocale()
143 mEnginesHelper.updateLocalePrefForEngine(mTts.getCurrentEngine(), newLocale); in updateTtsLocale()
DPreferredEngineOptionsPreferenceController.java41 private final TtsEngines mEnginesHelper; field in PreferredEngineOptionsPreferenceController
49 mEnginesHelper = new TtsEngines(getContext()); in PreferredEngineOptionsPreferenceController()
66 for (TextToSpeech.EngineInfo engine : mEnginesHelper.getEngines()) { in onCreateInternal()
72 TextToSpeech.EngineInfo current = mEnginesHelper.getEngineInfo( in onCreateInternal()
107 TextToSpeech.EngineInfo current = mEnginesHelper.getEngineInfo(mTts.getCurrentEngine()); in updateState()
DTtsPlaybackPreferenceController.java68 private final TtsEngines mEnginesHelper; field in TtsPlaybackPreferenceController
94 mEnginesHelper = new TtsEngines(context); in TtsPlaybackPreferenceController()
110 mTtsPlaybackManager = new TtsPlaybackSettingsManager(getContext(), mTts, mEnginesHelper); in onCreateInternal()
330 updateLanguageTo(!TextUtils.isEmpty(localeString) ? mEnginesHelper.parseLocaleString( in initDefaultLanguagePreference()
342 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLanguagePreference()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DTtsPlaybackSettingsManagerTest.java61 private TtsEngines mEnginesHelper; field in TtsPlaybackSettingsManagerTest
67 ShadowTtsEngines.setInstance(mEnginesHelper); in setUp()
70 mPlaybackSettingsManager = new TtsPlaybackSettingsManager(mContext, mTts, mEnginesHelper); in setUp()
159 when(mEnginesHelper.isLocaleSetToDefaultForEngine(ENGINE_NAME)).thenReturn(false); in getStoredTtsLocale_localeIsNotDefaultForEngine_returnsLocale()
160 when(mEnginesHelper.getLocalePrefForEngine(ENGINE_NAME)).thenReturn(Locale.CHINESE); in getStoredTtsLocale_localeIsNotDefaultForEngine_returnsLocale()
167 when(mEnginesHelper.isLocaleSetToDefaultForEngine(ENGINE_NAME)).thenReturn(true); in getStoredTtsLocale_localeIsDefaultForEngine_returnsNull()
191 verify(mEnginesHelper).updateLocalePrefForEngine(ENGINE_NAME, Locale.KOREAN); in updateTtsLocale_nonNullLocale_correctResultCode_updatesLocalePref()
199 verify(mEnginesHelper, never()).updateLocalePrefForEngine(any(), any()); in updateTtsLocale_nonNullLocale_wrongResultCode_doesNotUpdateLocalePref()
207 when(mEnginesHelper.parseLocaleString(Locale.FRANCE.toString())).thenReturn(Locale.FRANCE); in speakSampleText_requiresNetworkConnection_languageNotAvailable_showsAlert()
DPreferredEngineEntryPreferenceControllerTest.java59 private TtsEngines mEnginesHelper; field in PreferredEngineEntryPreferenceControllerTest
64 ShadowTtsEngines.setInstance(mEnginesHelper); in setUp()
73 when(mEnginesHelper.getSettingsIntent(ENGINE_INFO.name)).thenReturn(intent); in setUp()
74 when(mEnginesHelper.getEngineInfo(ENGINE_INFO.name)).thenReturn( in setUp()
76 when(mEnginesHelper.getDefaultEngine()).thenReturn(ENGINE_INFO.name); in setUp()
DPreferredEngineOptionsPreferenceControllerTest.java69 private TtsEngines mEnginesHelper; field in PreferredEngineOptionsPreferenceControllerTest
76 ShadowTtsEngines.setInstance(mEnginesHelper); in setUp()
85 when(mEnginesHelper.getEngines()).thenReturn( in setUp()
87 when(mEnginesHelper.getEngineInfo(OTHER_ENGINE_INFO.name)).thenReturn(OTHER_ENGINE_INFO); in setUp()
88 when(mEnginesHelper.getEngineInfo(CURRENT_ENGINE_INFO.name)).thenReturn( in setUp()
DTtsPlaybackPreferenceControllerTest.java90 private TtsEngines mEnginesHelper; field in TtsPlaybackPreferenceControllerTest
96 ShadowTtsEngines.setInstance(mEnginesHelper); in setUp()
123 when(mEnginesHelper.parseLocaleString(VOICE.getLocale().toString())).thenReturn( in setUp()
125 when(mEnginesHelper.parseLocaleString(Locale.CANADA.toString())).thenReturn(Locale.CANADA); in setUp()
126 when(mEnginesHelper.parseLocaleString(Locale.KOREA.toString())).thenReturn(Locale.KOREA); in setUp()
382 when(mEnginesHelper.parseLocaleString(any())).thenReturn(null); in refreshUi_initialized_defaultLocaleIsNull_disablesPreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java83 private TtsEngines mEnginesHelper; field in TtsEngineSettingsFragment
148 final Intent settingsIntent = mEnginesHelper.getSettingsIntent(getEngineName()); in onCreatePreferences()
179 mEnginesHelper = new TtsEngines(getActivity()); in onCreate()
272 if (!mEnginesHelper.isLocaleSetToDefaultForEngine(getEngineName())) { in updateDefaultLocalePref()
273 currentLocale = mEnginesHelper.getLocalePrefForEngine(getEngineName()); in updateDefaultLocalePref()
279 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
352 mEnginesHelper.parseLocaleString(localeString) : null)); in onPreferenceChange()
375 mEnginesHelper.updateLocalePrefForEngine(getEngineName(), locale); in updateLanguageTo()
DTextToSpeechFragment.java109 private TtsEngines mEnginesHelper = null; field in TextToSpeechFragment
174 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
239 List<TextToSpeech.EngineInfo> engines = mEnginesHelper.getEngines(); in initSettings()
275 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
600 final TextToSpeech.EngineInfo engineInfo = mEnginesHelper.getEngineInfo(engine); in onVoiceDataIntegrityCheckDone()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTextToSpeechSettings.java126 private TtsEngines mEnginesHelper = null; field in TextToSpeechSettings
163 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
326 EngineInfo info = mEnginesHelper.getEngineInfo(mCurrentEngine); in initSettings()
390 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
499 if (!mEnginesHelper.isLocaleSetToDefaultForEngine(mTts.getCurrentEngine())) { in updateDefaultLocalePref()
500 currentLocale = mEnginesHelper.getLocalePrefForEngine(mTts.getCurrentEngine()); in updateDefaultLocalePref()
506 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
625 ? mEnginesHelper.parseLocaleString(localeString) in onPreferenceChange()
650 mEnginesHelper.updateLocalePrefForEngine(mTts.getCurrentEngine(), locale); in updateLanguageTo()
763 EngineInfo info = mEnginesHelper.getEngineInfo(mCurrentEngine); in onGearClick()
[all …]
DTtsEnginePreferenceFragment.java52 private TtsEngines mEnginesHelper = null; field in TtsEnginePreferenceFragment
61 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
89 List<EngineInfo> engines = mEnginesHelper.getEngines(); in initSettings()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java126 private TtsEngines mEnginesHelper = null; field in TextToSpeechSettings
163 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
326 EngineInfo info = mEnginesHelper.getEngineInfo(mCurrentEngine); in initSettings()
390 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
499 if (!mEnginesHelper.isLocaleSetToDefaultForEngine(mTts.getCurrentEngine())) { in updateDefaultLocalePref()
500 currentLocale = mEnginesHelper.getLocalePrefForEngine(mTts.getCurrentEngine()); in updateDefaultLocalePref()
506 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
625 ? mEnginesHelper.parseLocaleString(localeString) in onPreferenceChange()
650 mEnginesHelper.updateLocalePrefForEngine(mTts.getCurrentEngine(), locale); in updateLanguageTo()
763 EngineInfo info = mEnginesHelper.getEngineInfo(mCurrentEngine); in onGearClick()
[all …]
DTtsEnginePreferenceFragment.java52 private TtsEngines mEnginesHelper = null; field in TtsEnginePreferenceFragment
61 mEnginesHelper = new TtsEngines(getActivity().getApplicationContext()); in onCreate()
89 List<EngineInfo> engines = mEnginesHelper.getEngines(); in initSettings()