diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-22 16:18:10 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-07-22 16:18:10 -0700 |
commit | efba8bf53aa6d0efb8cf778aaa63a482b813d2b1 (patch) | |
tree | f40319f8114e065f9f789dd528cadbc93eb0d0ca /services/sensorservice/SensorService.h | |
parent | d8653518449e3dbf03fe6f8b11dbdff5ef6ce60e (diff) | |
download | frameworks_base-efba8bf53aa6d0efb8cf778aaa63a482b813d2b1.zip frameworks_base-efba8bf53aa6d0efb8cf778aaa63a482b813d2b1.tar.gz frameworks_base-efba8bf53aa6d0efb8cf778aaa63a482b813d2b1.tar.bz2 |
filter sensor event by connection
we now don't send events down to a connection that has not
registered for this event.
Change-Id: I3fe507974d3e99293749bfec2ef871e8a0ee9600
Diffstat (limited to 'services/sensorservice/SensorService.h')
-rw-r--r-- | services/sensorservice/SensorService.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/sensorservice/SensorService.h b/services/sensorservice/SensorService.h index b8dda84..f77652d 100644 --- a/services/sensorservice/SensorService.h +++ b/services/sensorservice/SensorService.h @@ -77,8 +77,6 @@ class SensorService : sp<SensorChannel> const mChannel; // protected by SensorService::mLock - //SortedVector<int32_t> mSensorList; - struct SensorInfo { SensorInfo() : ns(DEFAULT_EVENTS_PERIOD) { } nsecs_t ns; @@ -88,7 +86,8 @@ class SensorService : public: SensorEventConnection(const sp<SensorService>& service); - status_t sendEvents(sensors_event_t const* buffer, size_t count); + status_t sendEvents(sensors_event_t const* buffer, size_t count, + sensors_event_t* scratch); bool hasSensor(int32_t handle) const; bool hasAnySensor() const; bool addSensor(int32_t handle); |