diff options
author | Aravind Akella <aakella@google.com> | 2015-06-29 12:37:48 -0700 |
---|---|---|
committer | Aravind Akella <aakella@google.com> | 2015-06-30 14:59:58 -0700 |
commit | 841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1 (patch) | |
tree | 61960586e0c251477aeaa750e9ab0f3d808580ed /include | |
parent | 3643c88f7b557e241d65c4857eaf49e28e7c03a2 (diff) | |
download | frameworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.tar.gz frameworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.tar.bz2 frameworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.zip |
Enable sensor data injection mode through adb.
Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/ISensorServer.h | 2 | ||||
-rw-r--r-- | include/gui/SensorManager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/gui/ISensorServer.h b/include/gui/ISensorServer.h index 4feb6db98..3dca2a373 100644 --- a/include/gui/ISensorServer.h +++ b/include/gui/ISensorServer.h @@ -40,7 +40,7 @@ public: virtual Vector<Sensor> getSensorList(const String16& opPackageName) = 0; virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, int mode, const String16& opPackageName) = 0; - virtual status_t enableDataInjection(int enable) = 0; + virtual int32_t isDataInjectionEnabled() = 0; }; // ---------------------------------------------------------------------------- diff --git a/include/gui/SensorManager.h b/include/gui/SensorManager.h index 4c34e1247..37960673c 100644 --- a/include/gui/SensorManager.h +++ b/include/gui/SensorManager.h @@ -107,7 +107,7 @@ public: ssize_t getSensorList(Sensor const* const** list) const; Sensor const* getDefaultSensor(int type); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); - status_t enableDataInjection(bool enable); + bool isDataInjectionEnabled(); private: // DeathRecipient interface |