diff options
author | Jani Suonpera <jasuonpe@gmail.com> | 2015-10-09 11:45:57 +0300 |
---|---|---|
committer | Ben Fennema <fennema@google.com> | 2015-11-30 21:27:27 -0800 |
commit | d4db70a7b8b2d136c46c50f89b276f8150be5fc2 (patch) | |
tree | a52cb02edadeacc73359e025251ca262296245ba /include | |
parent | 804339a59e4abcbcf5a50a60ff0543e6b404e572 (diff) | |
download | frameworks_native-d4db70a7b8b2d136c46c50f89b276f8150be5fc2.zip frameworks_native-d4db70a7b8b2d136c46c50f89b276f8150be5fc2.tar.gz frameworks_native-d4db70a7b8b2d136c46c50f89b276f8150be5fc2.tar.bz2 |
DO NOT MERGE ANYWHERE Add new interface for sensor physical data
This is special solution only for emerald branch.
Changes including new const char* value/interface for sensor physical data. Sensor service and manager does not take care of content, structure or other
details of string. Sensor HAL is taking care of parsing data from string and setting values to Sensor HW.
Change-Id: I3abc3ddc7c6adc4b32a40b9a43f2a94c5af7b2b0
Signed-off-by: Ben Fennema <fennema@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/ISensorServer.h | 1 | ||||
-rw-r--r-- | include/gui/SensorManager.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/gui/ISensorServer.h b/include/gui/ISensorServer.h index 3dca2a3..e590ce9 100644 --- a/include/gui/ISensorServer.h +++ b/include/gui/ISensorServer.h @@ -41,6 +41,7 @@ public: virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, int mode, const String16& opPackageName) = 0; virtual int32_t isDataInjectionEnabled() = 0; + virtual status_t setSensorPhysicalData(const char* physicaldata) = 0; }; // ---------------------------------------------------------------------------- diff --git a/include/gui/SensorManager.h b/include/gui/SensorManager.h index 0cff46c..2b07ca7 100644 --- a/include/gui/SensorManager.h +++ b/include/gui/SensorManager.h @@ -58,7 +58,7 @@ public: Sensor const* getDefaultSensor(int type); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); bool isDataInjectionEnabled(); - + bool SetPhysicalData(const char* data); private: // DeathRecipient interface void sensorManagerDied(); |