From 56ae42613c91f6a6fb0dc3f626daa24666fd18c2 Mon Sep 17 00:00:00 2001 From: Aravind Akella Date: Thu, 10 Jul 2014 16:01:10 -0700 Subject: 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 --- libs/gui/BitTube.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/gui/BitTube.cpp') diff --git a/libs/gui/BitTube.cpp b/libs/gui/BitTube.cpp index 0282834703..3ed1f370a5 100644 --- a/libs/gui/BitTube.cpp +++ b/libs/gui/BitTube.cpp @@ -99,6 +99,11 @@ int BitTube::getFd() const return mReceiveFd; } +int BitTube::getSendFd() const +{ + return mSendFd; +} + ssize_t BitTube::write(void const* vaddr, size_t size) { ssize_t err, len; -- cgit v1.2.3-59-g8ed1b