diff options
| author | 2025-02-05 16:23:24 +0100 | |
|---|---|---|
| committer | 2025-02-05 16:35:10 +0100 | |
| commit | 5aefade7285b6524106d67ff5d6538371a624d20 (patch) | |
| tree | 014758bf9ddf4cbe1add017ebb2480ac94de2ee9 /libs/androidfw/misc.cpp | |
| parent | eeccf514a5de1ddf9ecff587f23750116b5871ee (diff) | |
Restore initial config and await secure setting
Some tests in InputMethodServiceTest manually modify the IME's
configuration to setup various hardware keyboard scenarios. However,
the configuration is not reset at the end of the test, and the values
persist across test runs in this class. This wraps the tests in
try-finally blocks and restore the initial config.
Aditionally, some tests rely on setting the show_ime_with_hard_keyboard
value, but don't wait for this to be applied. This adds a check that
eventually the new value takes effect. To make this more efficient, a
test API is added to IME to directly read the value of the secure
setting as cached by the IME.
Flag: EXEMPT testfix
Bug: 394328311
Test: atest InputMethodServiceTest
Change-Id: Id97df01a5603ed8ed1201da4d7ecde6ffb44650a
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions