/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/ |
D | Utils.kt | 22 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/ |
D | IRegionSubject.kt | 20 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 …]
|
D | RegionTraceSubject.kt | 20 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 …]
|
D | RegionSubject.kt | 22 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/ |
D | WindowUtils.kt | 20 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/ |
D | SplitAppLayerBoundsSnapToDivider.kt | 19 import android.graphics.Region 45 ): Region { in calculateExpectedDisplaySize() 64 Region( in calculateExpectedDisplaySize() 71 Region( in calculateExpectedDisplaySize() 80 Region( in calculateExpectedDisplaySize() 87 Region( in calculateExpectedDisplaySize()
|
D | SplitAppLayerBoundsBecomesVisible.kt | 19 import android.graphics.Region 99 Region( in LayerTraceEntrySubject() 106 Region( in LayerTraceEntrySubject() 115 Region( in LayerTraceEntrySubject() 122 Region( in LayerTraceEntrySubject()
|
D | StatusBarLayerPositionAtStart.kt | 19 import android.graphics.Region 43 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
|
D | StatusBarLayerPositionAtEnd.kt | 19 import android.graphics.Region 42 private fun getExpectedStatusBarPosition(scenarioInstance: ScenarioInstance): Region { in getExpectedStatusBarPosition()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/ |
D | LayerTest.kt | 20 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()
|
D | LayerTraceEntryBuilderTest.kt | 21 import android.graphics.Region 87 visibleRegion = Region(), in removesLayersFromOffDisplays()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/region/ |
D | RegionEntry.kt | 19 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/ |
D | WindowManagerStateSubjectTest.kt | 19 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/ |
D | LayersTraceSubjectTest.kt | 19 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>()
|
D | LayerTraceEntrySubjectTest.kt | 20 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/ |
D | MockLayerBuilder.kt | 20 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/ |
D | LayerProperties.kt | 21 import android.graphics.Region 29 override val visibleRegion: Region = Region(), 123 visibleRegion: Region, in from()
|
D | ILayerProperties.kt | 21 import android.graphics.Region 32 val visibleRegion: Region?
|
D | Layer.kt | 21 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/ |
D | WindowState.kt | 20 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/ |
D | FullLegacyTestRun.kt | 20 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()
|
D | FullTestRun.kt | 20 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/ |
D | LayersTraceParser.kt | 22 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/ |
D | WindowManagerStateHelper.kt | 22 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/ |
D | WindowManagerStateSubject.kt | 19 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>()
|