Searched refs:mTts (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Settings/src/com/android/settings/tts/ |
D | TextToSpeechSettings.java | 123 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() 231 …mTts.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 …]
|
D | TtsEnginePreferenceFragment.java | 47 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/ |
D | TextToSpeechFragment.java | 106 private TextToSpeech mTts = null; field in TextToSpeechFragment 171 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate() 182 if (mTts == null || mCurrentDefaultLocale == null) { in onResume() 185 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); in onResume() 193 if (mTts == null) { in setTtsUtteranceProgressListener() 196 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { in setTtsUtteranceProgressListener() 213 if (mTts != null) { in onDestroy() 214 mTts.shutdown(); in onDestroy() 215 mTts = null; in onDestroy() 233 mCurrentEngine = mTts.getCurrentEngine(); in initSettings() [all …]
|
D | TtsEngineSettingsFragment.java | 84 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/ |
D | CellBroadcastAlertAudio.java | 97 private TextToSpeech mTts; field in CellBroadcastAlertAudio 156 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID); 192 mTts.setOnUtteranceCompletedListener(this); in onInit() 197 mTts = null; in onInit() 210 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage() 213 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage() 224 int result = mTts.setLanguage(new Locale(language)); in setTtsLanguage() 267 if (mTts != null) { in onDestroy() 269 mTts.shutdown(); in onDestroy() 334 if (mTts == null) { in onStartCommand() [all …]
|