Home
last modified time | relevance | path

Searched refs:mTts (Results 1 – 4 of 4) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DTextToSpeechActivity.java51 private TextToSpeech mTts; field in TextToSpeechActivity
61 mTts = new TextToSpeech(this, in onCreate()
79 if (mTts != null) { in onDestroy()
80 mTts.stop(); in onDestroy()
81 mTts.shutdown(); in onDestroy()
93 int result = mTts.setLanguage(Locale.US); in onInit()
131 mTts.speak(hello, in sayHello()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DTaskBackService.java52 private TextToSpeech mTts; field in TaskBackService
60 mTts = new TextToSpeech(getApplicationContext(), this); in onServiceConnected()
139 mTts.speak(utterance.toString(), TextToSpeech.QUEUE_FLUSH, null); in onAccessibilityEvent()
176 mTts.setLanguage(Locale.US); in onInit()
188 mTts.shutdown(); in onDestroy()
DClockBackService.java212 private TextToSpeech mTts; field in ClockBackService
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); in playEarcon()
573 mTts.playEarcon(earconName, QUEUING_MODE_INTERRUPT, null); in playEarcon()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsReceivedDialog.java42 private TextToSpeech mTts; field in SmsReceivedDialog
63 mTts = new TextToSpeech(this, this); in onCreate()
68 int result = mTts.setLanguage(Locale.US); in onInit()
73 mTts.speak(mFullBodyString, TextToSpeech.QUEUE_ADD, null); in onInit()