Loading core/java/android/view/inputmethod/InputMethodManager.java +22 −0 Original line number Original line Diff line number Diff line Loading @@ -1648,6 +1648,7 @@ public final class InputMethodManager { * * * @param userId user ID to query * @param userId user ID to query * @return {@link List} of {@link InputMethodInfo}. * @return {@link List} of {@link InputMethodInfo}. * @see #getEnabledInputMethodSubtypeListAsUser(String, boolean, int) * @hide * @hide */ */ @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) Loading Loading @@ -1675,6 +1676,27 @@ public final class InputMethodManager { UserHandle.myUserId()); UserHandle.myUserId()); } } /** * Returns a list of enabled input method subtypes for the specified input method info for the * specified user. * * @param imeId IME ID to be queried about. * @param allowsImplicitlyEnabledSubtypes {@code true} to include implicitly enabled subtypes. * @param userId user ID to be queried about. * {@link Manifest.permission#INTERACT_ACROSS_USERS_FULL} is required if this is * different from the calling process user ID. * @return {@link List} of {@link InputMethodSubtype}. * @see #getEnabledInputMethodListAsUser(int) * @hide */ @NonNull @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) public List<InputMethodSubtype> getEnabledInputMethodSubtypeListAsUser( @NonNull String imeId, boolean allowsImplicitlyEnabledSubtypes, @UserIdInt int userId) { return IInputMethodManagerGlobalInvoker.getEnabledInputMethodSubtypeList( Objects.requireNonNull(imeId), allowsImplicitlyEnabledSubtypes, userId); } /** /** * @deprecated Use {@link InputMethodService#showStatusIcon(int)} instead. This method was * @deprecated Use {@link InputMethodService#showStatusIcon(int)} instead. This method was * intended for IME developers who should be accessing APIs through the service. APIs in this * intended for IME developers who should be accessing APIs through the service. APIs in this Loading Loading
core/java/android/view/inputmethod/InputMethodManager.java +22 −0 Original line number Original line Diff line number Diff line Loading @@ -1648,6 +1648,7 @@ public final class InputMethodManager { * * * @param userId user ID to query * @param userId user ID to query * @return {@link List} of {@link InputMethodInfo}. * @return {@link List} of {@link InputMethodInfo}. * @see #getEnabledInputMethodSubtypeListAsUser(String, boolean, int) * @hide * @hide */ */ @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) Loading Loading @@ -1675,6 +1676,27 @@ public final class InputMethodManager { UserHandle.myUserId()); UserHandle.myUserId()); } } /** * Returns a list of enabled input method subtypes for the specified input method info for the * specified user. * * @param imeId IME ID to be queried about. * @param allowsImplicitlyEnabledSubtypes {@code true} to include implicitly enabled subtypes. * @param userId user ID to be queried about. * {@link Manifest.permission#INTERACT_ACROSS_USERS_FULL} is required if this is * different from the calling process user ID. * @return {@link List} of {@link InputMethodSubtype}. * @see #getEnabledInputMethodListAsUser(int) * @hide */ @NonNull @RequiresPermission(value = Manifest.permission.INTERACT_ACROSS_USERS_FULL, conditional = true) public List<InputMethodSubtype> getEnabledInputMethodSubtypeListAsUser( @NonNull String imeId, boolean allowsImplicitlyEnabledSubtypes, @UserIdInt int userId) { return IInputMethodManagerGlobalInvoker.getEnabledInputMethodSubtypeList( Objects.requireNonNull(imeId), allowsImplicitlyEnabledSubtypes, userId); } /** /** * @deprecated Use {@link InputMethodService#showStatusIcon(int)} instead. This method was * @deprecated Use {@link InputMethodService#showStatusIcon(int)} instead. This method was * intended for IME developers who should be accessing APIs through the service. APIs in this * intended for IME developers who should be accessing APIs through the service. APIs in this Loading