Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 47) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt40 val newTop = maxOf(top, crop.top) in emptyColor()
49 this.top < this.bottom && // now check for containment in RectF()
51 (top <= r.top || abs(top - r.top) < 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()
73 var intersectionTop = this.top in Rect()
80 if (this.top < top) { in Rect()
81 intersectionTop = top in Rect()
/platform_testing/scripts/perf-setup/
Dc2f2-setup.sh28 top=7
31 while [ $((cpu < $top)) -eq 1 ]; do
41 top=4
43 while [ $((cpu < $top)) -eq 1 ]; do
50 top=8
52 while [ $((cpu < $top)) -eq 1 ]; do
Db4s4-setup.sh28 top=8
33 while [ $((cpu < $top)) -eq 1 ]; do
42 top=6
45 while [ $((cpu < $top)) -eq 1 ]; do
Db1c1-setup.sh28 top=8
35 while [ $((cpu < $top)) -eq 1 ]; do
45 top=4
48 while [ $((cpu < $top)) -eq 1 ]; do
Dwahoo-setup.sh14 top=8
20 while [ $((cpu < $top)) -eq 1 ]; do
32 top=4
35 while [ $((cpu < $top)) -eq 1 ]; do
Db5r3-setup.sh43 top=8
48 while [ $((cpu < $top)) -eq 1 ]; do
59 top=6
61 while [ $((cpu < $top)) -eq 1 ]; do
Dsw5100-setup.sh43 top=4
47 while [ $((cpu < $top)) -eq 1 ]; do
/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()
71 val origTop = inBounds.top in rotateBounds()
76 /* left */ inBounds.top, in rotateBounds()
92 /* right */ parentHeight - inBounds.top, in rotateBounds()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DSeekUtility.java119 int top = seekBounds.top + SEEK_BOUNDS_BUFFER; in seek() local
120 clickLocation.y = (int) ((bottom - top) * (1 - targetPercentage) + top); in seek()
/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()
47 mMarginTop = top in setGestureMargins()
56 ret.top = ret.top + mMarginTop in getVisibleBoundsForGestures()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DUiObjectUtils.kt68 .that(this.stableBounds.top > uiDevice.displayHeight / 2) in assertTopOnBottomSide()
78 .that(this.stableBounds.top < uiDevice.displayHeight / 2) in assertTopOnTopSide()
157 PointF(visibleBounds.exactCenterX(), visibleBounds.top.toFloat() + 1f) in getPointsToScroll()
162 PointF(visibleBounds.exactCenterX(), visibleBounds.top.toFloat() + 1f), in getPointsToScroll()
DSwipeUtils.kt41 Point(centerX, bounds.top) to in calculateStartEndPoint()
42 Point(centerX, bounds.top + (bounds.height() * percent).toInt()) in calculateStartEndPoint()
/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
167 mTop = top; in Margin()
/platform_testing/libraries/car-helpers/
DREADME.md3 Utitily package built on top of Android Auto Embedded platform API's to
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsSnapToDivider.kt84 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2 in calculateExpectedDisplaySize()
89 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2, in calculateExpectedDisplaySize()
DSplitAppLayerBoundsBecomesVisible.kt119 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2 in LayerTraceEntrySubject()
124 (dividerRegion.bounds.top + dividerRegion.bounds.bottom) / 2, in LayerTraceEntrySubject()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/
DViewFrameBuilder.kt44 node.top, in parseViewNode()
46 /* bottom */ node.top + node.height in parseViewNode()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/region/
DRegionSubject.kt138 { it.top }, in <lambda>()
161 { it.top }, in <lambda>()
201 { it.top }, in <lambda>()
230 { it.top }, in <lambda>()
279 val verticallyPositionedToTheBottom = other.bounds.top - threshold <= region.bounds.top in <lambda>()
423 assertEquals("top", Region(displayRect)) { it.top } in <lambda>()
481 assertEquals("top", other) { it.top } in <lambda>()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DOverviewHelper.java104 int top = r.top + r.height() / 4; // top edge = top + 25% height in scrollToTopOfRecents() local
106 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5); in scrollToTopOfRecents() local
DRecentsTests.java116 mDevice.swipe(calcBounds.left, calcBounds.top + calcBounds.height() / 2, in testSwipeItemAwayFromRecents()
117 calcBounds.right, calcBounds.top + calcBounds.height() / 2, 5); in testSwipeItemAwayFromRecents()
/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/screenshot/src/main/java/platform/test/screenshot/
DViewCapture.kt221 canvas.translate((-rect.left).toFloat(), (-rect.top).toFloat()) in generateBitmapFromDraw()
246 bounds.top + rect.top, in generateBitmapFromPixelCopy()
248 bounds.top + rect.bottom, in generateBitmapFromPixelCopy()
322 locationInSurface[1] += surfaceInsets.top in reflectivelyGetLocationInSurface()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt213 val top = y + (tileHeight - screenshotHeight) / 2 in render() constant
215 transform.setTranslate(0f, top) in render()
216 transform.postScale(scale, scale, 0f, top) in render()
/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/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java151 int top = r.top + r.height() / 4; // top edge = top + 25% height in scrollToTopOfRecents() local
153 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5); in scrollToTopOfRecents() local

12