/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardCodesSet.java | 19 import com.android.inputmethod.keyboard.Keyboard; 76 Keyboard.CODE_TAB, 77 Keyboard.CODE_ENTER, 78 Keyboard.CODE_SPACE, 79 Keyboard.CODE_SHIFT, 80 Keyboard.CODE_SWITCH_ALPHA_SYMBOL, 81 Keyboard.CODE_OUTPUT_TEXT, 82 Keyboard.CODE_DELETE, 83 Keyboard.CODE_SETTINGS, 84 Keyboard.CODE_SHORTCUT, [all …]
|
D | KeyboardState.java | 22 import com.android.inputmethod.keyboard.Keyboard; 305 Log.d(TAG, "onPressKey: code=" + Keyboard.printableCode(code) in onPressKey() 311 if (code == Keyboard.CODE_SHIFT) { in onPressKey() 313 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey() 341 Log.d(TAG, "onReleaseKey: code=" + Keyboard.printableCode(code) in onReleaseKey() 347 if (code == Keyboard.CODE_SHIFT) { in onReleaseKey() 349 } else if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in onReleaseKey() 376 Log.d(TAG, "onLongPressTimeout: code=" + Keyboard.printableCode(code) + " " + this); in onLongPressTimeout() 381 if (mIsAlphabetMode && code == Keyboard.CODE_SHIFT) { in onLongPressTimeout() 448 mSwitchActions.startLongPressTimer(Keyboard.CODE_SHIFT); in onPressShift() [all …]
|
D | PointerTrackerQueue.java | 21 import com.android.inputmethod.keyboard.Keyboard; 100 + Keyboard.printableCode(tracker.getKey().mCode) + "]"); in toString()
|
D | KeySpecParser.java | 19 import static com.android.inputmethod.keyboard.Keyboard.CODE_UNSPECIFIED; 23 import com.android.inputmethod.keyboard.Keyboard; 192 return parseCode(moreKeySpec.substring(end + 1), codesSet, Keyboard.CODE_UNSPECIFIED); in getCode() 201 return Keyboard.CODE_OUTPUT_TEXT; in getCode() 208 return Keyboard.CODE_OUTPUT_TEXT; in getCode() 485 if (!Keyboard.isLetterCode(code) || !needsToUpperCase) return code; in toUpperCaseOfCodeForLocale()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | DefaultSoftKeyboardJAJP.java | 30 import jp.co.omronsoft.openwnn.Keyboard; 312 private Keyboard.Key mChangeModeKey = null; 331 mKeyboard = new Keyboard[3][2][4][2][8][2]; in createKeyboards() 387 Keyboard kbd = getModeChangeKeyboard(targetMode); in changeKeyMode() 455 @Override protected boolean changeKeyboard(Keyboard keyboard) { in changeKeyboard() 461 List<Keyboard.Key> keys = keyboard.getKeys(); in changeKeyboard() 478 Keyboard kbd = getTypeChangeKeyboard(type); in changeKeyboardType() 644 Keyboard newKeyboard = getShiftChangeKeyboard(shifted); in onKey() 860 Keyboard[][] keyList; in createKeyboardsPortrait() 864 keyList[KEYMODE_JA_FULL_HIRAGANA][0] = new Keyboard(parent, R.xml.keyboard_qwerty_jp); in createKeyboardsPortrait() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | KeyCodeDescriptionMapper.java | 25 import com.android.inputmethod.keyboard.Keyboard; 66 mKeyCodeMap.put(Keyboard.CODE_DELETE, R.string.spoken_description_delete); in initInternal() 67 mKeyCodeMap.put(Keyboard.CODE_ENTER, R.string.spoken_description_return); in initInternal() 68 mKeyCodeMap.put(Keyboard.CODE_SETTINGS, R.string.spoken_description_settings); in initInternal() 69 mKeyCodeMap.put(Keyboard.CODE_SHIFT, R.string.spoken_description_shift); in initInternal() 70 mKeyCodeMap.put(Keyboard.CODE_SHORTCUT, R.string.spoken_description_mic); in initInternal() 71 mKeyCodeMap.put(Keyboard.CODE_SWITCH_ALPHA_SYMBOL, R.string.spoken_description_to_symbol); in initInternal() 72 mKeyCodeMap.put(Keyboard.CODE_TAB, R.string.spoken_description_tab); in initInternal() 94 public String getDescriptionForKey(Context context, Keyboard keyboard, Key key, in getDescriptionForKey() 98 if (code == Keyboard.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey() [all …]
|
D | AccessibleKeyboardViewProxy.java | 30 import com.android.inputmethod.keyboard.Keyboard; 89 public void setKeyboard(Keyboard keyboard) { in setKeyboard() 233 final Keyboard keyboard = mView.getKeyboard(); in notifyShiftState() 260 final Keyboard keyboard = mView.getKeyboard(); in notifySymbolsState()
|
D | AccessibilityEntityProvider.java | 36 import com.android.inputmethod.keyboard.Keyboard; 100 public void setKeyboard(Keyboard keyboard) { in setKeyboard() 163 final Keyboard keyboard = mKeyboardView.getKeyboard(); in createAccessibilityNodeInfo() 308 final Keyboard keyboard = mKeyboardView.getKeyboard(); in assignVirtualViewIds()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | DefaultSoftKeyboardEN.java | 26 import jp.co.omronsoft.openwnn.Keyboard; 73 mKeyboard = new Keyboard[3][2][4][2][7][2]; in createKeyboards() 75 Keyboard[][] keyList; in createKeyboards() 81 keyList[KEYMODE_EN_ALPHABET][0] = new Keyboard(parent, R.xml.default_en_qwerty); in createKeyboards() 82 keyList[KEYMODE_EN_NUMBER][0] = new Keyboard(parent, R.xml.default_en_symbols); in createKeyboards() 83 keyList[KEYMODE_EN_PHONE][0] = new Keyboard(parent, R.xml.keyboard_12key_phone); in createKeyboards() 89 keyList[KEYMODE_EN_NUMBER][0] = new Keyboard(parent, R.xml.default_en_symbols_shift); in createKeyboards() 90 keyList[KEYMODE_EN_PHONE][0] = new Keyboard(parent, R.xml.keyboard_12key_phone); in createKeyboards() 115 Keyboard keyboard = super.getModeChangeKeyboard(keyMode); in changeKeyMode() 135 …Keyboard kbd = mKeyboard[mCurrentLanguage][mDisplayMode][mCurrentKeyboardType][mShiftOn][mCurrentK… in initView() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | DefaultSoftKeyboard.java | 34 import jp.co.omronsoft.openwnn.Keyboard; 127 public static final int KEYCODE_QWERTY_SHIFT = Keyboard.KEYCODE_SHIFT; 167 protected Keyboard mCurrentKeyboard; 179 protected Keyboard[][][][][][] mKeyboard; 282 protected Keyboard mSymbolKeyboard; 340 public boolean onLongPress(Keyboard.Key key) { 372 mKeyboard = new Keyboard[3][2][4][2][7][2]; in createKeyboards() 381 protected Keyboard getShiftChangeKeyboard(int shift) { in getShiftChangeKeyboard() 383 …Keyboard[] kbd = mKeyboard[mCurrentLanguage][mDisplayMode][mCurrentKeyboardType][shift][mCurrentKe… in getShiftChangeKeyboard() 400 protected Keyboard getModeChangeKeyboard(int mode) { in getModeChangeKeyboard() [all …]
|
D | Keyboard.java | 60 public class Keyboard { class 186 private Keyboard parent; 189 public Row(Keyboard parent) { in Row() 194 public Row(Resources res, Keyboard parent, XmlResourceParser parser) { in Row() 197 android.R.styleable.Keyboard); in Row() 267 private Keyboard keyboard; 330 android.R.styleable.Keyboard); in Key() 522 public Keyboard(Context context, int xmlLayoutResId) { in Keyboard() method in Keyboard 533 public Keyboard(Context context, int xmlLayoutResId, int modeId) { in Keyboard() method in Keyboard 562 public Keyboard(Context context, int layoutTemplateResId, in Keyboard() method in Keyboard [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 19 import com.android.inputmethod.keyboard.Keyboard; 35 type(Keyboard.CODE_DELETE); in testPickSuggestionThenBackspace() 51 type(Keyboard.CODE_DELETE); in testPickAutoCorrectionThenBackspace() 66 type(Keyboard.CODE_DELETE); in testPickTypedWordOverAutoCorrectionThenBackspace() 82 type(Keyboard.CODE_DELETE); in testPickDifferentSuggestionThenBackspace() 101 type(Keyboard.CODE_DELETE); in testDeleteSelection() 124 type(Keyboard.CODE_DELETE); in testAutoCorrectWithPeriodThenRevert() 140 type(Keyboard.CODE_DELETE); in testCancelDoubleSpace() 152 type(Keyboard.CODE_DELETE); in testBackspaceAtStartAfterAutocorrect() 165 type(Keyboard.CODE_DELETE); in testAutoCorrectThenMoveCursorThenBackspace() [all …]
|
D | BlueUnderlineTests.java | 19 import com.android.inputmethod.keyboard.Keyboard; 70 type(Keyboard.CODE_SPACE); in testBlueUnderlineOnBackspace() 73 type(Keyboard.CODE_DELETE); in testBlueUnderlineOnBackspace() 76 type(Keyboard.CODE_DELETE); in testBlueUnderlineOnBackspace()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyDetector.java | 25 private Keyboard mKeyboard; 40 public void setKeyboard(Keyboard keyboard, float correctionX, float correctionY) { in setKeyboard() 60 public Keyboard getKeyboard() { in getKeyboard() 105 return key != null ? Keyboard.printableCode(key.mCode) : "none"; in printableCode() 114 sb.append(Keyboard.printableCode(code)); in printableCodes()
|
D | Key.java | 19 import static com.android.inputmethod.keyboard.Keyboard.CODE_OUTPUT_TEXT; 20 import static com.android.inputmethod.keyboard.Keyboard.CODE_SHIFT; 21 import static com.android.inputmethod.keyboard.Keyboard.CODE_SWITCH_ALPHA_SYMBOL; 22 import static com.android.inputmethod.keyboard.Keyboard.CODE_UNSPECIFIED; 156 public Key(Keyboard.Params params, MoreKeySpec moreKeySpec, int x, int y, int width, int height, in Key() 165 public Key(Keyboard.Params params, String label, String hintLabel, int iconId, in Key() 204 public Key(Resources res, Keyboard.Params params, Keyboard.Builder.Row row, in Key() 232 mVisualInsetsLeft = Math.round(Keyboard.Builder.getDimensionOrFraction(keyAttr, in Key() 234 mVisualInsetsRight = Math.round(Keyboard.Builder.getDimensionOrFraction(keyAttr, in Key() 418 Keyboard.printableCode(mCode), mLabel, mX, mY, mWidth, mHeight, mHintLabel, in toString() [all …]
|
D | KeyboardLayoutSet.java | 72 private static final HashMap<KeyboardId, SoftReference<Keyboard>> sKeyboardCache = 73 new HashMap<KeyboardId, SoftReference<Keyboard>>(); 139 public Keyboard getKeyboard(int baseKeyboardLayoutSetElementId) { in getKeyboard() 174 private Keyboard getKeyboard(ElementParams elementParams, final KeyboardId id) { in getKeyboard() 175 final SoftReference<Keyboard> ref = sKeyboardCache.get(id); in getKeyboard() 176 Keyboard keyboard = (ref == null) ? null : ref.get(); in getKeyboard() 178 final Keyboard.Builder<Keyboard.Params> builder = in getKeyboard() 179 new Keyboard.Builder<Keyboard.Params>(mContext, new Keyboard.Params()); in getKeyboard() 189 sKeyboardCache.put(id, new SoftReference<Keyboard>(keyboard)); in getKeyboard()
|
D | LatinKeyboardView.java | 184 case Keyboard.CODE_SHIFT: in startLongPressTimer() 205 case Keyboard.CODE_SHIFT: in startLongPressTimer() 453 public void setKeyboard(Keyboard keyboard) { in setKeyboard() 463 mSpaceKey = keyboard.getKey(Keyboard.CODE_SPACE); in setKeyboard() 537 final Keyboard moreKeysKeyboard = new MoreKeysKeyboard.Builder(container, parentKey, this) in onCreateMoreKeysPanel() 566 if (primaryCode == Keyboard.CODE_SPACE || primaryCode == Keyboard.CODE_LANGUAGE_SWITCH) { in onLongPress() 839 final Keyboard keyboard = getKeyboard(); in updateShortcutKey() 841 final Key shortcutKey = keyboard.getKey(Keyboard.CODE_SHORTCUT); in updateShortcutKey() 848 final Keyboard keyboard = getKeyboard(); in updateAltCodeKeyWhileTyping() 889 if (key.mCode == Keyboard.CODE_SPACE) { in onDrawKeyTopVisuals() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MockKeyboardSwitcher.java | 21 import com.android.inputmethod.keyboard.Keyboard; 36 public static final int CODE_SHIFT = Keyboard.CODE_SHIFT; 37 public static final int CODE_SYMBOL = Keyboard.CODE_SWITCH_ALPHA_SYMBOL; 38 public static final int CODE_SPACE = Keyboard.CODE_SPACE; 39 public static final int CODE_AUTO_CAPS_TRIGGER = Keyboard.CODE_SPACE; 190 if (Keyboard.isLetterCode(code)) { in onCodeInput()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | AudioAndHapticFeedbackManager.java | 24 import com.android.inputmethod.keyboard.Keyboard; 67 case Keyboard.CODE_DELETE: in playKeyClick() 70 case Keyboard.CODE_ENTER: in playKeyClick() 73 case Keyboard.CODE_SPACE: in playKeyClick()
|
D | LatinIME.java | 67 import com.android.inputmethod.keyboard.Keyboard; 1088 && lastTwo.charAt(0) == Keyboard.CODE_SPACE) { in swapSwapperAndSpaceWhileInBatchEdit() 1107 && lastThree.charAt(1) == Keyboard.CODE_SPACE in maybeDoubleSpaceWhileInBatchEdit() 1108 && lastThree.charAt(2) == Keyboard.CODE_SPACE in maybeDoubleSpaceWhileInBatchEdit() 1126 || codePoint == Keyboard.CODE_SINGLE_QUOTE in canBeFollowedByPeriod() 1127 || codePoint == Keyboard.CODE_DOUBLE_QUOTE in canBeFollowedByPeriod() 1128 || codePoint == Keyboard.CODE_CLOSING_PARENTHESIS in canBeFollowedByPeriod() 1129 || codePoint == Keyboard.CODE_CLOSING_SQUARE_BRACKET in canBeFollowedByPeriod() 1130 || codePoint == Keyboard.CODE_CLOSING_CURLY_BRACKET in canBeFollowedByPeriod() 1131 || codePoint == Keyboard.CODE_CLOSING_ANGLE_BRACKET; in canBeFollowedByPeriod() [all …]
|
D | WordComposer.java | 21 import com.android.inputmethod.keyboard.Keyboard; 158 mPrimaryKeyCodes[newIndex] = primaryCode >= Keyboard.CODE_SPACE in add() 166 if (Keyboard.CODE_SINGLE_QUOTE == primaryCode) { in add() 177 private void addKeyInfo(final int codePoint, final Keyboard keyboard) { in addKeyInfo() 193 public void setComposingWord(final CharSequence word, final Keyboard keyboard) { in setComposingWord() 234 if (Keyboard.CODE_SINGLE_QUOTE != mTypedWord.codePointAt(i)) break; in deleteLast()
|
D | LatinImeLogger.java | 22 import com.android.inputmethod.keyboard.Keyboard; 77 public static void onSetKeyboard(Keyboard kb) { in onSetKeyboard()
|
D | ContactsDictionary.java | 29 import com.android.inputmethod.keyboard.Keyboard; 143 if (!(c == Keyboard.CODE_DASH in addWords() 144 || c == Keyboard.CODE_SINGLE_QUOTE in addWords()
|
D | ResearchLogger.java | 35 import com.android.inputmethod.keyboard.Keyboard; 306 sb.append(Keyboard.printableCode(code)); in logKeyEvent() 450 final String s = "onCodeInput: code=" + Keyboard.printableCode(code) in keyboardState_onCodeInput() 460 final String s = "onLongPressTimeout: code=" + Keyboard.printableCode(code) + " " in keyboardState_onLongPressTimeout() 469 final String s = "onPressKey: code=" + Keyboard.printableCode(code) + " " in keyboardState_onPressKey() 478 final String s = "onReleaseKey: code=" + Keyboard.printableCode(code) in keyboardState_onReleaseKey() 647 public static void latinKeyboardView_setKeyboard(final Keyboard keyboard) { in latinKeyboardView_setKeyboard() 700 final String s = "onCodeInput: " + Keyboard.printableCode(code) in pointerTracker_callListenerOnCodeInput() 721 final String s = "onRelease : " + Keyboard.printableCode(primaryCode) in pointerTracker_callListenerOnRelease()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 24 import com.android.inputmethod.keyboard.Keyboard; 31 public class MoreSuggestions extends Keyboard { 38 public static class Builder extends Keyboard.Builder<Builder.MoreSuggestionsParam> { 44 public static class MoreSuggestionsParam extends Keyboard.Params { 173 final Keyboard keyboard = KeyboardSwitcher.getInstance().getKeyboard(); in layout() 189 public Divider(Keyboard.Params params, Drawable icon, int x, int y, int width, in Divider()
|