Changes the name from cloudsearch_service to cloudsearch

CTS-Coverage-Bug: 210528288
Bug: 216507592
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: Ic9505f659befa01938b413e1e1944c3aaa0e8a0c
This commit is contained in:
Hui Wu
2022-01-27 15:17:37 -08:00
parent 6c03192f3d
commit 41f68c7d13
3 changed files with 2 additions and 5 deletions

View File

@@ -2688,7 +2688,7 @@ package android.content {
field public static final String BATTERY_STATS_SERVICE = "batterystats";
field @Deprecated public static final int BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS = 1048576; // 0x100000
field public static final int BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND = 262144; // 0x40000
field public static final String CLOUDSEARCH_SERVICE = "cloudsearch_service";
field public static final String CLOUDSEARCH_SERVICE = "cloudsearch";
field public static final String CONTENT_SUGGESTIONS_SERVICE = "content_suggestions";
field public static final String CONTEXTHUB_SERVICE = "contexthub";
field public static final String ETHERNET_SERVICE = "ethernet";

View File

@@ -294,7 +294,6 @@ SamShouldBeLast: android.webkit.WebChromeClient#onShowFileChooser(android.webkit
ServiceName: android.content.Context#CLOUDSEARCH_SERVICE:
Inconsistent service value; expected `cloudsearch`, was `cloudsearch_service` (Note: Do not change the name of already released services, which will break tools using `adb shell dumpsys`. Instead add `@SuppressLint("ServiceName"))`
UserHandleName: android.app.search.SearchAction.Builder#setUserHandle(android.os.UserHandle):

View File

@@ -4987,10 +4987,8 @@ public abstract class Context {
* @hide
* @see #getSystemService(String)
*/
// TODO(216507592): Change cloudsearch_service to cloudsearch.
@SystemApi
@SuppressLint("ServiceName")
public static final String CLOUDSEARCH_SERVICE = "cloudsearch_service";
public static final String CLOUDSEARCH_SERVICE = "cloudsearch";
/**
* Use with {@link #getSystemService(String)} to access the