/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 | 32 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/droiddriver/src/io/appium/droiddriver/actions/ |
D | SingleKeyAction.java | 22 import android.view.KeyEvent; 37 public static final SingleKeyAction MENU = new SingleKeyAction(KeyEvent.KEYCODE_MENU); 38 public static final SingleKeyAction SEARCH = new SingleKeyAction(KeyEvent.KEYCODE_SEARCH); 39 public static final SingleKeyAction BACK = new SingleKeyAction(KeyEvent.KEYCODE_BACK); 40 public static final SingleKeyAction DELETE = new SingleKeyAction(KeyEvent.KEYCODE_DEL); 44 KeyEvent.KEYCODE_MOVE_HOME, KeyEvent.META_CTRL_LEFT_ON); 48 KeyEvent.KEYCODE_MOVE_END, KeyEvent.META_CTRL_LEFT_ON); 84 : KeyEvent.keyCodeToString(keyCode); in toString()
|
D | TextAction.java | 23 import android.view.KeyEvent; 66 KeyEvent[] events = KEY_CHAR_MAP.getEvents(text.toCharArray()); 69 for (KeyEvent event : events) { 75 KeyEvent modifiedEvent = KeyEvent.changeTimeRepeat(event, SystemClock.uptimeMillis(), 0);
|
/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/droiddriver/src/io/appium/droiddriver/util/ |
D | Events.java | 25 import android.view.KeyEvent; 76 private static KeyEvent newKeyEvent(long downTime, long eventTime, int action, int keyCode, in newKeyEvent() 78 KeyEvent event = new KeyEvent(downTime, eventTime, action, keyCode, 0 /* repeat */, metaState); in newKeyEvent() 125 KeyEvent downEvent = newKeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, metaState); in keyDown() 132 newKeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, keyCode, metaState)); in keyUp()
|
/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/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/droiddriver/src/io/appium/droiddriver/instrumentation/ |
D | InstrumentationInputInjector.java | 21 import android.view.KeyEvent; 38 } else if (event instanceof KeyEvent) { in injectInputEvent() 39 instrumentation.sendKeySync((KeyEvent) event); in injectInputEvent()
|
/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/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/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 | 66 prec->Event.KeyEvent.bKeyDown = TRUE; in _testconsole_write_input_impl() 67 prec->Event.KeyEvent.wRepeatCount = 10; in _testconsole_write_input_impl() 68 prec->Event.KeyEvent.uChar.UnicodeChar = *p; in _testconsole_write_input_impl()
|
/external/tensorflow/tensorflow/examples/android/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/droiddriver/src/io/appium/droiddriver/base/ |
D | BaseUiDevice.java | 24 import android.view.KeyEvent; 38 private static final SingleKeyAction POWER_OFF = new SingleKeyAction(KeyEvent.KEYCODE_POWER, 41 private static final SingleKeyAction POWER_ON = new SingleKeyAction(KeyEvent.KEYCODE_POWER,
|
/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()
|