Commit Graph

4 Commits

Author SHA1 Message Date
Kohsuke Yatoh
f75e0a0512 Take screenshot on failure.
ScreenCaptureRule is inspired by ScreenshotTestRule [1], but does not
require additional permissions as ScreenCaptureRule uses Shell
permission.

[1] https://cs.android.com/android/platform/superproject/+/master:cts/tests/tests/systemui/src/android/systemui/cts/ScreenshotTestRule.java

Bug: 227712564
Bug: 227424350
Test: atest InputMethodStressTest
Change-Id: I8569cb09a430540ac3f932e36bc80800312e7865
2022-04-08 17:31:26 -07:00
Kohsuke Yatoh
fd0314d65a Drop "adb shell" from RunCommandTargetPreparer.
The command should not have "adb shell", as the command is passed to
the device shell by RunCommandTargetPreparer.

Bug: 220385622
Test: atest InputMethodStressTest
Change-Id: I95a90d73e2c26c0ad21d5000b19ff8d805de5250
2022-03-21 15:09:15 -07:00
Kohsuke Yatoh
27f81d551b Always show virtual keyboard in test.
Some emulators have a physical keyboard and the test fails if the
default IME suppresses itself.
Set show_ime_with_hard_keyboard setting to request always showing
virtual keyboard.

Bug: 220385622
Test: atest InputMethodStressTest
Change-Id: Iaf0d30635ca94ae044bb3d3ed771387ce2288cb3
2022-02-23 19:13:49 +00:00
Kohsuke Yatoh
08603e695f Initial commit of InputMethodStressTest.
This CL added a simple test of showing and hiding IME for 100 times.

TODOs:
1. Add more complicated flows (such as notification).
2. Check IME visibility in several points (WindowManager dump,
   SurfaceFlinger dump, etc), not just the inset that the app received.

Bug: 195468725
Test: atest InputMethodStressTest
Change-Id: I1959225a7396d17750d799e11c42eb1899fe5bb9
2021-08-05 16:58:13 -07:00