summaryrefslogtreecommitdiff
path: root/services/java/com
diff options
context:
space:
mode:
author Shashwat Razdan <srazdan@google.com> 2022-01-21 16:39:46 -0800
committer Shashwat Razdan <srazdan@google.com> 2022-01-26 15:19:01 -0800
commitf898abc490de6a0b5ac3ca23fb52ff5ffafdaa15 (patch)
tree0f860be947eb75a2bc59294877b27c61b4ac605b /services/java/com
parentb7f55ec599d07895eac108e2370306ad0cd80b45 (diff)
Adding System Server implementation of Cloud Search API
Bug: 210528288 Test: RBE Built redfin-eng and tested on a physical device Change-Id: Idac2e83819f9aeee292a5d53f3304d47cfc88af5
Diffstat (limited to 'services/java/com')
-rw-r--r--services/java/com/android/server/SystemServer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 1fe71f8e13a1..7fa0f6a47920 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -376,6 +376,8 @@ public final class SystemServer implements Dumpable {
"com.android.server.searchui.SearchUiManagerService";
private static final String SMARTSPACE_MANAGER_SERVICE_CLASS =
"com.android.server.smartspace.SmartspaceManagerService";
+ private static final String CLOUDSEARCH_MANAGER_SERVICE_CLASS =
+ "com.android.server.cloudsearch.CloudSearchManagerService";
private static final String DEVICE_IDLE_CONTROLLER_CLASS =
"com.android.server.DeviceIdleController";
private static final String BLOB_STORE_MANAGER_SERVICE_CLASS =
@@ -1853,6 +1855,12 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(SMARTSPACE_MANAGER_SERVICE_CLASS);
t.traceEnd();
+ // CloudSearch manager service
+ // TODO: add deviceHasConfigString(context, R.string.config_defaultCloudSearchServices)
+ t.traceBegin("StartCloudSearchService");
+ mSystemServiceManager.startService(CLOUDSEARCH_MANAGER_SERVICE_CLASS);
+ t.traceEnd();
+
t.traceBegin("InitConnectivityModuleConnector");
try {
ConnectivityModuleConnector.getInstance().init(context);