Home
last modified time | relevance | path

Searched refs:keyEvent (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/text/src/android/text/method/cts/
DDialerKeyListenerTest.java39 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, event); in testLookup() local
40 int keyChar = keyEvent.getNumber(); in testLookup()
42 assertEquals(keyChar, mockDialerKeyListener.lookup(keyEvent, span)); in testLookup()
DArrowKeyMovementMethodTest.java1145 final KeyEvent keyEvent = new KeyEvent( in pressCtrlChord() local
1147 return mArrowKeyMovementMethod.onKeyDown(mTextView, mEditable, keyCode, keyEvent); in pressCtrlChord()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventTest.java62 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testConstructor() local
63 new KeyEvent(keyEvent); in testConstructor()
64 new KeyEvent(keyEvent, mEventTime, 1); in testConstructor()
100 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_Z); in testGetKeyData() local
102 assertTrue(keyEvent.getKeyData(keyData)); in testGetKeyData()
537 KeyEvent keyEvent = KeyEvent.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
540 assertEquals(mKeyEvent.getAction(), keyEvent.getAction()); in testWriteToParcel()
541 assertEquals(mKeyEvent.getKeyCode(), keyEvent.getKeyCode()); in testWriteToParcel()
542 assertEquals(mKeyEvent.getRepeatCount(), keyEvent.getRepeatCount()); in testWriteToParcel()
543 assertEquals(mKeyEvent.getMetaState(), keyEvent.getMetaState()); in testWriteToParcel()
[all …]
DViewTest.java3040 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0); in testTouchMode() local
3041 getInstrumentation().sendKeySync(keyEvent); in testTouchMode()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java177 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_RIGHT); in testAccessKeyProgressIncrement() local
178 getInstrumentation().sendKeySync(keyEvent); in testAccessKeyProgressIncrement()
181 keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_LEFT); in testAccessKeyProgressIncrement()
182 getInstrumentation().sendKeySync(keyEvent); in testAccessKeyProgressIncrement()
DListViewTest.java562 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A); in testDispatchKeyEvent()
563 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent()
570 KeyEvent keyEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN); in testDispatchKeyEvent()
571 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent()
572 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent()
573 mListView.dispatchKeyEvent(keyEvent); in testDispatchKeyEvent()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java344 private void verifyKeyEvent(final KeyEvent keyEvent, final InputEvent[] unhandledEvent) { in verifyKeyEvent() argument
346 mInstrumentation.sendKeySync(keyEvent); in verifyKeyEvent()
356 assertEquals(unhandled.getAction(), keyEvent.getAction()); in verifyKeyEvent()
357 assertEquals(unhandled.getKeyCode(), keyEvent.getKeyCode()); in verifyKeyEvent()
/cts/tests/app/src/android/app/cts/
DTestDialog.java78 public KeyEvent keyEvent; field in TestDialog
303 keyEvent = event; in dispatchKeyEvent()
/cts/tests/tests/app/src/android/app/cts/
DDialogTest.java514 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testDispatchKeyEvent()
640 assertEquals(KeyEvent.KEYCODE_0, d.keyEvent.getKeyCode()); in testTakeKeyEvents()
641 d.keyEvent = null; in testTakeKeyEvents()