Searched refs:BOUNDS_POSITION_TOP (Results 1 – 7 of 7) 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; 57 fromBoundingRect(80, 0, 120, 20, BOUNDS_POSITION_TOP), 200, 400); in computeSafeInsets_cutoutTop() 89 fromBoundingRect(0, 0, 20, 20, BOUNDS_POSITION_TOP), 200, 400); in computeSafeInsets_topLeftCornerCutout_portrait() 97 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; 192 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_NoCutout() 249 mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].findViewById(R.id.left); in testRoundingTopBottomRadius_OnTopBottomOverlay() 251 mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].findViewById(R.id.right); in testRoundingTopBottomRadius_OnTopBottomOverlay() 329 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRoundingMultipleRadius_NoCutout() 373 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testNoRounding_CutoutShortEdge() 413 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in testNoRounding_CutoutLongEdge() 441 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_CutoutShortEdge() 479 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in testRounding_CutoutLongEdge() 507 .addView(eq(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]), any()); in testRounding_CutoutShortAndLongEdge() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 23 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 152 pos = isLongEdgeCutout ? BOUNDS_POSITION_LEFT : BOUNDS_POSITION_TOP; in displayCutoutForRotation() 161 pos = isLongEdgeCutout ? BOUNDS_POSITION_TOP : BOUNDS_POSITION_RIGHT; in displayCutoutForRotation()
|
D | DisplayContentTests.java | 32 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 720 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ScreenDecorations.java | 22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP; 449 case BOUNDS_POSITION_TOP: in overlayForPosition() 513 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos() 519 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getHeightLayoutParamByPos() 527 case BOUNDS_POSITION_TOP: in getWindowTitleByPos() 541 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity() 729 case BOUNDS_POSITION_TOP: in getRoundedCornerGravity() 785 final int rotatedTop = getBoundPositionFromRotation(BOUNDS_POSITION_TOP, mRotation); in shouldShowRoundedCorner() 789 return pos == BOUNDS_POSITION_TOP || pos == BOUNDS_POSITION_BOTTOM; in shouldShowRoundedCorner() 866 } else if (i == BOUNDS_POSITION_TOP) { in updateRoundedCornerSize() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 125 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout 148 BOUNDS_POSITION_TOP, 161 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds() 501 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList() 639 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop() 760 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()
|