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.java127 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_noOverrideMinSize_matchesDefaultSizeAndAspectRatio()
141 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_widerOverrideMinSize_matchesMinSizeWidthAndDefaultAspectRatio()
157 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_tallerOverrideMinSize_matchesMinSizeHeightAndDefaultAspectRatio()
170 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeShowing_offsetByImeHeight()
173 final Rect defaultBoundsWithIme = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeShowing_offsetByImeHeight()
182 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_shelfShowing_offsetByShelfHeight()
185 final Rect defaultBoundsWithShelf = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_shelfShowing_offsetByShelfHeight()
196 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeAndShelfShowing_offsetByTallest()
200 final Rect defaultBoundsWithIme = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_imeAndShelfShowing_offsetByTallest()
211 final Rect defaultBounds = mPipBoundsAlgorithm.getDefaultBounds(); in getDefaultBounds_boundsAtDefaultGravity()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipBoundsAlgorithm.java121 return transformBoundsToAspectRatioIfValid(getDefaultBounds(), in getNormalBounds()
127 public Rect getDefaultBounds() { in getDefaultBounds() method in PipBoundsAlgorithm
128 return getDefaultBounds(INVALID_SNAP_FRACTION, null /* size */); in getDefaultBounds()
136 ? getDefaultBounds(reentryState.getSnapFraction(), reentryState.getSize()) in getEntryDestinationBounds()
137 : getDefaultBounds(); in getEntryDestinationBounds()
274 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.java185 when(mMockPipBoundsAlgorithm.getDefaultBounds()).thenReturn(bounds); in onDisplayConfigurationChanged_inPip_movePip()
201 when(mMockPipBoundsAlgorithm.getDefaultBounds()).thenReturn(bounds); in onDisplayConfigurationChanged_notInPip_doesNotMovePip()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipController.java623 outBounds.set(mPipBoundsAlgorithm.getDefaultBounds()); in updateMovementBounds()