Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d31b3521 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

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
parent 6681a152
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+2 −1
Original line number Diff line number Diff line
@@ -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