/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationReversionControllerTests.java | 57 final DisplayRotation displayRotation = mock(DisplayRotation.class); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked() local 58 doReturn(displayRotation).when(mDisplayContent).getDisplayRotation(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked() 59 doReturn(USER_ROTATION_LOCKED).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked() 63 verify(displayRotation).getUserRotation(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked() 68 final DisplayRotation displayRotation = mock(DisplayRotation.class); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked() local 69 doReturn(displayRotation).when(mDisplayContent).getDisplayRotation(); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked() 70 doReturn(USER_ROTATION_FREE).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked() 74 verify(displayRotation, never()).getUserRotation(); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked()
|
D | TestDisplayContent.java | 60 final DisplayRotation displayRotation = getDisplayRotation(); in TestDisplayContent() local 61 spyOn(displayRotation); in TestDisplayContent() 65 final int oldRotation = displayRotation.getRotation(); in TestDisplayContent() 66 final int rotation = displayRotation.rotationForOrientation( in TestDisplayContent() 67 displayRotation.getLastOrientation(), oldRotation); in TestDisplayContent() 72 displayRotation.setRotation(rotation); in TestDisplayContent() 74 }).when(displayRotation).updateRotationUnchecked(anyBoolean()); in TestDisplayContent() 88 displayRotation.setRotation(ROTATION_0); in TestDisplayContent() 230 final DisplayRotation displayRotation = newDisplay.getDisplayRotation(); in build() local 231 doReturn(true).when(displayRotation).isFixedToUserRotation(); in build()
|
D | DisplayWindowSettingsTests.java | 266 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testResetAllowAllRotations() local 268 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testResetAllowAllRotations() 272 verify(displayRotation).resetAllowAllRotations(); in testResetAllowAllRotations() 381 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testFixedToUserRotationDefault() local 383 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testFixedToUserRotationDefault() 387 verify(displayRotation).restoreSettings(anyInt(), anyInt(), in testFixedToUserRotationDefault() 396 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testSetFixedToUserRotationDisabled() local 398 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testSetFixedToUserRotationDisabled() 402 verify(displayRotation).restoreSettings(anyInt(), anyInt(), in testSetFixedToUserRotationDisabled() 411 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testSetFixedToUserRotationEnabled() local [all …]
|
D | DisplayAreaGroupTest.java | 118 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot() local 119 displayRotation.setRotation(displayRotation.getPortraitRotation()); in testResolveOverrideConfiguration_reverseOrientationWhenDifferentFromParentRoot()
|
D | WindowTestsBase.java | 1049 final DisplayRotation displayRotation = dc.getDisplayRotation(); in setReverseDefaultRotation() local 1050 if (!Mockito.mockingDetails(displayRotation).isSpy()) { in setReverseDefaultRotation() 1051 spyOn(displayRotation); in setReverseDefaultRotation() 1059 displayRotation.mPortraitRotation = Surface.ROTATION_90; in setReverseDefaultRotation() 1060 displayRotation.mUpsideDownRotation = Surface.ROTATION_270; in setReverseDefaultRotation() 1062 displayRotation.mPortraitRotation = Surface.ROTATION_270; in setReverseDefaultRotation() 1063 displayRotation.mUpsideDownRotation = Surface.ROTATION_90; in setReverseDefaultRotation() 1067 displayRotation.mLandscapeRotation = Surface.ROTATION_270; in setReverseDefaultRotation() 1068 displayRotation.mSeascapeRotation = Surface.ROTATION_90; in setReverseDefaultRotation() 1070 displayRotation.mLandscapeRotation = Surface.ROTATION_90; in setReverseDefaultRotation() [all …]
|
D | RecentsAnimationControllerTest.java | 475 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testCheckRotationAfterCleanup() local 477 assertFalse(displayRotation.updateOrientation(topOrientation, false /* forceUpdate */)); in testCheckRotationAfterCleanup() 478 assertEquals(ActivityInfo.SCREEN_ORIENTATION_UNSET, displayRotation.getLastOrientation()); in testCheckRotationAfterCleanup() 485 assertTrue(displayRotation.updateOrientation(topOrientation, false /* forceUpdate */)); in testCheckRotationAfterCleanup() 487 assertNotEquals(displayRotation.getRotation(), prevRotation); in testCheckRotationAfterCleanup()
|
D | DisplayContentTests.java | 1738 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testRotateSeamlesslyWithFixedRotation() local 1744 assertTrue(displayRotation.shouldRotateSeamlessly(ROTATION_0 /* oldRotation */, in testRotateSeamlesslyWithFixedRotation() 1750 assertFalse(displayRotation.shouldRotateSeamlessly(ROTATION_0 /* oldRotation */, in testRotateSeamlesslyWithFixedRotation() 1834 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testRecentsNotRotatingWithFixedRotation() local 1845 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation() 1846 assertFalse(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation() 1850 assertTrue(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation() 1854 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation() 1856 assertTrue(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation() 1862 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation() [all …]
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/interaction/ |
D | Gyro2dController.kt | 99 private var displayRotation: Int = displayRotationValues[0] variable 188 fun setDisplayRotation(displayRotation: Int) { in setDisplayRotation() 189 if (displayRotation !in displayRotationValues) { in setDisplayRotation() 190 throwDisplayRotationException(displayRotation) in setDisplayRotation() 193 this.displayRotation = displayRotation in setDisplayRotation() 242 var axisX: Float = when (displayRotation) { in updateGyroRotation() 249 var axisY: Float = when (displayRotation) { in updateGyroRotation() 279 private fun throwDisplayRotationException(displayRotation: Int) { in throwDisplayRotationException() 283 "[Surface.ROTATION_270 (3); Instead the value was $displayRotation." in throwDisplayRotationException()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotationReversionController.java | 116 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in revertOverride() local 118 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in revertOverride() 119 displayRotation.setUserRotation(USER_ROTATION_LOCKED, mUserRotationOverridden, in revertOverride() 129 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in maybeSaveUserRotation() local 131 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in maybeSaveUserRotation() 132 mUserRotationOverridden = displayRotation.getUserRotation(); in maybeSaveUserRotation()
|
D | DisplayRotationImmersiveAppCompatPolicy.java | 44 @NonNull final DisplayRotation displayRotation, in createIfNeeded() argument 52 letterboxConfiguration, displayRotation, displayContent); in createIfNeeded() 61 @NonNull final DisplayRotation displayRotation, in DisplayRotationImmersiveAppCompatPolicy() argument 63 mDisplayRotation = displayRotation; in DisplayRotationImmersiveAppCompatPolicy()
|
D | AbsAppSnapshotController.java | 337 final int displayRotation = taskConfig.windowConfiguration.getDisplayRotation(); in prepareTaskSnapshot() local 341 if (changeInfo != null && changeInfo.mRotation != displayRotation) { in prepareTaskSnapshot() 355 builder.setRotation(displayRotation); in prepareTaskSnapshot()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/ |
D | SideFpsOverlayViewModel.kt | 74 private val displayRotation = displayStateInteractor.currentRotation in <lambda>() constant 97 combine(displayRotation, sensorLocation) { rotation: DisplayRotation, sensorLocation -> in <lambda>() 126 displayRotation, in <lambda>() 150 displayRotation, in <lambda>() 151 ) { bounds: Rect?, sensorLocation: SideFpsSensorLocation, displayRotation: DisplayRotation in <lambda>() method 157 if (displayRotation == DisplayRotation.ROTATION_0) { in <lambda>() 159 } else if (displayRotation == DisplayRotation.ROTATION_270) { in <lambda>() 163 if (displayRotation == DisplayRotation.ROTATION_180) { in <lambda>() 165 } else if (displayRotation == DisplayRotation.ROTATION_270) { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DisplayCutoutBaseView.kt | 57 protected var displayRotation = 0 in <lambda>() variable 102 displayRotation == info.rotation) { in <lambda>() 106 displayRotation = info.rotation in <lambda>() 124 displayRotation = rotation in <lambda>()
|
D | ScreenDecorHwcLayer.kt | 325 val delta = displayRotation - Surface.ROTATION_0 in <lambda>() 372 return (defaultDegree - 90 * displayRotation + 360) % 360 in <lambda>()
|
/frameworks/base/tests/FlickerTests/Rotation/src/com/android/server/wm/flicker/rotation/ |
D | OpenShowWhenLockedSeamlessAppRotationTest.kt | 54 val originalRotation = device.displayRotation in <lambda>() 57 originalRotation == device.displayRotation) in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 384 boolean fromImeAdjustment, boolean fromShelfAdjustment, int displayRotation) { in onMovementBoundsChanged() argument 392 final boolean fromDisplayRotationChanged = (mDisplayRotation != displayRotation); in onMovementBoundsChanged() 431 mDisplayRotation = displayRotation; in onMovementBoundsChanged() 440 if (mDeferResizeToNormalBoundsUntilRotation == displayRotation) { in onMovementBoundsChanged() 679 int displayRotation = mContext.getDisplay().getRotation(); in onPipMenuStateChangeStart() local 680 if (mDisplayRotation != displayRotation) { in onPipMenuStateChangeStart() 681 mDeferResizeToNormalBoundsUntilRotation = displayRotation; in onPipMenuStateChangeStart()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 393 boolean fromImeAdjustment, boolean fromShelfAdjustment, int displayRotation) { in onMovementBoundsChanged() argument 401 final boolean fromDisplayRotationChanged = (mDisplayRotation != displayRotation); in onMovementBoundsChanged() 440 mDisplayRotation = displayRotation; in onMovementBoundsChanged() 446 if (mDeferResizeToNormalBoundsUntilRotation == displayRotation) { in onMovementBoundsChanged() 688 int displayRotation = mContext.getDisplay().getRotation(); in onPipMenuStateChangeStart() local 689 if (mDisplayRotation != displayRotation) { in onPipMenuStateChangeStart() 690 mDeferResizeToNormalBoundsUntilRotation = displayRotation; in onPipMenuStateChangeStart()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | VeiledResizeTaskPositionerTest.kt | 113 .displayRotation == ROTATION_90 || in <lambda>() 115 .displayRotation == ROTATION_270 in <lambda>() 131 configuration.windowConfiguration.displayRotation = ROTATION_90 in <lambda>() 385 configuration.windowConfiguration.displayRotation = ROTATION_0 in <lambda>()
|
D | FluidResizeTaskPositionerTest.kt | 104 .displayRotation == ROTATION_90 || in <lambda>() 106 .displayRotation == ROTATION_270 in <lambda>() 124 configuration.windowConfiguration.displayRotation = ROTATION_90 in <lambda>() 702 configuration.windowConfiguration.displayRotation = Surface.ROTATION_0 in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsDialogMeasureAdapter.java | 70 final int displayRotation = mView.getDisplay().getRotation(); in onMeasureInternal() local 71 switch (displayRotation) { in onMeasureInternal() 78 Log.e(TAG, "Unsupported display rotation: " + displayRotation); in onMeasureInternal()
|
D | AuthContainerView.java | 677 final int displayRotation = cachedDisplayInfo.rotation; 678 switch (displayRotation) { 696 Log.e(TAG, "Unsupported display rotation: " + displayRotation); 718 final int displayRotation = display.getRotation(); 719 switch (displayRotation) { 728 Log.e(TAG, "Unsupported display rotation: " + displayRotation);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/domain/interactor/ |
D | ConfigurationInteractor.kt | 42 val rotation = windowConfiguration.displayRotation
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/ |
D | FacePropertyRepository.kt | 223 ) { defaultLocation, displayRotation, displaySize, scaleForResolution -> in info() method 226 displayRotation, in info()
|
/frameworks/base/services/core/java/com/android/server/camera/ |
D | CameraServiceProxy.java | 629 @Nullable TaskInfo taskInfo, int displayRotation, int lensFacing, in getCropRotateScale() argument 669 switch (displayRotation) { in getCropRotateScale() 683 Log.e(TAG, "Unsupported display rotation: " + displayRotation); in getCropRotateScale() 790 int displayRotation; 798 displayRotation = display.getRotation(); 804 return getCropRotateScale(mContext, packageName, taskInfo, displayRotation,
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayLayout.java | 360 static void computeNonDecorInsets(Resources res, int displayRotation, int displayWidth, in computeNonDecorInsets() argument 371 int position = navigationBarPosition(res, displayWidth, displayHeight, displayRotation); in computeNonDecorInsets()
|