Home
last modified time | relevance | path

Searched refs:RotationUtils (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsGridLayoutTest.java33 import com.android.systemui.util.leak.RotationUtils;
60 doReturn(RotationUtils.ROTATION_NONE).when(mGridLayout).getCurrentRotation(); in testShouldSwapRowsAndColumns()
63 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mGridLayout).getCurrentRotation(); in testShouldSwapRowsAndColumns()
66 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mGridLayout).getCurrentRotation(); in testShouldSwapRowsAndColumns()
74 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
77 doReturn(RotationUtils.ROTATION_NONE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
80 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
85 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
88 doReturn(RotationUtils.ROTATION_NONE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
91 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mGridLayout).getCurrentRotation(); in testShouldReverseListItems()
[all …]
DGlobalActionsColumnLayoutTest.java35 import com.android.systemui.util.leak.RotationUtils;
60 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
63 doReturn(RotationUtils.ROTATION_NONE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
66 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
71 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
74 doReturn(RotationUtils.ROTATION_NONE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
77 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mColumnLayout).getCurrentRotation(); in testShouldReverseListItems()
85 doReturn(RotationUtils.ROTATION_NONE).when(mColumnLayout).getCurrentRotation(); in testGetAnimationOffsetX()
88 doReturn(RotationUtils.ROTATION_LANDSCAPE).when(mColumnLayout).getCurrentRotation(); in testGetAnimationOffsetX()
91 doReturn(RotationUtils.ROTATION_SEASCAPE).when(mColumnLayout).getCurrentRotation(); in testGetAnimationOffsetX()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DRotationUtilsTest.java19 import static android.util.RotationUtils.rotateBounds;
20 import static android.util.RotationUtils.rotatePoint;
21 import static android.util.RotationUtils.rotatePointF;
111 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_270)); in testReverseRotationDirectionAroundZAxis()
113 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_90)); in testReverseRotationDirectionAroundZAxis()
115 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_0)); in testReverseRotationDirectionAroundZAxis()
117 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_180)); in testReverseRotationDirectionAroundZAxis()
120 RotationUtils.reverseRotationDirectionAroundZAxis(-1)); in testReverseRotationDirectionAroundZAxis()
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/
DCounterRotator.java20 import android.util.RotationUtils;
53 RotationUtils.rotateSurface(t, mSurface, rotateDelta); in setup()
62 RotationUtils.rotatePoint(tmpPt, rotateDelta, (int) parentW, (int) parentH); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickQSPanelController.java38 import com.android.systemui.util.leak.RotationUtils;
92 boolean isLandscape = rotation == RotationUtils.ROTATION_LANDSCAPE in updateMediaExpansion()
93 || rotation == RotationUtils.ROTATION_SEASCAPE; in updateMediaExpansion()
104 return RotationUtils.getRotation(getContext()); in getRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DMultiListLayout.java27 import com.android.systemui.util.leak.RotationUtils;
40 mRotation = RotationUtils.getRotation(context); in MultiListLayout()
87 int newRotation = RotationUtils.getRotation(mContext); in onConfigurationChanged()
DSysUICutoutProvider.kt21 import android.util.RotationUtils
71 RotationUtils.rotateBounds( in calculateCameraProtectionBoundsForRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsFlatLayout.java19 import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE;
20 import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE;
21 import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE;
DGlobalActionsGridLayout.java19 import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE;
20 import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE;
21 import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE;
DGlobalActionsColumnLayout.java19 import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE;
20 import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE;
21 import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE;
DGlobalActionsLayout.java29 import com.android.systemui.util.leak.RotationUtils;
111 return RotationUtils.getRotation(mContext); in getCurrentRotation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DCounterRotatorHelper.java23 import android.util.RotationUtils;
48 final int rotationDelta = RotationUtils.deltaRotation( in handleClosingChanges()
93 RotationUtils.rotateBounds(rotatedBounds, mLastDisplayBounds, mLastRotationDelta); in getEndBoundsInStartRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelControllerTest.kt36 import com.android.systemui.util.leak.RotationUtils
142 controller.setRotation(RotationUtils.ROTATION_LANDSCAPE) in mediaExpansion_afterConfigChange_inLandscape_collapsedInLandscapeTrue_updatesToCollapsed()
154 controller.setRotation(RotationUtils.ROTATION_LANDSCAPE) in mediaExpansion_afterConfigChange_landscape_collapsedInLandscapeFalse_remainsExpanded()
190 private var rotation = RotationUtils.ROTATION_NONE
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUdfpsUtils.java24 import android.util.RotationUtils;
231 RotationUtils.rotatePoint( in getPortraitTouch()
233 RotationUtils.deltaRotation(rot, Surface.ROTATION_0), in getPortraitTouch()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DExtensionHelper.java27 import android.util.RotationUtils;
80 RotationUtils.rotateBounds(inOutRect, baseDisplayWidth, baseDisplayHeight, rotation); in rotateRectToDisplayRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLightRevealScrim.kt25 import com.android.systemui.util.leak.RotationUtils
26 import com.android.systemui.util.leak.RotationUtils.Rotation
254 @Rotation val rotation = RotationUtils.getRotation(scrim.getContext()) in setRevealAmountOnScrim()
255 if (rotation == RotationUtils.ROTATION_NONE) { in setRevealAmountOnScrim()
264 } else if (rotation == RotationUtils.ROTATION_LANDSCAPE) { in setRevealAmountOnScrim()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt42 import com.android.systemui.util.leak.RotationUtils in <lambda>()
43 import com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE in <lambda>()
44 import com.android.systemui.util.leak.RotationUtils.ROTATION_NONE in <lambda>()
45 import com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE in <lambda>()
46 import com.android.systemui.util.leak.RotationUtils.ROTATION_UPSIDE_DOWN in <lambda>()
47 import com.android.systemui.util.leak.RotationUtils.Rotation in <lambda>()
266 val currentRotation = RotationUtils.getExactRotation(tl.context) in <lambda>()
428 val currentRotation = RotationUtils.getExactRotation(tl.context) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessor.kt20 import android.util.RotationUtils
177 RotationUtils.rotatePointF( in rotateToNaturalOrientation()
179 RotationUtils.deltaRotation(rot, Surface.ROTATION_0), in rotateToNaturalOrientation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt43 import com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE in <lambda>()
44 import com.android.systemui.util.leak.RotationUtils.ROTATION_NONE in <lambda>()
45 import com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE in <lambda>()
46 import com.android.systemui.util.leak.RotationUtils.ROTATION_UPSIDE_DOWN in <lambda>()
47 import com.android.systemui.util.leak.RotationUtils.Rotation in <lambda>()
48 import com.android.systemui.util.leak.RotationUtils.getExactRotation in <lambda>()
49 import com.android.systemui.util.leak.RotationUtils.getResourcesForRotation in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DCutoutDecorProviderFactoryTest.kt22 import android.util.RotationUtils in <lambda>()
83 val insets = RotationUtils.rotateInsets(safeInsets, rotation) in <lambda>()
88 RotationUtils.rotateBounds( in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/
DStatusBarWindowController.java25 import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE;
26 import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE;
27 import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE;
28 import static com.android.systemui.util.leak.RotationUtils.ROTATION_UPSIDE_DOWN;
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedTaskController.java33 import android.util.RotationUtils;
288 final int rotationDelta = RotationUtils.deltaRotation(oldRotation, newRotation); in startSeamlessRotationIfNeeded()
292 final int rotationBackDelta = RotationUtils.deltaRotation(newRotation, oldRotation); in startSeamlessRotationIfNeeded()
293 final Rect displayCutoutInsets = RotationUtils.rotateInsets( in startSeamlessRotationIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DScreenPinningRequest.java20 import static com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE;
21 import static com.android.systemui.util.leak.RotationUtils.ROTATION_NONE;
22 import static com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE;
66 import com.android.systemui.util.leak.RotationUtils;
397 return RotationUtils.getRotation(context); in getRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthRippleControllerTest.kt44 import com.android.systemui.util.leak.RotationUtils
111 .mockStatic(RotationUtils::class.java) in setUp()
115 `when`(RotationUtils.getRotation(context)).thenReturn(RotationUtils.ROTATION_NONE) in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/events/
DPrivacyDotViewControllerTest.kt38 import com.android.systemui.util.leak.RotationUtils.ROTATION_LANDSCAPE in <lambda>()
39 import com.android.systemui.util.leak.RotationUtils.ROTATION_NONE in <lambda>()
40 import com.android.systemui.util.leak.RotationUtils.ROTATION_SEASCAPE in <lambda>()
41 import com.android.systemui.util.leak.RotationUtils.ROTATION_UPSIDE_DOWN in <lambda>()

123