API: Supress existing inconsistent Context service names
Test: make checkapi Change-Id: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
This commit is contained in:
@@ -30,6 +30,7 @@ import android.annotation.StringDef;
|
||||
import android.annotation.StringRes;
|
||||
import android.annotation.StyleRes;
|
||||
import android.annotation.StyleableRes;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UserIdInt;
|
||||
@@ -3901,6 +3902,7 @@ public abstract class Context {
|
||||
*/
|
||||
@SystemApi
|
||||
@TestApi
|
||||
@SuppressLint("ServiceName")
|
||||
public static final String STATUS_BAR_SERVICE = "statusbar";
|
||||
|
||||
/**
|
||||
@@ -3993,6 +3995,7 @@ public abstract class Context {
|
||||
public static final String NETWORK_STATS_SERVICE = "netstats";
|
||||
/** {@hide} */
|
||||
@SystemApi
|
||||
@SuppressLint("ServiceName")
|
||||
public static final String NETWORK_POLICY_SERVICE = "netpolicy";
|
||||
/** {@hide} */
|
||||
public static final String NETWORK_WATCHLIST_SERVICE = "network_watchlist";
|
||||
@@ -4338,6 +4341,7 @@ public abstract class Context {
|
||||
* @see #getSystemService(String)
|
||||
*/
|
||||
@TestApi
|
||||
@SuppressLint("ServiceName") // TODO: This should be renamed to CONTENT_CAPTURE_SERVICE
|
||||
public static final String CONTENT_CAPTURE_MANAGER_SERVICE = "content_capture";
|
||||
|
||||
/**
|
||||
@@ -4433,6 +4437,7 @@ public abstract class Context {
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@SuppressLint("ServiceName") // TODO: This should be renamed to DEVICE_IDLE_SERVICE
|
||||
public static final String DEVICE_IDLE_CONTROLLER = "deviceidle";
|
||||
|
||||
/**
|
||||
@@ -4442,6 +4447,7 @@ public abstract class Context {
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@SuppressLint("ServiceName") // TODO: This should be renamed to POWER_WHITELIST_SERVICE
|
||||
public static final String POWER_WHITELIST_MANAGER = "power_whitelist";
|
||||
|
||||
/**
|
||||
@@ -5012,6 +5018,7 @@ public abstract class Context {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@SuppressLint("ServiceName")
|
||||
public static final String BATTERY_STATS_SERVICE = "batterystats";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user