Commit Graph

3 Commits

Author SHA1 Message Date
czq
19e01a7c8b Extend InputMethodStressTest to add more IME show/hide e2e test cases.
Add more IME show/hide test cases to cover different flag settings(window flags, soft input mode flags), show/hide methods (from auto-show/IMM/WIC/Click), call times and user actions.

Merge the two TestActivitys in AutoShowTest and ImeOpenCloseStressTest into one in ImeStressTestUtil.

Modify test type in TEST_MAPPING to "presubmit-large" to avoid timeout.

See go/imf-test-cases for clearer test descriptions and results.

Bug: 242838873
Bug: 240359838

Test: atest com.android.inputmethod.stresstest.AutoShowTest
atest com.android.inputmethod.stresstest.ImeOpenCloseStressTest

Change-Id: Ibff3a85fa5b66c692a2fe8cd69fb1ca521b1b8d8
2022-11-22 13:27:29 +08:00
Kohsuke Yatoh
454d76153f Add autoshow testcase.
Autoshow is a feature of InputMethodManagerService.
This feature is not documented nor guarded by CTS.

A non-CTS regression test will be useful for keeping
UX consistency across Android versions.

Bug: 195468725
Test: atest InputMethodStressTest
Change-Id: I8025ff9b7813d0d5552f1ff84fff018bd0a178fa
2021-10-08 18:43:27 +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