/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowKeyCharacterMap.java | 4 import android.view.KeyEvent; 20 CHAR_TO_KEY_CODE.put('0', KeyEvent.KEYCODE_0); 21 CHAR_TO_KEY_CODE.put('1', KeyEvent.KEYCODE_1); 22 CHAR_TO_KEY_CODE.put('2', KeyEvent.KEYCODE_2); 23 CHAR_TO_KEY_CODE.put('3', KeyEvent.KEYCODE_3); 24 CHAR_TO_KEY_CODE.put('4', KeyEvent.KEYCODE_4); 25 CHAR_TO_KEY_CODE.put('5', KeyEvent.KEYCODE_5); 26 CHAR_TO_KEY_CODE.put('6', KeyEvent.KEYCODE_6); 27 CHAR_TO_KEY_CODE.put('7', KeyEvent.KEYCODE_7); 28 CHAR_TO_KEY_CODE.put('8', KeyEvent.KEYCODE_8); [all …]
|
D | ShadowTextView.java | 12 import android.view.KeyEvent; 57 private List<KeyEvent> previousKeyEvents = new ArrayList<>(); 71 protected boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 78 protected boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() 88 public KeyEvent getPreviousKeyEvent(int index) { in getPreviousKeyEvent()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | TerminalKeyListener.java | 24 import android.view.KeyEvent; 100 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() 107 if (event.getAction() == KeyEvent.ACTION_UP) { in onKey() 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() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
D | MediaButtonCallback.java | 22 import android.view.KeyEvent; 32 private void handleKeyEvent(KeyEvent event) { 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() [all …]
|
D | MediaSessionFacade.java | 28 import android.view.KeyEvent; 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/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/ |
D | TransliteratorInputMethod.java | 24 import java.awt.event.KeyEvent; 375 case KeyEvent.KEY_TYPED: { in dispatchEvent() 377 KeyEvent ke = (KeyEvent)event; in dispatchEvent() 389 case KeyEvent.KEY_PRESSED: { in dispatchEvent() 391 KeyEvent ke = (KeyEvent)event; in dispatchEvent() 399 case KeyEvent.KEY_RELEASED: { in dispatchEvent() 401 KeyEvent ke = (KeyEvent)event; in dispatchEvent() 402 if (ke.getKeyCode() == KeyEvent.VK_SPACE && ke.isControlDown()) { in dispatchEvent() 629 case KeyEvent.VK_PAGE_UP: in handlePressed() 630 case KeyEvent.VK_UP: in handlePressed() [all …]
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | CatchEventsEditText.java | 21 import android.view.KeyEvent; 57 public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { in onEditorAction() 58 if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) in onEditorAction() 68 public boolean onKeyPreIme(int keyCode, KeyEvent event) { in onKeyPreIme() 69 if (event.getKeyCode() == KeyEvent.KEYCODE_BACK in onKeyPreIme() 70 && event.getAction() == KeyEvent.ACTION_UP) { in onKeyPreIme()
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/indic/ |
D | IndicInputMethod.java | 14 import java.awt.event.KeyEvent; 60 if (event instanceof KeyEvent) { in dispatchEvent() 61 KeyEvent keyEvent = (KeyEvent) event; in dispatchEvent() 62 if (event.getID() == KeyEvent.KEY_TYPED) { in dispatchEvent()
|
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/ |
D | LottieFontViewGroup.kt | 6 import android.view.KeyEvent 121 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() 157 private fun isValidKey(event: KeyEvent): Boolean { in isValidKey() 161 if (event.keyCode >= KeyEvent.KEYCODE_A && event.keyCode <= KeyEvent.KEYCODE_Z) { in isValidKey()
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/ |
D | NumberPickerButton.java | 21 import android.view.KeyEvent; 63 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() 64 if ((keyCode == KeyEvent.KEYCODE_DPAD_CENTER) || (keyCode == KeyEvent.KEYCODE_ENTER)) { in onKeyUp()
|
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/views/ |
D | SearchInputItemView.kt | 5 import android.view.KeyEvent in <lambda>() 25 if (actionId == EditorInfo.IME_ACTION_SEARCH && event?.action == KeyEvent.ACTION_DOWN) { in <lambda>() 28 … } else if (event?.keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_DOWN) { in <lambda>()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowInputEventTest.java | 7 import android.view.KeyEvent; 17 KeyEvent keyEvent = new KeyEvent(1, 2); in canSetInputDeviceOnKeyEvent()
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
D | DumbTextComponent.java | 29 import java.awt.event.KeyEvent; 185 public void keyPressed(KeyEvent e) { in keyPressed() 195 case KeyEvent.VK_Q: in keyPressed() 200 case KeyEvent.VK_V: in keyPressed() 208 case KeyEvent.VK_C: in keyPressed() 212 case KeyEvent.VK_X: in keyPressed() 221 case KeyEvent.VK_A: in keyPressed() 226 case KeyEvent.VK_RIGHT: in keyPressed() 232 case KeyEvent.VK_LEFT: in keyPressed() 238 case KeyEvent.VK_UP: // LIU: Add support for up arrow in keyPressed() [all …]
|
/external/setupdesign/main/src/com/google/android/setupdesign/view/ |
D | HeaderRecyclerView.java | 24 import android.view.KeyEvent; 318 private boolean handleKeyEvent(KeyEvent keyEvent) { in handleKeyEvent() 319 if (shouldHandleActionUp && keyEvent.getAction() == KeyEvent.ACTION_UP) { in handleKeyEvent() 322 } else if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in handleKeyEvent() 325 case KeyEvent.KEYCODE_DPAD_DOWN: in handleKeyEvent() 328 case KeyEvent.KEYCODE_DPAD_UP: in handleKeyEvent() 340 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/ |
D | LocalUiController.java | 15 import android.view.KeyEvent; 49 public boolean injectKeyEvent(KeyEvent event) throws InjectEventSecurityException { in injectKeyEvent() 80 KeyEvent[] events = keyCharacterMap.getEvents(str.toCharArray()); in injectString() 92 for (KeyEvent event : events) { in injectString() 106 event = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0); in injectString()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 26 import android.view.KeyEvent; 1110 public boolean dispatchKeyEvent(KeyEvent event) { in dispatchKeyEvent() 1121 public boolean dispatchMediaKeyEvent(KeyEvent event) { in dispatchMediaKeyEvent() 1127 if (event.getAction() == KeyEvent.ACTION_DOWN) { in dispatchMediaKeyEvent() 1128 if (keyCode == KeyEvent.KEYCODE_MEDIA_FAST_FORWARD) { in dispatchMediaKeyEvent() 1130 } else if (keyCode == KeyEvent.KEYCODE_MEDIA_REWIND) { in dispatchMediaKeyEvent() 1134 case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: in dispatchMediaKeyEvent() 1137 case KeyEvent.KEYCODE_MEDIA_PLAY: in dispatchMediaKeyEvent() 1140 case KeyEvent.KEYCODE_MEDIA_PAUSE: in dispatchMediaKeyEvent() 1143 case KeyEvent.KEYCODE_MEDIA_NEXT: in dispatchMediaKeyEvent() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | KeyboardConfigDialogPreference.java | 28 import android.view.KeyEvent; 95 mLeftKeyCode = mSharedPrefs.getInt(mLeftPrefKey, KeyEvent.KEYCODE_DPAD_LEFT); in onBindDialogView() 96 mRightKeyCode = mSharedPrefs.getInt(mRightPrefKey, KeyEvent.KEYCODE_DPAD_RIGHT); in onBindDialogView() 97 mJumpKeyCode = mSharedPrefs.getInt(mJumpPrefKey, KeyEvent.KEYCODE_SPACE); in onBindDialogView() 98 mAttackKeyCode = mSharedPrefs.getInt(mAttackPrefKey, KeyEvent.KEYCODE_SHIFT_LEFT); in onBindDialogView() 211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey()
|
D | InputGameInterface.java | 19 import android.view.KeyEvent; 43 private int mLeftKeyCode = KeyEvent.KEYCODE_DPAD_LEFT; 44 private int mRightKeyCode = KeyEvent.KEYCODE_DPAD_RIGHT; 45 private int mJumpKeyCode = KeyEvent.KEYCODE_SPACE; 46 private int mAttackKeyCode = KeyEvent.KEYCODE_SHIFT_LEFT; 226 final InputButton clickButton = keys[KeyEvent.KEYCODE_DPAD_CENTER]; // special case in update()
|
D | AndouKun.java | 36 import android.view.KeyEvent; 311 …final int leftKey = prefs.getInt(PreferenceConstants.PREFERENCE_LEFT_KEY, KeyEvent.KEYCODE_DPAD_LE… in onResume() 312 …final int rightKey = prefs.getInt(PreferenceConstants.PREFERENCE_RIGHT_KEY, KeyEvent.KEYCODE_DPAD_… in onResume() 313 … final int jumpKey = prefs.getInt(PreferenceConstants.PREFERENCE_JUMP_KEY, KeyEvent.KEYCODE_SPACE); in onResume() 314 …final int attackKey = prefs.getInt(PreferenceConstants.PREFERENCE_ATTACK_KEY, KeyEvent.KEYCODE_SHI… in onResume() 363 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 365 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 372 } else if (keyCode == KeyEvent.KEYCODE_MENU) { in onKeyDown() 401 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() 403 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyUp() [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
D | BluetoothHidInputCounterTask.java | 19 import android.view.KeyEvent; 81 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 87 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/future/ |
D | FutureActivityTask.java | 23 import android.view.KeyEvent; 100 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 105 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp()
|
/external/python/cpython3/PC/ |
D | _testconsole.c | 65 prec->Event.KeyEvent.bKeyDown = TRUE; in _testconsole_write_input_impl() 66 prec->Event.KeyEvent.wRepeatCount = 1; in _testconsole_write_input_impl() 67 prec->Event.KeyEvent.uChar.UnicodeChar = *p; in _testconsole_write_input_impl()
|
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/ |
D | CameraActivity.java | 39 import android.view.KeyEvent; 422 public boolean onKeyDown(final int keyCode, final KeyEvent event) { in onKeyDown() 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()
|
/external/angle/util/ |
D | Event.h | 28 struct KeyEvent struct 80 KeyEvent Key; // Key event parameters
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
D | CaptureActivity.java | 34 import android.view.KeyEvent; 163 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() 164 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 168 } else if (keyCode == KeyEvent.KEYCODE_FOCUS || keyCode == KeyEvent.KEYCODE_CAMERA) { in onKeyDown()
|