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.java149 private DividerSnapAlgorithm mSnapAlgorithm; field in DividerView
188 if (mSnapAlgorithm.isFirstSplitTargetAvailable()) {
194 if (mSnapAlgorithm.isLastSplitTargetAvailable()) {
203 if (mSnapAlgorithm.isFirstSplitTargetAvailable()) {
209 if (mSnapAlgorithm.isLastSplitTargetAvailable()) {
224 nextTarget = mSnapAlgorithm.getDismissEndTarget();
227 nextTarget = mSnapAlgorithm.getLastSplitTarget();
230 nextTarget = mSnapAlgorithm.getMiddleTarget();
233 nextTarget = mSnapAlgorithm.getFirstSplitTarget();
236 nextTarget = mSnapAlgorithm.getDismissStartTarget();
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPinnedStackController.java79 private final PipSnapAlgorithm mSnapAlgorithm; field in PinnedStackController
121 mSnapAlgorithm.setMinimized(isMinimized); in setIsMinimized()
155 mSnapAlgorithm = new PipSnapAlgorithm(service.mContext); in PinnedStackController()
229 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio()
233 final Size size = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, minEdgeSize, in transformBoundsToAspectRatio()
238 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio()
254 final Size size = mSnapAlgorithm.getSizeForAspectRatio(mDefaultAspectRatio, in getDefaultBounds()
296 final float snapFraction = mSnapAlgorithm.getSnapFraction(postChangeStackBounds, in onTaskStackBoundsChanged()
304 mSnapAlgorithm.applySnapFraction(postChangeStackBounds, postChangeMovementBounds, in onTaskStackBoundsChanged()
462 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()
205 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds()
206 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds()
250 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState()
286 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToSnapTarget()
310 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds); in animateToClosestSnapTarget()
330 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(mBounds), movementBounds); in animateToExpandedState()
331 mSnapAlgorithm.applySnapFraction(expandedBounds, expandedMovementBounds, savedSnapFraction); in animateToExpandedState()
[all …]
DPipTouchHandler.java82 private final PipSnapAlgorithm mSnapAlgorithm; field in PipTouchHandler
185 mSnapAlgorithm = new PipSnapAlgorithm(mContext); in PipTouchHandler()
192 mSnapAlgorithm, mFlingAnimationUtils); in PipTouchHandler()
251 mSnapAlgorithm.getMovementBounds(mNormalBounds, insetBounds, normalMovementBounds, in onMovementBoundsChanged()
258 Size expandedSize = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, in onMovementBoundsChanged()
262 mSnapAlgorithm.getMovementBounds(mExpandedBounds, insetBounds, expandedMovementBounds, in onMovementBoundsChanged()
453 mSnapAlgorithm.setMinimized(isMinimized); in setMinimizedState()
753 mSnapAlgorithm.dump(pw, innerPrefix); in dump()