Home
last modified time | relevance | path

Searched refs:getDefaultBounds (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java146 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_noOverrideMinSize_matchesDefaultSizeAndAspectRatio()
160 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_widerOverrideMinSize_matchesMinSizeWidthAndDefaultAspectRatio()
176 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_tallerOverrideMinSize_matchesMinSizeHeightAndDefaultAspectRatio()
189 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeShowing_offsetByImeHeight()
192 final Rect defaultBoundsWithIme = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeShowing_offsetByImeHeight()
201 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_shelfShowing_offsetByShelfHeight()
204 final Rect defaultBoundsWithShelf = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_shelfShowing_offsetByShelfHeight()
215 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeAndShelfShowing_offsetByTallest()
219 final Rect defaultBoundsWithIme = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeAndShelfShowing_offsetByTallest()
230 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_boundsAtDefaultGravity()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java106 return transformBoundsToAspectRatioIfValid(getDefaultBounds(), in getNormalBounds()
112 public Rect getDefaultBounds() { in getDefaultBounds() method in PipBoundsAlgorithm
113 return getDefaultBounds(INVALID_SNAP_FRACTION, null /* size */); in getDefaultBounds()
133 final Rect destinationBounds = getDefaultBounds(); in getEntryDestinationBoundsIgnoringKeepClearAreas()
138 destinationBounds.set(getDefaultBounds(reentryState.getSnapFraction(), scaledBounds)); in getEntryDestinationBoundsIgnoringKeepClearAreas()
299 private Rect getDefaultBounds(float snapFraction, Size size) { in getDefaultBounds() method in PipBoundsAlgorithm
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipControllerTest.java272 when(mMockPipBoundsAlgorithm.getDefaultBounds()).thenReturn(bounds); in onDisplayConfigurationChanged_inPip_movePip()
292 when(mMockPipBoundsAlgorithm.getDefaultBounds()).thenReturn(bounds); in onDisplayConfigurationChanged_notInPip_doesNotMovePip()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java1095 outBounds.set(mPipBoundsAlgorithm.getDefaultBounds()); in updateMovementBounds()