summaryrefslogtreecommitdiff
path: root/libs/gui/tests/EndToEndNativeInputTest.cpp
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2020-07-08 13:48:11 +0100
committerMichael Wright <michaelwr@google.com>2020-07-17 15:34:54 +0100
commit44753b15e754a33be9203b1dddbbdcae78afd493 (patch)
tree69d0209c5c7e8cdb6bff089567fd8708fa00e06a /libs/gui/tests/EndToEndNativeInputTest.cpp
parent6aa5a3b5c2cbfcf3c7101409b9e866ccde9adf4e (diff)
Move things in InputWindowInfo to enum classes
Also introduce a new Flag class to make it possible to deal with flags while treating the individual flags as part of an enum class in a type safe manner. Bug: 160010896 Test: atest inputflinger_tests, atest libinput_tests Change-Id: I915a1c1e3b31f1c0fd99b83ba5fad7e537cd6f84
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r--libs/gui/tests/EndToEndNativeInputTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp
index 152f7ad56c..383d5916a4 100644
--- a/libs/gui/tests/EndToEndNativeInputTest.cpp
+++ b/libs/gui/tests/EndToEndNativeInputTest.cpp
@@ -186,8 +186,8 @@ private:
void populateInputInfo(int width, int height) {
mInputInfo.token = mServerChannel->getConnectionToken();
mInputInfo.name = "Test info";
- mInputInfo.layoutParamsFlags = InputWindowInfo::FLAG_NOT_TOUCH_MODAL;
- mInputInfo.layoutParamsType = InputWindowInfo::TYPE_BASE_APPLICATION;
+ mInputInfo.flags = InputWindowInfo::Flag::NOT_TOUCH_MODAL;
+ mInputInfo.type = InputWindowInfo::Type::BASE_APPLICATION;
mInputInfo.dispatchingTimeout = 5s;
mInputInfo.globalScaleFactor = 1.0;
mInputInfo.canReceiveKeys = true;
@@ -200,7 +200,6 @@ private:
// TODO: Fill in from SF?
mInputInfo.ownerPid = 11111;
mInputInfo.ownerUid = 11111;
- mInputInfo.inputFeatures = 0;
mInputInfo.displayId = 0;
InputApplicationInfo aInfo;