summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorHui Wu <huiwu@google.com>2022-02-21 11:43:02 -0800
committerHui Wu <huiwu@google.com>2022-03-09 17:47:29 +0000
commitad360977146c2d51271eaea7aac34b9f1e4e9e09 (patch)
treed85c5753e5dad6a948e52dfbdde271339757534c /core/java
parent4e45ade943e75e951e70672dab422943fcfd0727 (diff)
CloudSearch API: adds two keys for app intents in ExtraInfo
CTS-Coverage-Bug: 210528288 Bug: 220741737 Test: RBE Built redfin-eng and tested on a physical device Change-Id: If2f83f35ff5418086d55fd9799b4586883d955eb Merged-In: If2f83f35ff5418086d55fd9799b4586883d955eb
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/app/cloudsearch/SearchResult.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/cloudsearch/SearchResult.java b/core/java/android/app/cloudsearch/SearchResult.java
index af8adacd4258..1ca01d4afe61 100644
--- a/core/java/android/app/cloudsearch/SearchResult.java
+++ b/core/java/android/app/cloudsearch/SearchResult.java
@@ -71,6 +71,8 @@ public final class SearchResult implements Parcelable {
EXTRAINFO_APP_BADGES,
EXTRAINFO_ACTION_BUTTON_TEXT_PREREGISTERING,
EXTRAINFO_ACTION_BUTTON_IMAGE_PREREGISTERING,
+ EXTRAINFO_APP_CARD_ACTION,
+ EXTRAINFO_INSTALL_BUTTON_ACTION,
EXTRAINFO_WEB_URL,
EXTRAINFO_WEB_ICON})
public @interface SearchResultExtraInfoKey {}
@@ -119,6 +121,14 @@ public final class SearchResult implements Parcelable {
@SuppressLint("IntentName")
public static final String EXTRAINFO_ACTION_BUTTON_IMAGE_PREREGISTERING =
"android.app.cloudsearch.ACTION_BUTTON_IMAGE";
+ /** Intent for tapping the app card, PendingIntent expected. */
+ @SuppressLint("IntentName")
+ public static final String EXTRAINFO_APP_CARD_ACTION =
+ "android.app.cloudsearch.APP_CARD_ACTION";
+ /** Intent for tapping the install button, PendingIntent expected. */
+ @SuppressLint("IntentName")
+ public static final String EXTRAINFO_INSTALL_BUTTON_ACTION =
+ "android.app.cloudsearch.INSTALL_BUTTON_ACTION";
/** Web content's URL, String value expected. */
public static final String EXTRAINFO_WEB_URL = "android.app.cloudsearch.WEB_URL";
/** Web content's domain icon, android.graphics.drawable.Icon expected. */