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.java138 private TextToSpeech mTts = null; field in TextToSpeechSettings
208 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate()
222 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
225 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); in onResume()
233 if (mTts == null) { in setTtsUtteranceProgressListener()
236 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { in setTtsUtteranceProgressListener()
253 if (mTts != null) { in onDestroy()
254 mTts.shutdown(); in onDestroy()
255 mTts = null; in onDestroy()
278 if (mTts != null) { in initSettings()
[all …]
DTtsEngineSettingsFragment.java68 private TextToSpeech mTts; field in TtsEngineSettingsFragment
154 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, in onCreate()
167 mTts.shutdown(); in onDestroy()
209 mTts.getCurrentEngine()); in updateVoiceDetails()
357 if (getEngineName().equals(mTts.getCurrentEngine())) { in updateLanguageTo()
359 mTts.setLanguage((locale != null) ? locale : Locale.getDefault()); in updateLanguageTo()
/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.java103 private TextToSpeech mTts; field in CellBroadcastAlertAudio
159 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID);
195 mTts.setOnUtteranceCompletedListener(this); in onInit()
200 mTts = null; in onInit()
213 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
216 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
227 int result = mTts.setLanguage(new Locale(language)); in setTtsLanguage()
270 if (mTts != null) { in onDestroy()
272 mTts.shutdown(); in onDestroy()
336 if (mTts == null) { in onStartCommand()
[all …]