OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mTts
(Results
1 - 15
of
15
) 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/
TextToSpeechServiceTest.java
35
private TextToSpeechWrapper
mTts
;
40
mTts
= TextToSpeechWrapper.createTextToSpeechMockWrapper(getContext());
41
assertNotNull(
mTts
);
47
mTts
.shutdown();
51
return
mTts
.getTts();
62
assertTrue("synthesizeToFile() completion timeout",
mTts
.waitForComplete(UTTERANCE_ID));
97
return
mTts
.waitForComplete(UTTERANCE_ID);
TextToSpeechTest.java
36
private TextToSpeechWrapper
mTts
;
41
mTts
= TextToSpeechWrapper.createTextToSpeechWrapper(getContext());
42
assertNotNull(
mTts
);
49
mTts
.shutdown();
53
return
mTts
.getTts();
137
return
mTts
.waitForComplete(UTTERANCE_ID);
TextToSpeechWrapper.java
40
private TextToSpeech
mTts
;
64
mTts
= tts;
68
mTts
.setOnUtteranceCompletedListener(mUtteranceListener);
77
return
mTts
;
81
mTts
.shutdown();
/packages/apps/Settings/src/com/android/settings/tts/
TextToSpeechSettings.java
105
private TextToSpeech
mTts
= null;
164
mTts
= new TextToSpeech(getActivity().getApplicationContext(), mInitListener);
178
if (
mTts
== null || mCurrentDefaultLocale == null) {
181
Locale ttsDefaultLocale =
mTts
.getDefaultLanguage();
189
if (
mTts
== null) {
192
mTts
.setOnUtteranceProgressListener(new UtteranceProgressListener() {
209
if (
mTts
!= null) {
210
mTts
.shutdown();
211
mTts
= null;
228
mCurrentEngine =
mTts
.getCurrentEngine()
[
all
...]
TtsEngineSettingsFragment.java
68
private TextToSpeech
mTts
;
149
mTts
= new TextToSpeech(getActivity().getApplicationContext(), mTtsInitListener,
162
mTts
.shutdown();
204
mTts
.getCurrentEngine());
352
if (getEngineName().equals(
mTts
.getCurrentEngine())) {
354
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);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java
39
private TextToSpeech
mTts
;
47
assertEquals(MOCK_ENGINE,
mTts
.getCurrentEngine());
53
if (
mTts
!= null) {
54
mTts
.shutdown();
63
assertNull(
mTts
.getCurrentEngine());
77
assertEquals(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE,
mTts
.setLanguage(new Locale("eng", "USA", "variant")));
98
mTts
.setLanguage(new Locale("eng", "USA", "variant"));
121
mTts
.setLanguage(Locale.FRANCE);
142
assertEquals(TextToSpeech.LANG_COUNTRY_AVAILABLE,
mTts
.isLanguageAvailable(Locale.US));
175
mTts
.speak(speech, TextToSpeech.QUEUE_ADD, null)
[
all
...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
AccessibilityActivity.java
76
private TextToSpeech
mTts
= null;
117
mTts
= new TextToSpeech(getApplicationContext(), mInitListener);
135
getDisplayNameForEngine(
mTts
.getCurrentEngine())));
163
mResources, getDisplayNameForEngine(
mTts
.getCurrentEngine())));
165
if (
mTts
.getLanguage() != null) {
167
mResources,
mTts
.getLanguage().getDisplayName()));
189
if (
mTts
.getLanguage() != null) {
190
String currLang = getLanguageString(
mTts
.getLanguage());
379
mPreviousEngine =
mTts
.getCurrentEngine();
382
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/policy/src/com/android/internal/policy/impl/
EnableAccessibilityController.java
62
mTts
.speak(text, TextToSpeech.QUEUE_FLUSH, null);
66
mTts
.speak(text, TextToSpeech.QUEUE_FLUSH, null);
71
mTts
.speak(mContext.getString(R.string.accessibility_enabled),
88
private final TextToSpeech
mTts
;
105
mTts
= new TextToSpeech(context, new TextToSpeech.OnInitListener() {
109
mTts
.shutdown();
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java
89
private TextToSpeech
mTts
;
131
mTts
.speak(mMessageBody, TextToSpeech.QUEUE_FLUSH, null);
170
mTts
= null;
182
int result =
mTts
.setLanguage(new Locale(mMessageLanguage));
220
if (
mTts
!= null) {
222
mTts
.shutdown();
277
if (
mTts
== null) {
278
mTts
= new TextToSpeech(this, this);
418
} else if (mState == STATE_SPEAKING &&
mTts
!= null) {
420
mTts
.stop()
[
all
...]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
VoiceDialerActivity.java
169
private TextToSpeech
mTts
;
311
mTts
.speak(getString(R.string.speak_now_tts),
335
if (
mTts
== null) {
342
mTts
.setOnUtteranceCompletedListener(new OnUtteranceCompletedListener());
397
mTts
= new TextToSpeech(VoiceDialerActivity.this, new TtsInitListener());
510
mTts
.speak(getString(R.string.no_results_tts),
541
mTts
.speak(sentenceSpoken,
[
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(),
Completed in 3717 milliseconds