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/ |
D | AndroidTextToSpeechEngine.java | 33 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/ |
D | PreferredEngineOptionsPreferenceControllerTest.java | 71 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()
|
D | TtsPlaybackPreferenceControllerTest.java | 88 private TextToSpeech mTextToSpeech; field in TtsPlaybackPreferenceControllerTest 95 ShadowTextToSpeech.setInstance(mTextToSpeech); in setUp() 121 when(mTextToSpeech.getCurrentEngine()).thenReturn(ENGINE_INFO.name); in setUp() 122 when(mTextToSpeech.getVoice()).thenReturn(VOICE); in setUp() 260 verify(mTextToSpeech).setLanguage(Locale.getDefault()); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault() 280 verify(mTextToSpeech).setLanguage(Locale.ENGLISH); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale() 321 verify(mTextToSpeech).setSpeechRate( in speechRate_handlePreferenceChanged_updatesTts() 332 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in speechRate_handlePreferenceChanged_speaksSampleText() 354 verify(mTextToSpeech).setPitch( in voicePitch_handlePreferenceChanged_updatesTts() 365 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in voicePitch_handlePreferenceChanged_speaksSampleText()
|