/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuBuilder.java | 659 public boolean isShortcutKey(int keyCode, KeyEvent event) { 660 return findItemWithShortcutForKey(keyCode, event) != null; 758 public boolean performShortcut(int keyCode, KeyEvent event, int flags) { 759 final MenuItemImpl item = findItemWithShortcutForKey(keyCode, event); 778 * with the keyCode. 780 void findItemsWithShortcutForKey(List<MenuItemImpl> items, int keyCode, KeyEvent event) { 784 // Get the chars associated with the keyCode (i.e using any chording combo) 787 if (!isKeyCodeMapped && (keyCode != KeyEvent.KEYCODE_DEL)) { 796 ((MenuBuilder)item.getSubMenu()).findItemsWithShortcutForKey(items, keyCode, event); 804 keyCode == KeyEvent.KEYCODE_DEL)) & [all...] |
/frameworks/base/services/input/tests/ |
InputReader_test.cpp | 272 int32_t keyCode; 356 void setKeyCodeState(int32_t deviceId, int32_t keyCode, int32_t state) { 358 device->keyCodeStates.replaceValueFor(keyCode, state); 376 void addKey(int32_t deviceId, int32_t scanCode, int32_t keyCode, uint32_t flags) { 379 info.keyCode = keyCode; 404 int32_t scanCode, int32_t keyCode, int32_t value, uint32_t flags) { 410 event.keyCode = keyCode; 480 *outKeycode = device->keys.valueAt(index).keyCode; [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
RecentApplicationsDialog.java | 139 public boolean onKeyDown(int keyCode, KeyEvent event) { 140 if (keyCode == KeyEvent.KEYCODE_TAB) { 174 return super.onKeyDown(keyCode, event); 178 public boolean onKeyUp(int keyCode, KeyEvent event) { 200 return super.onKeyUp(keyCode, event);
|
SimPukUnlockScreen.java | 264 public boolean onKeyDown(int keyCode, KeyEvent event) { 265 if (keyCode == KeyEvent.KEYCODE_BACK) { 274 if (keyCode == KeyEvent.KEYCODE_DEL) { 275 mFocusedEntry.onKeyDown(keyCode, event); 285 if (keyCode == KeyEvent.KEYCODE_ENTER) {
|
SimUnlockScreen.java | 237 public boolean onKeyDown(int keyCode, KeyEvent event) { 238 if (keyCode == KeyEvent.KEYCODE_BACK) { 248 if (keyCode == KeyEvent.KEYCODE_DEL) { 250 mPinText.onKeyDown(keyCode, event); 256 if (keyCode == KeyEvent.KEYCODE_ENTER) {
|
/frameworks/base/services/input/ |
EventHub.h | 54 int32_t keyCode; 193 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const = 0; 199 * Examine key input devices for specific framework keycode support 251 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const; 319 bool hasKeycodeLocked(Device* device, int keycode) const;
|
/sdk/traceview/src/com/android/traceview/ |
ProfileView.java | 140 if (event.keyCode == SWT.ESC) { 142 } else if (event.keyCode == SWT.CR) { 156 if (event.keyCode == SWT.ESC) { 158 } else if (event.keyCode == SWT.BS) { 168 } else if (event.keyCode == SWT.CR) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
PointerLocationView.java | 597 public boolean onKeyDown(int keyCode, KeyEvent event) { 598 if (shouldLogKey(keyCode)) { 607 return super.onKeyDown(keyCode, event); 611 public boolean onKeyUp(int keyCode, KeyEvent event) { 612 if (shouldLogKey(keyCode)) { 616 return super.onKeyUp(keyCode, event); 619 private static boolean shouldLogKey(int keyCode) { 620 switch (keyCode) { 628 return KeyEvent.isGamepadButton(keyCode) 629 || KeyEvent.isModifierKey(keyCode); [all...] |
/frameworks/base/core/java/android/webkit/ |
WebTextView.java | 225 int keyCode = event.getKeyCode(); 228 switch(keyCode) { 237 if (KeyEvent.KEYCODE_TAB == keyCode) { 250 if (KeyEvent.KEYCODE_DEL == keyCode) { 262 if (mSingle && (KeyEvent.KEYCODE_ENTER == keyCode 263 || KeyEvent.KEYCODE_NUMPAD_ENTER == keyCode)) { 273 sendDomEvent(new KeyEvent(KeyEvent.ACTION_DOWN, keyCode)); 277 } else if (KeyEvent.KEYCODE_DPAD_CENTER == keyCode) { 317 if (KeyEvent.KEYCODE_ENTER == keyCode 318 || KeyEvent.KEYCODE_NUMPAD_ENTER == keyCode) { [all...] |
/development/samples/Snake/src/com/example/android/snake/ |
SnakeView.java | 259 public boolean onKeyDown(int keyCode, KeyEvent msg) { 261 if (keyCode == KeyEvent.KEYCODE_DPAD_UP) { 289 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { 296 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) { 303 if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) { 310 return super.onKeyDown(keyCode, msg);
|
/frameworks/base/docs/html/sdk/ |
android-2.0.jd | 351 <pre> public boolean onKeyDown(int keyCode, KeyEvent event) { 352 if (keyCode == KeyEvent.KEYCODE_BACK 357 return super.onKeyDown(keyCode, event); 360 public boolean onKeyUp(int keyCode, KeyEvent event) { 361 if (keyCode == KeyEvent.KEYCODE_BACK && event.isTracking() 366 return super.onKeyUp(keyCode, event);
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
AbsSeekBar.java | 495 public boolean onKeyDown(int keyCode, KeyEvent event) { 498 if ((keyCode == KeyEvent.KEYCODE_DPAD_LEFT && !mIsVertical) 499 || (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && mIsVertical)) { 505 } else if ((keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && !mIsVertical) 506 || (keyCode == KeyEvent.KEYCODE_DPAD_UP && mIsVertical)) { 515 return super.onKeyDown(keyCode, event);
|
/packages/apps/Settings/src/com/android/settings/ |
ChooseLockPattern.java | 81 public boolean onKeyDown(int keyCode, KeyEvent event) { 83 // chooseLockPatternFragment.onKeyDown(keyCode, event); 84 return super.onKeyDown(keyCode, event); 402 public boolean onKeyDown(int keyCode, KeyEvent event) { 403 if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { 409 if (keyCode == KeyEvent.KEYCODE_MENU && mUiStage == Stage.Introduction) {
|
/build/tools/droiddoc/templates-pdk/assets/ |
search_autocomplete.js | 110 if (e.keyCode == 13) { 120 else if (kd && (e.keyCode == 38)) { 128 else if (kd && (e.keyCode == 40)) {
|
/build/tools/droiddoc/templates-sdk/assets/ |
search_autocomplete.js | 110 if (e.keyCode == 13) { 120 else if (kd && (e.keyCode == 38)) { 128 else if (kd && (e.keyCode == 40)) {
|
/cts/tests/tests/text/src/android/text/method/cts/ |
MultiTapKeyListenerTest.java | 226 private void callOnKeyDown(final MultiTapKeyListener keyListener, final int keyCode, 231 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, 232 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode));
|
QwertyKeyListenerTest.java | 179 private void callOnKeyDown(final QwertyKeyListener keyListener, final int keyCode) { 182 keyListener.onKeyDown(mTextView, mTextView.getEditableText(), keyCode, 183 new KeyEvent(KeyEvent.ACTION_DOWN, keyCode));
|
/development/samples/BrowserPlugin/jni/navigation/ |
NavigationPlugin.cpp | 212 bool NavigationPlugin::handleNavigation(ANPKeyCode keyCode) { 215 gLogI.log(kDebug_ANPLogType, "----%p Received Key %d", instance, keyCode); 217 switch (keyCode) {
|
/development/scripts/app_engine_server/gae_shell/static/ |
shell.js | 97 if (event.ctrlKey && event.keyCode == 38 /* up arrow */) { 102 } else if (event.ctrlKey && event.keyCode == 40 /* down arrow */) { 115 if (event.keyCode == 13 /* enter */ && !event.altKey && !event.shiftKey &&
|
/development/tools/emulator/opengl/tests/event_injector/ |
emulator-console.c | 335 #define EE(x,y) if (keycode == x) return y; 338 emulatorConsole_sendKey( EmulatorConsole* con, int keycode, int down ) 343 "event send EV_KEY:%d:%d 0:0:0\r\n", keycode, down);
|
/external/doclava/res/assets/templates/assets/ |
search_autocomplete.js | 110 if (e.keyCode == 13) { 120 else if (kd && (e.keyCode == 38)) { 128 else if (kd && (e.keyCode == 40)) {
|
/external/webkit/Source/WebCore/dom/ |
SelectElement.cpp | 634 int keyCode = static_cast<KeyboardEvent*>(event)->keyCode(); 637 if (keyCode == ' ' && isSpatialNavigationEnabled(element->document()->frame())) { 645 if (keyCode == ' ' || keyCode == '\r') { 659 if (keyCode == ' ') { 671 } else if (keyCode == '\r') { 679 if (keyCode == '\r') { [all...] |
/frameworks/base/core/java/android/text/method/ |
ArrowKeyMovementMethod.java | 51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, 53 switch (keyCode) { 65 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event);
|
/frameworks/base/core/java/android/widget/ |
MultiAutoCompleteTextView.java | 90 protected void performFiltering(CharSequence text, int keyCode) { 95 performFiltering(text, start, end, keyCode); 168 int keyCode) {
|
/frameworks/base/docs/html/resources/tutorials/views/ |
hello-webview.jd | 103 public boolean onKeyDown(int keyCode, KeyEvent event) { 104 if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) { 108 return super.onKeyDown(keyCode, event);
|