commit | 35e6bb474df3a42c81a44941c178c2118224ac41 | [log] [tgz] |
---|---|---|
author | Kazuhiro Inaba <kinaba@google.com> | Tue Jul 18 14:51:05 2017 +0900 |
committer | Kazuhiro Inaba <kinaba@google.com> | Thu Aug 03 04:20:21 2017 +0000 |
tree | 83291a7c14d8dd82be6599301bdce7f476a393d5 | |
parent | e417eb0868dcd4f2da08437c0340bf5911cace56 [diff] |
TTS: Fix a race condition between enqueueSpeechItem and stopForApp. When speak() is immediately followed by a stop(), the speak may not be stopped at all due to a race condition. Bug: 63649835 Test: android.speech.tts.cts.TextToSpeechServiceTest#testSpeakStop Change-Id: Iae5660b455f5d845aa119c902057e2ca7131ce1b