Searched refs:primaryCode (Results 1 – 3 of 3) sorted by relevance
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/ |
D | NoopKeyboardActionListener.java | 26 public void onPress(int primaryCode) { in onPress() argument 30 public void onRelease(int primaryCode) { in onRelease() argument 34 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument
|
D | SoftInputWindow.java | 136 public void onKey(int primaryCode, int[] keyCodes) { in onStartInput() 138 Log.v(TAG, "onKey clientId=" + clientId + " primaryCode=" + primaryCode in onStartInput() 143 switch (primaryCode) { in onStartInput() 160 handleCharacter(inputConnection, primaryCode, isShifted); in onStartInput() 205 void handleCharacter(InputConnection inputConnection, int primaryCode, boolean isShifted) { in handleCharacter() argument 207 primaryCode = Character.toUpperCase(primaryCode); in handleCharacter() 209 inputConnection.commitText(String.valueOf((char) primaryCode), 1); in handleCharacter()
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | SoftKeyboard.java | 547 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument 548 if (isWordSeparator(primaryCode)) { in onKey() 553 sendKey(primaryCode); in onKey() 555 } else if (primaryCode == Keyboard.KEYCODE_DELETE) { in onKey() 557 } else if (primaryCode == Keyboard.KEYCODE_SHIFT) { in onKey() 559 } else if (primaryCode == Keyboard.KEYCODE_CANCEL) { in onKey() 562 } else if (primaryCode == LatinKeyboardView.KEYCODE_LANGUAGE_SWITCH) { in onKey() 565 } else if (primaryCode == LatinKeyboardView.KEYCODE_OPTIONS) { in onKey() 567 } else if (primaryCode == Keyboard.KEYCODE_MODE_CHANGE in onKey() 577 handleCharacter(primaryCode, keyCodes); in onKey() [all …]
|