/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
WebViewEventSender.java | 58 int keyCode = modifierMapper(withModifiers[i]); 59 modifier = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 63 int keyCode = keyMapper(character.toLowerCase().toCharArray()[0]); 64 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
|
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
LunarView.java | 531 * @param keyCode the key that was pressed 535 boolean doKeyDown(int keyCode, KeyEvent msg) { 538 if (keyCode == KeyEvent.KEYCODE_DPAD_UP) okStart = true; 539 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) okStart = true; 540 if (keyCode == KeyEvent.KEYCODE_S) okStart = true; 542 boolean center = (keyCode == KeyEvent.KEYCODE_DPAD_UP); 555 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER 556 || keyCode == KeyEvent.KEYCODE_SPACE) { 560 } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT 561 || keyCode == KeyEvent.KEYCODE_Q) [all...] |
/cts/tests/src/android/view/cts/ |
WindowStubActivity.java | 55 public boolean onKeyDown(int keyCode, KeyEvent event) { 57 return super.onKeyDown(keyCode, event);
|
MockView.java | 88 public boolean onKeyShortcut(int keyCode, KeyEvent event) { 90 return super.onKeyShortcut(keyCode, event); 180 public boolean onKeyDown(int keyCode, KeyEvent event) { 182 return super.onKeyDown(keyCode, event); 190 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { 192 return super.onKeyMultiple(keyCode, repeatCount, event); 200 public boolean onKeyUp(int keyCode, KeyEvent event) { 202 return super.onKeyUp(keyCode, event); 598 public boolean onKeyPreIme(int keyCode, KeyEvent event) { 600 return super.onKeyPreIme(keyCode, event) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List12.java | 70 public boolean onKey(View v, int keyCode, KeyEvent event) { 72 switch (keyCode) {
|
/external/webkit/WebCore/dom/ |
UIEvent.idl | 34 readonly attribute long keyCode;
|
UIEvent.cpp | 62 int UIEvent::keyCode() const
|
UIEvent.h | 53 virtual int keyCode() const;
|
/frameworks/base/core/java/android/view/ |
Menu.java | 400 * @param keyCode The keycode of the shortcut key. 409 public boolean performShortcut(int keyCode, KeyEvent event, int flags); 413 * @param keyCode the key code from {@link KeyEvent} to check. 416 boolean isShortcutKey(int keyCode, KeyEvent event);
|
/frameworks/base/core/java/android/widget/ |
ZoomButton.java | 76 public boolean onKeyUp(int keyCode, KeyEvent event) { 78 return super.onKeyUp(keyCode, event);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
TouchModeFlexibleAsserts.java | 60 public static void assertNotInTouchModeAfterKey(InstrumentationTestCase test, int keyCode, View checkForTouchMode) { 61 test.sendKeys(keyCode);
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceNetwork.java | 203 // key [down|up] [keycode] 209 int keyCode = getKeyCode(command.get(2)); 210 if (keyCode < 0) { 215 Log.d(TAG, "keycode: " + keyCode); 226 queue.enqueueEvent(new MonkeyKeyEvent(action, keyCode)); 234 * Get an integer keycode value from a given keyname. 237 * @returns the integer keycode value, or -1 on error. 240 int keyCode = -1; 242 keyCode = Integer.parseInt(keyName) [all...] |
/development/simulator/app/ |
PhoneWindow.h | 106 void SetKeyCode(int32_t keyCode) { mKeyCode = keyCode; } 138 void AddPressedKey(int32_t keyCode); 140 void RemovePressedKey(int32_t keyCode); 144 bool IsKeyPressed(int32_t keyCode);
|
/development/samples/GlobalTime/src/com/android/globaltime/ |
GLView.java | 71 * public boolean onKeyDown(int keyCode, KeyEvent event) { 73 * if (mGlView.processKey(keyCode)) { 77 * switch (keyCode) { 83 * super.onKeyDown(keyCode, event); 680 * @param keyCode the key code as passed to Activity.onKeyDown. 685 public boolean processKey(int keyCode) { 688 if ((keyCode == STATE_KEY) || 689 (keyCode == KeyEvent.KEYCODE_SLASH) || 690 (keyCode == KeyEvent.KEYCODE_PERIOD)) 715 if (keyCode == KeyEvent.KEYCODE_ENTER) [all...] |
/cts/tests/src/android/app/cts/ |
TestDialog.java | 145 public boolean onKeyDown(int keyCode, KeyEvent event) { 147 keyDownCode = keyCode; 148 onKeyDownReturn = super.onKeyDown(keyCode, event); 154 public boolean onKeyUp(int keyCode, KeyEvent event) { 157 return super.onKeyUp(keyCode, event); 161 public boolean onKeyMultiple(int keyCode, int repeatCount, KeyEvent event) { 163 onKeyMultipleReturn = super.onKeyMultiple(keyCode, repeatCount, event);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
ComposingView.java | 163 public boolean moveCursor(int keyCode) { 164 if (keyCode != KeyEvent.KEYCODE_DPAD_LEFT 165 && keyCode != KeyEvent.KEYCODE_DPAD_RIGHT) return false; 169 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) 171 else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) offset = 1; 174 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT 175 || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {
|
/cts/tests/tests/text/src/android/text/method/cts/ |
DateKeyListenerTest.java | 136 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateKeyListener.CHARACTERS); 137 if (-1 != keyCode) { 138 sendKeys(keyCode);
|
DateTimeKeyListenerTest.java | 139 int keyCode = TextMethodUtils.getUnacceptedKeyCode(DateTimeKeyListener.CHARACTERS); 140 if (-1 != keyCode) { 141 sendKeys(keyCode);
|
TimeKeyListenerTest.java | 133 int keyCode = TextMethodUtils.getUnacceptedKeyCode(TimeKeyListener.CHARACTERS); 134 if (-1 != keyCode) { 135 sendKeys(keyCode);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PathEffects.java | 92 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 93 switch (keyCode) { 98 return super.onKeyDown(keyCode, event);
|
/external/webkit/WebCore/platform/win/ |
KeyEventWin.cpp | 41 static String keyIdentifierForWindowsKeyCode(unsigned short keyCode) 43 switch (keyCode) { 141 return String::format("U+%04X", toASCIIUpper(keyCode));
|
/packages/apps/Mms/src/com/android/mms/ui/ |
ConfirmRateLimitActivity.java | 105 public boolean onKeyDown(int keyCode, KeyEvent event) { 106 if ((keyCode == KeyEvent.KEYCODE_BACK) 110 return super.onKeyDown(keyCode, event);
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
NinePatchLab.java | 169 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { 170 switch (keyCode) { 198 return super.onKeyDown(keyCode, event); 200 return super.onKeyDown(keyCode, event);
|
/external/webkit/WebKit/mac/Plugins/ |
WebNetscapePluginEventHandler.h | 56 virtual void syntheticKeyDownWithCommandModifier(int keyCode, char character) = 0;
|
WebNetscapePluginEventHandlerCarbon.h | 53 virtual void syntheticKeyDownWithCommandModifier(int keyCode, char character);
|