Home
last modified time | relevance | path

Searched refs:TextToSpeech (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/speech/tts/
DPlaybackSynthesisCallback.java65 mStatusCode = TextToSpeech.SUCCESS; in PlaybackSynthesisCallback()
77 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
83 mStatusCode = TextToSpeech.STOPPED; in stop()
91 item.stop(TextToSpeech.STOPPED); in stop()
98 mLogger.onCompleted(TextToSpeech.STOPPED); in stop()
142 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
143 return TextToSpeech.ERROR; in start()
145 if (mStatusCode == TextToSpeech.STOPPED) { in start()
149 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
151 return TextToSpeech.ERROR; in start()
[all …]
DFileSynthesisCallback.java63 mStatusCode = TextToSpeech.SUCCESS; in FileSynthesisCallback()
72 if (mStatusCode == TextToSpeech.STOPPED) { in stop()
76 mStatusCode = TextToSpeech.STOPPED; in stop()
119 if (mStatusCode == TextToSpeech.STOPPED) { in start()
123 if (mStatusCode != TextToSpeech.SUCCESS) { in start()
125 return TextToSpeech.ERROR; in start()
129 return TextToSpeech.ERROR; in start()
142 return TextToSpeech.SUCCESS; in start()
147 mStatusCode = TextToSpeech.ERROR_OUTPUT; in start()
149 return TextToSpeech.ERROR; in start()
[all …]
DTextToSpeechService.java36 import android.speech.tts.TextToSpeech.Engine;
253 int expectedStatus = TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE; in getExpectedLanguageAvailableStatus()
256 expectedStatus = TextToSpeech.LANG_AVAILABLE; in getExpectedLanguageAvailableStatus()
258 expectedStatus = TextToSpeech.LANG_COUNTRY_AVAILABLE; in getExpectedLanguageAvailableStatus()
323 case TextToSpeech.LANG_AVAILABLE: in onGetDefaultVoiceNameFor()
326 case TextToSpeech.LANG_COUNTRY_AVAILABLE: in onGetDefaultVoiceNameFor()
329 case TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE: in onGetDefaultVoiceNameFor()
337 if (onIsValidVoiceName(voiceName) == TextToSpeech.SUCCESS) { in onGetDefaultVoiceNameFor()
362 return TextToSpeech.ERROR; in onLoadVoice()
369 return TextToSpeech.ERROR; in onLoadVoice()
[all …]
DAbstractSynthesisCallback.java57 return mClientIsUsingV2 ? TextToSpeech.STOPPED : TextToSpeech.ERROR; in errorCodeOnStop()
DSynthesisPlaybackQueueItem.java88 mStatusCode = TextToSpeech.SUCCESS; in SynthesisPlaybackQueueItem()
106 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
140 if (mStatusCode == TextToSpeech.SUCCESS) { in dispatchEndStatus()
142 } else if(mStatusCode == TextToSpeech.STOPPED) { in dispatchEndStatus()
DSynthesisCallback.java124 void error(@TextToSpeech.Error int errorCode); in error()
DAbstractEventLogger.java107 if (statusCode != TextToSpeech.SUCCESS in onCompleted()
DUtteranceProgressListener.java158 final TextToSpeech.OnUtteranceCompletedListener listener) { in from()
DEventLogger.java38 if (statusCode != TextToSpeech.STOPPED) { in logFailure()
DTextToSpeech.java84 public class TextToSpeech { class
745 public TextToSpeech(Context context, OnInitListener listener) { in TextToSpeech() method in TextToSpeech
761 public TextToSpeech(Context context, OnInitListener listener, String engine) { in TextToSpeech() method in TextToSpeech
771 public TextToSpeech(Context context, OnInitListener listener, String engine, in TextToSpeech() method in TextToSpeech
782 private TextToSpeech(Context context, @Nullable Executor initExecutor, in TextToSpeech() method in TextToSpeech
1617 if (service.loadVoice(getCallerIdentity(), voiceName) == TextToSpeech.ERROR) {
2143 return TextToSpeech.SUCCESS;
2158 return TextToSpeech.SUCCESS;
DAudioPlaybackHandler.java46 item.stop(TextToSpeech.STOPPED); in stop()
DTtsEngines.java33 import android.speech.tts.TextToSpeech.Engine;
34 import android.speech.tts.TextToSpeech.EngineInfo;
236 parser = si.loadXmlMetaData(pm, TextToSpeech.Engine.SERVICE_META_DATA); in settingsActivityFromServiceInfo()
DAudioPlaybackQueueItem.java62 dispatcher.dispatchOnError(TextToSpeech.ERROR_OUTPUT); in run()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java21 import android.speech.tts.TextToSpeech;
43 private TextToSpeech mTts;
51 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
54 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(passThrough) in setUp()
58 blockingInitAndVerify(MOCK_ENGINE, TextToSpeech.SUCCESS); in setUp()
71 blockingInitAndVerify("__DOES_NOT_EXIST__", TextToSpeech.ERROR); in testEngineInitialized()
81 … Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
83 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
88 …assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "v… in testSetLanguage_delegation()
103 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
[all …]
DMockableCheckVoiceData.java22 import android.speech.tts.TextToSpeech;
41 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_FAIL, returnVal); in onCreate()
46 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES, in onCreate()
50 returnVal.putStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES, in onCreate()
54 setResult(TextToSpeech.Engine.CHECK_VOICE_DATA_PASS, returnVal); in onCreate()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java51 import android.speech.tts.TextToSpeech;
583 private class TtsPrompt implements TextToSpeech.OnInitListener {
591 private TextToSpeech mTts;
604 mHandler.sendMessage(PooledLambda.obtainMessage(TextToSpeech::shutdown, mTts)); in dismiss()
609 if (status != TextToSpeech.SUCCESS) { in onInit()
622 final int status = mTts.speak(mText, TextToSpeech.QUEUE_FLUSH, null, null); in play()
623 if (status != TextToSpeech.SUCCESS) { in play()
641 mLanguageReady = status != TextToSpeech.LANG_MISSING_DATA in waitForTtsReady()
642 && status != TextToSpeech.LANG_NOT_SUPPORTED; in waitForTtsReady()
649 TextToSpeech.Engine.KEY_FEATURE_NOT_INSTALLED); in waitForTtsReady()
[all …]
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
DScoAudioTest.java35 import android.speech.tts.TextToSpeech;
36 import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
69 private TextToSpeech mTts;
131 mTts = new TextToSpeech(this, new TtsInitListener()); in onCreate()
133 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_STREAM, in onCreate()
135 mTtsParams.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, in onCreate()
509 class TtsInitListener implements TextToSpeech.OnInitListener {
514 if (status != TextToSpeech.SUCCESS) { in onInit()
526 if (result == TextToSpeech.LANG_MISSING_DATA || in onInit()
527 result == TextToSpeech.LANG_NOT_SUPPORTED) { in onInit()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java71 import android.speech.tts.TextToSpeech;
135 private @Mock TextToSpeech mTextToSpeech;
774 ArgumentCaptor<TextToSpeech.OnInitListener> onInitCap = ArgumentCaptor.forClass( in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
775 TextToSpeech.OnInitListener.class); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
777 onInitCap.getValue().onInit(TextToSpeech.SUCCESS); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
778 verify(mTextToSpeech).speak(any(), eq(TextToSpeech.QUEUE_FLUSH), any(), any()); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
800 ArgumentCaptor<TextToSpeech.OnInitListener> onInitCap = ArgumentCaptor.forClass( in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
801 TextToSpeech.OnInitListener.class); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
803 onInitCap.getValue().onInit(TextToSpeech.ERROR); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()
819 features.add(TextToSpeech.Engine.KEY_FEATURE_NOT_INSTALLED); in testOnAccessibilityShortcut_showsWarningDialog_ttsLongTimeInit_retrySpoken()
[all …]
/frameworks/base/config/
Dpreloaded-classes-denylist5 android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask
/frameworks/base/services/texttospeech/java/com/android/server/texttospeech/
DTextToSpeechManagerPerUserService.java34 import android.speech.tts.TextToSpeech;
97 new Intent(TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE).setPackage(engine), in TextToSpeechSessionConnection()
/frameworks/base/core/api/
Dlint-baseline.txt218 BroadcastBehavior: android.speech.tts.TextToSpeech#ACTION_TTS_QUEUE_PROCESSING_COMPLETED:
220 BroadcastBehavior: android.speech.tts.TextToSpeech.Engine#ACTION_TTS_DATA_INSTALLED:
350 DeprecationMismatch: android.speech.tts.TextToSpeech#areDefaultsEnforced():
351 …Method android.speech.tts.TextToSpeech.areDefaultsEnforced(): @Deprecated annotation (present) and…
Dmodule-lib-lint-baseline.txt282 BroadcastBehavior: android.speech.tts.TextToSpeech#ACTION_TTS_QUEUE_PROCESSING_COMPLETED:
284 BroadcastBehavior: android.speech.tts.TextToSpeech.Engine#ACTION_TTS_DATA_INSTALLED:
448 DeprecationMismatch: android.speech.tts.TextToSpeech#areDefaultsEnforced():
449 …Method android.speech.tts.TextToSpeech.areDefaultsEnforced(): @Deprecated annotation (present) and…
Dtest-lint-baseline.txt294 BroadcastBehavior: android.speech.tts.TextToSpeech#ACTION_TTS_QUEUE_PROCESSING_COMPLETED:
296 BroadcastBehavior: android.speech.tts.TextToSpeech.Engine#ACTION_TTS_DATA_INSTALLED:
462 DeprecationMismatch: android.speech.tts.TextToSpeech#areDefaultsEnforced():
463 …Method android.speech.tts.TextToSpeech.areDefaultsEnforced(): @Deprecated annotation (present) and…
Dsystem-lint-baseline.txt286 BroadcastBehavior: android.speech.tts.TextToSpeech#ACTION_TTS_QUEUE_PROCESSING_COMPLETED:
288 BroadcastBehavior: android.speech.tts.TextToSpeech.Engine#ACTION_TTS_DATA_INSTALLED:
452 DeprecationMismatch: android.speech.tts.TextToSpeech#areDefaultsEnforced():
453 …Method android.speech.tts.TextToSpeech.areDefaultsEnforced(): @Deprecated annotation (present) and…
/frameworks/base/boot/
Dpreloaded-classes7210 android.speech.tts.TextToSpeech$$ExternalSyntheticLambda13
7211 android.speech.tts.TextToSpeech$$ExternalSyntheticLambda17
7212 android.speech.tts.TextToSpeech$$ExternalSyntheticLambda1
7213 android.speech.tts.TextToSpeech$Action
7214 android.speech.tts.TextToSpeech$Connection$1
7215 android.speech.tts.TextToSpeech$Connection$SetupConnectionAsyncTask-IA
7216 android.speech.tts.TextToSpeech$Connection-IA
7217 android.speech.tts.TextToSpeech$DirectConnection-IA
7218 android.speech.tts.TextToSpeech$DirectConnection
7219 android.speech.tts.TextToSpeech$EngineInfo
[all …]

12