/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ListPopupWindow.java | 782 * @param keyCode keyCode param passed to the host view's onKeyDown 787 public boolean onKeyDown(int keyCode, KeyEvent event) { 795 if (keyCode != KeyEvent.KEYCODE_SPACE 797 || (keyCode != KeyEvent.KEYCODE_ENTER 798 && keyCode != KeyEvent.KEYCODE_DPAD_CENTER))) { 818 if ((below && keyCode == KeyEvent.KEYCODE_DPAD_UP && curIndex <= firstItem) || 819 (!below && keyCode == KeyEvent.KEYCODE_DPAD_DOWN && curIndex >= lastItem)) { 832 consumed = mDropDownList.onKeyDown(keyCode, event); 834 Log.v(TAG, "Key down: code=" + keyCode + " list consumed=" + consumed) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTextView.java | 278 public boolean onKeyDown(int keyCode, KeyEvent event) { 279 previousKeyCodes.add(keyCode); 282 return onKeyListener.onKey(realView, keyCode, event); 289 public boolean onKeyUp(int keyCode, KeyEvent event) { 290 previousKeyCodes.add(keyCode); 293 return onKeyListener.onKey(realView, keyCode, event);
|
/external/webkit/Source/WebCore/platform/cocoa/ |
KeyEventCocoa.mm | 332 int windowsKeyCodeForKeyCode(uint16_t keyCode) 465 if (keyCode >= 0x80) 468 return windowsKeyCode[keyCode];
|
/frameworks/base/core/java/android/app/ |
AlertDialog.java | 341 public boolean onKeyDown(int keyCode, KeyEvent event) { 342 if (mAlert.onKeyDown(keyCode, event)) return true; 343 return super.onKeyDown(keyCode, event); 347 public boolean onKeyUp(int keyCode, KeyEvent event) { 348 if (mAlert.onKeyUp(keyCode, event)) return true; 349 return super.onKeyUp(keyCode, event); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
KeyguardViewManager.java | 153 int keyCode = event.getKeyCode(); 154 if (keyCode == KeyEvent.KEYCODE_BACK && mKeyguardView.handleBackKey()) { 156 } else if (keyCode == KeyEvent.KEYCODE_MENU && mKeyguardView.handleMenuKey()) { 383 * @param keyCode The wake key. May be {@link KeyEvent#KEYCODE_UNKNOWN} if waking 386 public boolean wakeWhenReadyTq(int keyCode) { 387 if (DEBUG) Log.d(TAG, "wakeWhenReady(" + keyCode + ")"); 389 mKeyguardView.wakeWhenReadyTq(keyCode);
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
UiDevice.java | 312 public boolean pressKeyCode(int keyCode) { 313 Tracer.trace(keyCode); 315 return getAutomatorBridge().getInteractionController().sendKey(keyCode, 0); 322 * @param keyCode the key code of the event. 327 public boolean pressKeyCode(int keyCode, int metaState) { 328 Tracer.trace(keyCode, metaState); 330 return getAutomatorBridge().getInteractionController().sendKey(keyCode, metaState);
|
/packages/apps/Gallery2/src/com/android/camera/ |
CameraActivity.java | 435 public boolean onKeyDown(int keyCode, KeyEvent event) { 436 return mCurrentModule.onKeyDown(keyCode, event) 437 || super.onKeyDown(keyCode, event); 441 public boolean onKeyUp(int keyCode, KeyEvent event) { 442 return mCurrentModule.onKeyUp(keyCode, event) 443 || super.onKeyUp(keyCode, event);
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
AbsSeekBar.java | 538 public boolean onKeyDown(int keyCode, KeyEvent event) { 541 if ((keyCode == KeyEvent.KEYCODE_DPAD_LEFT && !mIsVertical) 542 || (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && mIsVertical)) { 548 } else if ((keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && !mIsVertical) 549 || (keyCode == KeyEvent.KEYCODE_DPAD_UP && mIsVertical)) { 558 return super.onKeyDown(keyCode, event);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SearchView.java | [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/input/android/ |
AndroidInput.java | 295 public boolean onKeyDown(int keyCode, KeyEvent event) {
299 evt.setKeyCode(keyCode);
307 if ((keyCode == KeyEvent.KEYCODE_VOLUME_UP) || (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)) {
315 public boolean onKeyUp(int keyCode, KeyEvent event) {
319 evt.setKeyCode(keyCode);
327 if ((keyCode == KeyEvent.KEYCODE_VOLUME_UP) || (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
TestMenu.java | 155 public boolean performShortcut(int keyCode, KeyEvent event, int flags) { 160 public boolean isShortcutKey(int keyCode, KeyEvent event) {
|
TestWindow.java | 95 @Override public boolean performPanelShortcut(int featureId, int keyCode, KeyEvent event, int flags) { 172 @Override public boolean isShortcutKey(int keyCode, KeyEvent event) {
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
MenuLoaderTest.java | 171 public boolean performShortcut(int keyCode, KeyEvent event, int flags) { 177 public boolean isShortcutKey(int keyCode, KeyEvent event) {
|
/external/webkit/Source/WebCore/platform/ |
PlatformKeyboardEvent.h | 186 PlatformKeyboardEvent(int keyCode, UChar32 unichar, int repeatCount, 263 String keyIdentifierForQtKeyCode(int keyCode); 264 int windowsKeyCodeForKeyEvent(unsigned int keycode, bool isKeypad = false);
|
/external/webkit/Source/WebCore/platform/iphone/ |
KeyEventIPhone.mm | 57 , m_windowsVirtualKeyCode(event.keyCode)
|
/frameworks/base/core/java/com/android/internal/app/ |
MediaRouteChooserDialogFragment.java | 636 public boolean onKeyDown(int keyCode, KeyEvent event) { 637 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN && mVolumeSlider.isEnabled()) { 643 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP && mVolumeSlider.isEnabled()) { 650 return super.onKeyDown(keyCode, event); 653 public boolean onKeyUp(int keyCode, KeyEvent event) { 654 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN && mVolumeSlider.isEnabled()) { 656 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP && mVolumeSlider.isEnabled()) { 659 return super.onKeyUp(keyCode, event);
|
/frameworks/base/services/input/ |
InputListener.h | 61 int32_t keyCode; 69 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode,
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TestAppView.java | 80 public boolean onKeyDown(int keyCode, KeyEvent event) 84 return super.onKeyDown(keyCode, event);
|
/hardware/ti/wpan/tools/FM/FmRxApp/src/com/ti/fmrxapp/ |
FmPresetList.java | 98 public boolean onKeyDown(int keyCode, KeyEvent event) { 100 switch (keyCode) {
|
FmRxFreqInput.java | 109 public boolean onKey(View v, int keyCode, KeyEvent event) { 111 switch (keyCode) {
|
/hardware/ti/wpan/tools/FM/FmTxApp/src/com/ti/fmtxapp/ |
FmTxConfig.java | 296 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { 299 if (keyCode == KeyEvent.KEYCODE_SOFT_RIGHT) { 305 if (keyCode == KeyEvent.KEYCODE_SOFT_LEFT) { 313 if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER && 314 keyCode != KeyEvent.KEYCODE_DPAD_UP && 315 keyCode != KeyEvent.KEYCODE_DPAD_DOWN && 316 keyCode != KeyEvent.KEYCODE_ENTER) { 321 switch (keyCode) {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
EditSlideDurationActivity.java | 117 public boolean onKey(View v, int keyCode, KeyEvent event) { 122 switch (keyCode) {
|
/packages/apps/Phone/src/com/android/phone/ |
EmergencyDialer.java | 301 public boolean onKeyDown(int keyCode, KeyEvent event) { 302 switch (keyCode) { 317 return super.onKeyDown(keyCode, event); 320 private void keyPressed(int keyCode) { 322 KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); 323 mDigits.onKeyDown(keyCode, event); 327 public boolean onKey(View view, int keyCode, KeyEvent event) { 332 if (keyCode == KeyEvent.KEYCODE_ENTER
|
/packages/apps/Stk/src/com/android/stk/ |
StkDialogActivity.java | 116 public boolean onKeyDown(int keyCode, KeyEvent event) { 117 switch (keyCode) {
|
/development/apps/OBJViewer/com/android/objviewer/ |
OBJViewer.java | 105 public boolean onKeyDown(int keyCode, KeyEvent event) { 107 if (glView.processKey(keyCode)) { 111 switch (keyCode) { 138 return super.onKeyDown(keyCode, event);
|