Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DFaceScanningProviderFactory.kt25 import android.view.DisplayCutout.BOUNDS_POSITION_TOP
198 it.add(BOUNDS_POSITION_TOP)
213 BOUNDS_POSITION_LEFT -> BOUNDS_POSITION_TOP
214 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_RIGHT
220 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_LEFT
221 BOUNDS_POSITION_RIGHT -> BOUNDS_POSITION_TOP
226 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_BOTTOM
228 else /* BOUNDS_POSITION_BOTTOM */ -> BOUNDS_POSITION_TOP
H A DRoundedCornerDecorProviderFactory.kt39 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
44 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
61 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
66 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
H A DRoundedCornerDecorProviderImpl.kt37 private val isTop = alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
107 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.TOP
113 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.LEFT
119 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.RIGHT
125 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.BOTTOM
165 val isTop = alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
H A DPrivacyDotDecorProviderFactory.kt52 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
57 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
H A DCutoutDecorProviderImpl.kt32 DisplayCutout.BOUNDS_POSITION_TOP -> R.id.display_cutout
H A DDecorProvider.kt134 DisplayCutout.BOUNDS_POSITION_TOP,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DScreenDecorationsTest.java20 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
204 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
210 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
234 BOUNDS_POSITION_TOP, in setup()
293 case BOUNDS_POSITION_TOP: in getRoundCornerIdsFromOverlayId()
491 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, false); in testNoRounding_NoCutout_PrivacyDot_NoFaceScanning()
520 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, true); in testRounding_NoCutout_NoPrivacyDot_NoFaceScanning()
550 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, true); in testRounding_NoCutout_PrivacyDot_NoFaceScanning()
694 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, false); in testNoRounding_CutoutShortEdge_PrivacyDot()
773 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, true); in testRounding_CutoutShortEdge_NoPrivacyDot()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
H A DRoundedCornerDecorProviderFactoryTest.kt71 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
76 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
122 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
127 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
H A DCutoutDecorProviderFactoryTest.kt100 sorted[DisplayCutout.BOUNDS_POSITION_TOP],
129 Assert.assertEquals(DisplayCutout.BOUNDS_POSITION_TOP, providers[0].alignedBounds[0])
196 Assert.assertEquals(DisplayCutout.BOUNDS_POSITION_TOP, it[0].alignedBounds[0])
H A DPrivacyDotDecorProviderFactoryTest.kt67 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP)
H A DOverlayWindowTest.kt58 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayPolicyTestsBase.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
109 pos = isLongEdgeCutout ? BOUNDS_POSITION_LEFT : BOUNDS_POSITION_TOP; in displayCutoutForRotation()
118 pos = isLongEdgeCutout ? BOUNDS_POSITION_TOP : BOUNDS_POSITION_RIGHT; in displayCutoutForRotation()
H A DDisplayContentTests.java36 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
834 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DScreenDecorHwcLayer.kt37 import android.view.DisplayCutout.BOUNDS_POSITION_TOP
296 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP)
307 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP)
328 BOUNDS_POSITION_TOP -> roundedCornerTopSize
H A DScreenDecorations.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
924 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos()
930 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getHeightLayoutParamByPos()
938 case BOUNDS_POSITION_TOP: in getWindowTitleByPos()
956 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity()
1144 + (mOverlays[BOUNDS_POSITION_TOP] != null) + "," in dump()
1406 } else if (mPosition == BOUNDS_POSITION_TOP) { in hasCutout()
1468 } else if (mPosition == BOUNDS_POSITION_TOP) { in getGravity()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSystemGesturesPointerEventListener.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
129 if (bounds[BOUNDS_POSITION_TOP] != null) { in onConfigurationChanged()
131 bounds[BOUNDS_POSITION_TOP].height() + mDisplayCutoutTouchableRegionSize); in onConfigurationChanged()
/aosp14/frameworks/base/core/java/android/view/
H A DDisplayCutout.java133 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout
156 BOUNDS_POSITION_TOP,
169 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds()
567 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList()
709 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop()
831 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
H A DGesturePointerEventListener.kt121 if (bounds[DisplayCutout.BOUNDS_POSITION_TOP] != null) {
125 bounds[DisplayCutout.BOUNDS_POSITION_TOP]!!.height() +