Lines Matching refs:primaryCode
1387 public void onCodeInput(final int primaryCode, final int x, final int y) {
1389 ResearchLogger.latinIME_onCodeInput(primaryCode, x, y);
1392 if (primaryCode != Constants.CODE_DELETE || when > mLastKeyTime + QUICK_PRESS) {
1407 primaryCode != Constants.CODE_SPACE) {
1412 switch (primaryCode) {
1481 didAutoCorrect = handleNonSpecialCharacter(primaryCode, x, y, spaceState);
1484 switcher.onCodeInput(primaryCode);
1486 if (!didAutoCorrect && primaryCode != Constants.CODE_SHIFT
1487 && primaryCode != Constants.CODE_SWITCH_ALPHA_SYMBOL)
1489 if (Constants.CODE_DELETE != primaryCode) {
1495 private boolean handleNonSpecialCharacter(final int primaryCode, final int x, final int y,
1499 if (mSettings.getCurrent().isWordSeparator(primaryCode)) {
1500 didAutoCorrect = handleSeparator(primaryCode, x, y, spaceState);
1520 if (keyboard != null && keyboard.hasProximityCharsCorrection(primaryCode)) {
1527 handleCharacter(primaryCode, keyX, keyY, spaceState);
1910 private void handleCharacter(final int primaryCode, final int x,
1917 !mSettings.getCurrent().isWordConnector(primaryCode)) {
1934 if (!isComposingWord && (isAlphabet(primaryCode)
1935 || mSettings.getCurrent().isWordConnector(primaryCode))
1942 isComposingWord = (Constants.CODE_SINGLE_QUOTE != primaryCode);
1960 mWordComposer.add(primaryCode, keyX, keyY);
1967 final boolean swapWeakSpace = maybeStripSpace(primaryCode,
1970 sendKeyCodePoint(primaryCode);
1981 Utils.Stats.onNonSeparator((char)primaryCode, x, y);
2021 private boolean handleSeparator(final int primaryCode, final int x, final int y,
2024 ResearchLogger.latinIME_handleSeparator(primaryCode, mWordComposer.isComposingWord());
2035 commitCurrentAutoCorrection(new String(new int[]{primaryCode}, 0, 1));
2038 commitTyped(new String(new int[]{primaryCode}, 0, 1));
2042 final boolean swapWeakSpace = maybeStripSpace(primaryCode, spaceState,
2046 mSettings.getCurrent().isUsuallyPrecededBySpace(primaryCode)) {
2049 sendKeyCodePoint(primaryCode);
2051 if (Constants.CODE_SPACE == primaryCode) {
2067 && mSettings.getCurrent().isUsuallyFollowedBySpace(primaryCode)) {
2086 Utils.Stats.onSeparator((char)primaryCode, x, y);
2311 final int primaryCode = suggestion.charAt(0);
2312 onCodeInput(primaryCode,
2635 public void onPressKey(final int primaryCode, final boolean isSinglePointer) {
2636 mKeyboardSwitcher.onPressKey(primaryCode, isSinglePointer);
2642 public void onReleaseKey(final int primaryCode, final boolean withSliding) {
2643 mKeyboardSwitcher.onReleaseKey(primaryCode, withSliding);
2647 switch (primaryCode) {
2657 if (Constants.CODE_DELETE == primaryCode) {