Merge "Changes the name from cloudsearch_service to cloudsearch"

This commit is contained in:
Hui Wu
2022-01-29 00:19:29 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 5 deletions

View File

@@ -2692,7 +2692,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