InputMethodSubtypeSwitchingControllerpublic class InputMethodSubtypeSwitchingController extends Object InputMethodSubtypeSwitchingController controls the switching behavior of the subtypes.
This class is designed to be used from and only from {@link InputMethodManagerService} by using
{@link InputMethodManagerService#mMethodMap} as a global lock.
|
Fields Summary |
---|
private static final String | TAG | private static final boolean | DEBUG | private static final int | NOT_A_SUBTYPE_ID | private final com.android.internal.inputmethod.InputMethodUtils.InputMethodSettings | mSettings | private InputMethodAndSubtypeList | mSubtypeList | private ControllerImpl | mController |
Methods Summary |
---|
private static int | calculateSubtypeId(android.view.inputmethod.InputMethodInfo imi, android.view.inputmethod.InputMethodSubtype subtype)
return subtype != null ? InputMethodUtils.getSubtypeIdFromHashCode(imi,
subtype.hashCode()) : NOT_A_SUBTYPE_ID;
| public static com.android.internal.inputmethod.InputMethodSubtypeSwitchingController | createInstanceLocked(com.android.internal.inputmethod.InputMethodUtils.InputMethodSettings settings, android.content.Context context)
return new InputMethodSubtypeSwitchingController(settings, context);
| public com.android.internal.inputmethod.InputMethodSubtypeSwitchingController$ImeSubtypeListItem | getNextInputMethodLocked(boolean onlyCurrentIme, android.view.inputmethod.InputMethodInfo imi, android.view.inputmethod.InputMethodSubtype subtype)
if (mController == null) {
if (DEBUG) {
Log.e(TAG, "mController shouldn't be null.");
}
return null;
}
return mController.getNextInputMethod(onlyCurrentIme, imi, subtype);
| public java.util.List | getSortedInputMethodAndSubtypeListLocked(boolean showSubtypes, boolean inputShown, boolean isScreenLocked)
return mSubtypeList.getSortedInputMethodAndSubtypeList(
showSubtypes, inputShown, isScreenLocked);
| public void | onUserActionLocked(android.view.inputmethod.InputMethodInfo imi, android.view.inputmethod.InputMethodSubtype subtype)
if (mController == null) {
if (DEBUG) {
Log.e(TAG, "mController shouldn't be null.");
}
return;
}
mController.onUserActionLocked(imi, subtype);
| public void | resetCircularListLocked(android.content.Context context)
mSubtypeList = new InputMethodAndSubtypeList(context, mSettings);
mController = ControllerImpl.createFrom(mController,
mSubtypeList.getSortedInputMethodAndSubtypeList());
|
|