Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 – 25 of 45) sorted by relevance

12

/external/droiddriver/src/io/appium/droiddriver/actions/
DSingleKeyAction.java50 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/
DMediaButtonCallback.java33 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()
DMediaSessionFacade.java128 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/
DTerminalKeyListener.java100 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/
DGalleryTest.java33 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/
DKeyboardConfigDialogPreference.java211 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()
DAndouKun.java363 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()
DDifficultyMenuActivity.java111 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()
DLevelSelectActivity.java324 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()
DExtrasMenuActivity.java132 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/
DEvents.java76 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/
DNumberPickerButton.java63 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/
Dkeyboard.js156 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/
DShadowGallery.java15 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
16 switch (keyCode) { in onKeyDown()
20 onKeyListener.onKey(gallery, keyCode, event); in onKeyDown()
DShadowTextView.java278 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/
Dsearch.js194 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/
DVDUInput.java79 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/
DCaptureActivity.java163 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/
DCatchEventsEditText.java68 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() argument
73 return super.onKeyPreIme(keyCode, event); in onKeyPreIme()
/external/doclava/res/assets/templates/assets/
Dsearch_autocomplete.js110 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/
DFullScreenTask.java282 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/
DFutureActivity.java144 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/
DTestWindow.java95 …@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/
DMenuLoaderTest.java171 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/
DScriptEditor.java276 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()

12