Searched refs:uiController (Results 1 - 22 of 22) sorted by relevance

/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/
H A DTap.java34 public Tapper.Status sendTap(UiController uiController, float[] coordinates,
36 checkNotNull(uiController);
40 DownResultHolder res = MotionEvents.sendDown(uiController, coordinates, precision);
42 if (!MotionEvents.sendUp(uiController, res.down)) {
44 MotionEvents.sendCancel(uiController, res.down);
55 public Tapper.Status sendTap(UiController uiController, float[] coordinates,
57 checkNotNull(uiController);
61 MotionEvent downEvent = MotionEvents.sendDown(uiController, coordinates, precision).down;
67 uiController.loopMainThreadForAtLeast(longPressTimeout);
69 if (!MotionEvents.sendUp(uiController, downEven
[all...]
H A DSwipe.java36 public Swiper.Status sendSwipe(UiController uiController, float[] startCoordinates,
38 return sendLinearSwipe(uiController, startCoordinates, endCoordinates, precision,
46 public Swiper.Status sendSwipe(UiController uiController, float[] startCoordinates,
48 return sendLinearSwipe(uiController, startCoordinates, endCoordinates, precision,
78 private static Swiper.Status sendLinearSwipe(UiController uiController, float[] startCoordinates, argument
80 checkNotNull(uiController);
88 MotionEvent downEvent = MotionEvents.sendDown(uiController, steps[0], precision).down;
91 if (!MotionEvents.sendMovement(uiController, downEvent, steps[i])) {
93 MotionEvents.sendCancel(uiController, downEvent);
100 uiController
[all...]
H A DSwiper.java44 * {@code uiController} to send {@link MotionEvent}s.
46 * @param uiController a UiController to use to send MotionEvents to the screen.
52 public Status sendSwipe(UiController uiController, float[] startCoordinates, argument
H A DTapper.java48 * @param uiController a UiController to use to send MotionEvents to the screen.
53 public Status sendTap(UiController uiController, float[] coordinates, float[] precision); argument
H A DMotionEvents.java47 UiController uiController, float[] coordinates, float[] precision) {
48 checkNotNull(uiController);
79 boolean injectEventSucceeded = uiController.injectMotionEvent(motionEvent);
88 uiController.loopMainThreadForAtLeast(delayToBeTap / 4);
119 static boolean sendUp(UiController uiController, MotionEvent downEvent) { argument
120 return sendUp(uiController, downEvent, new float[] { downEvent.getX(), downEvent.getY() });
123 static boolean sendUp(UiController uiController, MotionEvent downEvent, float[] coordinates) { argument
124 checkNotNull(uiController);
137 boolean injectEventSucceeded = uiController.injectMotionEvent(motionEvent);
160 static void sendCancel(UiController uiController, MotionEven argument
46 sendDown( UiController uiController, float[] coordinates, float[] precision) argument
197 sendMovement(UiController uiController, MotionEvent downEvent, float[] coordinates) argument
[all...]
H A DCloseKeyboardAction.java60 public void perform(UiController uiController, View view) { argument
64 tryToCloseKeyboard(view, uiController);
79 private void tryToCloseKeyboard(View view, UiController uiController) throws TimeoutException { argument
80 InputMethodManager imm = (InputMethodManager) getRootActivity(uiController)
124 private static Activity getRootActivity(UiController uiController) { argument
128 uiController.loopMainThreadUntilIdle();
H A DGeneralClickAction.java69 public void perform(UiController uiController, View view) { argument
98 status = tapper.sendTap(uiController, coordinates, precision);
108 uiController.loopMainThreadForAtLeast(ViewConfiguration.getPressedStateDuration());
111 rollbackAction.get().perform(uiController, view);
133 uiController.loopMainThreadForAtLeast(ViewConfiguration.getDoubleTapTimeout());
H A DGeneralSwipeAction.java61 public void perform(UiController uiController, View view) { argument
70 status = swiper.sendSwipe(uiController, startCoordinates, endCoordinates, precision);
80 uiController.loopMainThreadForAtLeast(ViewConfiguration.getPressedStateDuration());
H A DTypeTextAction.java90 public void perform(UiController uiController, View view) { argument
100 .perform(uiController, view);
101 uiController.loopMainThreadUntilIdle();
105 if (!uiController.injectString(stringToBeTyped)) {
H A DScrollToAction.java54 public void perform(UiController uiController, View view) { argument
64 uiController.loopMainThreadUntilIdle();
H A DClearTextAction.java42 public void perform(UiController uiController, View view) { argument
H A DAdapterDataLoaderAction.java76 public void perform(UiController uiController, View view) { argument
147 uiController.loopMainThreadForAtLeast(100);
H A DKeyEventAction.java57 public void perform(UiController uiController, View view) { argument
59 if (!sendKeyEvent(uiController, view)) {
H A DEditorAction.java48 public void perform(UiController uiController, View view) { argument
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/
H A DViewAction.java64 * @param uiController the controller to use to interact with the UI.
67 public void perform(UiController uiController, View view); argument
H A DViewInteraction.java54 private final UiController uiController; field in class:ViewInteraction
63 UiController uiController,
70 this.uiController = checkNotNull(uiController);
109 uiController.loopMainThreadUntilIdle();
135 viewAction.perform(uiController, targetView);
152 uiController.loopMainThreadUntilIdle();
62 ViewInteraction( UiController uiController, ViewFinder viewFinder, @MainThread Executor mainThreadExecutor, FailureHandler failureHandler, Matcher<View> viewMatcher, AtomicReference<Matcher<Root>> rootMatcherRef) argument
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DRootViewPicker.java60 private final UiController uiController; field in class:RootViewPicker
67 RootViewPicker(Provider<List<Root>> rootsOracle, UiController uiController, argument
71 this.uiController = uiController;
91 uiController.loopMainThreadUntilIdle();
96 uiController.loopMainThreadForAtLeast(10);
171 uiController.loopMainThreadUntilIdle();
191 uiController.loopMainThreadForAtLeast(waitTimes[waitIdx]);
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/base/
H A DUiControllerImplTest.java45 private AtomicReference<UiControllerImpl> uiController = new AtomicReference<UiControllerImpl>(); field in class:UiControllerImplTest
110 uiController.set(new UiControllerImpl(
166 uiController.get().loopMainThreadUntilIdle();
192 uiController.get().loopMainThreadForAtLeast(1000);
224 uiController.get().loopMainThreadUntilIdle();
279 uiController.get().loopMainThreadUntilIdle();
296 uiController.get().loopMainThreadUntilIdle();
316 uiController.get().loopMainThreadUntilIdle();
338 uiController.get().loopMainThreadUntilIdle();
374 uiController
[all...]
H A DUiControllerImplIntegrationTest.java53 private UiController uiController; field in class:UiControllerImplIntegrationTest
74 uiController = new UiControllerImpl(
106 injectEventWorked.set(uiController.injectKeyEvent(events[0]));
144 injectEventWorked.set(uiController.injectString("Hello! \n&*$$$"));
182 injectEventWorked.set(uiController.injectString("This is a string with 32 chars!!"));
217 injectEventWorked.set(uiController.injectString(""));
236 injectEventWorked.set(uiController.injectString("Hello! \n&*$$$"));
266 injectEventWorked.set(uiController.injectMotionEvent(event));
/frameworks/testing/espresso/espresso-contrib/src/main/java/com/google/android/apps/common/testing/ui/espresso/contrib/
H A DDrawerActions.java100 public void perform(UiController uiController, View view) {
120 public void perform(UiController uiController, View view) {
139 public void perform(UiController uiController, View view) {
162 public void perform(UiController uiController, View view) {
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/
H A DEspressoTest.java103 public void perform(UiController uiController, View view) {
107 uiController.loopMainThreadUntilIdle();
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/action/
H A DEventActionIntegrationTest.java87 public void perform(UiController uiController, View view) {

Completed in 189 milliseconds