Home
last modified time | relevance | path

Searched refs:displayCutout (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java77 mBounds.set(mInfo.displayCutout.getBoundingRectTop()); in update()
90 final DisplayCutout displayCutout = mInfo.displayCutout; in hasCutout() local
91 if (displayCutout == null) { in hasCutout()
95 return displayCutout.getSafeInsetLeft() > 0 in hasCutout()
96 || displayCutout.getSafeInsetTop() > 0; in hasCutout()
98 return displayCutout.getSafeInsetRight() > 0 in hasCutout()
99 || displayCutout.getSafeInsetBottom() > 0; in hasCutout()
114 public static void boundsFromDirection(DisplayCutout displayCutout, int gravity, Rect out) { in boundsFromDirection() argument
115 Region bounds = new Region(displayCutout.getBoundingRectTop()); in boundsFromDirection()
118 bounds.op(0, 0, Integer.MAX_VALUE, displayCutout.getSafeInsetTop(), in boundsFromDirection()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java20 import static android.view.WindowInsets.Type.displayCutout;
40 private static final int ID_DISPLAY_CUTOUT_LEFT = createId(null, 0, displayCutout());
41 private static final int ID_DISPLAY_CUTOUT_TOP = createId(null, 1, displayCutout());
42 private static final int ID_DISPLAY_CUTOUT_RIGHT = createId(null, 2, displayCutout());
43 private static final int ID_DISPLAY_CUTOUT_BOTTOM = createId(null, 3, displayCutout());
80 public boolean update(int rotation, int w, int h, @NonNull DisplayCutout displayCutout, in update() argument
87 && mInsetsState.getDisplayCutout().equals(displayCutout) in update()
98 state.setDisplayCutout(displayCutout); in update()
104 state.getOrCreateSource(ID_DISPLAY_CUTOUT_LEFT, displayCutout()) in update()
111 state.getOrCreateSource(ID_DISPLAY_CUTOUT_TOP, displayCutout()) in update()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationInsetsImpl.java44 @Nullable DisplayCutout displayCutout) { in getinsets() argument
49 if (displayCutout != null) { in getinsets()
50 leftInset = displayCutout.getSafeInsetLeft(); in getinsets()
51 rightInset = displayCutout.getSafeInsetRight(); in getinsets()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/
DScreenDecorProvider.kt21 import androidx.compose.foundation.layout.displayCutout
44 displayCutout: StateFlow<DisplayCutout>, in ScreenDecorProvider()
48 val cutout by displayCutout.collectAsStateWithLifecycle() in ScreenDecorProvider()
55 val displayCutoutHeight = WindowInsets.displayCutout.asPaddingValues().calculateTopPadding() in ScreenDecorProvider()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDisplayCutoutBaseView.kt101 displayInfo.displayCutout == info.displayCutout && in <lambda>()
150 return displayInfo.displayCutout != null && visibility == VISIBLE && shouldDrawCutout in <lambda>()
154 displayInfo.displayCutout ?: return null in <lambda>()
156 val cutoutBounds: Region = rectsToRegion(displayInfo.displayCutout?.boundingRects) in <lambda>()
175 displayInfo.displayCutout?.cutoutPath?.let { path -> cutoutPath.set(path) } in <lambda>()
181 displayInfo.displayCutout?.cutoutPath ?: return in <lambda>()
285 displayInfo.displayCutout?.let { in <lambda>()
DScreenDecorations.java493 mDisplayCutout = mDisplayInfo.displayCutout; in startOnScreenDecorationsThread()
1194 final DisplayCutout newCutout = mDisplayInfo.displayCutout; in updateConfiguration()
1407 mBounds.addAll(displayInfo.displayCutout.getBoundingRects()); in updateCutout()
1426 final Path path = displayInfo.displayCutout.getCutoutPath(); in updateBoundingPath()
1438 int newGravity = getGravity(displayInfo.displayCutout); in updateGravity()
1447 final DisplayCutout displayCutout = displayInfo.displayCutout; in hasCutout() local
1448 if (displayCutout == null) { in hasCutout()
1453 return !displayCutout.getBoundingRectLeft().isEmpty(); in hasCutout()
1455 return !displayCutout.getBoundingRectTop().isEmpty(); in hasCutout()
1457 return !displayCutout.getBoundingRectBottom().isEmpty(); in hasCutout()
[all …]
DSysUICutoutProvider.kt48 val displayCutout: DisplayCutout = display.cutout ?: return null in cutoutInfoForCurrentDisplayAndRotation() constant
49 return SysUICutoutInformation(displayCutout, getCameraProtectionForDisplay(display)) in cutoutInfoForCurrentDisplayAndRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/
DWindowRootView.kt91 val displayCutout = rootWindowInsets.displayCutout in onApplyWindowInsets() constant
93 layoutInsetsController.getinsets(windowInsets, displayCutout) in onApplyWindowInsets()
138 displayCutout: DisplayCutout?, in getinsets()
DSceneWindowRootViewBinder.kt149 displayCutout = displayCutoutFromWindowInsets(scope, context, windowInsets), in <lambda>()
172 val boundingRect = it?.displayCutout?.boundingRectTop in <lambda>()
185 val viewDisplayCutout = it?.displayCutout in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DWindowLayoutTests.java20 import static android.view.WindowInsets.Type.displayCutout;
118 mState.getOrCreateSource(InsetsSource.createId(null, 0, displayCutout()), displayCutout()) in addDisplayCutout()
120 mState.getOrCreateSource(InsetsSource.createId(null, 1, displayCutout()), displayCutout()) in addDisplayCutout()
122 mState.getOrCreateSource(InsetsSource.createId(null, 2, displayCutout()), displayCutout()) in addDisplayCutout()
124 mState.getOrCreateSource(InsetsSource.createId(null, 3, displayCutout()), displayCutout()) in addDisplayCutout()
305 mAttrs.setFitInsetsTypes(WindowInsets.Type.displayCutout()); in fitDisplayCutout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/
DStatusBarWindowView.java58 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets() local
59 if (displayCutout != null) { in onApplyWindowInsets()
60 mTopInset = displayCutout.getWaterfallInsets().top; in onApplyWindowInsets()
DStatusBarWindowController.java260 final DisplayCutout displayCutout = mContext.getDisplay().getCutout();
262 .getBoundingRectForPrivacyChipForRotation(ROTATION_NONE, displayCutout);
264 .getBoundingRectForPrivacyChipForRotation(ROTATION_LANDSCAPE, displayCutout);
266 .getBoundingRectForPrivacyChipForRotation(ROTATION_UPSIDE_DOWN, displayCutout);
268 .getBoundingRectForPrivacyChipForRotation(ROTATION_SEASCAPE, displayCutout);
/frameworks/base/core/java/android/window/
DWindowMetricsHelper.java19 import static android.view.WindowInsets.Type.displayCutout;
46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt161 displayCutout: DisplayCutout? in <lambda>()
163 val key = getCacheKey(rotation, displayCutout) in <lambda>()
189 val displayCutout = sysUICutout?.cutout in <lambda>() constant
190 val key = getCacheKey(rotation, displayCutout) in <lambda>()
231 val displayCutout = sysUICutout?.cutout in <lambda>() constant
232 val key = getCacheKey(rotation, displayCutout) in <lambda>()
363 private fun getCacheKey(@Rotation rotation: Int, displayCutout: DisplayCutout?): CacheKey = in <lambda>()
367 displayCutout = displayCutout in <lambda>()
373 val displayCutout: DisplayCutout? in <lambda>() constant in com.android.systemui.statusbar.phone.StatusBarContentInsetsProvider.CacheKey
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewLayerControllerTest.java19 import static android.view.WindowInsets.Type.displayCutout;
107 .setVisible(systemBars() | displayCutout(), true) in stubDisplayInsets()
108 .setInsets(systemBars() | displayCutout(), in stubDisplayInsets()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java373 public DisplayCutout displayCutout; field in DisplayDeviceInfo
525 || !Objects.equals(displayCutout, other.displayCutout) in diff()
571 displayCutout = other.displayCutout; in copyFrom()
612 if (displayCutout != null) { in toString()
613 sb.append(", cutout ").append(displayCutout); in toString()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java190 mCutout = info.displayCutout; in init()
361 int displayHeight, DisplayCutout displayCutout, InsetsState insetsState, int uiMode, in computeNonDecorInsets() argument
383 if (displayCutout != null) { in computeNonDecorInsets()
384 outInsets.left += displayCutout.getSafeInsetLeft(); in computeNonDecorInsets()
385 outInsets.top += displayCutout.getSafeInsetTop(); in computeNonDecorInsets()
386 outInsets.right += displayCutout.getSafeInsetRight(); in computeNonDecorInsets()
387 outInsets.bottom += displayCutout.getSafeInsetBottom(); in computeNonDecorInsets()
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
DWindowInsetsTestsMainActivity.java19 import static android.view.WindowInsets.Type.displayCutout;
39 final Insets i = insets.getInsets(systemBars() | displayCutout()); in onCreate()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DDisplayInfoOverrides.java45 out.displayCutout = source.displayCutout;
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DOverlayShade.kt31 import androidx.compose.foundation.layout.displayCutout
150 val displayCutout = WindowInsets.displayCutout in panelPadding() constant
157 displayCutout.asPaddingValues(), in panelPadding()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/blueprint/
DBurnInState.kt20 import androidx.compose.foundation.layout.displayCutout
70 val topInset = WindowInsets.systemBars.union(WindowInsets.displayCutout).getTop(density) in rememberBurnInParameters()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowMetricsHelperTest.java19 import static android.view.WindowInsets.Type.displayCutout;
95 navigationBars() | displayCutout())); in testGetBoundsExcludingNavigationBarAndCutout()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowConfigurationTests.java195 final int expectedLeft = info.displayCutout != null in testAppBounds_RootConfigurationBounds()
196 ? info.displayCutout.getSafeInsetLeft() : 0; in testAppBounds_RootConfigurationBounds()
197 final int expectedTop = info.displayCutout != null in testAppBounds_RootConfigurationBounds()
198 ? info.displayCutout.getSafeInsetTop() : 0; in testAppBounds_RootConfigurationBounds()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DCutoutDecorProviderFactoryTest.kt63 displayCutout: DisplayCutout? = null, in <lambda>()
69 info.displayCutout = displayCutout in <lambda>()
/frameworks/base/core/java/android/view/
DDisplayInfo.java168 public DisplayCutout displayCutout; field in DisplayInfo
431 && Objects.equals(displayCutout, other.displayCutout) in equals()
491 displayCutout = other.displayCutout; in copyFrom()
546 displayCutout = DisplayCutout.ParcelableWrapper.readCutoutFromParcel(source); in readFromParcel()
618 DisplayCutout.ParcelableWrapper.writeCutoutToParcel(displayCutout, dest, flags); in writeToParcel()
964 if (displayCutout != null) { in dumpDebug()
965 displayCutout.dumpDebug(protoOutputStream, CUTOUT); in dumpDebug()

1234