OSDN Git Service

STPK-1429 Return as many available events as possible from sensor_poll
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 2 Jul 2014 11:45:24 +0000 (13:45 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 16 Jul 2014 15:36:31 +0000 (18:36 +0300)
commit47aa36d46e822e7cfb7bf573248d5aca18d3b10c
treef8dae41c2d9d90377943d8ea76a1e3861c5574a7
parent74e77ce16dc58791f66e88ff02f37908ff786aaf
STPK-1429 Return as many available events as possible from sensor_poll

No longer return a single event when returning from sensor_poll. This
should minimize the trips between the Android sensor framework layers
and the HAL module itself. We can actually return up to one event per
sensor type, which should fit nicely with the buffer size that we get.

Issue: STPK-1429

Change-Id: Ie5f9974bee92380de4b121e005ace8261b77801e
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c