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

Commit 05f7b5c6 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by markchien
Browse files

Add NETWORK_STACK_SERVICE to SystemServiceRegistry

The service is already registered in ServiceManager. It needs to be
accessible from SystemServiceRegistry so that other mainline modules
can communicate with it.

Bug: 147255753
Test: Dependent CLs using the service
Change-Id: I940c62064466c3b3b8d2a195b810e90eaade7e6c
parent 22e130b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1707,6 +1707,7 @@ package android.content {
    field public static final String NETD_SERVICE = "netd";
    field public static final String NETWORK_POLICY_SERVICE = "netpolicy";
    field public static final String NETWORK_SCORE_SERVICE = "network_score";
    field public static final String NETWORK_STACK_SERVICE = "network_stack";
    field public static final String OEM_LOCK_SERVICE = "oem_lock";
    field public static final String PERMISSION_SERVICE = "permission";
    field public static final String PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block";
+1 −0
Original line number Diff line number Diff line
@@ -756,6 +756,7 @@ package android.content {
    field public static final String BUGREPORT_SERVICE = "bugreport";
    field public static final String CONTENT_CAPTURE_MANAGER_SERVICE = "content_capture";
    field public static final String DEVICE_IDLE_CONTROLLER = "deviceidle";
    field public static final String NETWORK_STACK_SERVICE = "network_stack";
    field public static final String PERMISSION_SERVICE = "permission";
    field public static final String POWER_WHITELIST_MANAGER = "power_whitelist";
    field public static final String ROLLBACK_SERVICE = "rollback";
+8 −0
Original line number Diff line number Diff line
@@ -345,6 +345,14 @@ public final class SystemServiceRegistry {
            }
        });

        registerService(Context.NETWORK_STACK_SERVICE, IBinder.class,
                new StaticServiceFetcher<IBinder>() {
                    @Override
                    public IBinder createService() {
                        return ServiceManager.getService(Context.NETWORK_STACK_SERVICE);
                    }
                });

        registerService(Context.TETHERING_SERVICE, TetheringManager.class,
                new CachedServiceFetcher<TetheringManager>() {
            @Override
+3 −1
Original line number Diff line number Diff line
@@ -3950,10 +3950,12 @@ public abstract class Context {

    /**
     * Use with {@link android.os.ServiceManager.getService()} to retrieve a
     * {@link NetworkStackClient} IBinder for communicating with the network stack
     * {@link INetworkStackConnector} IBinder for communicating with the network stack
     * @hide
     * @see NetworkStackClient
     */
    @SystemApi
    @TestApi
    public static final String NETWORK_STACK_SERVICE = "network_stack";

    /**