Home
last modified time | relevance | path

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

123

/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/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()
/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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMediaMetadataRetriever.java54 protected String extractMetadata(int keyCode) { in extractMetadata() argument
56 return metadata.get(dataSource).get(keyCode); in extractMetadata()
79 public static void addMetadata(DataSource ds, int keyCode, String value) { in addMetadata() argument
83 metadata.get(ds).put(keyCode, value); in addMetadata()
97 public static void addMetadata(String path, int keyCode, String value) { in addMetadata() argument
98 addMetadata(toDataSource(path), keyCode, value); in addMetadata() local
DShadowTextView.java71 protected boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
72 previousKeyCodes.add(keyCode); in onKeyDown()
74 return directlyOn(realTextView, TextView.class).onKeyDown(keyCode, event); in onKeyDown()
78 protected boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
79 previousKeyCodes.add(keyCode); in onKeyUp()
81 return directlyOn(realTextView, TextView.class).onKeyUp(keyCode, event); in onKeyUp()
DShadowKeyCharacterMap.java182 protected int get(int keyCode, int metaState) { in get() argument
185 if (keyCode == KeyEvent.KEYCODE_UNKNOWN) { in get()
188 return KEY_CODE_TO_CHAR_SHIFT_ON.containsKey(keyCode) in get()
189 ? KEY_CODE_TO_CHAR_SHIFT_ON.get(keyCode) in get()
190 : KEY_CODE_TO_CHAR.get(keyCode); in get()
192 return Character.toLowerCase(KEY_CODE_TO_CHAR.get(keyCode)); in get()
/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/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/tinyxml2/docs/search/
Dsearch.js163 if (e.keyCode==40 || e.keyCode==13)
186 else if (e.keyCode==27) // Escape out of the search field
270 if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
275 else if (e.keyCode==38 && this.searchIndex>0) // Up
280 else if (e.keyCode==13 || e.keyCode==27)
569 this.lastKey = e.keyCode;
590 if (e.keyCode==13) return true;
668 if (e.keyCode==13) return true;
/external/sl4a/Common/src/com/googlecode/android_scripting/activity/
DFutureActivity.java145 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
147 return mTask.onKeyDown(keyCode, event); in onKeyDown()
153 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
155 return mTask.onKeyUp(keyCode, event); in onKeyUp()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DCameraActivity.java422 public boolean onKeyDown(final int keyCode, final KeyEvent event) { in onKeyDown() argument
423 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || keyCode == KeyEvent.KEYCODE_VOLUME_UP in onKeyDown()
424 || keyCode == KeyEvent.KEYCODE_BUTTON_L1 || keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { in onKeyDown()
430 return super.onKeyDown(keyCode, event); in onKeyDown()
/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/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/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/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothHidInputCounterTask.java81 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
87 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
/external/sl4a/Common/src/com/googlecode/android_scripting/future/
DFutureActivityTask.java100 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
105 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
/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/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DCameraActivity.java416 public boolean onKeyDown(final int keyCode, final KeyEvent event) { in onKeyDown() argument
417 if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN || keyCode == KeyEvent.KEYCODE_VOLUME_UP) { in onKeyDown()
423 return super.onKeyDown(keyCode, event); in onKeyDown()

123