diff options
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 |
commit | 56ae42613c91f6a6fb0dc3f626daa24666fd18c2 (patch) | |
tree | bc892f5f3314eaa0d2d184162774fe8d215cc0c3 /include/gui | |
parent | 2cbba477bea136698944ece498115dbddd7bb659 (diff) | |
download | frameworks_native-56ae42613c91f6a6fb0dc3f626daa24666fd18c2.zip frameworks_native-56ae42613c91f6a6fb0dc3f626daa24666fd18c2.tar.gz frameworks_native-56ae42613c91f6a6fb0dc3f626daa24666fd18c2.tar.bz2 |
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 'include/gui')
-rw-r--r-- | include/gui/BitTube.h | 3 | ||||
-rw-r--r-- | include/gui/ISensorEventConnection.h | 1 |
2 files changed, 3 insertions, 1 deletions
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 <typename T> static ssize_t sendObjects(const sp<BitTube>& 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; }; // ---------------------------------------------------------------------------- |