/external/droiddriver/src/io/appium/droiddriver/actions/ |
D | SingleKeyAction.java | 50 private final int keyCode; field in SingleKeyAction 54 public SingleKeyAction(int keyCode) { in SingleKeyAction() argument 55 this(keyCode, 0); in SingleKeyAction() 59 public SingleKeyAction(int keyCode, int metaState) { in SingleKeyAction() argument 60 this(keyCode, metaState, 100L, false); in SingleKeyAction() 63 public SingleKeyAction(int keyCode, int metaState, long timeoutMillis, boolean checkFocused) { in SingleKeyAction() argument 65 this.keyCode = keyCode; in SingleKeyAction() 73 final long downTime = Events.keyDown(injector, keyCode, metaState); in perform() 74 Events.keyUp(injector, downTime, keyCode, metaState); in perform() 83 Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB_MR1 ? String.valueOf(keyCode) in toString() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
D | MediaButtonCallback.java | 33 int keyCode = event.getKeyCode(); in handleKeyEvent() local 34 Log.d("Received ACTION_DOWN with keycode " + keyCode); in handleKeyEvent() 36 if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY) { in handleKeyEvent() 38 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PAUSE) { in handleKeyEvent() 40 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) { in handleKeyEvent() 42 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_STOP) { in handleKeyEvent() 44 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_NEXT) { in handleKeyEvent() 46 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_PREVIOUS) { in handleKeyEvent() 48 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_FAST_FORWARD) { in handleKeyEvent() 50 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_REWIND) { in handleKeyEvent()
|
D | MediaSessionFacade.java | 128 int keyCode; in mediaDispatchMediaKeyEvent() local 130 keyCode = KeyEvent.KEYCODE_MEDIA_PLAY; in mediaDispatchMediaKeyEvent() 132 keyCode = KeyEvent.KEYCODE_MEDIA_PAUSE; in mediaDispatchMediaKeyEvent() 134 keyCode = KeyEvent.KEYCODE_MEDIA_STOP; in mediaDispatchMediaKeyEvent() 136 keyCode = KeyEvent.KEYCODE_MEDIA_NEXT; in mediaDispatchMediaKeyEvent() 138 keyCode = KeyEvent.KEYCODE_MEDIA_PREVIOUS; in mediaDispatchMediaKeyEvent() 140 keyCode = KeyEvent.KEYCODE_MEDIA_FAST_FORWARD; in mediaDispatchMediaKeyEvent() 142 keyCode = KeyEvent.KEYCODE_MEDIA_REWIND; in mediaDispatchMediaKeyEvent() 147 KeyEvent keyDown = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in mediaDispatchMediaKeyEvent() 148 KeyEvent keyUp = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in mediaDispatchMediaKeyEvent()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | TerminalKeyListener.java | 102 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 121 if (keyCode == KeyEvent.KEYCODE_ALT_RIGHT && (metaState & META_SLASH) != 0) { in onKey() 125 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT && (metaState & META_TAB) != 0) { in onKey() 131 if (keyCode == KeyEvent.KEYCODE_ALT_LEFT && (metaState & META_SLASH) != 0) { in onKey() 135 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT && (metaState & META_TAB) != 0) { in onKey() 145 if (keyCode == KeyEvent.KEYCODE_BACK && transport != null) { in onKey() 151 if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { in onKey() 154 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { in onKey() 166 boolean printing = (keymap.isPrintingKey(keyCode) || keyCode == KeyEvent.KEYCODE_SPACE); in onKey() 187 int key = keymap.get(keyCode, curMetaState); in onKey() [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | GalleryTest.java | 33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight() 41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener() 48 int keyCode; field in GalleryTest.TestOnKeyListener 52 public boolean onKey(View view, int keyCode, KeyEvent event) { in onKey() argument 54 this.keyCode = keyCode; in onKey()
|
/external/libgdx/gdx/src/com/badlogic/gdx/input/ |
D | RemoteInput.java | 63 int keyCode; field in RemoteInput.KeyEvent 120 processor.keyDown(keyEvent.keyCode); in run() 121 if (!keys[keyEvent.keyCode]) { in run() 123 keys[keyEvent.keyCode] = true; in run() 126 justPressedKeys[keyEvent.keyCode] = true; in run() 129 processor.keyUp(keyEvent.keyCode); in run() 130 if (keys[keyEvent.keyCode]) { in run() 132 keys[keyEvent.keyCode] = false; in run() 154 if (!keys[keyEvent.keyCode]) { in run() 156 keys[keyEvent.keyCode] = true; in run() [all …]
|
/external/skia/src/animator/ |
D | SkDisplayEvents.cpp | 51 int keyCode = state ? state->fCode : 0; in doEvent() local 60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent() 62 evt->fLastCode = (SkKey) keyCode; in doEvent() 98 int keyCode = state ? state->fCode : 0; in removeEvent() local 105 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in removeEvent()
|
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ |
D | InputEvent.java | 27 private int pointer, button, keyCode, scrollAmount; field in InputEvent 86 return keyCode; in getKeyCode() 89 public void setKeyCode (int keyCode) { in setKeyCode() argument 90 this.keyCode = keyCode; in setKeyCode()
|
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
D | AndroidInput.java | 66 int keyCode; field in AndroidInput.KeyEvent 356 processor.keyDown(e.keyCode); in processEvents() 358 justPressedKeys[e.keyCode] = true; in processEvents() 361 processor.keyUp(e.keyCode); in processEvents() 476 public boolean onKey (View v, int keyCode, android.view.KeyEvent e) { in onKey() argument 478 if (keyListeners.get(i).onKey(v, keyCode, e)) return true; in onKey() 488 event.keyCode = 0; in onKey() 498 if (keyCode == 67) character = '\b'; in onKey() 508 event.keyCode = e.getKeyCode(); in onKey() 512 if (keyCode == android.view.KeyEvent.KEYCODE_BACK && e.isAltPressed()) { in onKey() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | KeyboardConfigDialogPreference.java | 211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey() argument 217 mLeftText.setText(getKeyLabel(keyCode)); in onKey() 218 mLeftKeyCode = keyCode; in onKey() 221 mRightText.setText(getKeyLabel(keyCode)); in onKey() 222 mRightKeyCode = keyCode; in onKey() 225 mJumpText.setText(getKeyLabel(keyCode)); in onKey() 226 mJumpKeyCode = keyCode; in onKey() 229 mAttackText.setText(getKeyLabel(keyCode)); in onKey() 230 mAttackKeyCode = keyCode; in onKey()
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | Events.java | 76 private static KeyEvent newKeyEvent(long downTime, long eventTime, int action, int keyCode, in newKeyEvent() argument 78 KeyEvent event = new KeyEvent(downTime, eventTime, action, keyCode, 0 /* repeat */, metaState); in newKeyEvent() 123 public static long keyDown(InputInjector injector, int keyCode, int metaState) { in keyDown() argument 125 KeyEvent downEvent = newKeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, metaState); in keyDown() 130 public static void keyUp(InputInjector injector, long downTime, int keyCode, int metaState) { in keyUp() argument 132 newKeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, keyCode, metaState)); in keyUp()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/ |
D | NumberPickerButton.java | 63 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 64 if ((keyCode == KeyEvent.KEYCODE_DPAD_CENTER) || (keyCode == KeyEvent.KEYCODE_ENTER)) { in onKeyUp() 67 return super.onKeyUp(keyCode, event); in onKeyUp()
|
/external/libvncserver/webclients/novnc/include/ |
D | keyboard.js | 156 return evt.key + ':' + evt.keyCode; 159 return evt.keyCode; 176 else if (evt.keyCode && evt.type === 'keypress') { 178 codepoint = evt.keyCode; 190 if (evt.keyCode) { 191 return keysyms.lookup(keysymFromKeyCode(evt.keyCode, evt.shiftKey)); 231 return nonCharacterKey({keyCode: keycode}); property 238 if (!evt.keyCode) { return null; } 239 var keycode = evt.keyCode; 319 var isShift = evt.keyCode === 0x10 || evt.key === 'Shift';
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowGallery.java | 15 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 16 switch (keyCode) { in onKeyDown() 20 onKeyListener.onKey(gallery, keyCode, event); in onKeyDown()
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/ |
D | Prismatic.java | 88 public boolean keyDown (int keyCode) { in keyDown() argument 89 if (keyCode == Keys.L) m_joint.enableLimit(!m_joint.isLimitEnabled()); in keyDown() 90 if (keyCode == Keys.M) m_joint.enableMotor(!m_joint.isMotorEnabled()); in keyDown() 91 if (keyCode == Keys.S) m_joint.setMotorSpeed(-m_joint.getMotorSpeed()); in keyDown()
|
D | BodyTypes.java | 136 public boolean keyDown (int keyCode) { in keyDown() argument 137 if (keyCode == Keys.D) m_platform.setType(BodyType.DynamicBody); in keyDown() 138 if (keyCode == Keys.S) m_platform.setType(BodyType.StaticBody); in keyDown() 139 if (keyCode == Keys.K) { in keyDown()
|
D | ApplyForce.java | 167 public boolean keyDown (int keyCode) { in keyDown() argument 168 if (keyCode == Keys.W) { in keyDown() 173 if (keyCode == Keys.A) m_body.applyTorque(50, true); in keyDown() 174 if (keyCode == Keys.D) m_body.applyTorque(-50, true); in keyDown()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
D | CTableCombo.java | 232 e.keyCode = event.keyCode; in handleTableEvent() 241 e.keyCode = event.keyCode; in handleTableEvent() 267 e.keyCode = event.keyCode; in handleTableEvent() 388 if (event.keyCode == SWT.ARROW_UP || event.keyCode == SWT.ARROW_DOWN) { in handleTextEvent() 390 if (event.keyCode == SWT.ARROW_UP) { in handleTextEvent() 431 e.keyCode = event.keyCode; in handleTextEvent() 442 e.keyCode = event.keyCode; in handleTextEvent() 489 e.keyCode = event.keyCode; in handleTextEvent()
|
/external/libjpeg-turbo/doc/html/search/ |
D | search.js | 194 if (e.keyCode==40 || e.keyCode==13) 217 else if (e.keyCode==27) // Escape out of the search field 301 if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down 306 else if (e.keyCode==38 && this.searchIndex>0) // Up 311 else if (e.keyCode==13 || e.keyCode==27) 602 this.lastKey = e.keyCode; 623 if (e.keyCode==13) return true; 701 if (e.keyCode==13) return true;
|
/external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/ |
D | SDLActivity.java | 306 int keyCode = event.getKeyCode(); in dispatchKeyEvent() local 308 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || in dispatchKeyEvent() 309 keyCode == KeyEvent.KEYCODE_VOLUME_UP || in dispatchKeyEvent() 310 keyCode == KeyEvent.KEYCODE_CAMERA || in dispatchKeyEvent() 311 keyCode == 168 || /* API 11: KeyEvent.KEYCODE_ZOOM_IN */ in dispatchKeyEvent() 312 keyCode == 169 /* API 11: KeyEvent.KEYCODE_ZOOM_OUT */ in dispatchKeyEvent() 957 public boolean onKey(DialogInterface d, int keyCode, KeyEvent event) { in onCreateDialog() 958 Button button = mapping.get(keyCode); in onCreateDialog() 1191 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 1199 if (SDLActivity.onNativePadDown(event.getDeviceId(), keyCode) == 0) { in onKey() [all …]
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
D | AbstractTextPropertyEditor.java | 253 lowEvent.keyCode = event.keyCode; in postKeyEvent() 269 if (e.keyCode == SWT.CR) { in handleKeyPressed() 277 } else if (e.keyCode == SWT.ESC) { in handleKeyPressed() 279 } else if (e.keyCode == SWT.ARROW_UP || e.keyCode == SWT.ARROW_DOWN) { in handleKeyPressed()
|
/external/sl4a/ScriptingLayerForAndroid/src/de/mud/terminal/ |
D | VDUInput.java | 80 void keyPressed(int keyCode, char keyChar, int modifiers); in keyPressed() argument 89 void keyTyped(int keyCode, char keyChar, int modifiers); in keyTyped() argument
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
D | CaptureActivity.java | 163 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 164 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 168 } else if (keyCode == KeyEvent.KEYCODE_FOCUS || keyCode == KeyEvent.KEYCODE_CAMERA) { in onKeyDown() 172 return super.onKeyDown(keyCode, event); in onKeyDown()
|
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/ |
D | LwjglInput.java | 312 processor.keyDown(e.keyCode); in processEvents() 315 processor.keyUp(e.keyCode); in processEvents() 865 event.keyCode = 0; in updateKeyboard() 876 int keyCode = getGdxKeyCode(Keyboard.getEventKey()); in updateKeyboard() local 878 …if (Keyboard.getEventKeyState() || (keyCode == 0 && keyChar != 0 && Character.isDefined(keyChar)))… in updateKeyboard() 881 switch (keyCode) { in updateKeyboard() 891 event.keyCode = 0; in updateKeyboard() 897 if (keyCode != 0) { in updateKeyboard() 899 event.keyCode = keyCode; in updateKeyboard() 907 justPressedKeys[keyCode] = true; in updateKeyboard() [all …]
|
D | LwjglAWTInput.java | 70 int keyCode; field in LwjglAWTInput.KeyEvent 332 processor.keyDown(e.keyCode); in processEvents() 334 justPressedKeys[e.keyCode] = true; in processEvents() 337 processor.keyUp(e.keyCode); in processEvents() 555 event.keyCode = translateKeyCode(e.getKeyCode()); in keyPressed() 559 if (!keys[event.keyCode]) { in keyPressed() 561 keys[event.keyCode] = true; in keyPressed() 572 event.keyCode = translateKeyCode(e.getKeyCode()); in keyReleased() 576 if (keys[event.keyCode]) { in keyReleased() 578 keys[event.keyCode] = false; in keyReleased() [all …]
|