Home
last modified time | relevance | path

Searched refs:height (Results 1 – 19 of 19) sorted by relevance

/test/screenshot/screenshot/src/androidTest/java/androidx/test/screenshot/
DMSSIMMatcherTest.kt42 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()
DPixelPerfectMatcherTest.kt42 first.height in performDiff_sameBitmaps()
59 first.height in performDiff_sameSize_differentBorders()
/test/screenshot/screenshot/src/main/java/androidx/test/screenshot/matchers/
DPixelPerfectMatcher.kt29 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()
DMSSIMMatcher.kt45 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()
DBitmapMatcher.kt33 fun compareBitmaps(expected: IntArray, given: IntArray, width: Int, height: Int): MatchResult
/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DMultiWindowTest.java61 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()
DUiDeviceTest.java318 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()
DMultiDisplayTest.java121 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()
DUiObject2Test.java670 (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/
DScreenshotTestRule.kt195 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/
DAccessibilityNodeInfoHelper.java41 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()
DGestures.java120 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()
DAccessibilityNodeInfoDumper.java66 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()
DUiScrollable.java357 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollForward()
431 int swipeAreaAdjust = (int)(rect.height() * getSwipeDeadZonePercentage()); in scrollBackward()
DUiObject.java239 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()
DUiObject2.java1124 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/
DUtils.kt66 bottom = bitmap.height in joinLines()
75 bounds.height(), in joinLines()
/test/uiautomator/uiautomator/src/androidTest/java/androidx/test/uiautomator/
DUiDeviceTest.java102 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/
DComposeTestActivity.kt58 with(LocalDensity.current) { (2 * LocalWindowInfo.current.containerSize.height).toDp() } in TestView()