Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 31) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt39 val newLeft = maxOf(left, crop.left) in emptyColor()
48 return this.left < this.right && in RectF()
50 (left <= r.left || abs(left - r.left) < 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()
72 var intersectionLeft = this.left in Rect()
77 if (this.left < left) { in Rect()
78 intersectionLeft = left 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()
70 val origLeft = inBounds.left in rotateBounds()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DSeekUtility.java124 int left = seekBounds.left + SEEK_BOUNDS_BUFFER; in seek() local
125 clickLocation.x = (int) ((right - left) * targetPercentage + left); 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()
46 mMarginLeft = left in setGestureMargins()
55 ret.left = ret.left + mMarginLeft 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
166 mLeft = left; in Margin()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DSwipeUtils.kt33 Point(bounds.left, centerY) to in calculateStartEndPoint()
34 Point(bounds.left + (bounds.width() * percent).toInt(), centerY) in calculateStartEndPoint()
DUiObjectUtils.kt102 .that(this.stableBounds.left >= uiDevice.displayWidth / 2) in assertOnTheRightSide()
168 PointF(visibleBounds.left.toFloat() + 1f, visibleBounds.exactCenterY()), in getPointsToScroll()
175 PointF(visibleBounds.left.toFloat() + 1f, visibleBounds.exactCenterY()) in getPointsToScroll()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsSnapToDivider.kt67 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2, in calculateExpectedDisplaySize()
72 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2, in calculateExpectedDisplaySize()
DSplitAppLayerBoundsBecomesVisible.kt102 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2, in LayerTraceEntrySubject()
107 (dividerRegion.bounds.left + dividerRegion.bounds.right) / 2, in LayerTraceEntrySubject()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/
DViewFrameBuilder.kt43 node.left, in parseViewNode()
45 /* right */ node.left + node.width, in parseViewNode()
/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()
245 bounds.left + rect.left, in generateBitmapFromPixelCopy()
247 bounds.left + rect.right, in generateBitmapFromPixelCopy()
321 locationInSurface[0] += surfaceInsets.left in reflectivelyGetLocationInSurface()
DScreenshotTestRule.kt298 for (x in rect.left until rect.right) { in <lambda>()
304 bitmap.setPixel(rect.left, y, color) in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt162 val left = x + (tileWidth - screenshotWidth) / 2 in render() constant
165 transform.setTranslate(left, 0f) in render()
166 transform.postScale(scale, scale, left, 0f) 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/flicker/src/android/tools/flicker/subject/region/
DRegionSubject.kt178 { it.left }, in <lambda>()
278 val horizontallyPositionedToTheRight = other.bounds.left - threshold <= region.bounds.left in <lambda>()
427 assertEquals("left", Region(displayRect)) { it.left } in <lambda>()
475 assertEquals("left", other) { it.left } in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DDataPointTypes.kt58 put("left", it.left) in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/media/
DMediaController.java195 endX = bound.left; in swipe()
198 startX = (bound.left + bound.centerX()) / 2; in swipe()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DTransform.kt145 val leftTop = multiplyVec2(matrix, rect.left, rect.top) in multiplyRect()
147 val leftBottom = multiplyVec2(matrix, rect.left, rect.bottom) in multiplyRect()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java360 int xCoordinate =(int) (lockPattern.getVisibleBounds().left + in enterInvalidPattern()
361 lockPattern.getVisibleBounds().left*0.16); in enterInvalidPattern()
450 lockPattern.getVisibleBounds().left)*0.16); in calculateCoordinatesForPatternDot()
452 xCoordinate = lockPattern.getVisibleBounds().left + deltaX; in calculateCoordinatesForPatternDot()
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DDataPointTypesTest.kt73 assertThat((dataPoint as ValueDataPoint).value.left).isEqualTo(1) in rect_dataPoint_isImmutable()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt268 val left = crop.getChild("left")?.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/systemui-helper/src/android/platform/helpers/features/quicksettings/
DUserSelection.java133 getUiDevice().click(r.left, r.top); in clickTopLeftCorner()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DBitmapMatcher.kt112 val startX = region.left.coerceIn(0, width - 1) in <lambda>()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DAlmostPerfectMatcherTest.kt139 val colInRange = j >= interestingRegion.left && j <= interestingRegion.right in performDiff_sameSize_partialCompare_checkDiffImage()

12