Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/speech/tts/
DTextToSpeechService.java495 private boolean isFlushed(SpeechItem speechItem) { in isFlushed() argument
497 return mFlushAll > 0 || mFlushedObjects.contains(speechItem.getCallerIdentity()); in isFlushed()
505 private synchronized boolean setCurrentSpeechItem(SpeechItem speechItem) { in setCurrentSpeechItem() argument
516 if (speechItem != null && isFlushed(speechItem)) { in setCurrentSpeechItem()
519 mCurrentSpeechItem = speechItem; in setCurrentSpeechItem()
560 public int enqueueSpeechItem(int queueMode, final SpeechItem speechItem) { in enqueueSpeechItem() argument
562 if (speechItem instanceof UtteranceProgressDispatcher) { in enqueueSpeechItem()
563 utterenceProgress = (UtteranceProgressDispatcher) speechItem; in enqueueSpeechItem()
566 if (!speechItem.isValid()) { in enqueueSpeechItem()
575 stopForApp(speechItem.getCallerIdentity()); in enqueueSpeechItem()
[all …]