Adding System Server implementation of Cloud Search API

Bug: 210528288
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Idac2e83819f9aeee292a5d53f3304d47cfc88af5
This commit is contained in:
Shashwat Razdan
2022-01-21 16:39:46 -08:00
parent b7f55ec599
commit f898abc490
9 changed files with 931 additions and 0 deletions

View File

@@ -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);