diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-16 19:54:02 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-16 19:54:02 -0700 |
commit | 3e522c45b2fad6ae0256e00ae54ac1e68e29e508 (patch) | |
tree | c3c9bdb16fe946636b57680acbb43cf27085834d | |
parent | 733cbb0009d3e16eac2383a694833bdbc0c7269e (diff) | |
parent | 49a60157d1c4b49450410fc30b8fcd8ab0e3480b (diff) | |
download | frameworks_base-3e522c45b2fad6ae0256e00ae54ac1e68e29e508.zip frameworks_base-3e522c45b2fad6ae0256e00ae54ac1e68e29e508.tar.gz frameworks_base-3e522c45b2fad6ae0256e00ae54ac1e68e29e508.tar.bz2 |
Merge change 7498 into donut
* changes:
Adding public intents for TTS to enable checking for TTS data, installing TTS data, and finding out when the TTS queue has finished processing.
-rw-r--r-- | api/current.xml | 33 | ||||
-rw-r--r-- | core/java/android/content/Intent.java | 41 |
2 files changed, 72 insertions, 2 deletions
diff --git a/api/current.xml b/api/current.xml index afba894..a088664 100644 --- a/api/current.xml +++ b/api/current.xml @@ -32173,6 +32173,39 @@ visibility="public" > </field> +<field name="ACTION_TTS_CHECK_TTS_DATA" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.intent.action.CHECK_TTS_DATA"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="ACTION_TTS_INSTALL_TTS_DATA" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.intent.action.INSTALL_TTS_DATA"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="ACTION_TTS_QUEUE_PROCESSING_COMPLETED" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.intent.action.TTS_QUEUE_PROCESSING_COMPLETED"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="ACTION_UID_REMOVED" type="java.lang.String" transient="false" diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 9202b9a..b0dbfcb 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1683,10 +1683,47 @@ public class Intent implements Parcelable { @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_REBOOT = "android.intent.action.REBOOT"; + /** + * Broadcast Action: Triggers the platform Text-To-Speech engine to + * start the activity that installs the resource files on the device + * that are required for TTS to be operational. Since the installation + * of the data can be interrupted or declined by the user, the application + * shouldn't expect successful installation upon return from that intent, + * and if need be, should check installation status with + * {@link #ACTION_TTS_CHECK_TTS_DATA}. + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_TTS_INSTALL_TTS_DATA = + "android.intent.action.INSTALL_TTS_DATA"; + + /** + * Broadcast Action: Starts the activity from the platform Text-To-Speech + * engine to verify the proper installation and availability of the + * resource files on the system. Upon completion, the activity will + * return one of the following codes: + * {@link android.speech.tts.TextToSpeech.Engine#CHECK_VOICE_DATA_PASS}, + * {@link android.speech.tts.TextToSpeech.Engine#CHECK_VOICE_DATA_FAIL}, + * {@link android.speech.tts.TextToSpeech.Engine#CHECK_VOICE_DATA_BAD_DATA}, + * {@link android.speech.tts.TextToSpeech.Engine#CHECK_VOICE_DATA_MISSING_DATA}, or + * {@link android.speech.tts.TextToSpeech.Engine#CHECK_VOICE_DATA_MISSING_VOLUME}. + * <p> Moreover, the data received in the activity result will contain the following + * fields: + * <ul> + * <li>{@link android.speech.tts.TextToSpeech.Engine#VOICE_DATA_ROOT_DIRECTORY} which + * indicates the path to the location of the resource files</li>, + * <li>{@link android.speech.tts.TextToSpeech.Engine#VOICE_DATA_FILES} which contains + * the list of all the resource files</li>, + * <li>and {@link android.speech.tts.TextToSpeech.Engine#VOICE_DATA_FILES_INFO} which + * contains, for each resource file, the description of the language covered by + * the file in the xxx-YYY format, where xxx is the 3-letter ISO language code, + * and YYY is the 3-letter ISO country code.</li> + * </ul> + */ + @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) + public static final String ACTION_TTS_CHECK_TTS_DATA = + "android.intent.action.CHECK_TTS_DATA"; /** - * @hide - * TODO: This will be unhidden in a later CL. * Broadcast Action: The TextToSpeech synthesizer has completed processing * all of the text in the speech queue. */ |