/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 | 100 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument 119 if (keyCode == KeyEvent.KEYCODE_ALT_RIGHT && (metaState & META_SLASH) != 0) { in onKey() 123 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_RIGHT && (metaState & META_TAB) != 0) { in onKey() 129 if (keyCode == KeyEvent.KEYCODE_ALT_LEFT && (metaState & META_SLASH) != 0) { in onKey() 133 } else if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT && (metaState & META_TAB) != 0) { in onKey() 143 if (keyCode == KeyEvent.KEYCODE_BACK && transport != null) { in onKey() 149 if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { in onKey() 152 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { in onKey() 164 boolean printing = (keymap.isPrintingKey(keyCode) || keyCode == KeyEvent.KEYCODE_SPACE); in onKey() 185 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/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()
|
D | AndouKun.java | 363 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 365 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 372 } else if (keyCode == KeyEvent.KEYCODE_MENU) { in onKeyDown() 389 result = mGame.onKeyDownEvent(keyCode); in onKeyDown() 401 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 403 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyUp() 405 } else if (keyCode == KeyEvent.KEYCODE_MENU){ in onKeyUp() 410 result = mGame.onKeyUpEvent(keyCode); in onKeyUp()
|
D | DifficultyMenuActivity.java | 111 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 113 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 126 result = super.onKeyDown(keyCode, event); in onKeyDown()
|
D | LevelSelectActivity.java | 324 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 326 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 333 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 335 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyUp()
|
D | ExtrasMenuActivity.java | 132 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 134 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 147 result = super.onKeyDown(keyCode, event); in onKeyDown()
|
/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()
|
D | ShadowTextView.java | 278 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 279 previousKeyCodes.add(keyCode); in onKeyDown() 282 return onKeyListener.onKey(realView, keyCode, event); in onKeyDown() 289 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 290 previousKeyCodes.add(keyCode); in onKeyUp() 293 return onKeyListener.onKey(realView, keyCode, event); in onKeyUp()
|
/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/sl4a/ScriptingLayerForAndroid/src/de/mud/terminal/ |
D | VDUInput.java | 79 void keyPressed(int keyCode, char keyChar, int modifiers); in keyPressed() argument 88 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/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | CatchEventsEditText.java | 68 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument 73 return super.onKeyPreIme(keyCode, event); in onKeyPreIme()
|
/external/doclava/res/assets/templates/assets/ |
D | search_autocomplete.js | 110 if (e.keyCode == 13) { 120 else if (kd && (e.keyCode == 38)) { 128 else if (kd && (e.keyCode == 40)) {
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/ |
D | FullScreenTask.java | 282 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 284 data.put("key", String.valueOf(keyCode)); in onKeyDown() 288 (keyCode == KeyEvent.KEYCODE_BACK) in onKeyDown() 289 || (mOverrideKeys == null ? false : mOverrideKeys.contains(keyCode)); in onKeyDown()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/activity/ |
D | FutureActivity.java | 144 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 146 return mTask.onKeyDown(keyCode, event); in onKeyDown()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/ |
D | TestWindow.java | 95 …@Override public boolean performPanelShortcut(int featureId, int keyCode, KeyEvent event, int flag… in performPanelShortcut() argument 172 @Override public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey() argument
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
D | MenuLoaderTest.java | 171 public boolean performShortcut(int keyCode, KeyEvent event, int flags) { in performShortcut() argument 177 public boolean isShortcutKey(int keyCode, KeyEvent event) { in isShortcutKey() argument
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
D | ScriptEditor.java | 276 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 277 if (keyCode == KeyEvent.KEYCODE_BACK && hasContentChanged()) { in onKeyDown() 300 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { in onKeyDown() 303 } else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) { in onKeyDown() 306 } else if (keyCode == KeyEvent.KEYCODE_SEARCH) { in onKeyDown() 310 return super.onKeyDown(keyCode, event); in onKeyDown()
|