Searched refs:mSnapAlgorithm (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | DividerView.java | 147 private DividerSnapAlgorithm mSnapAlgorithm; field in DividerView 229 nextTarget = mSnapAlgorithm.getDismissEndTarget(); 231 nextTarget = mSnapAlgorithm.getLastSplitTarget(); 233 nextTarget = mSnapAlgorithm.getMiddleTarget(); 235 nextTarget = mSnapAlgorithm.getFirstSplitTarget(); 237 nextTarget = mSnapAlgorithm.getDismissStartTarget(); 330 if (mSnapAlgorithm != null || mMinimizedSnapAlgorithm != null) { in onApplyWindowInsets() 331 mSnapAlgorithm = null; in onApplyWindowInsets() 373 mSnapTargetBeforeMinimized = mSnapAlgorithm.getMiddleTarget(); in injectDependencies() 461 if (mSnapAlgorithm == null) { in initializeSnapAlgorithm() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PinnedStackController.java | 87 private final PipSnapAlgorithm mSnapAlgorithm; field in PinnedStackController 134 mSnapAlgorithm.setMinimized(isMinimized); in setIsMinimized() 171 mSnapAlgorithm = new PipSnapAlgorithm(service.mContext); in PinnedStackController() 247 final float snapFraction = mSnapAlgorithm.getSnapFraction(stackBounds, in transformBoundsToAspectRatio() 251 final Size size = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, minEdgeSize, in transformBoundsToAspectRatio() 256 mSnapAlgorithm.applySnapFraction(stackBounds, getMovementBounds(stackBounds), snapFraction); in transformBoundsToAspectRatio() 298 final Size size = mSnapAlgorithm.getSizeForAspectRatio(mDefaultAspectRatio, in getDefaultBounds() 303 mSnapAlgorithm.applySnapFraction(defaultBounds, movementBounds, snapFraction); in getDefaultBounds() 354 mSnapAlgorithm.applySnapFraction(postChangeStackBounds, postChangeMovementBounds, in onTaskStackBoundsChanged() 558 mSnapAlgorithm.getMovementBounds(stackBounds, movementBounds, movementBounds, in getMovementBounds() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 90 private PipSnapAlgorithm mSnapAlgorithm; field in PipMotionHelper 107 mSnapAlgorithm = snapAlgorithm; in PipMotionHelper() 118 mSnapAlgorithm.onConfigurationChanged(); in onConfigurationChanged() 206 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds() 207 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds() 252 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToMinimizedState() 289 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds, in flingToSnapTarget() 313 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, mBounds); in animateToClosestSnapTarget() 333 float savedSnapFraction = mSnapAlgorithm.getSnapFraction(new Rect(mBounds), movementBounds); in animateToExpandedState() 334 mSnapAlgorithm.applySnapFraction(expandedBounds, expandedMovementBounds, savedSnapFraction); in animateToExpandedState() [all …]
|
D | PipTouchHandler.java | 82 private final PipSnapAlgorithm mSnapAlgorithm; field in PipTouchHandler 192 mSnapAlgorithm = new PipSnapAlgorithm(mContext); in PipTouchHandler() 198 mMenuController, mSnapAlgorithm, mFlingAnimationUtils); in PipTouchHandler() 273 mSnapAlgorithm.getMovementBounds(mNormalBounds, insetBounds, normalMovementBounds, in onMovementBoundsChanged() 280 Size expandedSize = mSnapAlgorithm.getSizeForAspectRatio(aspectRatio, in onMovementBoundsChanged() 284 mSnapAlgorithm.getMovementBounds(mExpandedBounds, insetBounds, expandedMovementBounds, in onMovementBoundsChanged() 500 mSnapAlgorithm.setMinimized(isMinimized); 843 mSnapAlgorithm.dump(pw, innerPrefix); in dump()
|