diff options
author | Chris Ye <lzye@google.com> | 2020-06-02 21:34:49 -0700 |
---|---|---|
committer | Chris Ye <lzye@google.com> | 2020-07-10 15:49:48 -0700 |
commit | 0783e99d457c9d9a3ede400bdb355ba35e828de6 (patch) | |
tree | 7796db4b8f617c73befbb2d76c79e516ee56fd93 /libs/gui/tests/EndToEndNativeInputTest.cpp | |
parent | 8dcf124c0894e90b932ff5501892dacc37f36fad (diff) |
AIDL-ize InputManager IInputFlinger interface.
Use AIDL interface to define the IInputFlinger interface and replace
the manual interface.
Bug:155425003
Test: atest libgui_test, atest libinput_test.
Change-Id: Ibad036b8ceb3a3f5c6d58f8de4ea8c79379d29b5
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r-- | libs/gui/tests/EndToEndNativeInputTest.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp index 32c7fc2588..152f7ad56c 100644 --- a/libs/gui/tests/EndToEndNativeInputTest.cpp +++ b/libs/gui/tests/EndToEndNativeInputTest.cpp @@ -36,15 +36,16 @@ #include <gui/SurfaceComposerClient.h> #include <gui/SurfaceControl.h> -#include <input/InputWindow.h> -#include <input/IInputFlinger.h> -#include <input/InputTransport.h> +#include <android/os/IInputFlinger.h> #include <input/Input.h> +#include <input/InputTransport.h> +#include <input/InputWindow.h> #include <ui/DisplayConfig.h> #include <ui/Rect.h> #include <ui/Region.h> +using android::os::IInputFlinger; namespace android { namespace test { @@ -71,7 +72,7 @@ public: InputChannel::openInputChannelPair("testchannels", mServerChannel, mClientChannel); mInputFlinger = getInputFlinger(); - mInputFlinger->registerInputChannel(mServerChannel); + mInputFlinger->registerInputChannel(mServerChannel->getInfo()); populateInputInfo(width, height); @@ -153,9 +154,7 @@ public: EXPECT_EQ(0, mev->getFlags() & VERIFIED_MOTION_EVENT_FLAGS); } - ~InputSurface() { - mInputFlinger->unregisterInputChannel(mServerChannel); - } + ~InputSurface() { mInputFlinger->unregisterInputChannel(mServerChannel->getInfo()); } void doTransaction(std::function<void(SurfaceComposerClient::Transaction&, const sp<SurfaceControl>&)> transactionBody) { |