/development/samples/ApiDemos/src/com/example/android/apis/app/ |
TextToSpeechActivity.java | 51 private TextToSpeech mTts; 61 mTts = new TextToSpeech(this, 79 if (mTts != null) { 80 mTts.stop(); 81 mTts.shutdown(); 93 int result = mTts.setLanguage(Locale.US); 95 // int result mTts.setLanguage(Locale.FRANCE); 131 mTts.speak(hello,
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
TextToSpeechFacade.java | 35 private final TextToSpeech mTts; 41 mTts = new TextToSpeech(manager.getService(), new OnInitListener() { 51 while (mTts.isSpeaking()) { 54 mTts.shutdown(); 61 mTts.speak(message, TextToSpeech.QUEUE_ADD, null); 68 return mTts.isSpeaking();
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechTest.java | 35 private TextToSpeechWrapper mTts; 40 mTts = TextToSpeechWrapper.createTextToSpeechWrapper(getContext()); 41 if (mTts == null) { 50 assertNotNull(mTts); 57 if (mTts != null) { 58 mTts.shutdown(); 63 return mTts.getTts(); 111 return mTts.waitForComplete(utteranceId); 115 if (mTts == null) { 133 mTts.verify("tofile") [all...] |
TextToSpeechServiceTest.java | 33 private TextToSpeechWrapper mTts; 39 mTts = TextToSpeechWrapper.createTextToSpeechMockWrapper(getContext()); 40 assertNotNull(mTts); 46 mTts.shutdown(); 50 return mTts.getTts(); 61 assertTrue("synthesizeToFile() completion timeout", mTts.waitForComplete("tofile")); 68 mTts.verify("tofile"); 75 mTts.verify("speak"); 97 assertTrue("speak() stop callback timeout", mTts.waitForStop( 123 return mTts.waitForComplete(utteranceId) [all...] |
TextToSpeechWrapper.java | 44 private TextToSpeech mTts; 68 mTts = tts; 72 mTts.setOnUtteranceProgressListener(mUtteranceListener); 85 return mTts; 89 mTts.shutdown();
|
/packages/apps/Settings/src/com/android/settings/tts/ |
TextToSpeechSettings.java | 138 private TextToSpeech mTts = null; 208 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); 222 if (mTts == null || mCurrentDefaultLocale == null) { 225 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); 233 if (mTts == null) { 236 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { 253 if (mTts != null) { 254 mTts.shutdown(); 255 mTts = null; 278 if (mTts != null) [all...] |
TtsEngineSettingsFragment.java | 68 private TextToSpeech mTts; 154 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, 167 mTts.shutdown(); 209 mTts.getCurrentEngine()); 357 if (getEngineName().equals(mTts.getCurrentEngine())) { 359 mTts.setLanguage((locale != null) ? locale : Locale.getDefault());
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
TextToSpeechFragment.java | 101 private TextToSpeech mTts = null; 166 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); 177 if (mTts == null || mCurrentDefaultLocale == null) { 180 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); 188 if (mTts == null) { 191 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { 208 if (mTts != null) { 209 mTts.shutdown(); 210 mTts = null; 228 mCurrentEngine = mTts.getCurrentEngine() [all...] |
TtsEngineSettingsFragment.java | 84 private TextToSpeech mTts; 178 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, 191 mTts.shutdown(); 233 mTts.getCurrentEngine()); 375 if (getEngineName().equals(mTts.getCurrentEngine())) { 377 mTts.setLanguage((locale != null) ? locale : Locale.getDefault());
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
TaskBackService.java | 52 private TextToSpeech mTts; 60 mTts = new TextToSpeech(getApplicationContext(), this); 139 mTts.speak(utterance.toString(), TextToSpeech.QUEUE_FLUSH, null); 176 mTts.setLanguage(Locale.US); 188 mTts.shutdown();
|
ClockBackService.java | 212 private TextToSpeech mTts; 230 mTts.speak(utterance, QUEUING_MODE_INTERRUPT, null); 233 mTts.stop(); 236 mTts = new TextToSpeech(mContext, new TextToSpeech.OnInitListener() { 245 mTts.shutdown(); 252 mTts.stop(); 568 mTts.addEarcon(earconName, getPackageName(), resourceId); 573 mTts.playEarcon(earconName, QUEUING_MODE_INTERRUPT, null);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 92 private TextToSpeech mTts; 156 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID); 192 mTts.setOnUtteranceCompletedListener(this); 197 mTts = null; 210 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { 213 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { 224 int result = mTts.setLanguage(new Locale(language)); 267 if (mTts != null) { 269 mTts.shutdown(); 328 if (mTts == null) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
SmsReceivedDialog.java | 42 private TextToSpeech mTts; 63 mTts = new TextToSpeech(this, this); 68 int result = mTts.setLanguage(Locale.US); 73 mTts.speak(mFullBodyString, TextToSpeech.QUEUE_ADD, null);
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
TextToSpeechTests.java | 39 private TextToSpeech mTts; 55 assertEquals(MOCK_ENGINE, mTts.getCurrentEngine()); 60 if (mTts != null) { 61 mTts.shutdown(); 70 assertNull(mTts.getCurrentEngine()); 84 assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "variant"))); 105 mTts.setLanguage(new Locale("eng", "USA", "variant")); 128 mTts.setLanguage(Locale.FRANCE); 149 assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE, mTts.isLanguageAvailable(Locale.US)); 190 mTts.speak(speech, TextToSpeech.QUEUE_ADD, null) [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
EnableAccessibilityController.java | 70 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null); 74 mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null); 79 mTts.speak(mContext.getString(R.string.accessibility_enabled), 93 private final TextToSpeech mTts; 110 mTts = new TextToSpeech(context, new TextToSpeech.OnInitListener() { 114 mTts.shutdown();
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
ScoAudioTest.java | 69 private TextToSpeech mTts; 131 mTts = new TextToSpeech(this, new TtsInitListener()); 169 mTts.shutdown(); 520 if (mTts == null) { 525 int result = mTts.setLanguage(Locale.US); 532 mTts.setOnUtteranceCompletedListener(new MyUtteranceCompletedListener(UTTERANCE)); 620 mTts.synthesizeToFile(mSpeakText.getText().toString(), mTtsParams, mSampleFile.getPath()); 622 mTts.speak(mSpeakText.getText().toString(),
|
/external/robolectric/v3/runtime/ |
android-all-4.4_r1-robolectric-1.jar | |
android-all-5.0.0_r2-robolectric-1.jar | |
android-all-5.1.1_r9-robolectric-1.jar | |