diff options
| author | 2022-10-28 19:53:46 -0700 | |
|---|---|---|
| committer | 2022-10-28 19:53:46 -0700 | |
| commit | cba800ef2f879a8e4bbd69754dd9a56012e5f842 (patch) | |
| tree | 81db000584bb54ebd7de9e3cc3afc6a50dc0b1e5 /libs/androidfw/StringPool.cpp | |
| parent | 89d683f2cfec03b1f244d9b64c151de893d4daf5 (diff) | |
Require TEST_INPUT_METHOD instead in IMM#addVirtualStylusIdForTestSession()
This is a follow up CL to our previous CL [1], which introduced an @TestApi
InputMethodManager#addVirtualStylusIdForTestSession(),
which internally requires INJECT_EVENTS permission.
Now that TEST_INPUT_METHOD is also available [2], let's require it
instead of INJECT_EVENTS for better consistency with other test APIs
defined in InputMethodManager.
This CL also add @RequiresPermission(TEST_INPUT_METHOD) to
InputMethodManager#addVirtualStylusIdForTestSession()
to make it clear that it's guarded with the permission.
[1]: I7399c0a56c04f024d65c16d459818cc2c5cdbc7f
d96ef57bc4f87f82395c4eb456b4c11c6faf912b
[2]: Ie79a3e9d41ce22605ae083594d639c37d08b7def
b869c783808c4d4937727a1672b2fac81bace368
Bug: 256239860
Test: atest CtsInputMethodTestCases:StylusHandwritingTest
Change-Id: Icdbb4ade2bd4b5066984e209efcf0ca93bfa08ca
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions