Searched refs:mTts (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TextToSpeechTests.java | 43 private TextToSpeech mTts; field in TextToSpeechTests 59 assertEquals(MOCK_ENGINE, mTts.getCurrentEngine()); in setUp() 64 if (mTts != null) { in tearDown() 65 mTts.shutdown(); in tearDown() 74 assertNull(mTts.getCurrentEngine()); in testEngineInitialized() 88 …assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "v… in testSetLanguage_delegation() 109 mTts.setLanguage(new Locale("eng", "USA", "variant")); in testSetLanguage_availableLanguage() 132 mTts.setLanguage(Locale.FRANCE); in testSetLanguage_unavailableLanguage() 153 assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE, mTts.isLanguageAvailable(Locale.US)); in testIsLanguageAvailable() 194 mTts.speak(speech, TextToSpeech.QUEUE_ADD, null); in blockingCallSpeak() [all …]
|
/frameworks/base/core/java/com/android/internal/accessibility/ |
D | AccessibilityShortcutController.java | 380 private TextToSpeech mTts; field in AccessibilityShortcutController.TtsPrompt 385 mTts = mFrameworkObjectProvider.getTextToSpeech(mContext, this); in TtsPrompt() 393 mHandler.sendMessage(PooledLambda.obtainMessage(TextToSpeech::shutdown, mTts)); in dismiss() 412 status = mTts.speak(mText, TextToSpeech.QUEUE_FLUSH, null, null); in play() 424 int status = mTts.isLanguageAvailable(locale); in setLanguage() 429 mTts.setLanguage(locale); in setLanguage() 430 Voice voice = mTts.getVoice(); in setLanguage()
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 69 private TextToSpeech mTts; field in ScoAudioTest 131 mTts = new TextToSpeech(this, new TtsInitListener()); in onCreate() 169 mTts.shutdown(); in onDestroy() 520 if (mTts == null) { in onInit() 525 int result = mTts.setLanguage(Locale.US); in onInit() 532 mTts.setOnUtteranceCompletedListener(new MyUtteranceCompletedListener(UTTERANCE)); in onInit() 620 … mTts.synthesizeToFile(mSpeakText.getText().toString(), mTtsParams, mSampleFile.getPath()); 622 mTts.speak(mSpeakText.getText().toString(),
|