Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DFaceScanningProviderFactory.kt25 import android.view.DisplayCutout.BOUNDS_POSITION_TOP in <lambda>()
198 it.add(BOUNDS_POSITION_TOP) in DisplayCutout()
213 BOUNDS_POSITION_LEFT -> BOUNDS_POSITION_TOP in baseOnRotation0()
214 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_RIGHT in baseOnRotation0()
220 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_LEFT in baseOnRotation0()
221 BOUNDS_POSITION_RIGHT -> BOUNDS_POSITION_TOP in baseOnRotation0()
226 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_BOTTOM in baseOnRotation0()
228 else /* BOUNDS_POSITION_BOTTOM */ -> BOUNDS_POSITION_TOP in baseOnRotation0()
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,
DRoundedCornerDecorProviderImpl.kt37 private val isTop = alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
107 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.TOP in toLayoutGravity()
113 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.LEFT in toLayoutGravity()
119 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.RIGHT in toLayoutGravity()
125 DisplayCutout.BOUNDS_POSITION_TOP -> Gravity.BOTTOM in toLayoutGravity()
165 val isTop = alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in adjustRotation()
DPrivacyDotDecorProviderFactory.kt52 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
57 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP,
DCutoutDecorProviderImpl.kt32 DisplayCutout.BOUNDS_POSITION_TOP -> R.id.display_cutout in <lambda>()
DDecorProvider.kt134 DisplayCutout.BOUNDS_POSITION_TOP, in getProperBound()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java20 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
210 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
216 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
240 BOUNDS_POSITION_TOP, in setup()
299 case BOUNDS_POSITION_TOP: in getRoundCornerIdsFromOverlayId()
332 final View overlay = mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].getRootView(); in verifyFaceScanningViewExists()
428 final OverlayWindow overlay = mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]; in verifyOverlaysExistAndAdded()
436 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in verifyOverlaysExistAndAdded()
497 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, false); in testNoRounding_NoCutout_PrivacyDot_NoFaceScanning()
526 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, true); in testRounding_NoCutout_NoPrivacyDot_NoFaceScanning()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DRoundedCornerDecorProviderFactoryTest.kt71 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
76 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
122 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
127 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in <lambda>()
DPrivacyDotDecorProviderFactoryTest.kt67 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
DCutoutDecorProviderFactoryTest.kt100 sorted[DisplayCutout.BOUNDS_POSITION_TOP], in <lambda>()
129 Assert.assertEquals(DisplayCutout.BOUNDS_POSITION_TOP, providers[0].alignedBounds[0]) in <lambda>()
196 Assert.assertEquals(DisplayCutout.BOUNDS_POSITION_TOP, it[0].alignedBounds[0]) in <lambda>()
DOverlayWindowTest.kt58 alignedBound1 = DisplayCutout.BOUNDS_POSITION_TOP, in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
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()
DDisplayContentTests.java34 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
814 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java20 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
579 final int[] sideOverrides = new int[] {BOUNDS_POSITION_TOP, BOUNDS_POSITION_BOTTOM, in testGetRotatedCutoutWithOverride_top_rot0()
580 BOUNDS_POSITION_BOTTOM, BOUNDS_POSITION_TOP}; in testGetRotatedCutoutWithOverride_top_rot0()
594 final int[] sideOverrides = new int[] {BOUNDS_POSITION_TOP, BOUNDS_POSITION_BOTTOM, in testGetRotatedCutoutWithOverride_top_rot90()
595 BOUNDS_POSITION_BOTTOM, BOUNDS_POSITION_TOP}; in testGetRotatedCutoutWithOverride_top_rot90()
609 final int[] sideOverrides = new int[] {BOUNDS_POSITION_TOP, BOUNDS_POSITION_BOTTOM, in testGetRotatedCutoutWithOverride_top_rot180()
610 BOUNDS_POSITION_BOTTOM, BOUNDS_POSITION_TOP}; in testGetRotatedCutoutWithOverride_top_rot180()
625 final int[] sideOverrides = new int[] {BOUNDS_POSITION_TOP, BOUNDS_POSITION_BOTTOM, in testGetRotatedCutoutWithOverride_top_rot270()
626 BOUNDS_POSITION_BOTTOM, BOUNDS_POSITION_TOP}; in testGetRotatedCutoutWithOverride_top_rot270()
640 final int[] sideOverrides = new int[] {BOUNDS_POSITION_TOP, BOUNDS_POSITION_BOTTOM, in testGetRotatedCutoutWithOverride_top_rot90to180()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorHwcLayer.kt37 import android.view.DisplayCutout.BOUNDS_POSITION_TOP in <lambda>()
296 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP) in <lambda>()
307 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP) in <lambda>()
328 BOUNDS_POSITION_TOP -> roundedCornerTopSize in <lambda>()
DScreenDecorations.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
937 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos()
943 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getHeightLayoutParamByPos()
951 case BOUNDS_POSITION_TOP: in getWindowTitleByPos()
969 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity()
1169 + (mOverlays[BOUNDS_POSITION_TOP] != null) + "," in dump()
1454 } else if (mPosition == BOUNDS_POSITION_TOP) { in hasCutout()
1516 } else if (mPosition == BOUNDS_POSITION_TOP) { in getGravity()
/frameworks/base/core/java/android/view/
DDisplayCutout.java140 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout
175 BOUNDS_POSITION_TOP,
188 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds()
619 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList()
761 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop()
901 case BOUNDS_POSITION_TOP: in sideOverridesToString()
924 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()
1283 new Bounds(bounds[BOUNDS_POSITION_LEFT], bounds[BOUNDS_POSITION_TOP],
1399 displayW, displayH, bounds[BOUNDS_POSITION_TOP], Gravity.TOP));
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
130 if (bounds[BOUNDS_POSITION_TOP] != null) { in onConfigurationChanged()
132 bounds[BOUNDS_POSITION_TOP].height() + mDisplayCutoutTouchableRegionSize); in onConfigurationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/
DGesturePointerEventListener.kt121 if (bounds[DisplayCutout.BOUNDS_POSITION_TOP] != null) { in <lambda>()
125 bounds[DisplayCutout.BOUNDS_POSITION_TOP]!!.height() + in <lambda>()