Home
last modified time | relevance | path

Searched refs:Rect (Results 1 – 25 of 76) sorted by relevance

1234

/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowConfiguration.kt19 import android.graphics.Rect
29 val appBounds: Rect = Rect(),
30 val bounds: Rect = Rect(),
31 val maxBounds: Rect = Rect(),
70 appBounds: Rect?, in from()
71 bounds: Rect?, in from()
72 maxBounds: Rect?, in from()
77 appBounds ?: Rect(), in from()
78 bounds ?: Rect(), in from()
79 maxBounds ?: Rect(), in from()
DDisplayCutout.kt20 import android.graphics.Rect
27 val boundLeft: Rect,
28 val boundTop: Rect,
29 val boundRight: Rect,
30 val boundBottom: Rect,
71 boundLeft: Rect, in from()
72 boundTop: Rect, in from()
73 boundRight: Rect, in from()
74 boundBottom: Rect, in from()
DWindowState.kt19 import android.graphics.Rect
38 val surfacePosition: Rect?,
39 val frame: Rect,
40 val containingFrame: Rect,
41 val parentFrame: Rect,
42 val contentFrame: Rect,
43 val contentInsets: Rect,
44 val surfaceInsets: Rect,
45 val givenContentInsets: Rect,
46 val crop: Rect,
DWindowContainer.kt19 import android.graphics.Rect
44 val bounds: Rect
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/region/
DIRegionSubject.kt19 import android.graphics.Rect
32 fun isHigherOrEqual(other: Rect): IRegionSubject
52 fun isLowerOrEqual(other: Rect): IRegionSubject
80 fun isHigher(other: Rect): IRegionSubject
98 fun isLower(other: Rect): IRegionSubject
125 fun coversAtMost(other: Rect): IRegionSubject
151 fun regionsCenterPointInside(other: Rect): IRegionSubject
169 fun coversAtLeast(other: Rect): IRegionSubject
185 fun coversExactly(other: Rect): IRegionSubject
201 fun overlaps(other: Rect): IRegionSubject
[all …]
DRegionTraceSubject.kt19 import android.graphics.Rect
47 override fun isHigherOrEqual(other: Rect): RegionTraceSubject = isHigherOrEqual(Region(other)) in isHigherOrEqual()
55 override fun isLowerOrEqual(other: Rect): RegionTraceSubject = isLowerOrEqual(Region(other)) in isLowerOrEqual()
68 override fun isHigher(other: Rect): RegionTraceSubject = isHigher(Region(other)) in isHigher()
76 override fun isLower(other: Rect): RegionTraceSubject = isLower(Region(other)) in isLower()
89 override fun coversAtMost(other: Rect): RegionTraceSubject = this.coversAtMost(Region(other)) in coversAtMost()
104 override fun regionsCenterPointInside(other: Rect): RegionTraceSubject = apply { in <lambda>()
116 override fun coversAtLeast(other: Rect): RegionTraceSubject = this.coversAtLeast(Region(other)) in coversAtLeast()
124 override fun coversExactly(other: Rect): RegionTraceSubject = apply { in coversExactly()
134 override fun overlaps(other: Rect): RegionTraceSubject = overlaps(Region(other)) in overlaps()
[all …]
DRegionSubject.kt20 import android.graphics.Rect in <lambda>()
54 rect: Rect?, in <lambda>()
57 ) : this(Region(rect ?: Rect()), timestamp, reader) in <lambda>()
75 private val Rect.area in <lambda>() constant
130 override fun isHigherOrEqual(other: Rect): RegionSubject = isHigherOrEqual(Region(other)) in <lambda>()
153 override fun isLowerOrEqual(other: Rect): RegionSubject = isLowerOrEqual(Region(other)) in <lambda>()
193 override fun isHigher(other: Rect): RegionSubject = isHigher(Region(other)) in <lambda>()
216 override fun isLower(other: Rect): RegionSubject = isLower(Region(other)) in <lambda>()
256 override fun coversAtMost(other: Rect): RegionSubject = coversAtMost(Region(other)) in <lambda>()
304 override fun regionsCenterPointInside(other: Rect): RegionSubject = apply { in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/region/
DRegionSubjectTest.kt19 import android.graphics.Rect
32 private fun expectAllFailPositionChange(expectedMessage: String, rectA: Rect, rectB: Rect) { in expectAllFailPositionChange()
49 val rectA = Rect(/* left */ 0, /* top */ 0, /* right */ 1, /* bottom */ 1) in detectPositionChangeHigher()
50 val rectB = Rect(/* left */ 0, /* top */ 1, /* right */ 1, /* bottom */ 2) in detectPositionChangeHigher()
63 val rectA = Rect(/* left */ 0, /* top */ 2, /* right */ 1, /* bottom */ 3) in detectPositionChangeLower()
64 val rectB = Rect(/* left */ 0, /* top */ 0, /* right */ 1, /* bottom */ 1) in detectPositionChangeLower()
77 val rectA = Rect(/* left */ 0, /* top */ 1, /* right */ 1, /* bottom */ 0) in detectPositionChangeEqualHigherLower()
78 val rectB = Rect(/* left */ 1, /* top */ 1, /* right */ 2, /* bottom */ 0) in detectPositionChangeEqualHigherLower()
91 val rectA = Rect(/* left */ 0, /* top */ 1, /* right */ 2, /* bottom */ 2) in detectPositionChangeInvalid()
92 val rectB = Rect(/* left */ 1, /* top */ 1, /* right */ 2, /* bottom */ 2) in detectPositionChangeInvalid()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DRotationUtils.kt20 import android.graphics.Rect
53 inBounds: Rect, in rotateBounds()
54 parentBounds: Rect, in rotateBounds()
57 ): Rect = rotateBounds(inBounds, parentBounds, deltaRotation(oldRotation, newRotation)) in rotateBounds()
65 inBounds: Rect, in rotateBounds()
69 ): Rect { in rotateBounds()
75 Rect( in rotateBounds()
82 Rect( in rotateBounds()
89 Rect( in rotateBounds()
103 fun rotateBounds(inBounds: Rect, parentBounds: Rect, rotation: Rotation): Rect = in rotateBounds()
DWindowUtils.kt19 import android.graphics.Rect
31 private val displayBoundsCache = LruCache<Rotation, Rect>(4)
41 val displayBounds: Rect
44 return currState.layerState.physicalDisplay?.layerStackSpace ?: Rect()
60 fun getDisplayBounds(requestedRotation: Rotation): Rect { in getDisplayBounds()
71 Rect(0, 0, displayBounds.height(), displayBounds.width()) in getDisplayBounds()
73 Rect(0, 0, displayBounds.width(), displayBounds.height()) in getDisplayBounds()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockLayerTraceBuilderTest.kt19 import android.graphics.Rect
33 .setAbsoluteBounds(Rect(0, 0, 200, 200)) in containerLayerIsInvisible()
45 .setAbsoluteBounds(Rect(0, 0, 200, 200)) in childrenLayerInheritsParentBounds()
57 .setAbsoluteBounds(Rect(0, 0, 200, 200)) in canAddChildLayer()
68 .setAbsoluteBounds(Rect(0, 0, 200, 200)) in canSetLayerVisibility()
79 .setAbsoluteBounds(Rect(0, 0, 200, 200)) in invisibleLayerHasNoVisibleBounds()
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt20 import android.graphics.Rect
36 fun Rect.crop(crop: Rect): Rect = this.toRectF().crop(crop.toRectF()).toRect() in emptyColor() method
56 fun Rect.intersection(r: Rect): Rect = intersection(r.left, r.top, r.right, r.bottom) in Rect() method
70 fun Rect.intersection(left: Int, top: Int, right: Int, bottom: Int): Rect { in Rect() method
89 return Rect(intersectionLeft, intersectionTop, intersectionRight, intersectionBottom) in Rect()
91 return Rect() in Rect()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DDataPointTypes.kt20 import android.graphics.Rect in <lambda>()
25 fun Rect.asDataPoint() = DataPointTypes.rect.makeDataPoint(this) in <lambda>() method
48 val rect: DataPointType<Rect> = in <lambda>()
53 Rect(getInt("left"), getInt("top"), getInt("right"), getInt("bottom")) in <lambda>()
64 ensureImmutable = { Rect(it) } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/inputmethod/
DViewRootImpl.kt18 import android.graphics.Rect
35 val visibleRect: Rect,
38 val winFrame: Rect,
DSoftInputWindow.kt19 import android.graphics.Rect
28 val bounds: Rect,
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DWindowCapture.kt4 import android.graphics.Rect in <lambda>()
31 suspend fun Window.captureRegionToBitmap(boundsInWindow: Rect? = null): Bitmap { in <lambda>()
47 fun Window.captureRegionToBitmapAsync(boundsInWindow: Rect? = null): ListenableFuture<Bitmap> { in Window()
53 internal suspend fun Window.generateBitmap(boundsInWindow: Rect? = null): Bitmap { in generateBitmap()
72 boundsInWindow: Rect? = null, in generateBitmapFromPixelCopy()
DViewCapture.kt23 import android.graphics.Rect in <lambda>()
83 suspend fun View.captureToBitmap(rect: Rect? = null): Bitmap { in <lambda>()
114 fun View.captureToBitmapAsync(rect: Rect? = null): ListenableFuture<Bitmap> { in View()
161 private suspend fun View.generateBitmap(rect: Rect? = null): Bitmap { in generateBitmap()
198 rect: Rect?, in generateBitmapFromSurfaceViewPixelCopy()
215 internal fun View.generateBitmapFromDraw(destBitmap: Bitmap, rect: Rect?): Bitmap { in generateBitmapFromDraw()
238 rect: Rect?, in generateBitmapFromPixelCopy()
244 Rect( in generateBitmapFromPixelCopy()
270 private fun View.getBoundsInWindow(): Rect { in getBoundsInWindow()
275 return Rect(x, y, x + width, y + height) in getBoundsInWindow()
[all …]
DBitmapDiffer.kt19 import android.graphics.Rect
50 regions: List<Rect> = emptyList(),
DScreenshotAsserter.kt20 import android.graphics.Rect
26 fun assertGoldenImage(goldenId: String, areas: List<Rect>) in assertGoldenImage()
/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/
DINewsHelper.java19 import android.graphics.Rect;
46 public default void scrollPage(Rect bounds, Direction dir, float percent) { in scrollPage()
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DTaplUiObject.kt18 import android.graphics.Rect
53 private fun getVisibleBoundsForGestures(): Rect { in getVisibleBoundsForGestures()
54 val ret: Rect = uiObject.visibleBounds in getVisibleBoundsForGestures()
100 val bounds: Rect = getVisibleBoundsForGestures() in scroll()
141 val bounds: Rect = getVisibleBoundsForGestures() in fling()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DPixelPerfectMatcherTest.kt19 import android.graphics.Rect
61 regions = listOf(Rect(-10, -10, 0, 0)) in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff()
79 regions = listOf(Rect(0, 0, first.width / 2, first.height / 2)) in performDiff_sameSize_partialCompare_topLeft_diffBoundaries()
97 regions = listOf(Rect(first.width / 2, first.height / 2, first.width, first.height)) in performDiff_sameSize_partialCompare_bottomRight()
117 Rect(first.width / 2, first.height / 2, first.width + 10, first.height + 10) in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff()
153 listOf(Rect(/* left= */ 1, /* top= */ 1, /* right= */ 4, /* bottom= */ 4)) in performDiff_sameSize_differentBorders_partialCompare()
165 Rect(/* left= */ 10, /* top= */ 15, /* right= */ 70, /* bottom= */ 50) in performDiff_sameSize_partialCompare_checkDiffImage()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DWindowRemainInsideVisibleBounds.kt19 import android.graphics.Rect
32 val displayBounds = Rect() // TODO: Get display bounds from wmSubject in doEvaluate()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DSwipeUtils.kt4 import android.graphics.Rect
18 rawBound: Rect, in calculateStartEndPoint()
23 val bounds = Rect(rawBound) in calculateStartEndPoint()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DWindowManagerStateBuilder.kt22 import android.graphics.Rect in <lambda>()
182 ?: Rect(), in <lambda>()
184 ?: Rect(), in <lambda>()
186 Rect( in <lambda>()
193 Rect(0, 0, proto.displayInfo?.appWidth ?: 0, proto.displayInfo?.appHeight ?: 0), in <lambda>()
196 stableBounds = proto.displayFrames?.stableBounds?.toRect() ?: Rect(), in <lambda>()
251 lastNonFullscreenBounds = proto.lastNonFullscreenBounds?.toRect() ?: Rect(), in <lambda>()
370 frame = proto.windowFrames?.frame?.toRect() ?: Rect(), in <lambda>()
371 containingFrame = proto.windowFrames?.containingFrame?.toRect() ?: Rect(), in <lambda>()
372 parentFrame = proto.windowFrames?.parentFrame?.toRect() ?: Rect(), in <lambda>()
[all …]

1234