OSDN Git Service

SensorService performance improvements.
authorAravind Akella <aakella@google.com>
Thu, 10 Jul 2014 23:01:10 +0000 (16:01 -0700)
committerAravind Akella <aakella@google.com>
Fri, 25 Jul 2014 00:23:01 +0000 (17:23 -0700)
commit56ae42613c91f6a6fb0dc3f626daa24666fd18c2
treebc892f5f3314eaa0d2d184162774fe8d215cc0c3
parent2cbba477bea136698944ece498115dbddd7bb659
SensorService performance improvements.

  i) Send ack for wake_up sensors on the socket connection instead of using Binder RPC.
  ii) Cache events per connection in case there are write failures. Compute cache size
      from FIFO counts of sensors.
 iii) Send FlushCompleteEvent only for apps that explicitly called flush().

Change-Id: I018969736b7794b1b930529586f2294a03ee8667
include/gui/BitTube.h
include/gui/ISensorEventConnection.h
libs/gui/BitTube.cpp
libs/gui/ISensorEventConnection.cpp
libs/gui/SensorEventQueue.cpp
services/sensorservice/SensorService.cpp
services/sensorservice/SensorService.h