Home
last modified time | relevance | path

Searched refs:WmDisplayCutout (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java54 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_top()
63 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_left()
72 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bottom()
81 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_right()
90 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bounds()
99 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_top()
107 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_left()
115 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_bottom()
123 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in computeSafeInsets_right()
131 DisplayCutout cutout = WmDisplayCutout.computeSafeInsets(mCutoutTop, 1000, in computeSafeInsets_bounds()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java31 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()
97 public WmDisplayCutout computeSafeInsets(int width, int height) { in computeSafeInsets()
161 if (!(o instanceof WmDisplayCutout)) { in equals()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowFrameTests.java40 import com.android.server.wm.utils.WmDisplayCutout;
163 w.computeFrameLw(pf, df, of, cf, vf, dcf, sf, null, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskInsets()
178 w.computeFrameLw(pf, df, of, cf, vf, dcf, sf, null, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskInsets()
199 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
207 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
214 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
227 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
234 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
242 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
252 w.computeFrameLw(pf, pf, pf, pf, pf, pf, pf, pf, WmDisplayCutout.NO_CUTOUT, false); in testLayoutInFullscreenTaskNoInsets()
[all …]
DDisplayContentTests.java58 import com.android.server.wm.utils.WmDisplayCutout;
425 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot0()
444 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot90()
453 assertEquals(new WmDisplayCutout( in testDisplayCutout_rot90()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java30 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()
DDisplayContent.java156 import com.android.server.wm.utils.WmDisplayCutout;
217 private final RotationCache<DisplayCutout, WmDisplayCutout> mDisplayCutoutCache
1196 final WmDisplayCutout wmDisplayCutout = calculateDisplayCutoutForRotation(mRotation); in updateDisplayAndOrientation()
1241 WmDisplayCutout calculateDisplayCutoutForRotation(int rotation) { in calculateDisplayCutoutForRotation()
1245 private WmDisplayCutout calculateDisplayCutoutForRotationUncached( in calculateDisplayCutoutForRotationUncached()
1248 return WmDisplayCutout.NO_CUTOUT; in calculateDisplayCutoutForRotationUncached()
1251 return WmDisplayCutout.computeSafeInsets( in calculateDisplayCutoutForRotationUncached()
1259 return WmDisplayCutout.computeSafeInsets(DisplayCutout.fromBounds(bounds), in calculateDisplayCutoutForRotationUncached()
DWindowState.java206 import com.android.server.wm.utils.WmDisplayCutout;
358 WmDisplayCutout mDisplayCutout = WmDisplayCutout.NO_CUTOUT;
359 private WmDisplayCutout mLastDisplayCutout = WmDisplayCutout.NO_CUTOUT;
851 Rect outsetFrame, WmDisplayCutout displayCutout, in computeFrameLw()
1057 final WmDisplayCutout c = displayCutout.calculateRelativeTo(mDisplayFrame); in computeFrameLw()
1071 displayCutout = WmDisplayCutout.NO_CUTOUT; in computeFrameLw()
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DPhoneWindowManagerTestBase.java57 import com.android.server.wm.utils.WmDisplayCutout;
103 Pair<DisplayInfo, WmDisplayCutout> info = displayInfoAndCutoutForRotation(mRotation, in updateDisplayFrames()
154 public static Pair<DisplayInfo, WmDisplayCutout> displayInfoAndCutoutForRotation(int rotation, in displayInfoAndCutoutForRotation()
157 WmDisplayCutout cutout = null; in displayInfoAndCutoutForRotation()
164 cutout = WmDisplayCutout.computeSafeInsets( in displayInfoAndCutoutForRotation()
DFakeWindowState.java28 import com.android.server.wm.utils.WmDisplayCutout;
41 public WmDisplayCutout displayCutout;
66 @Nullable Rect outsetFrame, WmDisplayCutout displayCutout, in computeFrameLw()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java97 import com.android.server.wm.utils.WmDisplayCutout;
228 Rect stableFrame, @Nullable Rect outsetFrame, WmDisplayCutout displayCutout, in computeFrameLw()
/frameworks/base/services/
Dart-profile1039 …Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Lcom/android/server/wm/utils/WmDisplayCutout;Z)V
4101 Lcom/android/server/wm/utils/WmDisplayCutout;