From 3a4cb2dd178255feb46f55a8652a62cc5b9c1deb Mon Sep 17 00:00:00 2001 From: Shashwat Razdan Date: Thu, 10 Feb 2022 13:20:13 -0800 Subject: [PATCH] Adding multiple provider support in AbstractMasterSystemService Bug: 216509090 Test: CTS tests, tested on physical device Change-Id: I1da7f54bc8aaba15980aa90babaddc0b699c64e7 --- core/res/res/values/config.xml | 4 +- core/res/res/values/symbols.xml | 2 +- .../CloudSearchManagerService.java | 57 +++- ...CloudSearchManagerServiceShellCommand.java | 7 +- .../CloudSearchPerUserService.java | 24 +- .../infra/AbstractMasterSystemService.java | 308 ++++++++++++++---- .../infra/AbstractPerUserSystemService.java | 122 +++++-- ...FrameworkResourcesServiceNameResolver.java | 141 +++++--- .../server/infra/ServiceNameResolver.java | 71 +++- 9 files changed, 570 insertions(+), 166 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 5ac30de631c50..5b07eb58001e8 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -4130,9 +4130,9 @@ This service must be trusted, as it can be activated without explicit consent of the user. If no service with the specified name exists on the device, cloudsearch will be disabled. Example: "com.android.intelligence/.CloudSearchService" - config_defaultCloudSearchService is for the single provider case. + config_defaultCloudSearchServices is for the multiple provider case. --> - +