OSDN Git Service

fix a few problems with BitTube
authorMathias Agopian <mathias@google.com>
Tue, 10 Sep 2013 06:36:25 +0000 (23:36 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 11 Sep 2013 04:10:53 +0000 (21:10 -0700)
commit90ed3e8d7883d9c80fb8bf11b1c593bd8b2b39d0
tree18e3cac4c05f7b19989dff34b507118c44bbd59b
parent63108c34ec181e923b68ee840bb7960f205466a7
fix a few problems with BitTube

BitTube used to send objects one at a time and didn't
handle errors properly.

We now send all the objects in one call, which means they
have to be read as a single batch as well. This changes the
BitTube API.

Update SensorService to the new API.

Also added an API to set the size of the send buffer.

Bug: 10641596
Change-Id: I77c70d35e351fdba0416fae4b7ca3b1d56272251
include/gui/BitTube.h
include/gui/SensorEventQueue.h
libs/gui/BitTube.cpp
libs/gui/SensorEventQueue.cpp
services/sensorservice/SensorService.cpp