Home
last modified time | relevance | path

Searched refs:Region (Results 1 – 25 of 29) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt22 import android.graphics.Region
94 fun Region.outOfBoundsRegion(testRegion: Region): Region { in Region() method
96 val outOfBoundsRegion = Region(this) in Region()
97 outOfBoundsRegion.op(testRect, Region.Op.INTERSECT) && outOfBoundsRegion.op(this, Region.Op.XOR) in Region()
101 fun Region.uncoveredRegion(testRegion: Region): Region { in uncoveredRegion() method
102 val uncoveredRegion = Region(this) in uncoveredRegion()
103 uncoveredRegion.op(testRegion, Region.Op.INTERSECT) && in uncoveredRegion()
104 uncoveredRegion.op(testRegion, Region.Op.XOR) in uncoveredRegion()
108 fun Region.coversAtLeast(testRegion: Region): Boolean { in coversAtLeast() method
109 val intersection = Region(this) in coversAtLeast()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/region/
DIRegionSubject.kt20 import android.graphics.Region
42 fun isHigherOrEqual(other: Region): IRegionSubject
62 fun isLowerOrEqual(other: Region): IRegionSubject
71 fun isToTheRight(other: Region): IRegionSubject
89 fun isHigher(other: Region): IRegionSubject
107 fun isLower(other: Region): IRegionSubject
116 fun coversAtMost(other: Region): IRegionSubject
133 fun notBiggerThan(other: Region): IRegionSubject
143 fun isToTheRightBottom(other: Region, threshold: Int): IRegionSubject
160 fun coversAtLeast(other: Region): IRegionSubject
[all …]
DRegionTraceSubject.kt20 import android.graphics.Region
47 override fun isHigherOrEqual(other: Rect): RegionTraceSubject = isHigherOrEqual(Region(other)) in isHigherOrEqual()
50 override fun isHigherOrEqual(other: Region): RegionTraceSubject = apply { in isHigherOrEqual()
55 override fun isLowerOrEqual(other: Rect): RegionTraceSubject = isLowerOrEqual(Region(other)) in isLowerOrEqual()
58 override fun isLowerOrEqual(other: Region): RegionTraceSubject = apply { in isLowerOrEqual()
63 override fun isToTheRight(other: Region): RegionTraceSubject = apply { in <lambda>()
68 override fun isHigher(other: Rect): RegionTraceSubject = isHigher(Region(other)) in isHigher()
71 override fun isHigher(other: Region): RegionTraceSubject = apply { in isHigher()
76 override fun isLower(other: Rect): RegionTraceSubject = isLower(Region(other)) in isLower()
79 override fun isLower(other: Region): RegionTraceSubject = apply { in isLower()
[all …]
DRegionSubject.kt22 import android.graphics.Region in <lambda>()
47 region: Region?, in <lambda>()
50 ) : this(RegionEntry(region ?: Region(), timestamp), timestamp, reader) in <lambda>()
57 ) : this(Region(rect ?: Rect()), timestamp, reader) in <lambda>()
68 regions: Collection<Region>, in <lambda>()
89 .setExpected(Region()) in <lambda>()
113 fun minus(other: Region): RegionSubject { in <lambda>()
114 val remainingRegion = Region(this.region) in <lambda>()
115 remainingRegion.op(other, Region.Op.XOR) in <lambda>()
120 fun plus(other: Region): RegionSubject { in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DWindowUtils.kt20 import android.graphics.Region
96 fun getExpectedStatusBarPosition(display: DisplayContent): Region { in getExpectedStatusBarPosition()
98 return Region(0, 0, display.displayRect.width(), height) in getExpectedStatusBarPosition()
106 fun getNavigationBarPosition(display: Display): Region { in getNavigationBarPosition()
116 fun getNavigationBarPosition(display: Display, isGesturalNavigation: Boolean): Region { in getNavigationBarPosition()
126 Region(0, displayHeight - navBarHeight, displayWidth, displayHeight) in getNavigationBarPosition()
129 Region(displayWidth - navBarWidth, 0, displayWidth, displayHeight) in getNavigationBarPosition()
131 requestedRotation == Rotation.ROTATION_270 -> Region(0, 0, navBarWidth, displayHeight) in getNavigationBarPosition()
141 fun estimateNavigationBarPosition(requestedRotation: Rotation): Region { in estimateNavigationBarPosition()
160 Region(0, displayHeight - navBarHeight, displayWidth, displayHeight) in estimateNavigationBarPosition()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsSnapToDivider.kt19 import android.graphics.Region
45 ): Region { in calculateExpectedDisplaySize()
64 Region( in calculateExpectedDisplaySize()
71 Region( in calculateExpectedDisplaySize()
80 Region( in calculateExpectedDisplaySize()
87 Region( in calculateExpectedDisplaySize()
DSplitAppLayerBoundsBecomesVisible.kt19 import android.graphics.Region
99 Region( in LayerTraceEntrySubject()
106 Region( in LayerTraceEntrySubject()
115 Region( in LayerTraceEntrySubject()
122 Region( in LayerTraceEntrySubject()
DStatusBarLayerPositionAtStart.kt19 import android.graphics.Region
43 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
DStatusBarLayerPositionAtEnd.kt19 import android.graphics.Region
42 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTest.kt20 import android.graphics.Region
68 visibleRegion = Region(), in useVisibleRegionIfCompositionStateIsAvailableForVisibility()
77 visibleRegion = Region(0, 0, 100, 100), in useVisibleRegionIfCompositionStateIsAvailableForVisibility()
108 visibleRegion = Region(0, 0, 100, 100), in fallbackOnLayerBoundsIfCompositionStateIsNotAvailableForVisibility()
120 visibleRegion: Region = Region(), in makeLayerWithDefaults()
DLayerTraceEntryBuilderTest.kt21 import android.graphics.Region
87 visibleRegion = Region(), in removesLayersFromOffDisplays()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/region/
DRegionEntry.kt19 import android.graphics.Region
31 class RegionEntry(val region: Region, override val timestamp: Timestamp) : TraceEntry
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubjectTest.kt19 import android.graphics.Region
56 private val displayBounds = Region(0, 0, 1440, 2960)
59 private val statusBarRegion = Region(0, 0, 1440, 171)
120 entry.visibleRegion(ComponentNameMatcher.STATUS_BAR).coversAtLeast(Region(0, 0, 100, 100)) in canDetectWindowCoversAtLeastRegion_smallerRegion()
121 entry.visibleRegion(TestComponents.LAUNCHER).coversAtLeast(Region(0, 0, 100, 100)) in canDetectWindowCoversAtLeastRegion_smallerRegion()
132 .coversAtLeast(Region(0, 0, 1441, 171)) in canDetectWindowCoversAtLeastRegion_largerRegion()
136 subject.visibleRegion(TestComponents.LAUNCHER).coversAtLeast(Region(0, 0, 1440, 2961)) in canDetectWindowCoversAtLeastRegion_largerRegion()
158 .coversAtMost(Region(0, 0, 100, 100)) in canDetectWindowCoversExactlyRegion_smallerRegion()
162 subject.visibleRegion(TestComponents.LAUNCHER).coversAtMost(Region(0, 0, 100, 100)) in canDetectWindowCoversExactlyRegion_smallerRegion()
174 .coversAtLeast(Region(0, 0, 1441, 171)) in canDetectWindowCoversExactlyRegion_largerRegion()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayersTraceSubjectTest.kt19 import android.graphics.Region in <lambda>()
259 val region = it.layer.visibleRegion ?: Region() in <lambda>()
373 private val DISPLAY_REGION = Region(0, 0, 1440, 2880) in <lambda>()
374 private val DISPLAY_REGION_ROTATED = Region(0, 0, 2160, 1080) in <lambda>()
378 private fun Region.minus(other: Region): Region { in <lambda>() method
379 val thisRegion = Region(this) in <lambda>()
380 thisRegion.op(other, Region.Op.XOR) in <lambda>()
DLayerTraceEntrySubjectTest.kt20 import android.graphics.Region
88 val expectedRegion = Region(0, 0, 1440, 2960) in canDetectUncoveredRegion()
102 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerDoesNotExist()
115 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion()
128 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerIsHiddenByParent()
141 val expectedVisibleRegion = Region(0, 0, 1440, 99) in canTestLayerVisibleRegion_incorrectRegionSize()
154 val expectedVisibleRegion = Region(0, 0, 1080, 145) in canTestLayerVisibleRegion()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockLayerBuilder.kt20 import android.graphics.Region in <lambda>()
75 visibleRegion = if (isVisible) Region(absoluteBounds) else Region(), in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DLayerProperties.kt21 import android.graphics.Region
29 override val visibleRegion: Region = Region(),
123 visibleRegion: Region, in from()
DILayerProperties.kt21 import android.graphics.Region
32 val visibleRegion: Region?
DLayer.kt21 import android.graphics.Region
101 Region(this.bounds.toRect())
103 this.visibleRegion ?: Region()
321 visibleRegion: Region, in from()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowState.kt20 import android.graphics.Region
59 val frameRegion: Region in <lambda>()
60 get() = Region(frame) in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt20 import android.graphics.Region
164 actual?.coversExactly(expected?.region ?: Region()) in validateVisibleRegion()
166 val failure: Result<Any?> = runCatching { actual?.isHigher(expected?.region ?: Region()) } in validateVisibleRegion()
DFullTestRun.kt20 import android.graphics.Region
210 actual?.coversExactly(expected?.region ?: Region()) in validateVisibleRegion()
213 actual?.isHigher(expected?.region ?: Region()) in validateVisibleRegion()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt22 import android.graphics.Region in <lambda>()
163 val visibleRegion = newRegion(layer.getChild("visible_region")) ?: Region() in <lambda>()
280 private fun newRegion(region: Args?): Region? { in <lambda>()
284 val result = Region() in <lambda>()
286 rects.forEach { rect -> result.op(rect, Region.Op.UNION) } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWindowManagerStateHelper.kt22 import android.graphics.Region in <lambda>()
98 fun getWindowRegion(componentMatcher: IComponentMatcher): Region = in getWindowRegion()
99 getWindow(componentMatcher)?.frameRegion ?: Region() in getWindowRegion()
352 fun withSurfaceVisibleRegion(componentMatcher: IComponentMatcher, expectedRegion: Region) = in getWindowRegion()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubject.kt19 import android.graphics.Region in <lambda>()
282 val foundWindowsRegions = foundWindows.mapValues { (_, v) -> v?.frameRegion ?: Region() } in <lambda>()
289 val overlapRegion = Region(ourRegion) in <lambda>()
290 if (overlapRegion.op(otherRegion, Region.Op.INTERSECT)) { in <lambda>()

12