/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/ |
H A D | Tap.java | 34 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 D | Swipe.java | 36 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 D | Swiper.java | 44 * {@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 D | Tapper.java | 48 * @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 D | MotionEvents.java | 47 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 D | CloseKeyboardAction.java | 60 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 D | GeneralClickAction.java | 69 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 D | GeneralSwipeAction.java | 61 public void perform(UiController uiController, View view) { argument 70 status = swiper.sendSwipe(uiController, startCoordinates, endCoordinates, precision); 80 uiController.loopMainThreadForAtLeast(ViewConfiguration.getPressedStateDuration());
|
H A D | TypeTextAction.java | 90 public void perform(UiController uiController, View view) { argument 100 .perform(uiController, view); 101 uiController.loopMainThreadUntilIdle(); 105 if (!uiController.injectString(stringToBeTyped)) {
|
H A D | ScrollToAction.java | 54 public void perform(UiController uiController, View view) { argument 64 uiController.loopMainThreadUntilIdle();
|
H A D | ClearTextAction.java | 42 public void perform(UiController uiController, View view) { argument
|
H A D | AdapterDataLoaderAction.java | 76 public void perform(UiController uiController, View view) { argument 147 uiController.loopMainThreadForAtLeast(100);
|
H A D | KeyEventAction.java | 57 public void perform(UiController uiController, View view) { argument 59 if (!sendKeyEvent(uiController, view)) {
|
H A D | EditorAction.java | 48 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 D | ViewAction.java | 64 * @param uiController the controller to use to interact with the UI. 67 public void perform(UiController uiController, View view); argument
|
H A D | ViewInteraction.java | 54 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 D | RootViewPicker.java | 60 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 D | UiControllerImplTest.java | 45 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 D | UiControllerImplIntegrationTest.java | 53 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 D | DrawerActions.java | 100 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 D | EspressoTest.java | 103 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 D | EventActionIntegrationTest.java | 87 public void perform(UiController uiController, View view) {
|