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

Commit f5af1f32 authored by Kangping Dong's avatar Kangping Dong
Browse files

[Thread] define the THREAD_NETWORK_SERVICE

Bug: 296830638
(cherry picked from https://android-review.googlesource.com/q/commit:73f4c4b90d085de61b7fbb3a5f831b8fc5f746f9)

Merged-In: Iaa1b6973b2fc86886db784e5d37e804daea854e8
Change-Id: Iaa1b6973b2fc86886db784e5d37e804daea854e8
parent 8dd9d32b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3481,6 +3481,7 @@ package android.content {
    field public static final String SYSTEM_CONFIG_SERVICE = "system_config";
    field public static final String SYSTEM_UPDATE_SERVICE = "system_update";
    field public static final String TETHERING_SERVICE = "tethering";
    field public static final String THREAD_NETWORK_SERVICE = "thread_network";
    field public static final String TIME_MANAGER_SERVICE = "time_manager";
    field public static final String TRANSLATION_MANAGER_SERVICE = "translation";
    field public static final String UI_TRANSLATION_SERVICE = "ui_translation";
+15 −0
Original line number Diff line number Diff line
@@ -4081,6 +4081,7 @@ public abstract class Context {
            VIBRATOR_MANAGER_SERVICE,
            VIBRATOR_SERVICE,
            //@hide: STATUS_BAR_SERVICE,
            THREAD_NETWORK_SERVICE,
            CONNECTIVITY_SERVICE,
            PAC_PROXY_SERVICE,
            VCN_MANAGEMENT_SERVICE,
@@ -4754,6 +4755,20 @@ public abstract class Context {
    @SystemApi
    public static final String TETHERING_SERVICE = "tethering";

    /**
     * Use with {@link #getSystemService(String)} to retrieve a
     * {@link android.net.thread.ThreadNetworkManager}.
     *
     * <p>On devices without {@link PackageManager#FEATURE_THREAD_NETWORK} system feature
     * the {@link #getSystemService(String)} will return {@code null}.
     *
     * @see #getSystemService(String)
     * @see android.net.thread.ThreadNetworkManager
     * @hide
     */
    @SystemApi
    public static final String THREAD_NETWORK_SERVICE = "thread_network";

    /**
     * Use with {@link #getSystemService(String)} to retrieve a
     * {@link android.net.IpSecManager} for encrypting Sockets or Networks with