Loading core/java/com/android/internal/inputmethod/InputMethodUtils.java +0 −24 Original line number Diff line number Diff line Loading @@ -878,12 +878,6 @@ public class InputMethodUtils { getEnabledInputMethodsAndSubtypeListLocked()); } public List<Pair<InputMethodInfo, ArrayList<String>>> getEnabledInputMethodAndSubtypeHashCodeListLocked() { return createEnabledInputMethodAndSubtypeHashCodeListLocked( getEnabledInputMethodsAndSubtypeListLocked()); } public List<InputMethodSubtype> getEnabledInputMethodSubtypeListLocked( Context context, InputMethodInfo imi, boolean allowsImplicitlySelectedSubtypes) { List<InputMethodSubtype> enabledSubtypes = Loading Loading @@ -998,19 +992,6 @@ public class InputMethodUtils { return res; } private List<Pair<InputMethodInfo, ArrayList<String>>> createEnabledInputMethodAndSubtypeHashCodeListLocked( List<Pair<String, ArrayList<String>>> imsList) { final ArrayList<Pair<InputMethodInfo, ArrayList<String>>> res = new ArrayList<>(); for (Pair<String, ArrayList<String>> ims : imsList) { InputMethodInfo info = mMethodMap.get(ims.first); if (info != null) { res.add(new Pair<>(info, ims.second)); } } return res; } private void putEnabledInputMethodsStr(String str) { Settings.Secure.putStringForUser( mResolver, Settings.Secure.ENABLED_INPUT_METHODS, str, mCurrentUserId); Loading Loading @@ -1225,11 +1206,6 @@ public class InputMethodUtils { subtypeId, mCurrentUserId); } public String getDisabledSystemInputMethods() { return Settings.Secure.getStringForUser( mResolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS, mCurrentUserId); } public String getSelectedInputMethod() { if (DEBUG) { Slog.d(TAG, "getSelectedInputMethodStr: " + Settings.Secure.getStringForUser( Loading services/core/java/com/android/server/InputMethodManagerService.java +0 −13 Original line number Diff line number Diff line Loading @@ -2892,8 +2892,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub // Use for queryIntentServicesAsUser final PackageManager pm = mContext.getPackageManager(); String disabledSysImes = mSettings.getDisabledSystemInputMethods(); if (disabledSysImes == null) disabledSysImes = ""; final List<ResolveInfo> services = pm.queryIntentServicesAsUser( new Intent(InputMethod.SERVICE_INTERFACE), Loading Loading @@ -3461,17 +3459,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub return mCurrentSubtype; } private void addShortcutInputMethodAndSubtypes(InputMethodInfo imi, InputMethodSubtype subtype) { if (mShortcutInputMethodsAndSubtypes.containsKey(imi)) { mShortcutInputMethodsAndSubtypes.get(imi).add(subtype); } else { ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); subtypes.add(subtype); mShortcutInputMethodsAndSubtypes.put(imi, subtypes); } } // TODO: We should change the return type from List to List<Parcelable> @SuppressWarnings("rawtypes") @Override Loading Loading
core/java/com/android/internal/inputmethod/InputMethodUtils.java +0 −24 Original line number Diff line number Diff line Loading @@ -878,12 +878,6 @@ public class InputMethodUtils { getEnabledInputMethodsAndSubtypeListLocked()); } public List<Pair<InputMethodInfo, ArrayList<String>>> getEnabledInputMethodAndSubtypeHashCodeListLocked() { return createEnabledInputMethodAndSubtypeHashCodeListLocked( getEnabledInputMethodsAndSubtypeListLocked()); } public List<InputMethodSubtype> getEnabledInputMethodSubtypeListLocked( Context context, InputMethodInfo imi, boolean allowsImplicitlySelectedSubtypes) { List<InputMethodSubtype> enabledSubtypes = Loading Loading @@ -998,19 +992,6 @@ public class InputMethodUtils { return res; } private List<Pair<InputMethodInfo, ArrayList<String>>> createEnabledInputMethodAndSubtypeHashCodeListLocked( List<Pair<String, ArrayList<String>>> imsList) { final ArrayList<Pair<InputMethodInfo, ArrayList<String>>> res = new ArrayList<>(); for (Pair<String, ArrayList<String>> ims : imsList) { InputMethodInfo info = mMethodMap.get(ims.first); if (info != null) { res.add(new Pair<>(info, ims.second)); } } return res; } private void putEnabledInputMethodsStr(String str) { Settings.Secure.putStringForUser( mResolver, Settings.Secure.ENABLED_INPUT_METHODS, str, mCurrentUserId); Loading Loading @@ -1225,11 +1206,6 @@ public class InputMethodUtils { subtypeId, mCurrentUserId); } public String getDisabledSystemInputMethods() { return Settings.Secure.getStringForUser( mResolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS, mCurrentUserId); } public String getSelectedInputMethod() { if (DEBUG) { Slog.d(TAG, "getSelectedInputMethodStr: " + Settings.Secure.getStringForUser( Loading
services/core/java/com/android/server/InputMethodManagerService.java +0 −13 Original line number Diff line number Diff line Loading @@ -2892,8 +2892,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub // Use for queryIntentServicesAsUser final PackageManager pm = mContext.getPackageManager(); String disabledSysImes = mSettings.getDisabledSystemInputMethods(); if (disabledSysImes == null) disabledSysImes = ""; final List<ResolveInfo> services = pm.queryIntentServicesAsUser( new Intent(InputMethod.SERVICE_INTERFACE), Loading Loading @@ -3461,17 +3459,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub return mCurrentSubtype; } private void addShortcutInputMethodAndSubtypes(InputMethodInfo imi, InputMethodSubtype subtype) { if (mShortcutInputMethodsAndSubtypes.containsKey(imi)) { mShortcutInputMethodsAndSubtypes.get(imi).add(subtype); } else { ArrayList<InputMethodSubtype> subtypes = new ArrayList<>(); subtypes.add(subtype); mShortcutInputMethodsAndSubtypes.put(imi, subtypes); } } // TODO: We should change the return type from List to List<Parcelable> @SuppressWarnings("rawtypes") @Override Loading