summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike LeBeau <mlebeau@android.com>2010-12-06 15:52:17 -0500
committerMike LeBeau <mlebeau@android.com>2010-12-20 10:50:31 -0500
commit52af3a4f9a1f13ea3b19a7d2f2ee07c733abef74 (patch)
treeed3e37b18205a08982fcd10223a3f6ab0ee30d82 /core
parentc724f2fba330da275f46586aeb5f0ae7bd2fae99 (diff)
downloadframeworks_base-52af3a4f9a1f13ea3b19a7d2f2ee07c733abef74.zip
frameworks_base-52af3a4f9a1f13ea3b19a7d2f2ee07c733abef74.tar.gz
frameworks_base-52af3a4f9a1f13ea3b19a7d2f2ee07c733abef74.tar.bz2
Unhide RecognizerResultsIntent. This API was
reviewed for Froyo, but we didn't want to make it public then because it wasn't until our first Market release of Voice Search that the APIs would be in use by our app. http://b/3135351 Change-Id: I49053717cac08e3976c22e3a105139b6755aadb8
Diffstat (limited to 'core')
-rw-r--r--core/java/android/speech/RecognizerResultsIntent.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/core/java/android/speech/RecognizerResultsIntent.java b/core/java/android/speech/RecognizerResultsIntent.java
index b45e4b1..15ac57c 100644
--- a/core/java/android/speech/RecognizerResultsIntent.java
+++ b/core/java/android/speech/RecognizerResultsIntent.java
@@ -34,8 +34,6 @@ import java.util.ArrayList;
* the search results. If that is not available, then the corresponding url for that result in
* {@link #EXTRA_VOICE_SEARCH_RESULT_URLS} should be used. And if even that is not available,
* then a search url should be constructed from the actual recognition result string.
- *
- * @hide for making public in a later release
*/
public class RecognizerResultsIntent {
private RecognizerResultsIntent() {
@@ -58,8 +56,6 @@ public class RecognizerResultsIntent {
* and, possibly, the full html to display for that result at index N of
* {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}. If full html is provided, a base url (or
* list of base urls) should be provided with {@link #EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS}.
- *
- * @hide for making public in a later release
*/
public static final String ACTION_VOICE_SEARCH_RESULTS =
"android.speech.action.VOICE_SEARCH_RESULTS";
@@ -67,8 +63,6 @@ public class RecognizerResultsIntent {
/**
* The key to an extra {@link ArrayList} of {@link String}s that contains the list of
* recognition alternates from voice search, in order from highest to lowest confidence.
- *
- * @hide for making public in a later release
*/
public static final String EXTRA_VOICE_SEARCH_RESULT_STRINGS =
"android.speech.extras.VOICE_SEARCH_RESULT_STRINGS";
@@ -81,8 +75,6 @@ public class RecognizerResultsIntent {
* search url, that entry in this ArrayList should be <code>null</code>, and the implementor of
* {@link #ACTION_VOICE_SEARCH_RESULTS} should execute a search of its own choosing,
* based on the recognition result string.
- *
- * @hide for making public in a later release
*/
public static final String EXTRA_VOICE_SEARCH_RESULT_URLS =
"android.speech.extras.VOICE_SEARCH_RESULT_URLS";
@@ -102,8 +94,6 @@ public class RecognizerResultsIntent {
* uri or some other identifier. Anyone who reads this extra should confirm that a result is
* in fact an "inline:" uri and back off to the urls or strings gracefully if it is not, thus
* maintaining future backwards compatibility if this changes.
- *
- * @hide not to be exposed immediately as the implementation details may change
*/
public static final String EXTRA_VOICE_SEARCH_RESULT_HTML =
"android.speech.extras.VOICE_SEARCH_RESULT_HTML";
@@ -116,8 +106,6 @@ public class RecognizerResultsIntent {
* A list of the same size as {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} may be provided
* to apply different base urls to each different html result in the
* {@link #EXTRA_VOICE_SEARCH_RESULT_HTML} list.
- *
- * @hide not to be exposed immediately as the implementation details may change
*/
public static final String EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS =
"android.speech.extras.VOICE_SEARCH_RESULT_HTML_BASE_URLS";
@@ -132,16 +120,14 @@ public class RecognizerResultsIntent {
* apply different HTTP headers to each different web result in the list. These headers will
* only be used in the case that the url for a particular web result (from
* {@link #EXTRA_VOICE_SEARCH_RESULT_URLS}) is loaded.
- *
- * @hide not to be exposed immediately as the implementation details may change
*/
public static final String EXTRA_VOICE_SEARCH_RESULT_HTTP_HEADERS =
"android.speech.extras.EXTRA_VOICE_SEARCH_RESULT_HTTP_HEADERS";
/**
* The scheme used currently for html content in {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}.
- *
- * @hide not to be exposed immediately as the implementation details may change
+ * Note that this should only be used in tandem with this particular extra; it should
+ * NOT be used for generic URIs such as those found in the data field of an Intent.
*/
public static final String URI_SCHEME_INLINE = "inline";
}