Searched refs:mTextToSpeech (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Car/systemlibs/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/unit/src/com/android/car/settings/tts/ |
D | PreferredEngineOptionsPreferenceControllerTest.java | 80 private TextToSpeech mTextToSpeech; field in PreferredEngineOptionsPreferenceControllerTest 117 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in onCreate_populatesGroup() 124 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_currentEngineInfoSummarySet() 135 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in refreshUi_otherEngineInfoSummaryEmpty() 145 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_currentEngine_returnFalse() 155 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_returnTrue() 165 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_initSuccess_changeCurrentEngine() 173 when(mTextToSpeech.getCurrentEngine()).thenReturn(OTHER_ENGINE_INFO.name); in performClick_otherEngine_initSuccess_changeCurrentEngine() 181 when(mTextToSpeech.getCurrentEngine()).thenReturn(CURRENT_ENGINE_INFO.name); in performClick_otherEngine_initFail_keepCurrentEngine() 189 when(mTextToSpeech.getCurrentEngine()).thenReturn(OTHER_ENGINE_INFO.name); in performClick_otherEngine_initFail_keepCurrentEngine() [all …]
|
D | TtsPlaybackPreferenceControllerTest.java | 91 private TextToSpeech mTextToSpeech; field in TtsPlaybackPreferenceControllerTest 130 when(mTextToSpeech.getCurrentEngine()).thenReturn(ENGINE_INFO.name); in setUp() 131 when(mTextToSpeech.getVoice()).thenReturn(VOICE); in setUp() 270 verify(mTextToSpeech).setLanguage(Locale.getDefault()); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault() 294 verify(mTextToSpeech).setLanguage(Locale.ENGLISH); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale() 344 verify(mTextToSpeech).setSpeechRate( in speechRate_handlePreferenceChanged_updatesTts() 357 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in speechRate_handlePreferenceChanged_speaksSampleText() 383 verify(mTextToSpeech).setPitch( in voicePitch_handlePreferenceChanged_updatesTts() 396 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), isNull(), eq("Sample")); in voicePitch_handlePreferenceChanged_speaksSampleText() 504 return mTextToSpeech; in createTts()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | TextToSpeechCompat.java | 21 mTextToSpeech = textToSpeech; in TextToSpeechCompat() 24 private final TextToSpeech mTextToSpeech; field in TextToSpeechCompat 48 return this.mTextToSpeech.getCurrentEngine(); in getCurrentEngine()
|
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/ |
D | SettingsActivity.java | 38 private TextToSpeech mTextToSpeech; field in SettingsActivity 66 mTextToSpeech = new TextToSpeechImpl(this, new TextToSpeech.Listener() { in onCreate() 81 mTextToSpeech.destroy(); in onDestroy() 136 String[] voices = mActivity.get().mTextToSpeech.getVoices().toArray(new String[0]); in updateVoices()
|