diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2021-03-11 21:06:10 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2021-03-19 00:04:24 +0000 |
commit | 2bf4c58ceb753b1b0d13a84cd9d4265b5e41798a (patch) | |
tree | bc2ccc3d40a519fa3d2813470968c6fe591b8313 /core/java | |
parent | 1a645067e55b7e5db9a49e3dbaebbe6294405450 (diff) |
Add TEST_NETWORK_SERVICE to module API
TestNetworkManager is being unbundled; the TEST_NETWORK_SERVICE constant
is necessary for the module to register the manager with
registerContextAwareService.
Bug: 171540887
Test: m
Change-Id: I0690251ddfcdaa8a34830e110b75869a370de389
Merged-In: I0690251ddfcdaa8a34830e110b75869a370de389
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/content/Context.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index aa6127904400..fe9ed27a516f 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -4099,7 +4099,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 |