summaryrefslogtreecommitdiff
path: root/libs/gui/tests/EndToEndNativeInputTest.cpp
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2020-07-30 11:17:23 -0500
committerSiarhei Vishniakou <svv@google.com>2020-07-31 20:14:06 -0500
commit7062295f0b35a97415e6eda3fa66f2ca8ff92b65 (patch)
treeaa1940c7f6db0fe38c48162a684a745d7555eca3 /libs/gui/tests/EndToEndNativeInputTest.cpp
parenta2862a07f054f6cc42f80d975a120f53a22aba9a (diff)
Add default input dispatching timeout constant
To use the same number consistently in java and native, add IInputConstants interface where we will store the constants. Bug: 161009325 Test: atest inputflinger_tests Change-Id: I10f45547b1161e3768a134b38bf40d77a3a82f09
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r--libs/gui/tests/EndToEndNativeInputTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp
index 5b429d00c1..a68ec29d52 100644
--- a/libs/gui/tests/EndToEndNativeInputTest.cpp
+++ b/libs/gui/tests/EndToEndNativeInputTest.cpp
@@ -207,7 +207,8 @@ private:
InputApplicationInfo aInfo;
aInfo.token = new BBinder();
aInfo.name = "Test app info";
- aInfo.dispatchingTimeoutNanos = DISPATCHING_TIMEOUT.count();
+ aInfo.dispatchingTimeoutMillis =
+ std::chrono::duration_cast<std::chrono::milliseconds>(DISPATCHING_TIMEOUT).count();
mInputInfo.applicationInfo = aInfo;
}