Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarContentInsetsProviderTest.kt83 currentRotation,
114 currentRotation,
167 currentRotation,
186 currentRotation,
207 currentRotation,
227 currentRotation,
268 currentRotation,
287 currentRotation,
306 currentRotation,
325 currentRotation,
[all …]
/aosp14/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
H A DRotationChangeProvider.kt91 val currentRotation = display.rotation regex
92 if (lastRotation == null || lastRotation != currentRotation) {
93 listeners.forEach { it.onRotationChanged(currentRotation) }
94 lastRotation = currentRotation
/aosp14/frameworks/base/services/core/java/com/android/server/rotationresolver/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/
H A DFakeDisplayStateRepository.kt30 override val currentRotation: StateFlow<DisplayRotation> = _currentRotation.asStateFlow()
38 fun setCurrentRotation(currentRotation: DisplayRotation) {
39 _currentRotation.value = currentRotation
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
H A DFloatingRotationButtonPositionCalculator.kt18 currentRotation: Int,
22 val isTaskbarSide = currentRotation == Surface.ROTATION_0
23 || currentRotation == Surface.ROTATION_90
26 val gravity = resolveGravity(currentRotation)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
H A DDisplayStateInteractorImplTest.kt70 val currentRotation = collectLastValue(interactor.currentRotation) regex
73 assertThat(currentRotation()).isEqualTo(DisplayRotation.ROTATION_180)
76 assertThat(currentRotation()).isEqualTo(DisplayRotation.ROTATION_90)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarContentInsetsProvider.kt232 val currentRotation = getExactRotation(context) regex
254 currentRotation,
346 @Rotation currentRotation: Int,
362 val rotZeroBounds = getRotationZeroDisplayBounds(maxBounds, currentRotation)
376 currentRotation)
412 @Rotation currentRotation: Int
425 val relativeRotation = if (currentRotation - targetRotation < 0) {
426 currentRotation - targetRotation + 4
428 currentRotation - targetRotation
/aosp14/frameworks/base/core/java/android/service/rotationresolver/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DDisplayStateInteractor.kt48 val currentRotation: StateFlow<DisplayRotation>
99 override val currentRotation: StateFlow<DisplayRotation> =
100 displayStateRepository.currentRotation
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
H A DUnfoldLightRevealOverlayAnimation.kt92 private var currentRotation: Int = context.display!!.rotation
244 val rotation = currentRotation
295 currentRotation == Surface.ROTATION_0 || currentRotation == Surface.ROTATION_180
343 if (currentRotation != newRotation) {
344 currentRotation = newRotation
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/data/repository/
H A DDisplayStateRepositoryTest.kt122 val currentRotation by collectLastValue(underTest.currentRotation) regex
138 assertThat(currentRotation).isEqualTo(DisplayRotation.ROTATION_90)
146 assertThat(currentRotation).isEqualTo(DisplayRotation.ROTATION_180)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
H A DDisplayStateRepository.kt54 val currentRotation: StateFlow<DisplayRotation>
113 override val currentRotation: StateFlow<DisplayRotation> =
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
H A DMediaProjectionTaskView.kt149 val currentRotation: Int = display.rotation
170 currentRotation,
/aosp14/frameworks/base/core/java/android/rotationresolver/
H A DRotationResolverInternal.java58 @Surface.Rotation int currentRotation, @DurationMillisLong long timeoutMillis, in resolveRotation() argument
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A 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()
H A DAsyncRotationController.java377 final int currentRotation = mDisplayContent.getWindowConfiguration().getRotation(); in updateRotation() local
378 if (mOriginalRotation == currentRotation) { in updateRotation()
381 Slog.d(TAG, "Update original rotation " + currentRotation); in updateRotation()
382 mOriginalRotation = currentRotation; in updateRotation()
H A DWindowToken.java169 int currentRotation) { in FixedRotationTransformStateLegacy() argument
172 mRotator = new SeamlessRotator(rotatedDisplayInfo.rotation, currentRotation, in FixedRotationTransformStateLegacy()
H A DDisplayContent.java1804 final int currentRotation = getRotation(); in rotationForActivityInDifferentOrientation() local
1806 currentRotation); in rotationForActivityInDifferentOrientation()
1807 if (rotation == currentRotation) { in rotationForActivityInDifferentOrientation()
2949 final int currentRotation = getRotation(); in updateBaseDisplayMetricsIfNeeded() local
3016 mDisplaySwitchTransitionLauncher.onDisplayUpdated(currentRotation, getRotation(), in updateBaseDisplayMetricsIfNeeded()
5052 final int currentRotation = mDisplayInfo.rotation; in getBounds() local
5053 final int rotationDelta = deltaRotation(currentRotation, rotation); in getBounds()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DPreviewPositionHelper.java64 int currentRotation, boolean isRtl) { in updateThumbnailMatrix() argument
69 int deltaRotate = getRotationDelta(currentRotation, thumbnailRotation); in updateThumbnailMatrix()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DFaceScanningProviderFactory.kt209 fun Int.baseOnRotation0(@DisplayCutout.BoundsPosition currentRotation: Int): Int {
210 return when (currentRotation) {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
H A DPromptFingerprintIconViewModel.kt41 displayStateInteractor.currentRotation,
H A DPromptViewModel.kt146 combine(size, displayStateInteractor.currentRotation) { size, rotation ->
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
H A DPrivacyDotViewController.kt259 val currentRotation = RotationUtils.getExactRotation(tl.context) regex
263 if (currentRotation == ROTATION_LANDSCAPE || currentRotation == ROTATION_SEASCAPE) {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowOrientationListenerTest.java160 @Surface.Rotation int currentRotation, @DurationMillisLong long timeoutMillis, in resolveRotation() argument
/aosp14/frameworks/base/core/java/android/view/
H A DWindowManagerGlobal.java706 final int currentRotation = getWindowManagerService().registerProposedRotationListener( in registerProposedRotationListener() local
708 delegate.onRotationChanged(currentRotation); in registerProposedRotationListener()

12