Merge "Expose getInputMethodListAsUser as a testAPI" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e519be1e33
@@ -2736,6 +2736,7 @@ package android.view.inputmethod {
|
||||
|
||||
public final class InputMethodManager {
|
||||
method public int getDisplayId();
|
||||
method @NonNull @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) public java.util.List<android.view.inputmethod.InputMethodInfo> getInputMethodListAsUser(int);
|
||||
method public boolean hasActiveInputConnection(@Nullable android.view.View);
|
||||
method public boolean isInputMethodPickerShown();
|
||||
}
|
||||
|
||||
@@ -1308,7 +1308,9 @@ public final class InputMethodManager {
|
||||
* @return {@link List} of {@link InputMethodInfo}.
|
||||
* @hide
|
||||
*/
|
||||
@TestApi
|
||||
@RequiresPermission(INTERACT_ACROSS_USERS_FULL)
|
||||
@NonNull
|
||||
public List<InputMethodInfo> getInputMethodListAsUser(@UserIdInt int userId) {
|
||||
try {
|
||||
final Completable.InputMethodInfoList value = Completable.createInputMethodInfoList();
|
||||
|
||||
Reference in New Issue
Block a user