Home
last modified time | relevance | path

Searched refs:mTextToSpeech (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/tts/
DAndroidTextToSpeechEngine.java33 private TextToSpeech mTextToSpeech; field in AndroidTextToSpeechEngine
37 if (mTextToSpeech == null) { in initialize()
38 mTextToSpeech = new TextToSpeech(context, initListener); in initialize()
44 return mTextToSpeech != null; in isInitialized()
51 mTextToSpeech.setOnUtteranceProgressListener(progressListener); in setOnUtteranceProgressListener()
57 mTextToSpeech.setAudioAttributes(audioAttributes); in setAudioAttributes()
64 return mTextToSpeech.speak(text, queueMode, params, utteranceId); in speak()
70 mTextToSpeech.stop(); in stop()
75 return mTextToSpeech != null && mTextToSpeech.isSpeaking(); in isSpeaking()
81 mTextToSpeech.shutdown(); in shutdown()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DPreferredEngineOptionsPreferenceControllerTest.java71 private TextToSpeech mTextToSpeech; field in PreferredEngineOptionsPreferenceControllerTest
77 ShadowTextToSpeech.setInstance(mTextToSpeech); in setUp()
100 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in onCreate_populatesGroup()
107 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_currentEngineInfoSummarySet()
118 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_otherEngineInfoSummaryEmpty()
128 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_currentEngine_returnFalse()
138 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_returnTrue()
148 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_initSuccess_changeCurrentEngine()
159 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_initFail_keepCurrentEngine()
DTtsPlaybackPreferenceControllerTest.java89 private TextToSpeech mTextToSpeech; field in TtsPlaybackPreferenceControllerTest
96 ShadowTextToSpeech.setInstance(mTextToSpeech); in setUp()
122 when(mTextToSpeech.getCurrentEngine()).thenReturn(ENGINE_INFO.name); in setUp()
123 when(mTextToSpeech.getVoice()).thenReturn(VOICE); in setUp()
267 verify(mTextToSpeech).setLanguage(Locale.getDefault()); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault()
290 verify(mTextToSpeech).setLanguage(Locale.ENGLISH); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale()
339 verify(mTextToSpeech).setSpeechRate( in speechRate_handlePreferenceChanged_updatesTts()
352 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in speechRate_handlePreferenceChanged_speaksSampleText()
378 verify(mTextToSpeech).setPitch( in voicePitch_handlePreferenceChanged_updatesTts()
391 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in voicePitch_handlePreferenceChanged_speaksSampleText()