/platform_testing/libraries/flicker/utils/src/android/tools/helpers/ |
D | RotationUtils.kt | 21 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 …]
|
D | WindowUtils.kt | 22 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()
|
D | AutomationUtils.kt | 25 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/ |
D | LegacyFlickerTestFactory.kt | 20 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/ |
D | ChangeDisplayOrientationRule.kt | 23 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/ |
D | LegacyFlickerTestFactoryTest.kt | 19 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/ |
D | ScenarioBuilder.kt | 30 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()
|
D | Scenario.kt | 24 val startRotation: Rotation 25 val endRotation: Rotation
|
D | ScenarioImpl.kt | 35 override val startRotation: Rotation, 36 override val endRotation: Rotation, 52 startRotation == Rotation.ROTATION_90 || startRotation == Rotation.ROTATION_270
|
D | Rotation.kt | 19 enum class Rotation(val description: String, val value: Int) { class
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WindowManagerTrace.kt | 19 import android.tools.Rotation 44 fun getInitialRotation(): Rotation { in getInitialRotation() 54 fun getFinalRotation(): Rotation { in getFinalRotation()
|
D | WindowManagerPolicy.kt | 19 import android.tools.Rotation 39 val rotation: Rotation = Rotation.ROTATION_0, 144 rotation: Rotation = Rotation.ROTATION_0, in from()
|
D | DisplayContent.kt | 21 import android.tools.Rotation in <lambda>() 48 val rotation: Rotation, in <lambda>()
|
D | WindowManagerState.kt | 20 import android.tools.Rotation in <lambda>() 208 fun getRotation(displayId: Int): Rotation = in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | Transform.kt | 20 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()
|
D | Display.kt | 21 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/ |
D | ScenarioInstanceImpl.kt | 19 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/ |
D | ScenarioInstanceTest.kt | 19 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/ |
D | IWindowManagerSubject.kt | 20 import android.tools.Rotation 113 rotation: Rotation,
|
D | WindowManagerTraceSubject.kt | 19 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/ |
D | FlickerServiceDecoratorTest.kt | 22 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/ |
D | WindowManagerStateHelperTest.kt | 23 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/ |
D | WindowManagerStateHelper.kt | 25 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/ |
D | ConditionsFactory.kt | 21 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/ |
D | WindowManagerStateBuilder.kt | 25 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>()
|