| /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 | UiCollection.java | 54 for (int x = 0; x < count; x++) { in getChildByDescription() 55 UiObject row = getChildByInstance(childPattern, x); in getChildByDescription() 108 for (int x = 0; x < count; x++) { in getChildByText() 109 UiObject row = getChildByInstance(childPattern, x); in getChildByText()
|
| D | UiScrollable.java | 252 for (int x = 0; x < mMaxSearchSwipes; x++) { in scrollIntoView() 463 for(int x = 0; x < maxSwipes; x++) { in scrollToBeginning() 509 for(int x = 0; x < maxSwipes; x++) { in scrollToEnd()
|
| 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 | 945 final float stepX1 = (endPoint1.x - startPoint1.x) / steps; in performTwoPointerGesture() 947 final float stepX2 = (endPoint2.x - startPoint2.x) / steps; in performTwoPointerGesture() 951 eventX1 = startPoint1.x; in performTwoPointerGesture() 953 eventX2 = startPoint2.x; in performTwoPointerGesture() 963 p1.x = eventX1; in performTwoPointerGesture() 970 p2.x = eventX2; in performTwoPointerGesture() 984 p1.x = endPoint1.x; in performTwoPointerGesture() 991 p2.x = endPoint2.x; 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() 364 point.x = Math.max(bounds.left, Math.min(point.x, bounds.right)); 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() 583 Log.d(TAG, String.format("Clicking on (%d, %d) and waiting %dms for %s.", center.x, in clickAndWait() 604 Log.d(TAG, String.format("Clicking on (%d, %d) and waiting %dms for %s.", point.x, in clickAndWait() [all …]
|
| D | AccessibilityNodeInfoDumper.java | 172 for (int x = 0; x < childCount; x++) { in childNafCheck() 173 AccessibilityNodeInfo childNode = node.getChild(x); in childNafCheck()
|
| D | GestureController.java | 314 coords.x = point.x; in Pointer() 319 coords.x = point.x; in updatePosition() 325 return "Pointer " + prop.id + " {" + coords.x + " " + coords.y + "}"; in toString()
|
| D | QueryController.java | 181 for (int x = 0; x < maxRetry; x++) { in getRootNode() 186 if (x < maxRetry - 1) { in getRootNode()
|
| D | UiDevice.java | 324 return new Point(Math.round(p.x / density), Math.round(p.y / density)); in getDisplaySizeDp() 583 return getDisplaySize(displayId).x; in getDisplayWidth() 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()
|
| D | UiSelector.java | 642 for(int x = 0; x < size; x++) { in isMatchFor() 644 int criterion = mSelectorAttributes.keyAt(x); in isMatchFor()
|
| /test/screenshot/screenshot/src/main/java/androidx/test/screenshot/matchers/ |
| D | MSSIMMatcher.kt | 139 for (x in 0 until windowWidth) { 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() 178 for (x in 0 until windowWidth) { in getMeans() variable 179 val index: Int = indexFromXAndY(x, y, stride, start) in getMeans() 214 for (x in 0 until windowWidth) { in getVariances() variable 215 val index: Int = indexFromXAndY(x, y, stride, start) in getVariances()
|
| D | PixelPerfectMatcher.kt | 39 for (x in 0 until width) { 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()
|