OSDN Git Service

Allow clients to extend the TTS UtteranceId class.
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Wed, 29 Jan 2014 15:20:06 +0000 (15:20 +0000)
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Thu, 30 Jan 2014 10:41:26 +0000 (10:41 +0000)
commit1ca1d886588ce54ab0c0229eabc49fa8dff40bc5
tree96cf0a2b1e89966ae53a576395b4d6c44c1092e8
parent34b16b854ae8c78554a75b136a1df403c385f2e9
Allow clients to extend the TTS UtteranceId class.

This change allows TTS clients to create (and use) classes derived from the
UtteranceId class. This allows to attach a custom data and methods that
can be reached later in callbacks that take the UtteranceId instance as
parameter.

Also, since we can't depend on the identityHashCode results being unique,
this change adds AtomicInteger to generate unique identifiers for UtteranceId
instances.

Bug: 8259486
Change-Id: Id1e9eabc890ec585a7f8570fd20e287dcda9a11d
api/current.txt
core/java/android/speech/tts/TextToSpeechClient.java