Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e1b6b72 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 20514 into donut

* changes:
  Fix bug 2022435. Add new intent and matching extra to signal the completion of the language pack installer. This is used by CL 20513.
parents 8af63bc9 77a5d393
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -188,6 +188,12 @@ public class TextToSpeech {
        public static final String ACTION_INSTALL_TTS_DATA =
                "android.speech.tts.engine.INSTALL_TTS_DATA";

        /**
         * {@hide}
         */
        @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
        public static final String ACTION_TTS_DATA_INSTALLED =
                "android.speech.tts.engine.TTS_DATA_INSTALLED";
        /**
         * Broadcast Action: Starts the activity from the platform Text-To-Speech
         * engine to verify the proper installation and availability of the
@@ -233,6 +239,16 @@ public class TextToSpeech {
         */
        public static final String EXTRA_VOICE_DATA_FILES_INFO = "dataFilesInfo";

        // extras for a TTS engine's data installation
        /**
         * Extra information received with the {@link #ACTION_TTS_DATA_INSTALLED} intent
         * which indicates whether the TTS data installation requested with
         * {@link #ACTION_INSTALL_TTS_DATA} completed successfully or not. The value is
         * {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}.
         * {@hide}
         */
        public static final String EXTRA_TTS_DATA_INSTALLED = "dataInstalled";

        // keys for the parameters passed with speak commands. Hidden keys are used internally
        // to maintain engine state for each TextToSpeech instance.
        /**