Home
last modified time | relevance | path

Searched refs:mTts (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java123 private TextToSpeech mTts = null; field in TextToSpeechSettings
201 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate()
214 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
217 if (!mTts.getDefaultEngine().equals(mTts.getCurrentEngine())) { in onResume()
219 mTts.shutdown(); in onResume()
220 mTts = null; in onResume()
224 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onResume()
231mTts.setPitch(android.provider.Settings.Secure.getInt(resolver, TTS_DEFAULT_PITCH, TextToSpeech.En… in onResume()
234 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); in onResume()
242 if (mTts == null) { in setTtsUtteranceProgressListener()
[all …]
DTtsEnginePreferenceFragment.java47 private TextToSpeech mTts = null; field in TtsEnginePreferenceFragment
59 mTts = new TextToSpeech(getActivity().getApplicationContext(), null); in onCreate()
72 if (mTts != null) { in onDestroy()
73 mTts.shutdown(); in onDestroy()
74 mTts = null; in onDestroy()
79 if (mTts != null) { in initSettings()
80 mCurrentEngine = mTts.getCurrentEngine(); in initSettings()
130 mPreviousEngine = mTts.getCurrentEngine(); in updateDefaultEngine()
134 if (mTts != null) { in updateDefaultEngine()
136 mTts.shutdown(); in updateDefaultEngine()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTextToSpeechFragment.java101 private TextToSpeech mTts = null; field in TextToSpeechFragment
166 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate()
177 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
180 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); in onResume()
188 if (mTts == null) { in setTtsUtteranceProgressListener()
191 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { in setTtsUtteranceProgressListener()
208 if (mTts != null) { in onDestroy()
209 mTts.shutdown(); in onDestroy()
210 mTts = null; in onDestroy()
228 mCurrentEngine = mTts.getCurrentEngine(); in initSettings()
[all …]
DTtsEngineSettingsFragment.java84 private TextToSpeech mTts; field in TtsEngineSettingsFragment
178 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, in onCreate()
191 mTts.shutdown(); in onDestroy()
233 mTts.getCurrentEngine()); in updateVoiceDetails()
375 if (getEngineName().equals(mTts.getCurrentEngine())) { in updateLanguageTo()
377 mTts.setLanguage((locale != null) ? locale : Locale.getDefault()); in updateLanguageTo()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java93 private TextToSpeech mTts; field in CellBroadcastAlertAudio
157 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID);
193 mTts.setOnUtteranceCompletedListener(this); in onInit()
198 mTts = null; in onInit()
211 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
214 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
225 int result = mTts.setLanguage(new Locale(language)); in setTtsLanguage()
268 if (mTts != null) { in onDestroy()
270 mTts.shutdown(); in onDestroy()
328 if (mTts == null) { in onStartCommand()
[all …]