Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDividerView.java150 private DividerSnapAlgorithm mSnapAlgorithm; field in DividerView
231 nextTarget = mSnapAlgorithm.getDismissEndTarget();
234 nextTarget = mSnapAlgorithm.getLastSplitTarget();
237 nextTarget = mSnapAlgorithm.getMiddleTarget();
240 nextTarget = mSnapAlgorithm.getFirstSplitTarget();
243 nextTarget = mSnapAlgorithm.getDismissStartTarget();
343 if (mSnapAlgorithm != null || mMinimizedSnapAlgorithm != null) { in onApplyWindowInsets()
344 mSnapAlgorithm = null; in onApplyWindowInsets()
384 mSnapTargetBeforeMinimized = mSnapAlgorithm.getMiddleTarget(); in injectDependencies()
470 if (mSnapAlgorithm == null) { in initializeSnapAlgorithm()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java85 private final PipSnapAlgorithm mSnapAlgorithm; field in PinnedStackController
132 mSnapAlgorithm.setMinimized(isMinimized); in setIsMinimized()
169 mSnapAlgorithm = new PipSnapAlgorithm(service.mContext); in PinnedStackController()
245 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
249 final Size size = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, minEdgeSize, in transformBoundsToAspectRatio()
254 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio()
296 final Size size = mSnapAlgorithm.getSizeForAspectRatio(mDefaultAspectRatio, in getDefaultBounds()
301 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds()
352 mSnapAlgorithm.applySnapFraction(postChangeStackBounds, postChangeMovementBounds, in onTaskStackBoundsChanged()
546 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMotionHelper.java87 private PipSnapAlgorithm mSnapAlgorithm; field in PipMotionHelper
103 mSnapAlgorithm = snapAlgorithm; in PipMotionHelper()
114 mSnapAlgorithm.onConfigurationChanged(); in onConfigurationChanged()
200 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds()
201 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds()
246 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState()
283 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToSnapTarget()
307 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds); in animateToClosestSnapTarget()
327 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(mBounds), movementBounds); in animateToExpandedState()
328 mSnapAlgorithm.applySnapFraction(expandedBounds, expandedMovementBounds, savedSnapFraction); in animateToExpandedState()
[all …]
DPipTouchHandler.java79 private final PipSnapAlgorithm mSnapAlgorithm; field in PipTouchHandler
187 mSnapAlgorithm = new PipSnapAlgorithm(mContext); in PipTouchHandler()
193 mSnapAlgorithm, mFlingAnimationUtils); in PipTouchHandler()
266 mSnapAlgorithm.getMovementBounds(mNormalBounds, insetBounds, normalMovementBounds, in onMovementBoundsChanged()
273 Size expandedSize = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, in onMovementBoundsChanged()
277 mSnapAlgorithm.getMovementBounds(mExpandedBounds, insetBounds, expandedMovementBounds, in onMovementBoundsChanged()
290 mSnapAlgorithm.getMovementBounds(mNormalBounds, insetBounds, normalAdjustedBounds, in onMovementBoundsChanged()
293 mSnapAlgorithm.getMovementBounds(mExpandedBounds, insetBounds, in onMovementBoundsChanged()
492 mSnapAlgorithm.setMinimized(isMinimized); in setMinimizedState()
835 mSnapAlgorithm.dump(pw, innerPrefix); in dump()