summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorAravind Akella <aakella@google.com>2015-06-29 12:37:48 -0700
committerAravind Akella <aakella@google.com>2015-06-30 14:59:58 -0700
commit841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1 (patch)
tree61960586e0c251477aeaa750e9ab0f3d808580ed /include/gui
parent3643c88f7b557e241d65c4857eaf49e28e7c03a2 (diff)
downloadframeworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.zip
frameworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.tar.gz
frameworks_native-841a5926fc9b3f9f0e654ba3aab8e43bea7de7f1.tar.bz2
Enable sensor data injection mode through adb.
Change-Id: I415cf8ff0871fa74babaf9b879c68f210298b472
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/ISensorServer.h2
-rw-r--r--include/gui/SensorManager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/gui/ISensorServer.h b/include/gui/ISensorServer.h
index 4feb6db..3dca2a3 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 4c34e12..3796067 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