diff options
author | Siarhei Vishniakou <svv@google.com> | 2020-06-30 14:22:57 -0500 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2020-07-08 11:18:37 -0500 |
commit | c1ae5568e5d6b39499f0c46e7f5ae2a8759d2ecd (patch) | |
tree | 01190a4ef30d2cde65568abd84d528b7f36c226b /libs/gui/tests/EndToEndNativeInputTest.cpp | |
parent | c945c8cb4846b172fa992e260abec29b5f6ea461 (diff) |
Use chrono for dispatching timeout
To prevent confusion about the units of dispatchingTimeout, convert to
chrono.
Bug: 155931890
Test: atest inputflinger_tests
Change-Id: Icfcb3bad7188052a6b047b3cbe836be8d928fad2
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r-- | libs/gui/tests/EndToEndNativeInputTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp index b1d3ecbf36..32c7fc2588 100644 --- a/libs/gui/tests/EndToEndNativeInputTest.cpp +++ b/libs/gui/tests/EndToEndNativeInputTest.cpp @@ -189,7 +189,7 @@ private: mInputInfo.name = "Test info"; mInputInfo.layoutParamsFlags = InputWindowInfo::FLAG_NOT_TOUCH_MODAL; mInputInfo.layoutParamsType = InputWindowInfo::TYPE_BASE_APPLICATION; - mInputInfo.dispatchingTimeout = seconds_to_nanoseconds(5); + mInputInfo.dispatchingTimeout = 5s; mInputInfo.globalScaleFactor = 1.0; mInputInfo.canReceiveKeys = true; mInputInfo.hasFocus = true; @@ -207,7 +207,7 @@ private: InputApplicationInfo aInfo; aInfo.token = new BBinder(); aInfo.name = "Test app info"; - aInfo.dispatchingTimeout = seconds_to_nanoseconds(5); + aInfo.dispatchingTimeout = 5s; mInputInfo.applicationInfo = aInfo; } |