Searched refs:BOUNDS_POSITION_RIGHT (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | DisplayRotationUtilTest.java | 21 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()
|
D | WmDisplayCutoutTest.java | 21 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/ |
D | ScreenDecorationsTest.java | 20 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/ |
D | DisplayPolicyTestsBase.java | 22 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/ |
D | DisplayCutout.java | 120 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/ |
D | ScreenDecorations.java | 21 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()
|