summaryrefslogtreecommitdiff
path: root/libs/gui/BitTube.cpp
diff options
context:
space:
mode:
author Aravind Akella <aakella@google.com> 2014-07-10 16:01:10 -0700
committer Aravind Akella <aakella@google.com> 2014-07-24 17:23:01 -0700
commit56ae42613c91f6a6fb0dc3f626daa24666fd18c2 (patch)
treebc892f5f3314eaa0d2d184162774fe8d215cc0c3 /libs/gui/BitTube.cpp
parent2cbba477bea136698944ece498115dbddd7bb659 (diff)
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
Diffstat (limited to 'libs/gui/BitTube.cpp')
-rw-r--r--libs/gui/BitTube.cpp5
1 files changed, 5 insertions, 0 deletions
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;