Add TYPE_HEADING sensor type to PackageManager features.

Bug: 189983308
Test: Compiled
Change-Id: I87234af6d3dd92b5fdc16b295225cae62ba03e8e
This commit is contained in:
Eva Chen
2022-01-10 20:50:47 -08:00
parent eb338ad900
commit 7e84bdea74
2 changed files with 8 additions and 0 deletions

View File

@@ -11862,6 +11862,7 @@ package android.content.pm {
field public static final String FEATURE_SENSOR_GYROSCOPE = "android.hardware.sensor.gyroscope";
field public static final String FEATURE_SENSOR_GYROSCOPE_LIMITED_AXES = "android.hardware.sensor.gyroscope_limited_axes";
field public static final String FEATURE_SENSOR_GYROSCOPE_LIMITED_AXES_UNCALIBRATED = "android.hardware.sensor.gyroscope_limited_axes_uncalibrated";
field public static final String FEATURE_SENSOR_HEADING = "android.hardware.sensor.heading";
field public static final String FEATURE_SENSOR_HEART_RATE = "android.hardware.sensor.heartrate";
field public static final String FEATURE_SENSOR_HEART_RATE_ECG = "android.hardware.sensor.heartrate.ecg";
field public static final String FEATURE_SENSOR_HINGE_ANGLE = "android.hardware.sensor.hinge_angle";

View File

@@ -3185,6 +3185,13 @@ public abstract class PackageManager {
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_SENSOR_HINGE_ANGLE = "android.hardware.sensor.hinge_angle";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device includes a heading sensor.
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_SENSOR_HEADING = "android.hardware.sensor.heading";
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device supports exposing head tracker sensors from peripheral