Home
last modified time | relevance | path

Searched refs:pressKey (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
DTestEvents.java171 public Builder pressKey(@Key int... keys) { in pressKey() method in TestEvents.Builder
199 pressKey(KeyEvent.META_SHIFT_ON); in shift()
209 pressKey(KeyEvent.META_CTRL_ON); in ctrl()
214 pressKey(KeyEvent.META_ALT_ON); in alt()
/frameworks/support/viewpager/src/androidTest/java/androidx/viewpager/widget/
DBaseViewPagerTest.java19 import static android.support.test.espresso.action.ViewActions.pressKey;
1097 onView(is(firstButton)).perform(pressKey(KeyEvent.KEYCODE_DPAD_RIGHT)); in testKeyboardNavigation()
1102 onView(is(adapter.getButton(0, 1))).perform(pressKey(new EspressoKey.Builder() in testKeyboardNavigation()
1108 onView(is(adapter.getButton(1, 0))).perform(pressKey(KeyEvent.KEYCODE_DPAD_LEFT)); in testKeyboardNavigation()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java22 import static android.support.test.espresso.action.ViewActions.pressKey;
136 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); in testPositionCursorAtTextAtIndex()
238 onView(withId(R.id.textview)).perform(pressKey( in testDragAndDrop()