HomeSort by relevance Sort by last modified time
    Searched refs:mTts (Results 1 - 21 of 21) sorted by null

  /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,
  /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 35 private TextToSpeechWrapper mTts;
41 mTts = TextToSpeechWrapper.createTextToSpeechMockWrapper(getContext());
42 assertNotNull(mTts);
48 mTts.shutdown();
52 return mTts.getTts();
65 assertTrue("synthesizeToFile() completion timeout", mTts.waitForComplete("mocktofile"));
72 mTts.verify("mocktofile");
74 final Map<String, Integer> chunksReceived = mTts.chunksReceived();
75 final Map<String, List<Integer>> timePointsStart = mTts.timePointsStart();
76 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();
  /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();
  /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;
201 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener);
214 if (mTts == null || mCurrentDefaultLocale == null) {
217 if (!mTts.getDefaultEngine().equals(mTts.getCurrentEngine())) {
219 mTts.shutdown();
220 mTts = null;
224 mTts = new TextToSpeech(getActivity().getApplicationContext(), mInitListener);
231 mTts.setPitch(android.provider.Settings.Secure.getInt(resolver, TTS_DEFAULT_PITCH, TextToSpeech.Engine.DEFAULT_PITCH)/100.0f);
234 Locale ttsDefaultLocale = mTts.getDefaultLanguage()
    [all...]
  /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 93 private TextToSpeech mTts;
157 res = mTts.speak(mMessageBody, 2, params, TTS_UTTERANCE_ID);
193 mTts.setOnUtteranceCompletedListener(this);
198 mTts = null;
211 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) {
214 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) {
225 int result = mTts.setLanguage(new Locale(language));
268 if (mTts != null) {
270 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 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...]
  /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/lib/
android-all-4.4_r1-robolectric-1.jar 
android-all-5.0.0_r2-robolectric-1.jar 
android-all-6.0.0_r1-robolectric-0.jar 

Completed in 676 milliseconds