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 --- include/gui/BitTube.h | 3 +++ include/gui/ISensorEventConnection.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/gui') diff --git a/include/gui/BitTube.h b/include/gui/BitTube.h index d32df84..3ecac52 100644 --- a/include/gui/BitTube.h +++ b/include/gui/BitTube.h @@ -48,6 +48,9 @@ public: // get receive file-descriptor int getFd() const; + // get the send file-descriptor. + int getSendFd() const; + // send objects (sized blobs). All objects are guaranteed to be written or the call fails. template static ssize_t sendObjects(const sp& tube, diff --git a/include/gui/ISensorEventConnection.h b/include/gui/ISensorEventConnection.h index b296797..f64c6b8 100644 --- a/include/gui/ISensorEventConnection.h +++ b/include/gui/ISensorEventConnection.h @@ -40,7 +40,6 @@ public: nsecs_t maxBatchReportLatencyNs, int reservedFlags) = 0; virtual status_t setEventRate(int handle, nsecs_t ns) = 0; virtual status_t flush() = 0; - virtual void decreaseWakeLockRefCount() = 0; }; // ---------------------------------------------------------------------------- -- cgit v1.1