public KeyboardId( int elementId, InputMethodSubtype subtype, int orientation, int width, int mode, EditorInfo editorInfo, boolean clobberSettingsKey, boolean shortcutKeyEnabled, boolean hasShortcutKey, boolean languageSwitchKeyEnabled) { mSubtype = subtype; mLocale = SubtypeLocale.getSubtypeLocale(subtype); mOrientation = orientation; mWidth = width; mMode = mode; mElementId = elementId; mEditorInfo = editorInfo; mClobberSettingsKey = clobberSettingsKey; mShortcutKeyEnabled = shortcutKeyEnabled; mHasShortcutKey = hasShortcutKey; mLanguageSwitchKeyEnabled = languageSwitchKeyEnabled; mCustomActionLabel = (editorInfo.actionLabel != null) ? editorInfo.actionLabel.toString() : null; mHashCode = computeHashCode(this); }