/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
D | CommonAssertions.kt | 69 rotation: Int, in FlickerTestParameter() 80 getSplitLeftTopRegion(dividerRegion, rotation) in FlickerTestParameter() 82 getSplitRightBottomRegion(dividerRegion, rotation) in FlickerTestParameter() 90 rotation: Int, in FlickerTestParameter() 98 getSplitLeftTopRegion(dividerRegion, rotation) in FlickerTestParameter() 100 getSplitRightBottomRegion(dividerRegion, rotation) in FlickerTestParameter() 153 rotation: Int, in FlickerTestParameter() 159 .overlaps(getPrimaryRegion(dividerRegion, rotation)) in FlickerTestParameter() 164 rotation: Int, in FlickerTestParameter() 170 .overlaps(getPrimaryRegion(dividerRegion, rotation)) in FlickerTestParameter() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | FloatingRotationButtonPositionCalculatorTest.kt | 7 import com.android.systemui.shared.rotation.FloatingRotationButtonPositionCalculator 8 import com.android.systemui.shared.rotation.FloatingRotationButtonPositionCalculator.Position 23 testCase.rotation, in calculatePosition() 32 val rotation: Int, constant in com.android.systemui.navigationbar.gestural.FloatingRotationButtonPositionCalculatorTest.TestCase 45 append(", rotation = $rotation") in toString() 71 rotation = Surface.ROTATION_0, 82 rotation = Surface.ROTATION_90, 93 rotation = Surface.ROTATION_180, 104 rotation = Surface.ROTATION_270, 115 rotation = Surface.ROTATION_0, [all …]
|
/frameworks/av/media/libheadtracking/include/media/ |
D | QuaternionUtil.h | 224 const auto rotation = q.toRotationMatrix(); in quaternionToAngles() local 234 [[maybe_unused]] const auto ux_0 = rotation.coeff(0, 0); in quaternionToAngles() 235 [[maybe_unused]] const auto ux_1 = rotation.coeff(1, 0); in quaternionToAngles() 236 [[maybe_unused]] const auto ux_2 = rotation.coeff(2, 0); in quaternionToAngles() 251 [[maybe_unused]] const auto uy_0 = rotation.coeff(0, 1); in quaternionToAngles() 252 [[maybe_unused]] const auto uy_1 = rotation.coeff(1, 1); in quaternionToAngles() 253 [[maybe_unused]] const auto uy_2 = rotation.coeff(2, 1); in quaternionToAngles() 264 [[maybe_unused]] const auto uz_0 = rotation.coeff(0, 2); in quaternionToAngles() 265 [[maybe_unused]] const auto uz_1 = rotation.coeff(1, 2); in quaternionToAngles() 266 [[maybe_unused]] const auto uz_2 = rotation.coeff(2, 2); in quaternionToAngles()
|
/frameworks/base/core/java/android/util/ |
D | RotationUtils.java | 43 public static Insets rotateInsets(Insets insets, @Rotation int rotation) { in rotateInsets() argument 48 switch (rotation) { in rotateInsets() 74 throw new IllegalArgumentException("unknown rotation: " + rotation); in rotateInsets() 99 @Rotation int rotation) { in rotateBounds() argument 102 switch (rotation) { in rotateBounds() 133 public static void rotateBounds(Rect inOutBounds, Rect parentBounds, @Rotation int rotation) { in rotateBounds() argument 134 rotateBounds(inOutBounds, parentBounds.right, parentBounds.bottom, rotation); in rotateBounds() 151 @Rotation int rotation) { in rotateSurface() argument 155 switch (rotation) { in rotateSurface() 176 public static void rotatePoint(Point inOutPoint, @Rotation int rotation, in rotatePoint() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/ |
D | RoundedCornerDecorProviderImpl.kt | 42 @Surface.Rotation rotation: Int, in <lambda>() 48 initView(view, rotation, tintColor) in <lambda>() 59 alignedBound1.toLayoutGravity(rotation) or alignedBound2.toLayoutGravity(rotation) in <lambda>() 69 @Surface.Rotation rotation: Int, in <lambda>() 73 view.adjustRotation(alignedBounds, rotation) in <lambda>() 80 @Surface.Rotation rotation: Int, in <lambda>() 86 initView((view as ImageView), rotation, tintColor) in <lambda>() 96 it.gravity = alignedBound1.toLayoutGravity(rotation) or in <lambda>() 97 alignedBound2.toLayoutGravity(rotation) in <lambda>() 104 private fun Int.toLayoutGravity(@Surface.Rotation rotation: Int): Int = when (rotation) { in toLayoutGravity() [all …]
|
D | OverlayWindow.kt | 37 @Surface.Rotation rotation: Int, in <lambda>() 40 val view = decorProvider.inflateView(context, rootView, rotation, tintColor) in <lambda>() 85 @Surface.Rotation rotation: Int, in <lambda>() 94 rotation = rotation, in <lambda>() 104 rotation = rotation, in <lambda>()
|
/frameworks/native/include/ui/ |
D | Rotation.h | 31 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() argument 32 return static_cast<Rotation>(rotation); in toRotation() 35 constexpr auto toRotationInt(Rotation rotation) { in toRotationInt() argument 36 return static_cast<std::underlying_type_t<Rotation>>(rotation); in toRotationInt() 49 constexpr Rotation operator-(Rotation rotation) { 50 return ROTATION_0 - rotation; 53 constexpr const char* toCString(Rotation rotation) { in toCString() argument 54 switch (rotation) { in toCString()
|
/frameworks/native/libs/ui/include/ui/ |
D | Rotation.h | 31 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() argument 32 return static_cast<Rotation>(rotation); in toRotation() 35 constexpr auto toRotationInt(Rotation rotation) { in toRotationInt() argument 36 return static_cast<std::underlying_type_t<Rotation>>(rotation); in toRotationInt() 49 constexpr Rotation operator-(Rotation rotation) { 50 return ROTATION_0 - rotation; 53 constexpr const char* toCString(Rotation rotation) { in toCString() argument 54 switch (rotation) { in toCString()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rotation.h | 31 constexpr auto toRotation(std::underlying_type_t<Rotation> rotation) { in toRotation() argument 32 return static_cast<Rotation>(rotation); in toRotation() 35 constexpr auto toRotationInt(Rotation rotation) { in toRotationInt() argument 36 return static_cast<std::underlying_type_t<Rotation>>(rotation); in toRotationInt() 49 constexpr Rotation operator-(Rotation rotation) { 50 return ROTATION_0 - rotation; 53 constexpr const char* toCString(Rotation rotation) { in toCString() argument 54 switch (rotation) { in toCString()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | ProjectionSpaceTest.cpp | 28 Rect getSideStrip(const Rect& rect, ui::Rotation rotation) { in getSideStrip() argument 30 if (rotation == ui::ROTATION_90 || rotation == ui::ROTATION_270) { in getSideStrip() 38 if (rotation == ui::ROTATION_0 || rotation == ui::ROTATION_270) { in getSideStrip() 42 if (rotation == ui::ROTATION_90) { in getSideStrip() 46 if (rotation == ui::ROTATION_180) { in getSideStrip() 60 for (int rotation = 0; rotation <= 3; rotation++) { in TEST() local 61 space.setOrientation(ui::Rotation(rotation)); in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsOverlayParams.kt | 33 @Rotation val rotation: Int = Surface.ROTATION_0 constant in com.android.systemui.biometrics.UdfpsOverlayParams 41 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) { 49 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) {
|
D | AuthBiometricFingerprintIconController.kt | 77 if (isSideFps && getRotationFromDefault(displayInfo.rotation) == Surface.ROTATION_180) { in <lambda>() 78 iconView.rotation = 180f in <lambda>() 87 val rotation = getRotationFromDefault(displayInfo.rotation) in <lambda>() constant 88 val iconAnimation = getSideFpsAnimationForTransition(rotation) in <lambda>() 90 getSideFpsOverlayAnimationForTransition(lastState, newState, rotation) ?: return in <lambda>() 229 private fun getRotationFromDefault(rotation: Int): Int = in <lambda>() 230 if (isReverseDefaultRotation) (rotation + 1) % 4 else rotation in <lambda>() 233 private fun getSideFpsAnimationForTransition(rotation: Int): Int = when (rotation) { in <lambda>() 255 rotation: Int in <lambda>() 259 when (rotation) { in <lambda>() [all …]
|
D | BiometricDisplayListener.kt | 58 val rotation = context.display?.rotation ?: return false in didRotationChange() constant 60 lastRotation = rotation in didRotationChange() 61 return last != rotation in didRotationChange() 66 lastRotation = context.display?.rotation ?: Surface.ROTATION_0 in enable()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 78 DisplayInfo displayInfoAndCutoutForRotation(int rotation, boolean withDisplayCutout, in displayInfoAndCutoutForRotation() argument 81 final boolean flippedDimensions = rotation == ROTATION_90 || rotation == ROTATION_270; in displayInfoAndCutoutForRotation() 84 info.rotation = rotation; in displayInfoAndCutoutForRotation() 88 info.displayCutout = mDisplayContent.calculateDisplayCutoutForRotation(rotation); in displayInfoAndCutoutForRotation() 94 private static DisplayCutout displayCutoutForRotation(int rotation, boolean isLongEdgeCutout) { in displayCutoutForRotation() argument 103 transformPhysicalToLogicalCoordinates(rotation, DISPLAY_WIDTH, DISPLAY_HEIGHT, m); in displayCutoutForRotation() 107 switch (rotation) { in displayCutoutForRotation()
|
/frameworks/base/core/java/android/view/ |
D | PrivacyIndicatorBounds.java | 50 public PrivacyIndicatorBounds(@NonNull Rect[] staticBounds, @Surface.Rotation int rotation) { in PrivacyIndicatorBounds() argument 52 mRotation = rotation; in PrivacyIndicatorBounds() 67 @Surface.Rotation int rotation) { in updateBoundsForRotation() argument 68 if (rotation >= mStaticBounds.length || rotation < 0) { in updateBoundsForRotation() 72 newBounds[rotation] = bounds; in updateBoundsForRotation() 107 public PrivacyIndicatorBounds rotate(@Surface.Rotation int rotation) { in rotate() argument 108 if (rotation == ROTATION_0) { in rotate() 111 return new PrivacyIndicatorBounds(mStaticBounds, rotation); in rotate() 215 int rotation = in.readInt(); in PrivacyIndicatorBounds() local 220 this.mRotation = rotation; in PrivacyIndicatorBounds()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RotationCache.java | 48 public R getOrCompute(T t, int rotation) { in getOrCompute() argument 53 final int idx = mCache.indexOfKey(rotation); in getOrCompute() 57 final R result = mComputation.compute(t, rotation); in getOrCompute() 58 mCache.put(rotation, result); in getOrCompute() 68 R compute(T t, int rotation); in compute() argument
|
D | CoordinateTransforms.java | 44 public static void transformPhysicalToLogicalCoordinates(@Rotation int rotation, in transformPhysicalToLogicalCoordinates() argument 46 switch (rotation) { in transformPhysicalToLogicalCoordinates() 63 throw new IllegalArgumentException("Unknown rotation: " + rotation); in transformPhysicalToLogicalCoordinates() 74 public static void transformLogicalToPhysicalCoordinates(@Rotation int rotation, in transformLogicalToPhysicalCoordinates() argument 76 switch (rotation) { in transformLogicalToPhysicalCoordinates() 93 throw new IllegalArgumentException("Unknown rotation: " + rotation); in transformLogicalToPhysicalCoordinates() 108 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in transformToRotation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProvider.kt | 137 fun getBoundingRectForPrivacyChipForRotation(@Rotation rotation: Int, in <lambda>() 139 val key = getCacheKey(rotation, displayCutout) in <lambda>() 142 insets = getStatusBarContentAreaForRotation(rotation) in <lambda>() 145 val rotatedResources = getResourcesForRotation(rotation, context) in <lambda>() 162 fun getStatusBarContentInsetsForRotation(@Rotation rotation: Int): Pair<Int, Int> = in <lambda>() 165 val key = getCacheKey(rotation, displayCutout) in <lambda>() 172 val width = point.logicalWidth(rotation) in <lambda>() 175 rotation, displayCutout, getResourcesForRotation(rotation, context), key) in <lambda>() 199 @Rotation rotation: Int in <lambda>() 202 val key = getCacheKey(rotation, displayCutout) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 54 int rotation = d.getRotation(); in getWidth() local 55 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getWidth() 74 int rotation = d.getRotation(); in getHeight() local 75 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getHeight()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | VideoTrackDecoder.java | 43 public void grabFrame(FrameImage2D outputVideoFrame, int rotation) { in grabFrame() argument 51 copyFrameDataTo(outputVideoFrame, rotation); in grabFrame() 87 protected static boolean needSwapDimension(int rotation) { in needSwapDimension() argument 88 switch(rotation) { in needSwapDimension() 106 protected abstract void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation); in copyFrameDataTo() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | CutoutDecorProviderFactoryTest.kt | 64 @Surface.Rotation rotation: Int = Surface.ROTATION_0, in <lambda>() 70 info.rotation = rotation in <lambda>() 80 @Surface.Rotation rotation: Int = Surface.ROTATION_0, in <lambda>() 83 val insets = RotationUtils.rotateInsets(safeInsets, rotation) in <lambda>() 86 val rotatedPos = (pos - rotation + BOUNDS_POSITION_LENGTH) % BOUNDS_POSITION_LENGTH in <lambda>() 92 rotation in <lambda>() 139 rotation = Surface.ROTATION_90 in <lambda>() 159 rotation = Surface.ROTATION_270 in <lambda>() 184 rotation = Surface.ROTATION_180 in <lambda>()
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | utils.h | 103 mOutputConfiguration.rotation = OutputConfiguration::Rotation::R0; in OutputConfigurationWrapper() 123 mOutputConfiguration.rotation = outputConfiguration.rotation; 139 return self.rotation == other.rotation && self.windowGroupId == other.windowGroupId && 162 if (self.rotation != other.rotation) { 163 return static_cast<uint32_t>(self.rotation) < static_cast<uint32_t>(other.rotation); 189 HRotation convertToHidl(int rotation);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/ |
D | FloatingRotationButtonPositionCalculator.kt | 1 package com.android.systemui.shared.rotation 57 private fun resolveGravity(rotation: Int): Int = in resolveGravity() 59 when (rotation) { in resolveGravity() 64 else -> throw IllegalArgumentException("Invalid rotation $rotation") in resolveGravity() 67 when (rotation) { 72 else -> throw IllegalArgumentException("Invalid rotation $rotation")
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimatorTest.kt | 58 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 74 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() 90 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_fullProgress_viewTranslatedToTheOriginalPosition() 106 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 122 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewAndUnregister_halfProgress_viewIsNotUpdated() 135 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewUpdateProgressAndUnregister_halfProgress_viewIsNotUpdated() 149 givenScreen(width = 100, height = 100, rotation = ROTATION_90) in testRegisterViewOnTheTopOfHorizontalFold_halfProgress_viewTranslatedToTheBottom() 162 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testUpdateViewPositions_viewOnTheLeftAndMovedToTheRight_viewTranslatedToTheLeft() 226 rotation: Int = ROTATION_0 in givenScreen() 234 whenever(display.rotation).thenReturn(rotation) in givenScreen()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | SideFpsControllerTest.kt | 350 { rotation = Surface.ROTATION_0 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_0() 360 { rotation = Surface.ROTATION_90 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_90() 370 { rotation = Surface.ROTATION_180 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_180() 380 { rotation = Surface.ROTATION_180 }, in showsSfpsIndicatorWithTaskbarCollapsedDownForXAlignedSensor_180() 391 { rotation = Surface.ROTATION_180 }, in hidesSfpsIndicatorWhenOccludingTaskbarForXAlignedSensor_180() 402 { rotation = Surface.ROTATION_270 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_270() 412 { rotation = Surface.ROTATION_0 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_InReverseDefaultRotation_0() 422 { rotation = Surface.ROTATION_90 } in showsSfpsIndicatorWithTaskbarForXAlignedSensor_InReverseDefaultRotation_90() 432 { rotation = Surface.ROTATION_90 }, in showsSfpsIndicatorWithTaskbarCollapsedDownForXAlignedSensor_InReverseDefaultRotation_90() 443 { rotation = Surface.ROTATION_90 }, in hidesSfpsIndicatorWhenOccludingTaskbarForXAlignedSensor_InReverseDefaultRotation_90() [all …]
|