/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TestDisplayContent.java | 52 final DisplayRotation displayRotation = getDisplayRotation(); in TestDisplayContent() local 53 spyOn(displayRotation); in TestDisplayContent() 57 final int oldRotation = displayRotation.getRotation(); in TestDisplayContent() 58 final int rotation = displayRotation.rotationForOrientation( in TestDisplayContent() 59 displayRotation.getLastOrientation(), oldRotation); in TestDisplayContent() 64 displayRotation.setRotation(rotation); in TestDisplayContent() 66 }).when(displayRotation).updateRotationUnchecked(anyBoolean()); in TestDisplayContent() 166 final DisplayRotation displayRotation = newDisplay.getDisplayRotation(); in build() local 167 doReturn(true).when(displayRotation).isFixedToUserRotation(); in build()
|
D | DisplayWindowSettingsTests.java | 367 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testFixedToUserRotationDefault() local 369 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testFixedToUserRotationDefault() 373 verify(displayRotation).restoreSettings(anyInt(), anyInt(), in testFixedToUserRotationDefault() 382 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testSetFixedToUserRotationDisabled() local 384 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testSetFixedToUserRotationDisabled() 388 verify(displayRotation).restoreSettings(anyInt(), anyInt(), in testSetFixedToUserRotationDisabled() 397 final DisplayRotation displayRotation = mock(DisplayRotation.class); in testSetFixedToUserRotationEnabled() local 399 doReturn(displayRotation).when(mPrimaryDisplay).getDisplayRotation(); in testSetFixedToUserRotationEnabled() 403 verify(displayRotation).restoreSettings(anyInt(), anyInt(), in testSetFixedToUserRotationEnabled()
|
D | ActivityRecordTests.java | 1730 final DisplayRotation displayRotation = activity.mDisplayContent.getDisplayRotation(); in testActivityOnCancelFixedRotationTransform() local 1731 spyOn(displayRotation); in testActivityOnCancelFixedRotationTransform() 1737 doReturn(true).when(displayRotation).isWaitingForRemoteRotation(); in testActivityOnCancelFixedRotationTransform() 1738 doReturn((originalRotation + 1) % 4).when(displayRotation).rotationForOrientation( in testActivityOnCancelFixedRotationTransform() 1745 displayRotation.updateRotationUnchecked(true /* forceUpdate */); in testActivityOnCancelFixedRotationTransform() 1747 assertTrue(displayRotation.isRotatingSeamlessly()); in testActivityOnCancelFixedRotationTransform() 1755 doReturn(originalRotation).when(displayRotation).rotationForOrientation( in testActivityOnCancelFixedRotationTransform() 1769 assertFalse(displayRotation.isRotatingSeamlessly()); in testActivityOnCancelFixedRotationTransform() 1774 displayRotation.updateRotationUnchecked(true /* forceUpdate */); in testActivityOnCancelFixedRotationTransform() 1775 doReturn(false).when(displayRotation).isWaitingForRemoteRotation(); in testActivityOnCancelFixedRotationTransform() [all …]
|
D | DisplayContentTests.java | 1461 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testRotateSeamlesslyWithFixedRotation() local 1467 assertTrue(displayRotation.shouldRotateSeamlessly(ROTATION_0 /* oldRotation */, in testRotateSeamlesslyWithFixedRotation() 1473 assertFalse(displayRotation.shouldRotateSeamlessly(ROTATION_0 /* oldRotation */, in testRotateSeamlesslyWithFixedRotation() 1551 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); in testRecentsNotRotatingWithFixedRotation() local 1561 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation() 1562 assertFalse(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation() 1566 assertTrue(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation() 1572 displayRotation.setRotation((displayRotation.getRotation() + 1) % 4); in testRecentsNotRotatingWithFixedRotation() 1573 assertTrue(displayRotation.updateRotationUnchecked(false)); in testRecentsNotRotatingWithFixedRotation()
|
D | SizeCompatTests.java | 304 final DisplayRotation displayRotation = display.getDisplayRotation(); in testFixedScreenBoundsWhenDisplaySizeChanged() local 305 doCallRealMethod().when(displayRotation).updateRotationUnchecked(anyBoolean()); in testFixedScreenBoundsWhenDisplaySizeChanged() 309 displayRotation.updateOrientation(display.getOrientation(), true /* forceUpdate */); in testFixedScreenBoundsWhenDisplaySizeChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsDialogMeasureAdapter.java | 64 final int displayRotation = mView.getDisplay().getRotation(); in onMeasureInternal() local 65 switch (displayRotation) { in onMeasureInternal() 72 Log.e(TAG, "Unsupported display rotation: " + displayRotation); in onMeasureInternal()
|
D | AuthContainerView.java | 572 final int displayRotation = display.getRotation(); in maybeUpdatePositionForUdfps() local 573 switch (displayRotation) { in maybeUpdatePositionForUdfps() 591 Log.e(TAG, "Unsupported display rotation: " + displayRotation); in maybeUpdatePositionForUdfps()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 362 boolean fromImeAdjustment, boolean fromShelfAdjustment, int displayRotation) { in onMovementBoundsChanged() argument 370 final boolean fromDisplayRotationChanged = (mDisplayRotation != displayRotation); in onMovementBoundsChanged() 457 mDisplayRotation = displayRotation; in onMovementBoundsChanged() 466 if (mDeferResizeToNormalBoundsUntilRotation == displayRotation) { in onMovementBoundsChanged() 690 int displayRotation = mContext.getDisplay().getRotation(); in onPipMenuStateChangeStart() local 691 if (mDisplayRotation != displayRotation) { in onPipMenuStateChangeStart() 692 mDeferResizeToNormalBoundsUntilRotation = displayRotation; in onPipMenuStateChangeStart()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayLayout.java | 293 static void computeNonDecorInsets(Resources res, int displayRotation, int displayWidth, in computeNonDecorInsets() argument 300 int position = navigationBarPosition(res, displayWidth, displayHeight, displayRotation); in computeNonDecorInsets() 329 static void computeStableInsets(Resources res, int displayRotation, int displayWidth, in computeStableInsets() argument 335 computeNonDecorInsets(res, displayRotation, displayWidth, displayHeight, displayCutout, in computeStableInsets()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 1980 final DisplayRotation displayRotation = mDisplayContent.getDisplayRotation(); 1983 final int portraitRotation = displayRotation.getPortraitRotation(); 1984 final int upsideDownRotation = displayRotation.getUpsideDownRotation(); 1985 final int landscapeRotation = displayRotation.getLandscapeRotation(); 1986 final int seascapeRotation = displayRotation.getSeascapeRotation(); 2278 public void getStableInsetsLw(int displayRotation, int displayWidth, int displayHeight, 2283 getNonDecorInsetsLw(displayRotation, displayWidth, displayHeight, displayCutout, outInsets); 2284 convertNonDecorInsetsToStableInsets(outInsets, displayRotation); 2297 public void getNonDecorInsetsLw(int displayRotation, int displayWidth, int displayHeight, 2304 int position = navigationBarPosition(displayWidth, displayHeight, displayRotation); [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ |
D | SetRequestedOrientationWhilePinnedTest.kt | 80 assertEquals(Surface.ROTATION_90, device.displayRotation) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ScreenDecorations.java | 1312 final int displayRotation = mContext.getDisplay().getRotation(); in onPreDraw() local 1313 if (displayRotation != mRotation && !mPendingRotationChange) { in onPreDraw() 1316 + displayRotation + ". Restarting draw"); in onPreDraw()
|