diff options
| author | 2025-02-04 18:48:18 +0100 | |
|---|---|---|
| committer | 2025-02-05 16:32:43 +0100 | |
| commit | eeccf514a5de1ddf9ecff587f23750116b5871ee (patch) | |
| tree | 77c07262f849cb3afe2f3ea41d0ff6ae62100999 /libs/androidfw/misc.cpp | |
| parent | 8c3f859c6d4f9e186b725265965a8cd56ac5e4cb (diff) | |
Cleanup InputMethodServiceTest and SimpleIMS
This cleans up the InputMethodServiceTest code, as well as SimpleIMS and
its TestActivity, by clarifying method/field names, adding nullability
annotations, and introducing assertion messages.
Additionally removed the return value from showing/hiding the IME via
the InsetsController APIs, as these were always returning true.
Extracted separate methods for checking whether there is a navigation
bar, and setting the IME NavButtonFlags manually. Ensured the
countDownLatchForTesting is reset after usage. Explicilty handled
exceptions by failing the test with a clear message. Added the missing
testShowHideKeyboard_byInputMethodManager test. Removed an incorrect
assertion from testImeSwitchButtonLongClick.
Flag: EXEMPT testfix
Bug: 394328311
Test: atest InputMethodServiceTest
Change-Id: Id4aaa987114d4a90213f20a2e0895776b4eab0a5
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions