[Thread] define Thread hardware feature

Define Thread hardware feature FEATURE_THREADNETWORK = "android.hardware.threadnetwork"
so that apps/users can know whether the device has Thread support.

This flags is defined as public API but not system API because we
defined TRANSPORT_THREAD as public API and general apps can access
Thread network by adding callback for the Thread network. Adding
the FEATURE_THREADNETWORK as public API allows apps to be more
clear/confident of whether they can retrieve the Thread network
with TRANSPORT_THREAD.

FR: b/235016403

Bug: 284296494
Bug: 292948264
Change-Id: I3bce3458fa721a20d8937a0c70eec2dbc7c54bc6
This commit is contained in:
Kangping Dong
2023-05-25 23:52:16 +08:00
parent d52e734a2e
commit c210fff110
2 changed files with 9 additions and 0 deletions

View File

@@ -12037,6 +12037,7 @@ package android.content.pm {
field public static final String FEATURE_TELEPHONY_RADIO_ACCESS = "android.hardware.telephony.radio.access";
field public static final String FEATURE_TELEPHONY_SUBSCRIPTION = "android.hardware.telephony.subscription";
field @Deprecated public static final String FEATURE_TELEVISION = "android.hardware.type.television";
field public static final String FEATURE_THREADNETWORK = "android.hardware.threadnetwork";
field public static final String FEATURE_TOUCHSCREEN = "android.hardware.touchscreen";
field public static final String FEATURE_TOUCHSCREEN_MULTITOUCH = "android.hardware.touchscreen.multitouch";
field public static final String FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT = "android.hardware.touchscreen.multitouch.distinct";

View File

@@ -3445,6 +3445,14 @@ public abstract class PackageManager {
public static final String FEATURE_TELEPHONY_SUBSCRIPTION =
"android.hardware.telephony.subscription";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device is capable of communicating with
* other devices via Thread network.
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_THREADNETWORK = "android.hardware.threadnetwork";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device is capable of communicating with