Searched refs:mTts (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TextToSpeechTests.java | 42 private TextToSpeech mTts; field in TextToSpeechTests 58 assertEquals(MOCK_ENGINE, mTts.getCurrentEngine()); in setUp() 63 if (mTts != null) { in tearDown() 64 mTts.shutdown(); in tearDown() 73 assertNull(mTts.getCurrentEngine()); in testEngineInitialized() 87 …assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "v… in testSetLanguage_delegation() 108 mTts.setLanguage(new Locale("eng", "USA", "variant")); in testSetLanguage_availableLanguage() 131 mTts.setLanguage(Locale.FRANCE); in testSetLanguage_unavailableLanguage() 152 assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE, mTts.isLanguageAvailable(Locale.US)); in testIsLanguageAvailable() 193 mTts.speak(speech, TextToSpeech.QUEUE_ADD, null); in blockingCallSpeak() [all …]
|
/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(),
|