diff options
author | Yohei Yukawa <yukawa@google.com> | 2019-01-19 11:49:37 -0800 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2019-01-19 11:49:37 -0800 |
commit | 401e3d4c842ce86569de4477138137dc07a6aa6f (patch) | |
tree | 6fd66c984826e4b5b96c2d7b4fd092d6c0a978e7 /test-runner | |
parent | 329bc82c0fd2c68e5d17d6262518ab0062a9b706 (diff) |
Introduce @hide TextView#setTextOperationUser()
This CL introduces a unified way for framework developers to specify
whose components should be interacting with the given TextView. An
important use case is the direct-reply UI notification hosted in
System UI, which always runs as user 0 no matter who is the current
user.
For instance, to let the given EditText interact with user 10's input
methods and spell checkers, you can call setTextOperationUser() as
follows.
editText.setTextOperationUser(UserHandle.of(10));
In this way we can easily propergate the same user ID to other
components such as autofill and text classifer as necessary in the
future.
No one calls TextView#setTextOperationUser() yet hence there should be
no user-visible behavior change.
Bug: 120744418
Bug: 123043618
Test: spell checker still works
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I6d11e4d6a84570bc2991a8552349e8b216b0d139
Diffstat (limited to 'test-runner')
0 files changed, 0 insertions, 0 deletions