Searched refs:BOUNDS_POSITION_TOP (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | DisplayRotationUtilTest.java | 22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 55 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_0), in testGetBoundIndexFromRotation_rot0() 56 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot0() 67 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_90), in testGetBoundIndexFromRotation_rot90() 70 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot90() 79 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_180), in testGetBoundIndexFromRotation_rot180() 84 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot180() 90 equalTo(BOUNDS_POSITION_TOP)); in testGetBoundIndexFromRotation_rot270() 91 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_270), in testGetBoundIndexFromRotation_rot270()
|
D | WmDisplayCutoutTest.java | 22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 59 fromBoundingRect(0, 0, 100, 20, BOUNDS_POSITION_TOP), 200, 400) in calculateRelativeTo_top() 95 fromBoundingRect(0, 0, 100, 20, BOUNDS_POSITION_TOP), 200, 400) in calculateRelativeTo_bounds() 105 fromBoundingRect(80, 0, 120, 20, BOUNDS_POSITION_TOP), 200, 400); in computeSafeInsets_cutoutTop() 137 fromBoundingRect(0, 0, 20, 20, BOUNDS_POSITION_TOP), 200, 400); in computeSafeInsets_topLeftCornerCutout_portrait() 145 fromBoundingRect(180, 0, 200, 20, BOUNDS_POSITION_TOP), 200, 400); in computeSafeInsets_topRightCornerCutout_portrait()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 21 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 181 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_NoCutout() 237 mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].findViewById(R.id.left); in testRoundingTopBottomRadius_OnTopBottomOverlay() 239 mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].findViewById(R.id.right); in testRoundingTopBottomRadius_OnTopBottomOverlay() 309 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRoundingMultipleRadius_NoCutout() 353 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testNoRounding_CutoutShortEdge() 393 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in testNoRounding_CutoutLongEdge() 421 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_CutoutShortEdge() 459 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in testRounding_CutoutLongEdge() 487 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_CutoutShortAndLongEdge() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ScreenDecorations.java | 22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 453 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos() 459 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getHeightLayoutParamByPos() 467 case BOUNDS_POSITION_TOP: in getWindowTitleByPos() 481 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity() 638 case BOUNDS_POSITION_TOP: in getRoundedCornerGravity() 679 final int rotatedTop = getBoundPositionFromRotation(BOUNDS_POSITION_TOP, mRotation); in shouldShowRoundedCorner() 683 return pos == BOUNDS_POSITION_TOP || pos == BOUNDS_POSITION_BOTTOM; in shouldShowRoundedCorner() 752 } else if (i == BOUNDS_POSITION_TOP) { in updateRoundedCornerSize() 1011 } else if (mPosition == BOUNDS_POSITION_TOP) { in hasCutout() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 23 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 149 pos = isLongEdgeCutout ? BOUNDS_POSITION_LEFT : BOUNDS_POSITION_TOP; in displayCutoutForRotation() 158 pos = isLongEdgeCutout ? BOUNDS_POSITION_TOP : BOUNDS_POSITION_RIGHT; in displayCutoutForRotation()
|
D | WindowFrameTests.java | 22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 427 fromBoundingRect(500, 0, 550, 50, BOUNDS_POSITION_TOP), in testDisplayCutout()
|
D | DisplayContentTests.java | 32 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 581 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0() 616 fromBoundingRect(r1.left, r1.top, r1.right, r1.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot90()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 114 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout 137 BOUNDS_POSITION_TOP, 150 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds() 368 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList() 506 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop() 565 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()
|