From a5f61dd70ac151c8adbde20d3bc4cd7d27808d21 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Thu, 30 Mar 2017 16:09:13 -0700 Subject: libgui: Format IDisplayEventConnection Applies the framework default .clang-format and does a bit of tidying up (reflowing comments to 100 characters, reordering includes, etc.). Test: libgui_tests + manual testing Change-Id: I8b3515339a93dbe42ce4421cb561b78ed2fe9104 --- include/gui/IDisplayEventConnection.h | 43 ++++++++++++----------------------- 1 file changed, 14 insertions(+), 29 deletions(-) (limited to 'include/gui') diff --git a/include/gui/IDisplayEventConnection.h b/include/gui/IDisplayEventConnection.h index 848368c7b6..6512adb396 100644 --- a/include/gui/IDisplayEventConnection.h +++ b/include/gui/IDisplayEventConnection.h @@ -14,26 +14,21 @@ * limitations under the License. */ -#ifndef ANDROID_GUI_IDISPLAY_EVENT_CONNECTION_H -#define ANDROID_GUI_IDISPLAY_EVENT_CONNECTION_H +#pragma once -#include -#include +#include #include -#include -#include +#include +#include namespace android { -// ---------------------------------------------------------------------------- class BitTube; -class IDisplayEventConnection : public IInterface -{ +class IDisplayEventConnection : public IInterface { public: - DECLARE_META_INTERFACE(DisplayEventConnection) /* @@ -42,32 +37,22 @@ public: virtual sp getDataChannel() const = 0; /* - * setVsyncRate() sets the vsync event delivery rate. A value of - * 1 returns every vsync events. A value of 2 returns every other events, - * etc... a value of 0 returns no event unless requestNextVsync() has - * been called. + * setVsyncRate() sets the vsync event delivery rate. A value of 1 returns every vsync event. + * A value of 2 returns every other event, etc. A value of 0 returns no event unless + * requestNextVsync() has been called. */ virtual void setVsyncRate(uint32_t count) = 0; /* - * requestNextVsync() schedules the next vsync event. It has no effect - * if the vsync rate is > 0. + * requestNextVsync() schedules the next vsync event. It has no effect if the vsync rate is > 0. */ - virtual void requestNextVsync() = 0; // asynchronous + virtual void requestNextVsync() = 0; // Asynchronous }; -// ---------------------------------------------------------------------------- - -class BnDisplayEventConnection : public BnInterface -{ +class BnDisplayEventConnection : public BnInterface { public: - virtual status_t onTransact( uint32_t code, - const Parcel& data, - Parcel* reply, - uint32_t flags = 0); + virtual status_t onTransact(uint32_t code, const Parcel& data, Parcel* reply, + uint32_t flags = 0); }; -// ---------------------------------------------------------------------------- -}; // namespace android - -#endif // ANDROID_GUI_IDISPLAY_EVENT_CONNECTION_H +} // namespace android -- cgit v1.2.3-59-g8ed1b