| /test/screenshot/screenshot/src/androidTest/java/androidx/test/screenshot/ |
| D | MSSIMMatcherTest.kt | 42 first.height in performDiff_sameBitmaps() 59 first.height in performDiff_checkedAgainstUnchecked() 76 first.height in performDiff_differentBorders() 93 first.height in performDiff_fullscreen_differentBorders_dark() 110 first.height in performDiff_differentBorders_dark() 127 first.height in performDiff_fullscreen_movedToRight() 144 first.height in performDiff_fullscreen_checkboxes_differentRadius()
|
| D | PixelPerfectMatcherTest.kt | 42 first.height in performDiff_sameBitmaps() 59 first.height in performDiff_sameSize_differentBorders()
|
| /test/screenshot/screenshot/src/main/java/androidx/test/screenshot/matchers/ |
| D | PixelPerfectMatcher.kt | 29 height: Int in compareBitmaps() 36 val diffArray = IntArray(width * height) in compareBitmaps() 38 for (y in 0 until height) { in compareBitmaps() 53 val diff = Bitmap.createBitmap(diffArray, width, height, Bitmap.Config.ARGB_8888) in compareBitmaps()
|
| D | MSSIMMatcher.kt | 45 height: Int in compareBitmaps() 47 val SSIMTotal = calculateSSIM(expected, given, width, height) in compareBitmaps() 57 val result = PixelPerfectMatcher().compareBitmaps(expected, given, width, height) in compareBitmaps() 61 internal fun calculateSSIM(ideal: IntArray, given: IntArray, width: Int, height: Int): Double { in calculateSSIM() 62 return calculateSSIM(ideal, given, 0, width, width, height) in calculateSSIM() 71 height: Int in calculateSSIM() 76 while (currentWindowY < height) { in calculateSSIM() 77 val windowHeight = computeWindowSize(currentWindowY, height) in calculateSSIM()
|
| D | BitmapMatcher.kt | 33 fun compareBitmaps(expected: IntArray, given: IntArray, width: Int, height: Int): MatchResult
|
| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | MultiWindowTest.java | 61 int height = mDevice.getDisplayHeight(); in testMultiWindow_splitScreen() local 62 mDevice.click(width / 2, height / 4); in testMultiWindow_splitScreen() 63 mDevice.click(width / 2, 3 * height / 4); in testMultiWindow_splitScreen()
|
| D | UiDeviceTest.java | 318 int height = mDevice.getDisplayHeight(); in testClick() local 319 mDevice.click(width / 2, height / 2); in testClick() 334 int height = mDevice.getDisplayHeight(); in testSwipe() local 335 mDevice.swipe(width / 10, height / 2, 9 * width / 10, height / 2, 10); in testSwipe() 363 int height = mDevice.getDisplayHeight(); in testSwipe_withPointArray() local 365 Point point1 = new Point(width / 10, height / 2); in testSwipe_withPointArray() 366 Point point2 = new Point(width / 2, height / 2); in testSwipe_withPointArray() 367 Point point3 = new Point(9 * width / 10, height / 2); in testSwipe_withPointArray()
|
| D | MultiDisplayTest.java | 121 int height = 400; in testMultiDisplay_displayMetrics() local 123 String.format("wm size %dx%d -d %d", width, height, secondaryDisplayId)); in testMultiDisplay_displayMetrics() 126 assertEquals(height, mDevice.getDisplayHeight(secondaryDisplayId)); in testMultiDisplay_displayMetrics()
|
| D | UiObject2Test.java | 670 (float) (mDevice.getDisplayHeight() * 2 / (bounds.height() - 100)); in testScroll() 873 int pointY = objBounds.top + objBounds.height() / 3; in getPointInsideBounds() 881 int pointY = objBounds.bottom + objBounds.height() / 3; in getPointOutsideBounds()
|
| /test/screenshot/screenshot/src/main/java/androidx/test/screenshot/ |
| D | ScreenshotTestRule.kt | 195 if (actual.width != expected.width || actual.height != expected.height) { in assertBitmapAgainstGolden() 213 height = actual.height in assertBitmapAgainstGolden() 364 val bitmapArray = IntArray(width * height) in toIntArray() 365 getPixels(bitmapArray, 0, width, 0, 0, width, height) in toIntArray()
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | AccessibilityNodeInfoHelper.java | 41 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height, in getVisibleBoundsInScreen() argument 43 return getVisibleBoundsInScreen(node, new Rect(0, 0, width, height), trimScrollableParent); in getVisibleBoundsInScreen()
|
| D | Gestures.java | 120 end = new Point(area.centerX(), area.bottom - (int)(area.height() * percent)); in swipeRect() 124 end = new Point(area.centerX(), area.top + (int)(area.height() * percent)); in swipeRect() 193 int offsetY = (int) (area.height() / 2 * percent); in calcPinchCoordinates()
|
| D | AccessibilityNodeInfoDumper.java | 66 int width, int height) throws IOException { in dumpNodeRec() argument 88 node, width, height, false).toShortString()); in dumpNodeRec() 105 dumpNodeRec(child, serializer, i, width, height); in dumpNodeRec()
|
| D | UiScrollable.java | 357 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward() 431 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollBackward()
|
| D | UiObject.java | 239 if (rect.height() <= SWIPE_MARGIN_LIMIT * 2) { in swipeUp() 241 rect.height(), SWIPE_MARGIN_LIMIT * 2)); in swipeUp() 271 if (rect.height() <= SWIPE_MARGIN_LIMIT * 2) { in swipeDown() 273 rect.height(), SWIPE_MARGIN_LIMIT * 2)); in swipeDown()
|
| D | UiObject2.java | 1124 bounds.top + (int) (bounds.height() * mTop), in apply() 1126 bounds.bottom - (int) (bounds.height() * mBottom)); in apply()
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/ |
| D | Utils.kt | 66 bottom = bitmap.height in joinLines() 75 bounds.height(), in joinLines()
|
| /test/uiautomator/uiautomator/src/androidTest/java/androidx/test/uiautomator/ |
| D | UiDeviceTest.java | 102 int height = 400; in testGetDisplayMetrics() local 103 mDevice.executeShellCommand(String.format("wm size %dx%d", width, height)); in testGetDisplayMetrics() 106 Math.round(height / density)); in testGetDisplayMetrics() 109 assertEquals(height, mDevice.getDisplayHeight()); in testGetDisplayMetrics()
|
| /test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/ |
| D | ComposeTestActivity.kt | 58 with(LocalDensity.current) { (2 * LocalWindowInfo.current.containerSize.height).toDp() } in TestView()
|