/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 57 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_top() local 61 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top() 66 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_left() local 70 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left() 75 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bottom() local 79 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom() 84 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_right() local 88 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right() 93 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bounds() local 97 assertThat(cutout.getDisplayCutout().getBoundingRectTop(), in calculateRelativeTo_bounds() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 164 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable() local 171 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout() local 173 assertEquals(99, cutout.getSafeInsetLeft()); in inset_insets_withLeftCutout() 174 assertEquals(0, cutout.getSafeInsetTop()); in inset_insets_withLeftCutout() 175 assertEquals(0, cutout.getSafeInsetRight()); in inset_insets_withLeftCutout() 176 assertEquals(0, cutout.getSafeInsetBottom()); in inset_insets_withLeftCutout() 181 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout() local 183 assertEquals(0, cutout.getSafeInsetLeft()); in inset_insets_withTopCutout() 184 assertEquals(98, cutout.getSafeInsetTop()); in inset_insets_withTopCutout() 185 assertEquals(0, cutout.getSafeInsetRight()); in inset_insets_withTopCutout() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 707 final DisplayCutout cutout = new DisplayCutout( in pathAndDisplayCutoutFromSpec() local 711 final Pair<Path, DisplayCutout> result = new Pair<>(p, cutout); in pathAndDisplayCutoutFromSpec() 744 public ParcelableWrapper(DisplayCutout cutout) { in ParcelableWrapper() argument 745 mInner = cutout; in ParcelableWrapper() 763 public static void writeCutoutToParcel(DisplayCutout cutout, Parcel out, int flags) { in writeCutoutToParcel() argument 764 if (cutout == null) { in writeCutoutToParcel() 766 } else if (cutout == NO_CUTOUT) { in writeCutoutToParcel() 770 out.writeTypedObject(cutout.mSafeInsets, flags); in writeCutoutToParcel() 771 out.writeTypedArray(cutout.mBounds.getRects(), flags); in writeCutoutToParcel() 822 public void set(ParcelableWrapper cutout) { in set() argument [all …]
|
D | InsetsState.java | 145 boolean alwaysConsumeSystemBars, DisplayCutout cutout, in calculateInsets() argument 186 alwaysConsumeSystemBars, cutout); in calculateInsets()
|
D | InsetsController.java | 180 boolean alwaysConsumeSystemBars, DisplayCutout cutout, Rect legacyContentInsets, in calculateInsets() argument 185 mLastInsets = mState.calculateInsets(mFrame, isScreenRound, alwaysConsumeSystemBars, cutout, in calculateInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarView.java | 389 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins() argument 391 return cornerCutoutMargins(cutout, display, RotationUtils.ROTATION_NONE, -1); in cornerCutoutMargins() 394 private static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins() argument 396 if (cutout == null) { in cornerCutoutMargins() 403 return new Pair<>(cutout.getSafeInsetLeft(), cutout.getSafeInsetRight()); in cornerCutoutMargins() 407 boundsFromDirection(cutout, Gravity.TOP, bounds); in cornerCutoutMargins()
|
D | HeadsUpAppearanceController.java | 225 DisplayCutout cutout = (windowInset != null) ? windowInset.getDisplayCutout() : null; in getRtlTranslation() local 228 int cutoutLeft = (cutout != null) ? cutout.getSafeInsetLeft() : 0; in getRtlTranslation() 229 int cutoutRight = (cutout != null) ? cutout.getSafeInsetRight() : 0; in getRtlTranslation()
|
D | HeadsUpManagerPhone.java | 393 DisplayCutout cutout = mStatusBarWindowView.getRootWindowInsets().getDisplayCutout(); in updateRegionForNotch() local 394 if (cutout == null) { in updateRegionForNotch() 401 ScreenDecorations.DisplayCutoutView.boundsFromDirection(cutout, Gravity.TOP, bounds); in updateRegionForNotch()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 114 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets() argument 116 final List<Rect> boundingRects = cutout.replaceSafeInsets( in computeSafeInsets() 123 final List<Rect> boundingRects = cutout.replaceSafeInsets( in computeSafeInsets() 131 " cutout=" + cutout); in computeSafeInsets()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 112 WmDisplayCutout cutout = null; in displayInfoAndCutoutForRotation() local 119 cutout = WmDisplayCutout.computeSafeInsets( in displayInfoAndCutoutForRotation() 122 info.displayCutout = cutout.getDisplayCutout(); in displayInfoAndCutoutForRotation() 126 return Pair.create(info, cutout); in displayInfoAndCutoutForRotation()
|
D | WindowFrameTests.java | 436 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout() local 442 windowFrames.setDisplayCutout(cutout); in testDisplayCutout() 463 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout_tempDisplayedBounds() local 469 windowFrames.setDisplayCutout(cutout); in testDisplayCutout_tempDisplayedBounds()
|
D | DisplayContentTests.java | 444 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot0() local 448 dc.mInitialDisplayCutout = cutout; in testDisplayCutout_rot0() 452 assertEquals(cutout, dc.getDisplayInfo().displayCutout); in testDisplayCutout_rot0() 474 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot90() local 479 dc.mInitialDisplayCutout = cutout; in testDisplayCutout_rot90()
|
D | WindowStateTests.java | 459 final DisplayCutout cutout = new DisplayCutout( in testDisplayCutoutIsCalculatedRelativeToFrame() local 465 wf.setDisplayCutout(new WmDisplayCutout(cutout, new Size(200, 400))); in testDisplayCutoutIsCalculatedRelativeToFrame() 468 assertThat(app.getWmDisplayCutout().getDisplayCutout(), is(cutout.inset(7, 10, 5, 20))); in testDisplayCutoutIsCalculatedRelativeToFrame()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/ |
D | ExpandedAnimationController.java | 534 DisplayCutout cutout = insets.getDisplayCutout(); in getAvailableScreenWidth() local 535 if (cutout != null) { in getAvailableScreenWidth() 536 cutoutLeft = cutout.getSafeInsetLeft(); in getAvailableScreenWidth() 537 cutoutRight = cutout.getSafeInsetRight(); in getAvailableScreenWidth()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 170 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith() argument 171 return new WindowInsets(content.toRect(), null, false, false, cutout); in insetsWith()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetail.java | 151 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets() local 153 cutout, getDisplay()); in onApplyWindowInsets()
|
D | QuickStatusBarHeader.java | 400 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets() local 402 cutout, getDisplay()); in onApplyWindowInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleStackView.java | 439 DisplayCutout cutout = insets.getDisplayCutout(); in BubbleStackView() 440 if (cutout != null) { in BubbleStackView() 441 cutoutLeft = cutout.getSafeInsetLeft(); in BubbleStackView() 442 cutoutRight = cutout.getSafeInsetRight(); in BubbleStackView()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Session.java | 189 DisplayCutout.ParcelableWrapper cutout, MergedConfiguration mergedConfiguration, in relayout() argument 197 outStableInsets, outsets, outBackdropFrame, cutout, in relayout()
|
D | TaskStack.java | 433 final DisplayCutout cutout = mDisplayContent.getDisplayInfo().displayCutout; in calculateDockedBoundsForConfigChange() local 434 snapDockedStackAfterRotation(parentConfig, cutout, inOutBounds); in calculateDockedBoundsForConfigChange()
|
D | DisplayContent.java | 1656 DisplayCutout cutout, int rotation) { in calculateDisplayCutoutForRotationUncached() argument 1657 if (cutout == null || cutout == DisplayCutout.NO_CUTOUT) { in calculateDisplayCutoutForRotationUncached() 1662 cutout, mInitialDisplayWidth, mInitialDisplayHeight); in calculateDisplayCutoutForRotationUncached() 1667 cutout, mInitialDisplayWidth, mInitialDisplayHeight) in calculateDisplayCutoutForRotationUncached()
|
D | ActivityRecord.java | 3886 final DisplayCutout cutout = display.calculateDisplayCutoutForRotation(rotation) in CompatDisplayInsets() local 3888 policy.getNonDecorInsetsLw(rotation, dw, dh, cutout, mNonDecorInsets[rotation]); in CompatDisplayInsets()
|
/frameworks/base/core/proto/android/server/ |
D | windowmanagerservice.proto | 302 optional .android.view.DisplayCutoutProto cutout = 33 [deprecated=true]; field 389 optional .android.view.DisplayCutoutProto cutout = 10; field
|