summaryrefslogtreecommitdiff
path: root/src_plugins
diff options
context:
space:
mode:
author Becky Qiu <xuqiu@google.com> 2021-09-03 10:59:28 -0700
committer Becky Qiu <xuqiu@google.com> 2021-09-03 11:15:01 -0700
commita499fd4f93d3c9a35a68f4a08920541f02423093 (patch)
treed6c6b18535e69a7641bc85bf382bbbb92684f73f /src_plugins
parentfb624f85011864f0eb10ff03bac1e8c40450d78e (diff)
[OneSearch] Add a clear function in the plugin to clear cache and memory.
Bug: 196586652 Test: manual Change-Id: I094cefadda0a958b0059820f1c02ddf0298abbd8
Diffstat (limited to 'src_plugins')
-rw-r--r--src_plugins/com/android/systemui/plugins/OneSearch.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src_plugins/com/android/systemui/plugins/OneSearch.java b/src_plugins/com/android/systemui/plugins/OneSearch.java
index 59ee4f4ee1..6d57c19e66 100644
--- a/src_plugins/com/android/systemui/plugins/OneSearch.java
+++ b/src_plugins/com/android/systemui/plugins/OneSearch.java
@@ -29,7 +29,7 @@ import java.util.ArrayList;
@ProvidesInterface(action = OneSearch.ACTION, version = OneSearch.VERSION)
public interface OneSearch extends Plugin {
String ACTION = "com.android.systemui.action.PLUGIN_ONE_SEARCH";
- int VERSION = 1;
+ int VERSION = 2;
/**
* Get the content provider warmed up.
@@ -53,4 +53,7 @@ public interface OneSearch extends Plugin {
* @param suggest The suggest to get the subtitle for.
*/
String getSubtitle(Spanned suggest);
+
+ /** Clear any cached data or storage used in search. */
+ void clear();
}