Home
last modified time | relevance | path

Searched refs:Rotation (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DRotationUtils.kt21 import android.tools.Rotation
30 fun rotateInsets(insets: Insets?, rotation: Rotation): Insets { in rotateInsets()
36 Rotation.ROTATION_0 -> insets in rotateInsets()
37 Rotation.ROTATION_90 -> in rotateInsets()
39 Rotation.ROTATION_180 -> in rotateInsets()
41 Rotation.ROTATION_270 -> in rotateInsets()
55 oldRotation: Rotation, in rotateBounds()
56 newRotation: Rotation in rotateBounds()
68 rotation: Rotation in rotateBounds()
73 Rotation.ROTATION_0 -> inBounds in rotateBounds()
[all …]
DWindowUtils.kt22 import android.tools.Rotation
31 private val displayBoundsCache = LruCache<Rotation, Rect>(4)
48 val displayRotation: Rotation
60 fun getDisplayBounds(requestedRotation: Rotation): Rect { in getDisplayBounds()
128 requestedRotation == Rotation.ROTATION_90 -> in getNavigationBarPosition()
131 requestedRotation == Rotation.ROTATION_270 -> Region(0, 0, navBarWidth, displayHeight) in getNavigationBarPosition()
141 fun estimateNavigationBarPosition(requestedRotation: Rotation): Region { in estimateNavigationBarPosition()
162 requestedRotation == Rotation.ROTATION_90 -> in estimateNavigationBarPosition()
165 requestedRotation == Rotation.ROTATION_270 -> Region(0, 0, navBarWidth, displayHeight) in estimateNavigationBarPosition()
184 fun getNavigationBarFrameHeight(rotation: Rotation, isGesturalNavigation: Boolean): Int { in getNavigationBarFrameHeight()
DAutomationUtils.kt25 import android.tools.Rotation
77 return Rotation.getByValue(this.displayRotation).isRotated() in UiDevice()
95 estimateNavigationBarPosition(Rotation.ROTATION_0).bounds in openQuickstep()
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/
DLegacyFlickerTestFactory.kt20 import android.tools.Rotation in <lambda>()
38 supportedRotations: List<Rotation> = listOf(Rotation.ROTATION_0, Rotation.ROTATION_90), in <lambda>()
57 supportedRotations: List<Rotation> = listOf(Rotation.ROTATION_0, Rotation.ROTATION_90), in <lambda>()
71 startRotation: Rotation, in <lambda>()
72 endRotation: Rotation, in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/
DChangeDisplayOrientationRule.kt23 import android.tools.Rotation
47 private val targetOrientation: Rotation,
52 private var initialOrientation = Rotation.ROTATION_0
63 initialOrientation = Rotation.getByValue(wm.defaultDisplay.rotation) in starting()
79 rotation: Rotation, in setRotation()
92 Rotation.ROTATION_270 -> device.setOrientationRight() in setRotation()
93 Rotation.ROTATION_90 -> device.setOrientationLeft() in setRotation()
94 Rotation.ROTATION_0 -> device.setOrientationNatural() in setRotation()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/
DLegacyFlickerTestFactoryTest.kt19 import android.tools.Rotation
54 Rotation.ROTATION_0, in checkBuildCustomRotationsTest()
55 Rotation.ROTATION_90, in checkBuildCustomRotationsTest()
56 Rotation.ROTATION_180, in checkBuildCustomRotationsTest()
57 Rotation.ROTATION_270 in checkBuildCustomRotationsTest()
/platform_testing/libraries/flicker/utils/src/android/tools/
DScenarioBuilder.kt30 fun withStartRotation(rotation: Rotation) = apply { startRotation = rotation } in <lambda>()
32 fun withEndRotation(rotation: Rotation) = apply { endRotation = rotation } in <lambda>()
76 val DEFAULT_ROTATION = Rotation.ROTATION_0 in createEmptyScenario()
80 startOrientation: Rotation, in createEmptyScenario()
81 endOrientation: Rotation, in createEmptyScenario()
DScenario.kt24 val startRotation: Rotation
25 val endRotation: Rotation
DScenarioImpl.kt35 override val startRotation: Rotation,
36 override val endRotation: Rotation,
52 startRotation == Rotation.ROTATION_90 || startRotation == Rotation.ROTATION_270
DRotation.kt19 enum class Rotation(val description: String, val value: Int) { class
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowManagerTrace.kt19 import android.tools.Rotation
44 fun getInitialRotation(): Rotation { in getInitialRotation()
54 fun getFinalRotation(): Rotation { in getFinalRotation()
DWindowManagerPolicy.kt19 import android.tools.Rotation
39 val rotation: Rotation = Rotation.ROTATION_0,
144 rotation: Rotation = Rotation.ROTATION_0, in from()
DDisplayContent.kt21 import android.tools.Rotation in <lambda>()
48 val rotation: Rotation, in <lambda>()
DWindowManagerState.kt20 import android.tools.Rotation in <lambda>()
208 fun getRotation(displayId: Int): Rotation = in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DTransform.kt20 import android.tools.Rotation
66 fun getRotation(): Rotation { in getRotation()
68 return Rotation.ROTATION_0 in getRotation()
72 type.isFlagClear(SCALE_VAL or ROTATE_VAL or TRANSLATE_VAL) -> Rotation.ROTATION_0 in getRotation()
73 type.isFlagSet(ROT_90_VAL) -> Rotation.ROTATION_90 in getRotation()
74 type.isFlagSet(FLIP_V_VAL or FLIP_H_VAL) -> Rotation.ROTATION_180 in getRotation()
75 type.isFlagSet(ROT_90_VAL or FLIP_V_VAL or FLIP_H_VAL) -> Rotation.ROTATION_270 in getRotation()
76 else -> Rotation.ROTATION_0 in getRotation()
DDisplay.kt21 import android.tools.Rotation
55 requestedRotation == Rotation.ROTATION_90 -> Position.RIGHT in navBarPosition()
57 requestedRotation == Rotation.ROTATION_270 -> Position.LEFT in navBarPosition()
/platform_testing/libraries/flicker/src/android/tools/flicker/
DScenarioInstanceImpl.kt19 import android.tools.Rotation in <lambda>()
33 override val startRotation: Rotation, in <lambda>()
34 override val endRotation: Rotation, in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt19 import android.tools.Rotation
83 startRotation = Rotation.ROTATION_0, in willReportFlickerAssertions()
84 endRotation = Rotation.ROTATION_90, in willReportFlickerAssertions()
157 startRotation = Rotation.ROTATION_0, in willReportMainBlockAssertions()
158 endRotation = Rotation.ROTATION_90, in willReportMainBlockAssertions()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DIWindowManagerSubject.kt20 import android.tools.Rotation
113 rotation: Rotation,
DWindowManagerTraceSubject.kt19 import android.tools.Rotation in <lambda>()
460 override fun hasRotation(rotation: Rotation, displayId: Int): WindowManagerTraceSubject = in <lambda>()
465 rotation: Rotation, in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DFlickerServiceDecoratorTest.kt22 import android.tools.Rotation
208 startRotation = Rotation.ROTATION_0, in handleDuplicateFlickerMethods()
209 endRotation = Rotation.ROTATION_0, in handleDuplicateFlickerMethods()
218 startRotation = Rotation.ROTATION_0, in handleDuplicateFlickerMethods()
219 endRotation = Rotation.ROTATION_0, in handleDuplicateFlickerMethods()
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DWindowManagerStateHelperTest.kt23 import android.tools.Rotation in <lambda>()
369 .isEqualTo(Rotation.ROTATION_0) in <lambda>()
370 helper.StateSyncBuilder().withRotation(Rotation.ROTATION_270).waitFor() in <lambda>()
373 .isEqualTo(Rotation.ROTATION_270) in <lambda>()
374 helper.StateSyncBuilder().withRotation(Rotation.ROTATION_0).waitFor() in <lambda>()
377 .isEqualTo(Rotation.ROTATION_0) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWindowManagerStateHelper.kt25 import android.tools.Rotation in <lambda>()
254 fun withRotation(rotation: Rotation, displayId: Int = Display.DEFAULT_DISPLAY) = in getWindowRegion()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DConditionsFactory.kt21 import android.tools.Rotation in <lambda>()
212 fun hasRotation(expectedRotation: Rotation, displayId: Int): Condition<DeviceStateDump> { in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DWindowManagerStateBuilder.kt25 import android.tools.Rotation in <lambda>()
124 rotation = Rotation.getByValue(proto.rotation), in <lambda>()
203 Rotation.getByValue(proto.displayRotation?.rotation ?: Surface.ROTATION_0), in <lambda>()

12