summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Krishnan <vinodkrishnan@google.com>2014-04-30 11:11:39 -0700
committerVinod Krishnan <vinodkrishnan@google.com>2014-05-05 11:53:28 -0700
commit8afb23cbf6506008d7724197d881979d8c29f17b (patch)
tree8b30f9670e11793275e45542250ebb4581999262
parent1edfd835c2573711587cc77befeefd96083ccba5 (diff)
downloadframeworks_base-8afb23cbf6506008d7724197d881979d8c29f17b.zip
frameworks_base-8afb23cbf6506008d7724197d881979d8c29f17b.tar.gz
frameworks_base-8afb23cbf6506008d7724197d881979d8c29f17b.tar.bz2
Adding a HeartRate Feature
Bug: 14140142 Change-Id: I080bf12995355eac7621ef46e1a4a64d1f865500
-rw-r--r--api/current.txt1
-rw-r--r--core/java/android/content/pm/PackageManager.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index 2638ee4..324697b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -7345,6 +7345,7 @@ package android.content.pm {
field public static final java.lang.String FEATURE_SENSOR_BAROMETER = "android.hardware.sensor.barometer";
field public static final java.lang.String FEATURE_SENSOR_COMPASS = "android.hardware.sensor.compass";
field public static final java.lang.String FEATURE_SENSOR_GYROSCOPE = "android.hardware.sensor.gyroscope";
+ field public static final java.lang.String FEATURE_SENSOR_HEART_RATE = "android.hardware.sensor.heartrate";
field public static final java.lang.String FEATURE_SENSOR_LIGHT = "android.hardware.sensor.light";
field public static final java.lang.String FEATURE_SENSOR_PROXIMITY = "android.hardware.sensor.proximity";
field public static final java.lang.String FEATURE_SENSOR_STEP_COUNTER = "android.hardware.sensor.stepcounter";
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index e3a0362..3a6633d 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -1041,6 +1041,13 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: The device includes a heart rate monitor.
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_SENSOR_HEART_RATE = "android.hardware.sensor.heartrate";
+
+ /**
+ * Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device has a telephony radio with data
* communication support.
*/