/frameworks/base/services/tests/servicestests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 54 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/ |
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() 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/ |
D | WindowFrameTests.java | 40 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 …]
|
D | DisplayContentTests.java | 58 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/ |
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 | DisplayContent.java | 156 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()
|
D | WindowState.java | 206 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/ |
D | PhoneWindowManagerTestBase.java | 57 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()
|
D | FakeWindowState.java | 28 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/ |
D | WindowManagerPolicy.java | 97 import com.android.server.wm.utils.WmDisplayCutout; 228 Rect stableFrame, @Nullable Rect outsetFrame, WmDisplayCutout displayCutout, in computeFrameLw()
|
/frameworks/base/services/ |
D | art-profile | 1039 …Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Lcom/android/server/wm/utils/WmDisplayCutout;Z)V 4101 Lcom/android/server/wm/utils/WmDisplayCutout;
|