Searched refs:mTts (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Settings/src/com/android/settings/tts/ |
D | TextToSpeechSettings.java | 105 private TextToSpeech mTts = null; field in TextToSpeechSettings 164 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); in onCreate() 178 if (mTts == null || mCurrentDefaultLocale == null) { in onResume() 181 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); in onResume() 189 if (mTts == null) { in setTtsUtteranceProgressListener() 192 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { in setTtsUtteranceProgressListener() 209 if (mTts != null) { in onDestroy() 210 mTts.shutdown(); in onDestroy() 211 mTts = null; in onDestroy() 228 mCurrentEngine = mTts.getCurrentEngine(); in initSettings() [all …]
|
D | TtsEngineSettingsFragment.java | 67 private TextToSpeech mTts; field in TtsEngineSettingsFragment 148 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, in onCreate() 161 mTts.shutdown(); in onDestroy() 203 mTts.getCurrentEngine()); in updateVoiceDetails() 351 if (getEngineName().equals(mTts.getCurrentEngine())) { in updateLanguageTo() 353 mTts.setLanguage((locale != null) ? locale : Locale.getDefault()); in updateLanguageTo()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | AccessibilityActivity.java | 76 private TextToSpeech mTts = null; field in AccessibilityActivity 117 mTts = new TextToSpeech(getApplicationContext(), mInitListener); in onCreate() 137 getDisplayNameForEngine(mTts.getCurrentEngine()))); in refreshActionList() 165 mResources, getDisplayNameForEngine(mTts.getCurrentEngine()))); in refreshActionList() 167 if (mTts.getLanguage() != null) { in refreshActionList() 169 mResources, mTts.getLanguage().getDisplayName())); in refreshActionList() 191 if (mTts.getLanguage() != null) { in refreshActionList() 192 String currLang = getLanguageString(mTts.getLanguage()); in refreshActionList() 381 mPreviousEngine = mTts.getCurrentEngine(); in updateDefaultEngine() 384 if (mTts != null) { in updateDefaultEngine() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 89 private TextToSpeech mTts; field in CellBroadcastAlertAudio 131 mTts.speak(mMessageBody, TextToSpeech.QUEUE_FLUSH, null); 170 mTts = null; in onInit() 182 int result = mTts.setLanguage(new Locale(mMessageLanguage)); in setTtsLanguage() 220 if (mTts != null) { in onDestroy() 222 mTts.shutdown(); in onDestroy() 277 if (mTts == null) { in onStartCommand() 278 mTts = new TextToSpeech(this, this); in onStartCommand() 418 } else if (mState == STATE_SPEAKING && mTts != null) { in stop() 420 mTts.stop(); in stop()
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | VoiceDialerActivity.java | 169 private TextToSpeech mTts; field in VoiceDialerActivity 311 mTts.speak(getString(R.string.speak_now_tts), in run() 335 if (mTts == null) { in onInit() 342 mTts.setOnUtteranceCompletedListener(new OnUtteranceCompletedListener()); in onInit() 397 mTts = new TextToSpeech(VoiceDialerActivity.this, new TtsInitListener()); in updateBluetoothParameters() 510 mTts.speak(getString(R.string.no_results_tts), in askToTryAgain() 541 mTts.speak(sentenceSpoken, in performChoice() 908 mTts.speak(getString(R.string.invalid_choice_tts), in onRecognitionSuccess() 964 mTts.speak(builder.toString(), in speakChoices() 1048 mTts.speak(getString(R.string.goodbye_tts), in exitActivity() [all …]
|