summaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
author Shubhi <shubhisaxena@google.com> 2024-11-21 17:03:21 +0000
committer Shubhi <shubhisaxena@google.com> 2024-11-21 20:27:19 +0000
commitf84f2310dab42d43c338fe7f7d1a42bb40db5bf8 (patch)
tree841739494245b397a28f88bd4829cfd15f897c66 /apex
parentf06899a5de77d5648d850961274ce993196a5d19 (diff)
Clean up SearchSuggestionType class and use CloudMediaProviderContract
Instead of creating a custom SearchSuggestionType class, resue the suggestion defined in CloudMediaProviderContract Bug: 374920933 Test: atest SearchSuggestionsProviderTest Test: atest SearchRequestDatabaseUtilTest Test: atest SearchSuggestionsDatabaseUtilTest Flag: com.android.providers.media.flags.enable_photopicker_search Change-Id: Ifbe712212bef4fce09bacbb86d0cfbb88e478d2c
Diffstat (limited to 'apex')
-rw-r--r--apex/framework/java/android/provider/CloudMediaProviderContract.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/apex/framework/java/android/provider/CloudMediaProviderContract.java b/apex/framework/java/android/provider/CloudMediaProviderContract.java
index 30bbd162f..a5b84d72d 100644
--- a/apex/framework/java/android/provider/CloudMediaProviderContract.java
+++ b/apex/framework/java/android/provider/CloudMediaProviderContract.java
@@ -1461,6 +1461,16 @@ public final class CloudMediaProviderContract {
"com.android.providers.media.SEARCH_SUGGESTION_ALBUM";
/**
+ * Suggestion based on user's search history.
+ * @see SearchSuggestionColumns#TYPE
+ * Type: STRING
+ *
+ * @hide
+ */
+ public static final String SEARCH_SUGGESTION_HISTORY =
+ "com.android.providers.media.SEARCH_SUGGESTION_HISTORY";
+
+ /**
* Defines the different types of search suggestions available and supported in photo picker.
*
* @see SearchSuggestionColumns#TYPE
@@ -1471,7 +1481,8 @@ public final class CloudMediaProviderContract {
SEARCH_SUGGESTION_FACE,
SEARCH_SUGGESTION_LOCATION,
SEARCH_SUGGESTION_DATE,
- SEARCH_SUGGESTION_ALBUM
+ SEARCH_SUGGESTION_ALBUM,
+ SEARCH_SUGGESTION_HISTORY
})
@Retention(SOURCE)
public @interface SearchSuggestionType {}