Home
last modified time | relevance | path

Searched refs:BOUNDS_POSITION_TOP (Results 1 – 8 of 8) sorted by relevance

/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DDisplayRotationUtilTest.java22 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()
H A DWmDisplayCutoutTest.java22 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DScreenDecorationsTest.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
229 assertNotNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in verifyOverlaysExistAndAdded()
233 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in verifyOverlaysExistAndAdded()
287 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.GONE); in testNoRounding_NoCutout_PrivacyDot()
316 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.VISIBLE); in testRounding_NoCutout_NoPrivacyDot()
344 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.VISIBLE); in testRounding_NoCutout_PrivacyDot()
459 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.VISIBLE); in testRoundingMultipleRadius_NoCutout_NoPrivacyDot()
493 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.VISIBLE); in testRoundingMultipleRadius_NoCutout_PrivacyDot()
553 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.GONE); in testNoRounding_CutoutShortEdge_PrivacyDot()
833 verifyRoundedCornerViewsVisibility(BOUNDS_POSITION_TOP, View.GONE); in testDelayedCutout_PrivacyDot()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DScreenDecorations.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
464 final int layoutId = (pos == BOUNDS_POSITION_LEFT || pos == BOUNDS_POSITION_TOP) in overlayForPosition()
487 case BOUNDS_POSITION_TOP: { in initPrivacyDotView()
554 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos()
568 case BOUNDS_POSITION_TOP: in getWindowTitleByPos()
582 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity()
847 case BOUNDS_POSITION_TOP: in getRoundedCornerGravity()
903 return pos == BOUNDS_POSITION_TOP || pos == BOUNDS_POSITION_BOTTOM; in isDefaultShownOverlayPos()
1006 case BOUNDS_POSITION_TOP: in isTopRoundedCorner()
1313 } else if (mPosition == BOUNDS_POSITION_TOP) { in hasCutout()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayPolicyTestsBase.java23 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
150 pos = isLongEdgeCutout ? BOUNDS_POSITION_LEFT : BOUNDS_POSITION_TOP; in displayCutoutForRotation()
159 pos = isLongEdgeCutout ? BOUNDS_POSITION_TOP : BOUNDS_POSITION_RIGHT; in displayCutoutForRotation()
H A DDisplayContentTests.java33 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
732 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DSystemGesturesPointerEventListener.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
118 if (bounds[BOUNDS_POSITION_TOP] != null) { in onConfigurationChanged()
120 bounds[BOUNDS_POSITION_TOP].height() + mDisplayCutoutTouchableRegionSize); in onConfigurationChanged()
/aosp12/frameworks/base/core/java/android/view/
H A DDisplayCutout.java127 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout
150 BOUNDS_POSITION_TOP,
163 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds()
503 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList()
641 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop()
762 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()