Home
last modified time | relevance | path

Searched refs:bottom (Results 1 – 25 of 28) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt42 val newBottom = minOf(bottom, crop.bottom) in emptyColor()
49 this.top < this.bottom && // now check for containment in RectF()
53 (bottom >= r.bottom || abs(bottom - r.bottom) < threshold) in RectF()
56 fun Rect.intersection(r: Rect): Rect = intersection(r.left, r.top, r.right, r.bottom) in Rect()
70 fun Rect.intersection(left: Int, top: Int, right: Int, bottom: Int): Rect { in Rect()
71 if (this.left < right && left < this.right && this.top <= bottom && top <= this.bottom) { in Rect()
75 var intersectionBottom = this.bottom in Rect()
86 if (this.bottom > bottom) { in Rect()
87 intersectionBottom = bottom in Rect()
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DRotationUtils.kt38 Insets.of(insets.top, insets.right, insets.bottom, insets.left) in rotateInsets()
40 Insets.of(insets.right, insets.bottom, insets.left, insets.top) in rotateInsets()
42 Insets.of(insets.bottom, insets.left, insets.top, insets.right) in rotateInsets()
78 /* right */ inBounds.bottom, in rotateBounds()
85 /* top */ parentHeight - inBounds.bottom, in rotateBounds()
90 /* left */ parentHeight - inBounds.bottom, in rotateBounds()
104 rotateBounds(inBounds, parentBounds.right, parentBounds.bottom, rotation) in rotateBounds()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsBecomesVisible.kt103 activeDisplay.layerStackSpace.bottom in LayerTraceEntrySubject()
110 activeDisplay.layerStackSpace.bottom in LayerTraceEntrySubject()
119 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2 in LayerTraceEntrySubject()
124 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2, in LayerTraceEntrySubject()
126 activeDisplay.layerStackSpace.bottom in LayerTraceEntrySubject()
DSplitAppLayerBoundsSnapToDivider.kt84 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2 in calculateExpectedDisplaySize()
89 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2, in calculateExpectedDisplaySize()
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DTaplUiObject.kt45 fun setGestureMargins(left: Int, top: Int, right: Int, bottom: Int) { in setGestureMargins()
49 mMarginBottom = bottom in setGestureMargins()
58 ret.bottom = ret.bottom - mMarginBottom in getVisibleBoundsForGestures()
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/utility/
DScrollable.java148 public default void setScrollableMargin(int left, int top, int right, int bottom) { in setScrollableMargin() argument
165 public Margin(int left, int top, int right, int bottom) { in Margin() argument
169 mBottom = bottom; in Margin()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DSeekUtility.java118 int bottom = seekBounds.bottom - SEEK_BOUNDS_BUFFER; in seek() local
120 clickLocation.y = (int) ((bottom - top) * (1 - targetPercentage) + top); in seek()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DOverviewHelper.java105 int bottom = r.bottom - 200; // bottom edge = bottom & shift up 200px in scrollToTopOfRecents() local
106 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5); in scrollToTopOfRecents() local
182 mDevice.drag(xCoordinate, appBounds.bottom, xCoordinate, in undockAppFromMultiwindow()
DMultiWindowTests.java104 mDevice.drag(xCoordinate, initialCalcBounds.bottom, in testResizeHandleOnMultiwindow()
116 finalCalcBounds.bottom > initialCalcBounds.bottom); in testResizeHandleOnMultiwindow()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DSwipeUtils.kt37 Point(centerX, bounds.bottom) to in calculateStartEndPoint()
38 Point(centerX, bounds.bottom - (bounds.height() * percent).toInt()) in calculateStartEndPoint()
DUiObjectUtils.kt156 PointF(visibleBounds.exactCenterX(), visibleBounds.bottom.toFloat() - 1f), in getPointsToScroll()
163 PointF(visibleBounds.exactCenterX(), visibleBounds.bottom.toFloat() - 1f) in getPointsToScroll()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/test/widgets/
DHookWidget.java108 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
110 super.onLayout(changed, left, top, right, bottom); in onLayout()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java152 int bottom = r.bottom - 200; // bottom edge = bottom & shift up 200px in scrollToTopOfRecents() local
153 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5); in scrollToTopOfRecents() local
228 mDevice.drag(xCoordinate, appBounds.bottom, xCoordinate, in undockAppFromMultiwindow()
DLockscreenHelper.java364 int y2Coordinate = (int) (lockPattern.getVisibleBounds().bottom - in enterInvalidPattern()
365 lockPattern.getVisibleBounds().bottom*0.16); in enterInvalidPattern()
462 int deltaY = (int) ((lockPattern.getVisibleBounds().bottom - in calculateCoordinatesForPatternDot()
471 yCoordinate = lockPattern.getVisibleBounds().bottom - deltaY; in calculateCoordinatesForPatternDot()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/
DSimpleSurfaceGLActivity.java49 view.setPadding(insets.left, insets.top, insets.right, insets.bottom); in onCreate()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/region/
DRegionSubject.kt144 { it.bottom }, in <lambda>()
167 { it.bottom }, in <lambda>()
207 { it.bottom }, in <lambda>()
236 { it.bottom }, in <lambda>()
418 assertEquals("bottom", Region(displayRect)) { it.bottom } in <lambda>()
482 assertEquals("bottom", other) { it.bottom } in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DDataPointTypes.kt61 put("bottom", it.bottom) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DTransform.kt147 val leftBottom = multiplyVec2(matrix, rect.left, rect.bottom) in multiplyRect()
148 val rightBottom = multiplyVec2(matrix, rect.right, rect.bottom) in multiplyRect()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt269 val bottom = crop.getChild("bottom")?.getInt() ?: 0 in <lambda>() constant
273 if (right == -1 && left == 0 && bottom == -1 && top == 0) { in <lambda>()
277 return RectF(left.toFloat(), top.toFloat(), right.toFloat(), bottom.toFloat()) in <lambda>()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DBitmapMatcher.kt115 val endY = region.bottom.coerceIn(0, height - 1) in <lambda>()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt138 val rowInRange = i >= interestingRegion.top && i <= interestingRegion.bottom in performDiff_sameSize_partialCompare_checkDiffImage()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java571 padYStart = bounds.bottom / 4; in getPointsToSwipe()
579 padYStart = bounds.bottom / 4 * 3; in getPointsToSwipe()
603 yFinish = bounds.bottom - padYFinish; in getPointsToSwipe()
610 yStart = bounds.bottom - padYStart; in getPointsToSwipe()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DScreenshotTestRule.kt300 bitmap.setPixel(x, rect.bottom - 1, color) in <lambda>()
303 for (y in rect.top until rect.bottom) { in <lambda>()
DViewCapture.kt248 bounds.top + rect.bottom, in generateBitmapFromPixelCopy()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DPixelPerfectMatcherTest.kt179 val rowInRange = i >= interestingRegion.top && i <= interestingRegion.bottom in performDiff_sameSize_partialCompare_checkDiffImage()

12