diff options
| author | 2023-08-21 19:01:26 +0800 | |
|---|---|---|
| committer | 2023-09-15 04:11:39 +0000 | |
| commit | f5af1f3209b725e32cde2dfadc7a39d20aefb4a3 (patch) | |
| tree | 4626ceb6ff609036d761987de3ee0829a592f9c6 | |
| parent | 8dd9d32b2492364ce83763c3eaa52a8656312236 (diff) | |
[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
| -rw-r--r-- | core/api/system-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/content/Context.java | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index cf319c425bfe..813674be5e7c 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -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"; diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index d7dcb8881ce4..10857e51f916 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -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, @@ -4756,6 +4757,20 @@ public abstract class Context { /** * 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 * IPSec. * |