Home
last modified time | relevance | path

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

123

/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()
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()
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()
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/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/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/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DLottieFontViewGroup.kt121 override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { in onKeyUp()
122 if (keyCode == KeyEvent.KEYCODE_SPACE) { in onKeyUp()
127 if (keyCode == KeyEvent.KEYCODE_DEL) { in onKeyUp()
133 return super.onKeyUp(keyCode, event) in onKeyUp()
161 if (event.keyCode >= KeyEvent.KEYCODE_A && event.keyCode <= KeyEvent.KEYCODE_Z) { in isValidKey()
/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/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/oboe/docs/reference/search/
Dsearch.js186 if (e.keyCode==40 || e.keyCode==13)
209 else if (e.keyCode==27) // Escape out of the search field
293 if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
298 else if (e.keyCode==38 && this.searchIndex>0) // Up
303 else if (e.keyCode==13 || e.keyCode==27)
592 this.lastKey = e.keyCode;
613 if (e.keyCode==13) return true;
691 if (e.keyCode==13) return true;
/external/angle/third_party/vulkan_memory_allocator/docs/html/search/
Dsearch.js187 if (e.keyCode==40 || e.keyCode==13)
209 else if (e.keyCode==27) // Escape out of the search field
293 if (e.keyCode==40 && this.searchIndex<this.SelectItemCount()) // Down
298 else if (e.keyCode==38 && this.searchIndex>0) // Up
303 else if (e.keyCode==13 || e.keyCode==27)
592 this.lastKey = e.keyCode;
613 if (e.keyCode==13) return true;
691 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/tensorflow/tensorflow/tools/android/test/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/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerControlView.java1122 int keyCode = event.getKeyCode(); in dispatchMediaKeyEvent() local
1124 if (player == null || !isHandledMediaKey(keyCode)) { in dispatchMediaKeyEvent()
1128 if (keyCode == KeyEvent.KEYCODE_MEDIA_FAST_FORWARD) { in dispatchMediaKeyEvent()
1130 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_REWIND) { in dispatchMediaKeyEvent()
1133 switch (keyCode) { in dispatchMediaKeyEvent()
1165 private static boolean isHandledMediaKey(int keyCode) { in isHandledMediaKey() argument
1166 return keyCode == KeyEvent.KEYCODE_MEDIA_FAST_FORWARD in isHandledMediaKey()
1167 || keyCode == KeyEvent.KEYCODE_MEDIA_REWIND in isHandledMediaKey()
1168 || keyCode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE in isHandledMediaKey()
1169 || keyCode == KeyEvent.KEYCODE_MEDIA_PLAY in isHandledMediaKey()
[all …]
/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()

123