From 27c8115510cebda13cbe24fd4caa946ea9c5003c Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 31 Mar 2017 16:30:42 -0700 Subject: libgui: Format BitTube and move into gui namespace Reformats BitTube using the framework default .clang-format and moves it into the android::gui namespace. Test: m -j + manual testing Change-Id: I5ea748b809f37c2ec4dcfb41e7b84daf7a084368 --- include/gui/DisplayEventReceiver.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/gui/DisplayEventReceiver.h') diff --git a/include/gui/DisplayEventReceiver.h b/include/gui/DisplayEventReceiver.h index cb9b373392..6d1ab5d2d8 100644 --- a/include/gui/DisplayEventReceiver.h +++ b/include/gui/DisplayEventReceiver.h @@ -32,9 +32,12 @@ namespace android { // ---------------------------------------------------------------------------- -class BitTube; class IDisplayEventConnection; +namespace gui { +class BitTube; +} // namespace gui + static inline constexpr uint32_t fourcc(char c1, char c2, char c3, char c4) { return static_cast(c1) << 24 | static_cast(c2) << 16 | @@ -108,14 +111,14 @@ public: * should be destroyed and getEvents() shouldn't be called again. */ ssize_t getEvents(Event* events, size_t count); - static ssize_t getEvents(const sp& dataChannel, + static ssize_t getEvents(const sp& dataChannel, Event* events, size_t count); /* * sendEvents write events to the queue and returns how many events were * written. */ - static ssize_t sendEvents(const sp& dataChannel, + static ssize_t sendEvents(const sp& dataChannel, Event const* events, size_t count); /* @@ -134,7 +137,7 @@ public: private: sp mEventConnection; - sp mDataChannel; + sp mDataChannel; }; // ---------------------------------------------------------------------------- -- cgit v1.2.3-59-g8ed1b