Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DFaceScanningProviderFactory.kt25 import android.view.DisplayCutout.BOUNDS_POSITION_TOP in <lambda>()
191 it.add(BOUNDS_POSITION_TOP) in DisplayCutout()
206 BOUNDS_POSITION_LEFT -> BOUNDS_POSITION_TOP in baseOnRotation0()
207 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_RIGHT in baseOnRotation0()
213 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_LEFT in baseOnRotation0()
214 BOUNDS_POSITION_RIGHT -> BOUNDS_POSITION_TOP in baseOnRotation0()
219 BOUNDS_POSITION_TOP -> BOUNDS_POSITION_BOTTOM in baseOnRotation0()
221 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;
201 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
207 DisplayCutout.BOUNDS_POSITION_TOP, in setup()
229 BOUNDS_POSITION_TOP, in setup()
291 case BOUNDS_POSITION_TOP: in getRoundCornerIdsFromOverlayId()
324 final View overlay = mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP].getRootView(); in verifyFaceScanningViewExists()
420 final OverlayWindow overlay = mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]; in verifyOverlaysExistAndAdded()
428 assertNull(mScreenDecorations.mOverlays[BOUNDS_POSITION_TOP]); in verifyOverlaysExistAndAdded()
491 verifyRoundedCornerViewsExist(BOUNDS_POSITION_TOP, false); in testNoRounding_NoCutout_PrivacyDot_NoFaceScanning()
522 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>()
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>()
DPrivacyDotDecorProviderFactoryTest.kt67 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
72 and it.alignedBounds.contains(DisplayCutout.BOUNDS_POSITION_TOP) in testGet4CornerDecorProvidersWithPrivacyDot()
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.java35 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
825 fromBoundingRect(r.left, r.top, r.right, r.bottom, BOUNDS_POSITION_TOP), null) in testDisplayCutout_rot0()
/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>()
265 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP) in <lambda>()
276 transparentRect.top = getRoundedCornerSizeByPosition(BOUNDS_POSITION_TOP) in <lambda>()
297 BOUNDS_POSITION_TOP -> roundedCornerTopSize in <lambda>()
DScreenDecorations.java21 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
857 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getWidthLayoutParamByPos()
863 return rotatedPos == BOUNDS_POSITION_TOP || rotatedPos == BOUNDS_POSITION_BOTTOM in getHeightLayoutParamByPos()
871 case BOUNDS_POSITION_TOP: in getWindowTitleByPos()
896 case BOUNDS_POSITION_TOP: in getOverlayWindowGravity()
1042 + (mOverlays[BOUNDS_POSITION_TOP] != null) + "," in dump()
1317 } else if (mPosition == BOUNDS_POSITION_TOP) { in hasCutout()
1379 } else if (mPosition == BOUNDS_POSITION_TOP) { in getGravity()
/frameworks/base/services/core/java/com/android/server/wm/
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()
/frameworks/base/core/java/android/view/
DDisplayCutout.java132 public static final int BOUNDS_POSITION_TOP = 1; field in DisplayCutout
155 BOUNDS_POSITION_TOP,
168 mRects[BOUNDS_POSITION_TOP] = getCopyOrRef(top, copyArguments); in Bounds()
566 sortedBounds[BOUNDS_POSITION_TOP] = bound; in extractBoundsFromList()
708 return mBounds.getRect(BOUNDS_POSITION_TOP); in getBoundingRectTop()
830 mBounds.getRect(BOUNDS_POSITION_TOP).dumpDebug(proto, BOUND_TOP); in dumpDebug()