Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 24 of 24) sorted by relevance

/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DSwipeUtils.kt23 val bounds = Rect(rawBound) in calculateStartEndPoint() constant
24 bounds.inset(marginPx, marginPx) in calculateStartEndPoint()
25 val centerX = bounds.centerX() in calculateStartEndPoint()
26 val centerY = bounds.centerY() in calculateStartEndPoint()
29 Point(bounds.right, centerY) to in calculateStartEndPoint()
30 Point(bounds.right - (bounds.width() * percent).toInt(), centerY) in calculateStartEndPoint()
33 Point(bounds.left, centerY) to in calculateStartEndPoint()
34 Point(bounds.left + (bounds.width() * percent).toInt(), centerY) in calculateStartEndPoint()
37 Point(centerX, bounds.bottom) to in calculateStartEndPoint()
38 Point(centerX, bounds.bottom - (bounds.height() * percent).toInt()) in calculateStartEndPoint()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/windowmanager/windows/
DWindowConfiguration.kt36 val bounds: Rect = _bounds ?: Rect.EMPTY constant
41 bounds.isEmpty &&
53 if (bounds != other.bounds) return false in equals()
63 result = 31 * result + bounds.hashCode() in hashCode()
DWindowContainer.kt57 open val bounds: Rect = Rect.EMPTY in <lambda>() constant
123 if (bounds != other.bounds) return false in <lambda>()
136 result = 31 * result + bounds.hashCode() in <lambda>()
DTask.kt31 override val bounds: Rect, in <lambda>() constant in com.android.server.wm.traces.common.windowmanager.windows.Task
105 return "${this::class.simpleName}: {$token $title} id=$taskId bounds=$bounds" in <lambda>()
114 if (bounds != other.bounds) return false in <lambda>()
134 result = 31 * result + bounds.hashCode() in <lambda>()
DTaskFragment.kt41 return "${this::class.simpleName}: {$token $title} bounds=$bounds" in toString()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/region/
DRegionSubject.kt46 get() = check(MSG_ERROR_TOP_POSITION).that(region.bounds.top) in <lambda>()
48 get() = check(MSG_ERROR_BOTTOM_POSITION).that(region.bounds.bottom) in <lambda>()
50 get() = check(MSG_ERROR_LEFT_POSITION).that(region.bounds.left) in <lambda>()
52 get() = check(MSG_ERROR_RIGHT_POSITION).that(region.bounds.right) in <lambda>()
54 get() = check(MSG_ERROR_AREA).that(region.bounds.area) in <lambda>()
70 leftPositionSubject.isEqualTo(other.bounds.left) in <lambda>()
71 rightPositionSubject.isEqualTo(other.bounds.right) in <lambda>()
72 areaSubject.isEqualTo(other.bounds.area) in <lambda>()
121 topPositionSubject.isAtMost(other.bounds.top) in <lambda>()
122 bottomPositionSubject.isAtMost(other.bounds.bottom) in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/region/
DRegionTest.kt161 assertEquals(1, mRegion.bounds.left) in <lambda>()
162 assertEquals(2, mRegion.bounds.top) in <lambda>()
163 assertEquals(3, mRegion.bounds.right) in <lambda>()
164 assertEquals(4, mRegion.bounds.bottom) in <lambda>()
171 assertEquals(1, mRegion.bounds.left) in <lambda>()
172 assertEquals(2, mRegion.bounds.top) in <lambda>()
173 assertEquals(3, mRegion.bounds.right) in <lambda>()
174 assertEquals(4, mRegion.bounds.bottom) in <lambda>()
180 assertEquals(1, mRegion.bounds.left) in <lambda>()
181 assertEquals(2, mRegion.bounds.top) in <lambda>()
[all …]
/platform_testing/libraries/automotive-helpers/standard-app-helper/src/android/platform/helpers/
DAbstractAutoStandardAppHelper.java236 Rect bounds = scrollable.getVisibleBounds(); in getScrollableMargin() local
237 int margin = (int) (Math.abs(bounds.width()) / 4); in getScrollableMargin()
239 margin = (int) (Math.abs(bounds.height()) / 4); in getScrollableMargin()
252 Rect bounds = scrollable.getVisibleBounds(); in getScrollSpeed() local
254 int scrollSpeed = (int) (bounds.height() / timeSeconds); in getScrollSpeed()
508 Rect bounds = getScreenBounds(); in swipe() local
509 List<Point> swipePoints = getPointsToSwipe(bounds, swipeDirection); in swipe()
518 protected List<Point> getPointsToSwipe(Rect bounds, SwipeDirection swipeDirection) { in getPointsToSwipe() argument
519 Point boundsCenter = new Point(bounds.centerX(), bounds.centerY()); in getPointsToSwipe()
531 xStart = bounds.left + pad; // Pad the edges in getPointsToSwipe()
[all …]
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DTaplUiObject.kt100 val bounds: Rect = getVisibleBoundsForGestures() in scroll() constant
102 BetterScroll.scroll(bounds, swipeDirection, segment) in scroll()
124 val bounds: Rect = getVisibleBoundsForGestures() in fling() constant
127 BetterFling.fling(bounds, swipeDirection, percentage = segment) in fling()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/region/
DRegion.kt49 val width: Int get() = bounds.width in <lambda>()
50 val height: Int get() = bounds.height in <lambda>()
54 val bounds get() = fBounds in <lambda>() constant
249 return bounds.toRectF() in <lambda>()
268 if (rgnB.isEmpty || rgnA.bounds.intersection(rgnB.bounds).isEmpty) { in <lambda>()
272 if (rgnB.isRect() && rgnB.bounds.contains(rgnA.bounds)) { in <lambda>()
280 || rgnA.bounds.intersection(rgnB.bounds).isEmpty -> { in <lambda>()
285 val rectIntersection = rgnA.bounds.intersection(rgnB.bounds) in <lambda>()
286 this.set(rgnA.bounds.intersection(rgnB.bounds)) in <lambda>()
289 rgnA.isRect() && rgnA.bounds.contains(rgnB.bounds) -> { in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/layers/
DLayer.kt41 val bounds: RectF, constant in com.android.server.wm.traces.common.layers.Layer
140 else -> !bounds.isEmpty
247 if (bounds.isEmpty) reasons.add("Bounds is 0x0")
269 else -> transform.apply(bounds)
360 if (bounds != other.bounds) return false in equals()
396 result = 31 * result + bounds.hashCode() in hashCode()
DTransform.kt126 fun apply(bounds: RectF?): RectF { in toString()
127 return multiplyRect(matrix, bounds ?: RectF.EMPTY) in toString()
/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/
DINewsHelper.java45 public default void scrollPage(Rect bounds, Direction dir, float percent) { in scrollPage() argument
DIMapsHelper.java158 public default void scrollPage(Rect bounds, Direction dir, float percent) { in scrollPage() argument
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/utility/
DScrollable.java232 Rect bounds = scrollable.getVisibleBounds(); in calcScrollSpeed() local
234 int scrollSpeed = (int) (bounds.height() / durationSeconds); in calcScrollSpeed()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/service/processors/
DPipResizeProcessor.kt59 val currBounds = current.layerState.getLayerById(currPinnedWindow.layerId)?.bounds in getInitialState()
60 val prevBounds = previous.layerState.getLayerById(currPinnedWindow.layerId)?.bounds in getInitialState()
DPipExpandProcessor.kt86 val currLayerBounds = current.layerState.getLayerById(layerId)?.bounds ?: return this in doProcessState()
87 val prevLayerBounds = previous.layerState.getLayerById(layerId)?.bounds ?: return this in doProcessState()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityScannerHelper.java287 Rect bounds = btn.getVisibleBounds(); in moveScannerCheckButton() local
288 int origX = bounds.centerX(); in moveScannerCheckButton()
289 int origY = bounds.centerY(); in moveScannerCheckButton()
290 int buttonWidth = bounds.width(); in moveScannerCheckButton()
291 int buttonHeight = bounds.height(); in moveScannerCheckButton()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/layers/
DLayerSubject.kt106 val bounds = Size(size.x, size.y) in <lambda>() constant
107 hasBufferSize(bounds) in <lambda>()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java674 Rect bounds = brightness.getVisibleBounds(); in testChangeBrightness() local
676 mDevice.swipe(bounds.left, bounds.centerY(), in testChangeBrightness()
677 bounds.right, bounds.centerY(), BRIGHTNESS_SCROLL_STEPS); in testChangeBrightness()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/windowmanager/
DWindowManagerTraceParser.kt308 bounds = proto.bounds.toRect(), in <lambda>()
506 _bounds = proto.bounds?.toRect(), in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/layers/
DLayerTraceEntryLazy.kt82 proto.bounds?.toRectF() ?: RectF.EMPTY, in newLayer()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DAutomationUtils.kt123 estimateNavigationBarPosition(Surface.ROTATION_0).bounds.toAndroidRect() in openQuickstep()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/windowmanager/
DWindowManagerStateHelperTest.kt93 bounds = rect, in <lambda>()