/cts/tests/tests/view/src/android/view/cts/ |
D | KeyEventInterceptTest.java | 101 KeyEvent keyEvent = mActivity.mKeyEvents.poll(1, TimeUnit.SECONDS); in assertKeyNotReceived() local 102 if (keyEvent == null) { in assertKeyNotReceived() 105 fail("Should not have received " + KeyEvent.keyCodeToString(keyEvent.getKeyCode())); in assertKeyNotReceived()
|
D | KeyEventTest.java | 84 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testConstructor() local 85 new KeyEvent(keyEvent); in testConstructor() 86 new KeyEvent(keyEvent, mEventTime, 1); in testConstructor() 625 KeyEvent keyEvent = KeyEvent.CREATOR.createFromParcel(parcel); in testWriteToParcel() local 628 assertEquals(mKeyEvent.getAction(), keyEvent.getAction()); in testWriteToParcel() 629 assertEquals(mKeyEvent.getKeyCode(), keyEvent.getKeyCode()); in testWriteToParcel() 630 assertEquals(mKeyEvent.getRepeatCount(), keyEvent.getRepeatCount()); in testWriteToParcel() 631 assertEquals(mKeyEvent.getMetaState(), keyEvent.getMetaState()); in testWriteToParcel() 632 assertEquals(mKeyEvent.getDeviceId(), keyEvent.getDeviceId()); in testWriteToParcel() 633 assertEquals(mKeyEvent.getScanCode(), keyEvent.getScanCode()); in testWriteToParcel() [all …]
|
D | ContentPaneFocusTest.java | 163 KeyEvent keyEvent = new KeyEvent(time, time, action, KeyEvent.KEYCODE_META_LEFT, 0, in sendMetaKey() local 165 mInstrumentation.sendKeySync(keyEvent); in sendMetaKey()
|
D | ViewTest.java | 3660 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testTouchMode() local 3661 mInstrumentation.sendKeySync(keyEvent); in testTouchMode()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | DialerKeyListenerTest.java | 53 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, event); in testLookup() local 54 int keyChar = keyEvent.getNumber(); in testLookup() 56 assertEquals(keyChar, mockDialerKeyListener.lookup(keyEvent, span)); in testLookup()
|
D | ForwardDeleteTest.java | 54 final KeyEvent keyEvent = getKey(KeyEvent.KEYCODE_FORWARD_DEL, modifiers); in forwardDelete() local 55 mActivity.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in forwardDelete() local
|
D | BackspaceTest.java | 54 final KeyEvent keyEvent = getKey(KeyEvent.KEYCODE_DEL, modifiers); in backspace() local 55 mActivityRule.runOnUiThread(() -> mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent)); in backspace() local
|
D | ArrowKeyMovementMethodTest.java | 1458 final KeyEvent keyEvent = new KeyEvent( in pressCtrlChord() local 1460 return mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, keyCode, keyEvent); in pressCtrlChord()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | WebViewActivity.java | 184 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in dispatchKeyPress() local 185 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress() 186 keyEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode); in dispatchKeyPress() 187 mWebView.dispatchKeyEvent(keyEvent); in dispatchKeyPress()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvViewTest.java | 376 private void verifyKeyEvent(final KeyEvent keyEvent, final InputEvent[] unhandledEvent) { in verifyKeyEvent() argument 378 mInstrumentation.sendKeySync(keyEvent); in verifyKeyEvent() 388 assertEquals(unhandled.getAction(), keyEvent.getAction()); in verifyKeyEvent() 389 assertEquals(unhandled.getKeyCode(), keyEvent.getKeyCode()); in verifyKeyEvent()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TestDialog.java | 80 public KeyEvent keyEvent; field in TestDialog 304 keyEvent = event; in dispatchKeyEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsSeekBarTest.java | 230 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testAccessKeyProgressIncrement() local 231 mInstrumentation.sendKeySync(keyEvent); in testAccessKeyProgressIncrement() 234 keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT); in testAccessKeyProgressIncrement() 235 mInstrumentation.sendKeySync(keyEvent); in testAccessKeyProgressIncrement()
|
D | ListViewTest.java | 524 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A); in testDispatchKeyEvent() 525 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent() 530 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, in testDispatchKeyEvent() 532 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent() 533 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent() 534 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 633 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testDispatchKeyEvent() 762 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testTakeKeyEvents() 763 d.keyEvent = null; in testTakeKeyEvents()
|