summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2014-06-13 00:32:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-12 03:30:50 +0000
commitadb65d9add2b7350b563d4583c5efbe3f0f0aca1 (patch)
treebf27e4039b00ada927c493954a8e3a7bcb4d7ce0 /include/gui
parenta3db3622c5d13f94a75c20e3f3d657df7fb4a765 (diff)
parent0e025c5af365e45e02cb75c1d46b46c7f4cd44cb (diff)
downloadframeworks_native-adb65d9add2b7350b563d4583c5efbe3f0f0aca1.zip
frameworks_native-adb65d9add2b7350b563d4583c5efbe3f0f0aca1.tar.gz
frameworks_native-adb65d9add2b7350b563d4583c5efbe3f0f0aca1.tar.bz2
Merge "Surface reportingMode for Sensors."
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/Sensor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/Sensor.h b/include/gui/Sensor.h
index c1c98b9..28a08e2 100644
--- a/include/gui/Sensor.h
+++ b/include/gui/Sensor.h
@@ -72,7 +72,9 @@ public:
const String8& getStringType() const;
const String8& getRequiredPermission() const;
int32_t getMaxDelay() const;
+ int32_t getFlags() const;
bool isWakeUpSensor() const;
+ int32_t getReportingMode() const;
// LightFlattenable protocol
inline bool isFixedSize() const { return false; }
@@ -96,7 +98,7 @@ private:
String8 mStringType;
String8 mRequiredPermission;
int32_t mMaxDelay;
- bool mWakeUpSensor;
+ int32_t mFlags;
static void flattenString8(void*& buffer, size_t& size, const String8& string8);
static bool unflattenString8(void const*& buffer, size_t& size, String8& outputString8);
};