| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | InteractionController.java | 197 public boolean clickNoSync(int x, int y) { in clickNoSync() argument 198 boolean success = touchDown(x, y); in clickNoSync() 201 success &= touchUp(x, y); in clickNoSync() 214 public boolean clickAndSync(final int x, final int y, long timeout) { in clickAndSync() argument 215 return runAndWaitForEvents(() -> clickNoSync(x, y), new WaitForAnyEventPredicate( in clickAndSync() 229 public boolean clickAndWaitForNewWindow(final int x, final int y, long timeout) { in clickAndWaitForNewWindow() argument 230 return runAndWaitForEvents(() -> clickNoSync(x, y), new WaitForAllEventPredicate( in clickAndWaitForNewWindow() 242 public boolean longTapNoSync(int x, int y) { in longTapNoSync() argument 243 boolean success = touchDown(x, y); in longTapNoSync() 246 success &= touchUp(x, y); in longTapNoSync() [all …]
|
| D | PointerGesture.java | 167 ret.offset((int)(fraction * (end.x - start.x)), (int)(fraction * (end.y - start.y))); in interpolate() 177 return Math.sqrt((b.x - a.x) * (b.x - a.x) + (b.y - a.y) * (b.y - a.y)); in calcDistance()
|
| D | UiObject.java | 946 final float stepY1 = (endPoint1.y - startPoint1.y) / steps; in performTwoPointerGesture() 948 final float stepY2 = (endPoint2.y - startPoint2.y) / steps; in performTwoPointerGesture() 952 eventY1 = startPoint1.y; in performTwoPointerGesture() 954 eventY2 = startPoint2.y; in performTwoPointerGesture() 964 p1.y = eventY1; in performTwoPointerGesture() 971 p2.y = eventY2; in performTwoPointerGesture() 985 p1.y = endPoint1.y; in performTwoPointerGesture() 992 p2.y = endPoint2.y; in performTwoPointerGesture() 1033 result.append(String.format("(%f, %f)", point.x, point.y)); in touchesToString()
|
| D | UiObject2.java | 329 screen = new Rect(0, 0, displaySize.x, displaySize.y); in getVisibleBounds() 359 if (bounds.contains(point.x, point.y)) { in clipToGestureBounds() 362 Log.d(TAG, String.format("Clipping out-of-bound (%d, %d) into %s.", point.x, point.y, in clipToGestureBounds() 365 point.y = Math.max(bounds.top, Math.min(point.y, bounds.bottom)); in clipToGestureBounds() 525 Log.d(TAG, String.format("Clicking on (%d, %d).", center.x, center.y)); in click() 540 Log.d(TAG, String.format("Clicking on (%d, %d).", point.x, point.y)); in click() 551 Log.d(TAG, String.format("Clicking on (%d, %d) for %dms.", center.x, center.y, duration)); in click() 567 Log.d(TAG, String.format("Clicking on (%d, %d) for %dms.", point.x, point.y, duration)); in click() 584 center.y, timeout, condition)); in clickAndWait() 605 point.y, timeout, condition)); in clickAndWait() [all …]
|
| D | GestureController.java | 315 coords.y = point.y; in Pointer() 320 coords.y = point.y; in updatePosition() 325 return "Pointer " + prop.id + " {" + coords.x + " " + coords.y + "}"; in toString()
|
| D | UiDevice.java | 324 return new Point(Math.round(p.x / density), Math.round(p.y / density)); in getDisplaySizeDp() 605 return getDisplaySize(displayId).y; in getDisplayHeight() 615 public boolean click(int x, int y) { in click() argument 616 if (x >= getDisplayWidth() || y >= getDisplayHeight()) { in click() 618 x, y, getDisplayWidth(), getDisplayHeight())); in click() 621 Log.d(TAG, String.format("Clicking on (%d, %d).", x, y)); in click() 622 return getInteractionController().clickNoSync(x, y); in click()
|
| /test/screenshot/screenshot/src/main/java/androidx/test/screenshot/matchers/ |
| D | MSSIMMatcher.kt | 138 for (y in 0 until windowHeight) { in isWindowWhite() method 140 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 151 private fun indexFromXAndY(x: Int, y: Int, stride: Int, offset: Int): Int { in indexFromXAndY() 152 return x + y * stride + offset in indexFromXAndY() 177 for (y in 0 until windowHeight) { in getMeans() variable 179 val index: Int = indexFromXAndY(x, y, stride, start) in getMeans() 213 for (y in 0 until windowHeight) { in getVariances() variable 215 val index: Int = indexFromXAndY(x, y, stride, start) in getVariances()
|
| D | PixelPerfectMatcher.kt | 38 for (y in 0 until height) { in compareBitmaps() constant 40 val index = x + y * width in compareBitmaps()
|
| /test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/ |
| D | VerticalScrollTestActivity.java | 43 layout.setLayoutParams(new FrameLayout.LayoutParams(displaySize.x, displaySize.y * 2)); in onCreate()
|
| D | HorizontalScrollTestActivity.java | 43 layout.setLayoutParams(new FrameLayout.LayoutParams(displaySize.x * 2, displaySize.y)); in onCreate()
|
| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | UiDeviceTest.java | 112 assertTrue(mDevice.performActionAndWait(() -> mDevice.click(buttonCenter.x, buttonCenter.y), in testPerformActionAndWait() 352 mDevice.drag(start.x, start.y, end.x, end.y, 10); in testDrag()
|