Merge "Add TEST_NETWORK_SERVICE to module API" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-03-18 10:33:54 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ package android.content {
public abstract class Context {
method @NonNull public android.os.UserHandle getUser();
field public static final String TEST_NETWORK_SERVICE = "test_network";
}
public class Intent implements java.lang.Cloneable android.os.Parcelable {

View File

@@ -4219,7 +4219,8 @@ public abstract class Context {
* @see #getSystemService(String)
* @hide
*/
@TestApi public static final String TEST_NETWORK_SERVICE = "test_network";
@TestApi @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public static final String TEST_NETWORK_SERVICE = "test_network";
/**
* Use with {@link #getSystemService(String)} to retrieve a {@link