Searched refs:WmDisplayCutout (Results 1 – 15 of 15) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 57 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_top() 66 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_left() 75 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bottom() 84 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_right() 93 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bounds() 103 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_top() 111 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_left() 119 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_bottom() 127 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_right() 135 DisplayCutout cutout = WmDisplayCutout.computeSafeInsets(mCutoutTop, 1000, in computeSafeInsets_bounds() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 31 public class WmDisplayCutout { class 33 public static final WmDisplayCutout NO_CUTOUT = new WmDisplayCutout(DisplayCutout.NO_CUTOUT, 39 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout() method in WmDisplayCutout 44 public static WmDisplayCutout computeSafeInsets(DisplayCutout inner, in computeSafeInsets() 52 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets() 61 public WmDisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) { in inset() 72 return new WmDisplayCutout(newInner, frame); in inset() 83 public WmDisplayCutout calculateRelativeTo(Rect frame) { in calculateRelativeTo() 110 public WmDisplayCutout computeSafeInsets(int width, int height) { in computeSafeInsets() 174 if (!(o instanceof WmDisplayCutout)) { in equals() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayFrames.java | 30 import com.android.server.wm.utils.WmDisplayCutout; 102 @NonNull public WmDisplayCutout mDisplayCutout = WmDisplayCutout.NO_CUTOUT; 105 @NonNull public WmDisplayCutout mDisplayInfoCutout = WmDisplayCutout.NO_CUTOUT; 119 public DisplayFrames(int displayId, DisplayInfo info, WmDisplayCutout displayCutout) { in DisplayFrames() 124 public void onDisplayInfoUpdated(DisplayInfo info, WmDisplayCutout displayCutout) { in onDisplayInfoUpdated() 130 mDisplayInfoCutout = displayCutout != null ? displayCutout : WmDisplayCutout.NO_CUTOUT; in onDisplayInfoUpdated()
|
D | WindowFrames.java | 41 import com.android.server.wm.utils.WmDisplayCutout; 141 WmDisplayCutout mDisplayCutout = WmDisplayCutout.NO_CUTOUT; 146 private WmDisplayCutout mLastDisplayCutout = WmDisplayCutout.NO_CUTOUT; 228 public void setDisplayCutout(WmDisplayCutout displayCutout) { in setDisplayCutout() 268 mDisplayCutout = WmDisplayCutout.NO_CUTOUT; in calculateDockedDividerInsets()
|
D | DisplayContent.java | 211 import com.android.server.wm.utils.WmDisplayCutout; 304 private final RotationCache<DisplayCutout, WmDisplayCutout> mDisplayCutoutCache 1604 final WmDisplayCutout wmDisplayCutout = calculateDisplayCutoutForRotation(mRotation); in updateDisplayAndOrientation() 1651 WmDisplayCutout calculateDisplayCutoutForRotation(int rotation) { in calculateDisplayCutoutForRotation() 1655 private WmDisplayCutout calculateDisplayCutoutForRotationUncached( in calculateDisplayCutoutForRotationUncached() 1658 return WmDisplayCutout.NO_CUTOUT; in calculateDisplayCutoutForRotationUncached() 1661 return WmDisplayCutout.computeSafeInsets( in calculateDisplayCutoutForRotationUncached() 1666 WmDisplayCutout.computeSafeInsets( in calculateDisplayCutoutForRotationUncached() 1670 return WmDisplayCutout.computeSafeInsets(DisplayCutout.fromBounds(newBounds), in calculateDisplayCutoutForRotationUncached()
|
D | WindowState.java | 211 import com.android.server.wm.utils.WmDisplayCutout; 1089 final WmDisplayCutout c = mWindowFrames.mDisplayCutout.calculateRelativeTo( in computeFrameLw() 1186 WmDisplayCutout getWmDisplayCutout() { in getWmDisplayCutout()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 52 import com.android.server.wm.utils.WmDisplayCutout; 109 static Pair<DisplayInfo, WmDisplayCutout> displayInfoAndCutoutForRotation(int rotation, in displayInfoAndCutoutForRotation() 112 WmDisplayCutout cutout = null; in displayInfoAndCutoutForRotation() 119 cutout = WmDisplayCutout.computeSafeInsets( in displayInfoAndCutoutForRotation()
|
D | WindowFrameTests.java | 42 import com.android.server.wm.utils.WmDisplayCutout; 436 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout() 463 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout_tempDisplayedBounds()
|
D | DisplayContentTests.java | 89 import com.android.server.wm.utils.WmDisplayCutout; 444 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot0() 474 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot90() 492 assertEquals(new WmDisplayCutout( in testDisplayCutout_rot90()
|
D | TaskRecordTests.java | 64 import com.android.server.wm.utils.WmDisplayCutout; 393 doReturn(mock(WmDisplayCutout.class)).when(displayContent) in testComputeConfigResourceOverrides()
|
D | WindowStateTests.java | 73 import com.android.server.wm.utils.WmDisplayCutout; 465 wf.setDisplayCutout(new WmDisplayCutout(cutout, new Size(200, 400))); in testDisplayCutoutIsCalculatedRelativeToFrame()
|
D | DisplayPolicyLayoutTests.java | 62 import com.android.server.wm.utils.WmDisplayCutout; 105 final Pair<DisplayInfo, WmDisplayCutout> info = displayInfoAndCutoutForRotation(mRotation, in updateDisplayFrames()
|
D | ActivityRecordTests.java | 76 import com.android.server.wm.utils.WmDisplayCutout; 638 doReturn(mock(WmDisplayCutout.class)).when(displayContent) in setupDisplayContentForCompatDisplayInsets()
|
D | DisplayRotationTests.java | 66 import com.android.server.wm.utils.WmDisplayCutout; 786 .thenReturn(WmDisplayCutout.NO_CUTOUT); in build()
|
/frameworks/base/services/ |
D | art-profile | 15835 …/DisplayContent;->calculateDisplayCutoutForRotation(I)Lcom/android/server/wm/utils/WmDisplayCutout; 15836 …toutForRotationUncached(Landroid/view/DisplayCutout;I)Lcom/android/server/wm/utils/WmDisplayCutout; 15993 …m/DisplayFrames;-><init>(ILandroid/view/DisplayInfo;Lcom/android/server/wm/utils/WmDisplayCutout;)V 15997 …es;->onDisplayInfoUpdated(Landroid/view/DisplayInfo;Lcom/android/server/wm/utils/WmDisplayCutout;)V 17311 …m/android/server/wm/WindowFrames;->setDisplayCutout(Lcom/android/server/wm/utils/WmDisplayCutout;)V 17749 …m/android/server/wm/WindowState;->getWmDisplayCutout()Lcom/android/server/wm/utils/WmDisplayCutout; 17993 HSPLcom/android/server/wm/utils/WmDisplayCutout;-><init>(Landroid/view/DisplayCutout;Landroid/util/… 17994 …ndroid/server/wm/utils/WmDisplayCutout;->calculateRelativeTo(Landroid/graphics/Rect;)Lcom/android/… 17995 HSPLcom/android/server/wm/utils/WmDisplayCutout;->computeSafeInsets(Landroid/util/Size;Landroid/vie… 17996 …roid/server/wm/utils/WmDisplayCutout;->computeSafeInsets(Landroid/view/DisplayCutout;II)Lcom/andro… [all …]
|