/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();
|
/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,
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
TextToSpeechTests.java | 42 private TextToSpeech mTts; 58 assertEquals(MOCK_ENGINE, mTts.getCurrentEngine()); 63 if (mTts != null) { 64 mTts.shutdown(); 73 assertNull(mTts.getCurrentEngine()); 87 assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE, mTts.setLanguage(new Locale("eng", "USA", "variant"))); 108 mTts.setLanguage(new Locale("eng", "USA", "variant")); 131 mTts.setLanguage(Locale.FRANCE); 152 assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE, mTts.isLanguageAvailable(Locale.US)); 193 mTts.speak(speech, TextToSpeech.QUEUE_ADD, 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);
|
/packages/apps/Settings/src/com/android/settings/tts/ |
TtsEnginePreferenceFragment.java | 47 private TextToSpeech mTts = null; 59 mTts = new TextToSpeech(getActivity().getApplicationContext(), null); 72 if (mTts != null) { 73 mTts.shutdown(); 74 mTts = null; 79 if (mTts != null) { 80 mCurrentEngine = mTts.getCurrentEngine(); 130 mPreviousEngine = mTts.getCurrentEngine(); 134 if (mTts != null) { 136 mTts.shutdown() [all...] |
TextToSpeechSettings.java | 123 private TextToSpeech mTts = null; 203 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); 216 if (mTts == null || mCurrentDefaultLocale == null) { 219 if (!mTts.getDefaultEngine().equals(mTts.getCurrentEngine())) { 221 mTts.shutdown(); 222 mTts = null; 226 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); 233 mTts.setPitch(android.provider.Settings.Secure.getInt(resolver, TTS_DEFAULT_PITCH, 237 Locale ttsDefaultLocale = mTts.getDefaultLanguage() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
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);
|
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();
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechServiceTest.java | 36 private TextToSpeechWrapper mTts; 42 mTts = TextToSpeechWrapper.createTextToSpeechMockWrapper(getContext()); 43 assertNotNull(mTts); 49 mTts.shutdown(); 53 return mTts.getTts(); 66 assertTrue("synthesizeToFile() completion timeout", mTts.waitForComplete("mocktofile")); 73 mTts.verify("mocktofile"); 75 final Map<String, Integer> chunksReceived = mTts.chunksReceived(); 76 final Map<String, List<Integer>> timePointsStart = mTts.timePointsStart(); 77 final Map<String, List<Integer>> timePointsEnd = mTts.timePointsEnd() [all...] |
TextToSpeechWrapper.java | 46 private TextToSpeech mTts; 70 mTts = tts; 74 mTts.setOnUtteranceProgressListener(mUtteranceListener); 87 return mTts; 91 mTts.shutdown();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
TextToSpeechFragment.java | 107 private TextToSpeech mTts = null; 172 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener); 183 if (mTts == null || mCurrentDefaultLocale == null) { 186 Locale ttsDefaultLocale = mTts.getDefaultLanguage(); 194 if (mTts == null) { 197 mTts.setOnUtteranceProgressListener(new UtteranceProgressListener() { 214 if (mTts != null) { 215 mTts.shutdown(); 216 mTts = null; 234 mCurrentEngine = mTts.getCurrentEngine() [all...] |
TtsEngineSettingsFragment.java | 86 private TextToSpeech mTts; 180 mTts = new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener, 193 mTts.shutdown(); 235 mTts.getCurrentEngine()); 372 if (getEngineName().equals(mTts.getCurrentEngine())) { 374 mTts.setLanguage((locale != null) ? locale : Locale.getDefault());
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 98 private TextToSpeech mTts; 159 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID); 195 mTts.setOnUtteranceCompletedListener(this); 200 mTts = null; 213 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { 216 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { 227 int result = mTts.setLanguage(new Locale(language)); 270 if (mTts != null) { 272 mTts.shutdown(); 337 if (mTts == null) [all...] |
/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 | |
/prebuilts/misc/common/robolectric/android-all/ |
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 | |
android-all-6.0.0_r1-robolectric-0.jar | |