diff --git a/include/ui/Input.h b/include/ui/Input.h index 57b292bbc..889078971 100644 --- a/include/ui/Input.h +++ b/include/ui/Input.h @@ -43,7 +43,7 @@ enum { /* * Declare a concrete type for the NDK's input event forward declaration. */ -struct input_event_t { }; +struct AInputEvent { }; namespace android { @@ -136,7 +136,7 @@ struct PointerCoords { /* * Input events. */ -class InputEvent : public input_event_t { +class InputEvent : public AInputEvent { public: virtual ~InputEvent() { } diff --git a/include/ui/InputTransport.h b/include/ui/InputTransport.h index d6bded620..4e76051a9 100644 --- a/include/ui/InputTransport.h +++ b/include/ui/InputTransport.h @@ -333,13 +333,13 @@ private: /* * NDK input queue API. */ -struct input_queue_t { +struct AInputQueue { public: /* Creates a consumer associated with an input channel. */ - explicit input_queue_t(const android::sp& channel); + explicit AInputQueue(const android::sp& channel); /* Destroys the consumer and releases its input channel. */ - ~input_queue_t(); + ~AInputQueue(); inline android::InputConsumer& getConsumer() { return mConsumer; } diff --git a/libs/ui/InputTransport.cpp b/libs/ui/InputTransport.cpp index f56537ab7..25def3c18 100644 --- a/libs/ui/InputTransport.cpp +++ b/libs/ui/InputTransport.cpp @@ -691,7 +691,7 @@ void InputConsumer::populateMotionEvent(MotionEvent* motionEvent) const { } // namespace android -// --- input_queue_t --- +// --- AInputQueue --- using android::InputEvent; using android::InputChannel; @@ -699,13 +699,13 @@ using android::InputConsumer; using android::sp; using android::status_t; -input_queue_t::input_queue_t(const sp& channel) : +AInputQueue::AInputQueue(const sp& channel) : mConsumer(channel) { } -input_queue_t::~input_queue_t() { +AInputQueue::~AInputQueue() { } -status_t input_queue_t::consume(InputEvent** event) { +status_t AInputQueue::consume(InputEvent** event) { return mConsumer.consume(&mInputEventFactory, event); }