Loading include/input/Input.h +6 −6 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ class KeyEvent : public InputEvent { public: virtual ~KeyEvent() { } virtual InputEventType getType() const { return InputEventType::KEY; } InputEventType getType() const override { return InputEventType::KEY; } inline int32_t getAction() const { return mAction; } Loading Loading @@ -602,7 +602,7 @@ class MotionEvent : public InputEvent { public: virtual ~MotionEvent() { } virtual InputEventType getType() const { return InputEventType::MOTION; } InputEventType getType() const override { return InputEventType::MOTION; } inline int32_t getAction() const { return mAction; } Loading Loading @@ -930,7 +930,7 @@ class FocusEvent : public InputEvent { public: virtual ~FocusEvent() {} virtual InputEventType getType() const override { return InputEventType::FOCUS; } InputEventType getType() const override { return InputEventType::FOCUS; } inline bool getHasFocus() const { return mHasFocus; } Loading @@ -949,7 +949,7 @@ class CaptureEvent : public InputEvent { public: virtual ~CaptureEvent() {} virtual InputEventType getType() const override { return InputEventType::CAPTURE; } InputEventType getType() const override { return InputEventType::CAPTURE; } inline bool getPointerCaptureEnabled() const { return mPointerCaptureEnabled; } Loading @@ -968,7 +968,7 @@ class DragEvent : public InputEvent { public: virtual ~DragEvent() {} virtual InputEventType getType() const override { return InputEventType::DRAG; } InputEventType getType() const override { return InputEventType::DRAG; } inline bool isExiting() const { return mIsExiting; } Loading @@ -992,7 +992,7 @@ class TouchModeEvent : public InputEvent { public: virtual ~TouchModeEvent() {} virtual InputEventType getType() const override { return InputEventType::TOUCH_MODE; } InputEventType getType() const override { return InputEventType::TOUCH_MODE; } inline bool isInTouchMode() const { return mIsInTouchMode; } Loading services/inputflinger/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ cc_test { "SlopController_test.cpp", "SyncQueue_test.cpp", "TestInputListener.cpp", "TestInputListenerMatchers.cpp", "TouchpadInputMapper_test.cpp", "KeyboardInputMapper_test.cpp", "UinputDevice.cpp", Loading Loading
include/input/Input.h +6 −6 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ class KeyEvent : public InputEvent { public: virtual ~KeyEvent() { } virtual InputEventType getType() const { return InputEventType::KEY; } InputEventType getType() const override { return InputEventType::KEY; } inline int32_t getAction() const { return mAction; } Loading Loading @@ -602,7 +602,7 @@ class MotionEvent : public InputEvent { public: virtual ~MotionEvent() { } virtual InputEventType getType() const { return InputEventType::MOTION; } InputEventType getType() const override { return InputEventType::MOTION; } inline int32_t getAction() const { return mAction; } Loading Loading @@ -930,7 +930,7 @@ class FocusEvent : public InputEvent { public: virtual ~FocusEvent() {} virtual InputEventType getType() const override { return InputEventType::FOCUS; } InputEventType getType() const override { return InputEventType::FOCUS; } inline bool getHasFocus() const { return mHasFocus; } Loading @@ -949,7 +949,7 @@ class CaptureEvent : public InputEvent { public: virtual ~CaptureEvent() {} virtual InputEventType getType() const override { return InputEventType::CAPTURE; } InputEventType getType() const override { return InputEventType::CAPTURE; } inline bool getPointerCaptureEnabled() const { return mPointerCaptureEnabled; } Loading @@ -968,7 +968,7 @@ class DragEvent : public InputEvent { public: virtual ~DragEvent() {} virtual InputEventType getType() const override { return InputEventType::DRAG; } InputEventType getType() const override { return InputEventType::DRAG; } inline bool isExiting() const { return mIsExiting; } Loading @@ -992,7 +992,7 @@ class TouchModeEvent : public InputEvent { public: virtual ~TouchModeEvent() {} virtual InputEventType getType() const override { return InputEventType::TOUCH_MODE; } InputEventType getType() const override { return InputEventType::TOUCH_MODE; } inline bool isInTouchMode() const { return mIsInTouchMode; } Loading
services/inputflinger/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ cc_test { "SlopController_test.cpp", "SyncQueue_test.cpp", "TestInputListener.cpp", "TestInputListenerMatchers.cpp", "TouchpadInputMapper_test.cpp", "KeyboardInputMapper_test.cpp", "UinputDevice.cpp", Loading