Home
last modified time | relevance | path

Searched refs:currentRotation (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProviderTest.kt76 val currentRotation = ROTATION_NONE in testGetBoundingRectForPrivacyChipForRotation_noCutout() constant
83 currentRotation, in testGetBoundingRectForPrivacyChipForRotation_noCutout()
100 assertRects(expected, chipBounds, currentRotation, targetRotation) in testGetBoundingRectForPrivacyChipForRotation_noCutout()
109 assertRects(expected, chipBounds, currentRotation, targetRotation) in testGetBoundingRectForPrivacyChipForRotation_noCutout()
114 currentRotation, in testGetBoundingRectForPrivacyChipForRotation_noCutout()
131 assertRects(expected, chipBounds, currentRotation, targetRotation) in testGetBoundingRectForPrivacyChipForRotation_noCutout()
140 assertRects(expected, chipBounds, currentRotation, targetRotation) in testGetBoundingRectForPrivacyChipForRotation_noCutout()
152 val currentRotation = ROTATION_NONE in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() constant
167 currentRotation, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout()
177 assertRects(expectedBounds, bounds, currentRotation, targetRotation) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout()
[all …]
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DRotationChangeProvider.kt91 val currentRotation = display.rotation in onDisplayChanged() constant
92 if (lastRotation == null || lastRotation != currentRotation) { in onDisplayChanged()
93 listeners.forEach { it.onRotationChanged(currentRotation) } in onDisplayChanged()
94 lastRotation = currentRotation in onDisplayChanged()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButtonPositionCalculator.kt18 currentRotation: Int, in calculatePosition()
22 val isTaskbarSide = currentRotation == Surface.ROTATION_0 in calculatePosition()
23 || currentRotation == Surface.ROTATION_90 in calculatePosition()
26 val gravity = resolveGravity(currentRotation) in calculatePosition()
/frameworks/base/services/core/java/com/android/server/rotationresolver/
DRotationResolverManagerService.java185 int proposedRotation, int currentRotation, long timeout, in resolveRotation() argument
199 currentRotation, proposedRotation, /* shouldUseCamera */ true, in resolveRotation()
202 request = new RotationResolutionRequest(packageName, currentRotation, in resolveRotation()
215 logRotationStats(proposedRotation, currentRotation, RESOLUTION_DISABLED); in resolveRotation()
245 static void logRotationStatsWithTimeToCalculate(int proposedRotation, int currentRotation, in logRotationStatsWithTimeToCalculate() argument
248 /* previous_orientation= */ surfaceRotationToProto(currentRotation), in logRotationStatsWithTimeToCalculate()
254 static void logRotationStats(int proposedRotation, int currentRotation, in logRotationStats() argument
257 /* previous_orientation= */ surfaceRotationToProto(currentRotation), in logRotationStats()
/frameworks/base/core/java/android/service/rotationresolver/
DRotationResolutionRequest.java92 @Surface.Rotation int currentRotation, in RotationResolutionRequest() argument
99 this.mCurrentRotation = currentRotation; in RotationResolutionRequest()
197 int currentRotation = in.readInt(); in RotationResolutionRequest() local
204 this.mCurrentRotation = currentRotation; in RotationResolutionRequest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt232 val currentRotation = getExactRotation(context) in <lambda>() constant
254 currentRotation, in <lambda>()
346 @Rotation currentRotation: Int, in calculateInsetsForRotationWithRotatedResources()
362 val rotZeroBounds = getRotationZeroDisplayBounds(maxBounds, currentRotation) in calculateInsetsForRotationWithRotatedResources()
376 currentRotation) in calculateInsetsForRotationWithRotatedResources()
412 @Rotation currentRotation: Int in getStatusBarLeftRight()
425 val relativeRotation = if (currentRotation - targetRotation < 0) { in getStatusBarLeftRight()
426 currentRotation - targetRotation + 4 in getStatusBarLeftRight()
428 currentRotation - targetRotation in getStatusBarLeftRight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldLightRevealOverlayAnimation.kt92 private var currentRotation: Int = context.display!!.rotation in <lambda>() variable in com.android.systemui.unfold.UnfoldLightRevealOverlayAnimation
243 val rotation = currentRotation in <lambda>()
294 currentRotation == Surface.ROTATION_0 || currentRotation == Surface.ROTATION_180 in <lambda>()
342 if (currentRotation != newRotation) { in <lambda>()
343 currentRotation = newRotation in <lambda>()
/frameworks/base/core/java/android/rotationresolver/
DRotationResolverInternal.java58 @Surface.Rotation int currentRotation, @DurationMillisLong long timeoutMillis, in resolveRotation() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionTaskView.kt149 val currentRotation: Int = display.rotation in updateThumbnailMatrix() constant
170 currentRotation, in updateThumbnailMatrix()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DPreviewPositionHelper.java64 int currentRotation, boolean isRtl) { in updateThumbnailMatrix() argument
69 int deltaRotate = getRotationDelta(currentRotation, thumbnailRotation); in updateThumbnailMatrix()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowOrientationListener.java929 final int currentRotation = mCurrentRotation; in isOrientationAngleAcceptableLocked() local
930 if (currentRotation >= 0) { in isOrientationAngleAcceptableLocked()
935 if (rotation == currentRotation in isOrientationAngleAcceptableLocked()
936 || rotation == (currentRotation + 1) % 4) { in isOrientationAngleAcceptableLocked()
954 if (rotation == currentRotation in isOrientationAngleAcceptableLocked()
955 || rotation == (currentRotation + 3) % 4) { in isOrientationAngleAcceptableLocked()
DWindowToken.java133 int currentRotation) { in FixedRotationTransformState() argument
138 mRotator = new SeamlessRotator(rotatedDisplayInfo.rotation, currentRotation, in FixedRotationTransformState()
DDisplayContent.java1736 final int currentRotation = getRotation(); in rotationForActivityInDifferentOrientation() local
1738 currentRotation); in rotationForActivityInDifferentOrientation()
1739 if (rotation == currentRotation) { in rotationForActivityInDifferentOrientation()
2869 final int currentRotation = getRotation(); in updateBaseDisplayMetricsIfNeeded() local
2931 mDisplaySwitchTransitionLauncher.onDisplayUpdated(currentRotation, getRotation(), in updateBaseDisplayMetricsIfNeeded()
4911 final int currentRotation = mDisplayInfo.rotation; in getBounds() local
4912 final int rotationDelta = deltaRotation(currentRotation, rotation); in getBounds()
DActivityRecord.java2567 final int currentRotation = task.getWindowConfiguration().getRotation(); in isSnapshotCompatible() local
2572 : currentRotation; in isSnapshotCompatible()
2580 if ((Math.abs(currentRotation - targetRotation) % 2) == 1) { in isSnapshotCompatible()
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DFaceScanningProviderFactory.kt202 fun Int.baseOnRotation0(@DisplayCutout.BoundsPosition currentRotation: Int): Int { in baseOnRotation0()
203 return when (currentRotation) { in baseOnRotation0()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt254 val currentRotation = RotationUtils.getExactRotation(tl.context) in <lambda>() constant
258 if (currentRotation == ROTATION_LANDSCAPE || currentRotation == ROTATION_SEASCAPE) { in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java160 @Surface.Rotation int currentRotation, @DurationMillisLong long timeoutMillis, in resolveRotation() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerTest.java862 final int currentRotation = display.getRotation();
863 final int newRotation = (currentRotation + 1) % 4;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java2031 final int currentRotation = mDisplayContent.getRotation(); in testIsSnapshotCompatibleTaskSizeChanged() local
2036 .setRotation(currentRotation) in testIsSnapshotCompatibleTaskSizeChanged()
2049 final int targetRotation = currentRotation + 1; in testIsSnapshotCompatibleTaskSizeChanged()