diff options
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | api/test-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/hardware/Sensor.java | 8 |
4 files changed, 11 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index cb5d4b3eafba..3fc1673fc959 100644 --- a/api/current.txt +++ b/api/current.txt @@ -13541,6 +13541,7 @@ package android.hardware { field public static final int TYPE_ACCELEROMETER = 1; // 0x1 field public static final int TYPE_ALL = -1; // 0xffffffff field public static final int TYPE_AMBIENT_TEMPERATURE = 13; // 0xd + field public static final int TYPE_DEVICE_PRIVATE_BASE = 65536; // 0x10000 field public static final int TYPE_GAME_ROTATION_VECTOR = 15; // 0xf field public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20; // 0x14 field public static final int TYPE_GRAVITY = 9; // 0x9 diff --git a/api/system-current.txt b/api/system-current.txt index a59a704eacf7..48e1bd06d6a7 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -13942,6 +13942,7 @@ package android.hardware { field public static final int TYPE_ACCELEROMETER = 1; // 0x1 field public static final int TYPE_ALL = -1; // 0xffffffff field public static final int TYPE_AMBIENT_TEMPERATURE = 13; // 0xd + field public static final int TYPE_DEVICE_PRIVATE_BASE = 65536; // 0x10000 field public static final int TYPE_DYNAMIC_SENSOR_META = 32; // 0x20 field public static final int TYPE_GAME_ROTATION_VECTOR = 15; // 0xf field public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20; // 0x14 diff --git a/api/test-current.txt b/api/test-current.txt index 87e6e532be6b..c1035afc9a64 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -13551,6 +13551,7 @@ package android.hardware { field public static final int TYPE_ACCELEROMETER = 1; // 0x1 field public static final int TYPE_ALL = -1; // 0xffffffff field public static final int TYPE_AMBIENT_TEMPERATURE = 13; // 0xd + field public static final int TYPE_DEVICE_PRIVATE_BASE = 65536; // 0x10000 field public static final int TYPE_GAME_ROTATION_VECTOR = 15; // 0xf field public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20; // 0x14 field public static final int TYPE_GRAVITY = 9; // 0x9 diff --git a/core/java/android/hardware/Sensor.java b/core/java/android/hardware/Sensor.java index 841e5b0c9732..63ee8d2e75d3 100644 --- a/core/java/android/hardware/Sensor.java +++ b/core/java/android/hardware/Sensor.java @@ -652,6 +652,14 @@ public final class Sensor { public static final int TYPE_ALL = -1; + /** + * The lowest sensor type vendor defined sensors can use. + * + * All vendor sensor types are greater than or equal to this constant. + * + */ + public static final int TYPE_DEVICE_PRIVATE_BASE = 0x10000; + // If this flag is set, the sensor defined as a wake up sensor. This field and REPORTING_MODE_* // constants are defined as flags in sensors.h. Modify at both places if needed. private static final int SENSOR_FLAG_WAKE_UP_SENSOR = 1; |