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
This commit is contained in:
Remi NGUYEN VAN
2021-03-11 21:06:10 +09:00
parent 1a645067e5
commit 2bf4c58ceb
2 changed files with 6 additions and 1 deletions

View File

@@ -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