Home
last modified time | relevance | path

Searched refs:BOUNDS_POSITION_RIGHT (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DDisplayRotationUtilTest.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
57 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_0), in testGetBoundIndexFromRotation_rot0()
58 equalTo(BOUNDS_POSITION_RIGHT)); in testGetBoundIndexFromRotation_rot0()
69 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_90), in testGetBoundIndexFromRotation_rot90()
72 equalTo(BOUNDS_POSITION_RIGHT)); in testGetBoundIndexFromRotation_rot90()
78 equalTo(BOUNDS_POSITION_RIGHT)); in testGetBoundIndexFromRotation_rot180()
81 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_180), in testGetBoundIndexFromRotation_rot180()
92 equalTo(BOUNDS_POSITION_RIGHT)); in testGetBoundIndexFromRotation_rot270()
93 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_270), in testGetBoundIndexFromRotation_rot270()
DWmDisplayCutoutTest.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
86 fromBoundingRect(180, 0, 200, 100, BOUNDS_POSITION_RIGHT), 200, 100) in calculateRelativeTo_right()
129 fromBoundingRect(180, 180, 200, 220, BOUNDS_POSITION_RIGHT), 200, 400); in computeSafeInsets_cutoutRight()
177 fromBoundingRect(380, 0, 400, 20, BOUNDS_POSITION_RIGHT), 400, 200); in computeSafeInsets_topRightCornerCutout_landscape()
193 fromBoundingRect(380, 180, 400, 200, BOUNDS_POSITION_RIGHT), 400, 200); in computeSafeInsets_bottomRightCornerCutout_landscape()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java20 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
187 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testRounding_NoCutout()
282 mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT].findViewById(R.id.left); in testRoundingTopBottomRadius_OnLeftRightOverlay()
284 mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT].findViewById(R.id.right); in testRoundingTopBottomRadius_OnLeftRightOverlay()
315 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testRoundingMultipleRadius_NoCutout()
359 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testNoRounding_CutoutShortEdge()
395 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testNoRounding_CutoutLongEdge()
428 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testRounding_CutoutShortEdge()
457 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]), any()); in testRounding_CutoutLongEdge()
495 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_RIGHT]); in testRounding_CutoutShortAndLongEdge()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
155 pos = isLongEdgeCutout ? BOUNDS_POSITION_RIGHT : BOUNDS_POSITION_BOTTOM; in displayCutoutForRotation()
158 pos = isLongEdgeCutout ? BOUNDS_POSITION_TOP : BOUNDS_POSITION_RIGHT; in displayCutoutForRotation()
/frameworks/base/core/java/android/view/
DDisplayCutout.java120 public static final int BOUNDS_POSITION_RIGHT = 2; field in DisplayCutout
138 BOUNDS_POSITION_RIGHT,
151 mRects[BOUNDS_POSITION_RIGHT] = getCopyOrRef(right, copyArguments); in Bounds()
376 sortedBounds[BOUNDS_POSITION_RIGHT] = bound; in extractBoundsFromList()
517 return mBounds.getRect(BOUNDS_POSITION_RIGHT); in getBoundingRectRight()
566 mBounds.getRect(BOUNDS_POSITION_RIGHT).dumpDebug(proto, BOUND_RIGHT); in dumpDebug()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
469 case BOUNDS_POSITION_RIGHT: in getWindowTitleByPos()
487 case BOUNDS_POSITION_RIGHT: in getOverlayWindowGravity()
640 case BOUNDS_POSITION_RIGHT: in getRoundedCornerGravity()
685 return pos == BOUNDS_POSITION_LEFT || pos == BOUNDS_POSITION_RIGHT; in shouldShowRoundedCorner()
744 if (i == BOUNDS_POSITION_LEFT || i == BOUNDS_POSITION_RIGHT) { in updateRoundedCornerSize()
1015 } else if (mPosition == BOUNDS_POSITION_RIGHT) { in hasCutout()
1081 } else if (mPosition == BOUNDS_POSITION_RIGHT) { in getGravity()