Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/
DExtensions.kt28 import com.android.server.wm.traces.common.Region in <lambda>()
34 fun Region.toAndroidRegion(): android.graphics.Region { in <lambda>() method
35 return android.graphics.Region(left, top, right, bottom) in <lambda>()
45 fun Region.minus(other: Region): android.graphics.Region = minus(other.toAndroidRegion()) in minus() method
50 fun Region.minus(other: android.graphics.Region): android.graphics.Region { in minus() method
52 thisRegion.op(other, android.graphics.Region.Op.XOR) in minus()
59 fun Region.plus(other: Region): android.graphics.Region = plus(other.toAndroidRegion()) in Region() method
64 fun Region.plus(other: android.graphics.Region): android.graphics.Region { in Region() method
66 thisRegion.op(other, android.graphics.Region.Op.XOR) in Region()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DWindowUtils.kt22 import android.graphics.Region
65 fun getDisplayBounds(requestedRotation: Int): Region { in isRotated()
72 Region(0, 0, displayBounds.height(), displayBounds.width()) in isRotated()
74 Region(0, 0, displayBounds.width(), displayBounds.height()) in isRotated()
83 fun getStatusBarPosition(display: Display): Region { in isRotated()
91 return Region(0, 0, display.layerStackSpace.width, height) in isRotated()
99 fun getNavigationBarPosition(display: Display): Region { in isRotated()
110 Region(0, displayHeight - navBarHeight, displayWidth, displayHeight) in isRotated()
113 Region(displayWidth - navBarWidth, 0, displayWidth, displayHeight) in isRotated()
116 Region(0, 0, navBarWidth, displayHeight) in isRotated()
[all …]
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/layers/
DLayerTraceEntrySubjectTest.kt19 import android.graphics.Region
79 val expectedRegion = Region(0, 0, 1440, 2960) in canDetectUncoveredRegion()
98 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerDoesNotExist()
112 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion()
126 val expectedVisibleRegion = Region(0, 0, 1, 1) in canTestLayerVisibleRegion_layerIsHiddenByParent()
140 val expectedVisibleRegion = Region(0, 0, 1440, 99) in canTestLayerVisibleRegion_incorrectRegionSize()
154 val expectedVisibleRegion = Region(0, 0, 1080, 145) in canTestLayerVisibleRegion()
179 .coversExactly(Region(0, 0, 1440, 2960)) in testCanParseWithoutHWC_visibleRegion()
183 .coversExactly(Region(0, 171, 1440, 2960)) in testCanParseWithoutHWC_visibleRegion()
DLayersTraceSubjectTest.kt29 import com.android.server.wm.traces.common.Region in <lambda>()
235 val region = it.layer?.visibleRegion ?: Region() in <lambda>()
276 private val DISPLAY_REGION = android.graphics.Region(0, 0, 1440, 2880) in <lambda>()
277 private val DISPLAY_REGION_ROTATED = Region(0, 0, 2160, 1080) in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/
DRegion.kt19 class Region(val rects: Array<Rect>) : Rect( class
44 if (other !is Region) return false in equals()
59 val EMPTY = Region()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/layers/
DLayer.kt23 import com.android.server.wm.traces.common.Region
38 val visibleRegion: Region?,
/platform_testing/libraries/flicker/
DREADME.md99 Reason: Region to test: Rect(0, 0 - 1440, 2880)