/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 544 * @param velocity the velocity this was expanded/ collapsed with 547 void finishExpanding(boolean forceAbort, float velocity) { argument 548 finishExpanding(forceAbort, velocity, true /* allowAnimation */); 555 * @param velocity the velocity this was expanded/ collapsed with 557 private void finishExpanding(boolean forceAbort, float velocity, boolean allowAnimation) { argument 567 nowExpanded = currentHeight > mOldHeight && velocity >= 0; 569 nowExpanded = currentHeight >= mOldHeight || velocity > 0; 608 velocity [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | RecentsImplProxy.java | 109 public void onDraggingInRecentsEnded(float velocity) throws RemoteException { argument 110 mHandler.sendMessage(mHandler.obtainMessage(MSG_ON_DRAGGING_IN_RECENTS_ENDED, velocity));
|
H A D | Recents.java | 524 public void onDraggingInRecentsEnded(float velocity) { argument 526 mImpl.onDraggingInRecentsEnded(velocity); 534 callbacks.onDraggingInRecentsEnded(velocity);
|
/frameworks/support/dynamic-animation/src/android/support/animation/ |
H A D | SpringForce.java | 76 // This multiplier is used to calculate the velocity threshold given a certain value threshold. 77 // The idea is that if it takes >= 1 frame to move the value threshold amount, then the velocity 92 // Threshold for velocity and value to determine when it's reasonable to assume that the spring 105 // Internal state to hold a value/velocity pair. 228 public boolean isAtEquilibrium(float value, float velocity) { argument 229 if (Math.abs(velocity) < mVelocityThreshold 268 * Internal only call for Spring to calculate the spring position/velocity using 323 * is allowed to end the animation when velocity is very low
|
H A D | DynamicAnimation.java | 286 // Internal tracking for velocity. 320 // Internal state for value/velocity pair. 383 * Start velocity of the animation. Default velocity is 0. Unit: change in property per 386 * <p>Note when using a fixed value as the start velocity (as opposed to getting the velocity 397 * @param startVelocity start velocity of the animation 398 * @return the Animation whose start velocity is being set 626 * This gets call on each frame of the animation. Animation value and velocity are updated 645 // Clamp value & velocity 714 getAcceleration(float value, float velocity) argument 719 isAtEquilibrium(float value, float velocity) argument 739 onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, float velocity) argument 758 onAnimationUpdate(DynamicAnimation animation, float value, float velocity) argument [all...] |
/frameworks/support/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/ |
H A D | SpringActivity.java | 89 // Compute the velocity in unit: pixel/second 91 float velocity = vt.getYVelocity(); 93 anim.setStartVelocity(velocity).start();
|
H A D | MainActivity.java | 56 float velocity) { 64 float velocity) {
|
/frameworks/support/samples/SupportAnimationDemos/src/com/example/android/support/animation/ |
H A D | SpringActivity.java | 89 // Compute the velocity in unit: pixel/second 91 float velocity = vt.getYVelocity(); 93 anim.setStartVelocity(velocity).start();
|
H A D | MainActivity.java | 56 float velocity) { 64 float velocity) {
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationMenuRowPlugin.java | 95 public boolean onTouchEvent(View view, MotionEvent ev, float velocity); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/lowram/ |
H A D | TaskStackLowRamLayoutAlgorithm.java | 148 * @param velocity speed of fling 150 public float getClosestTaskP(float scrollP, int numTasks, int velocity) { argument 160 if (Math.abs(velocity) > mFlingThreshold) { 161 useNext = velocity > 0;
|
/frameworks/support/dynamic-animation/tests/src/android/support/dynamicanimation/tests/ |
H A D | FlingTests.java | 172 * Test that velocity threshold does affect how early fling animation ends. An animation with 173 * higher velocity threshold should finish first. 186 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 187 if (velocity != 0f) { 188 // Other than last frame, velocity should always be above threshold 189 assertTrue(velocity >= highThreshold);
|
H A D | SpringTests.java | 122 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 184 float velocity) { 252 float velocity) { 254 if (velocity > 0 && velocity1 < 0) { 257 velocity1 = velocity; 259 velocity2 = velocity; 260 if (velocity > 0 && velocity2 < 0) { 468 public void onAnimationUpdate(DynamicAnimation animation, float value, float velocity) { 657 float velocity) { 787 float velocity) { 786 onAnimationEnd(DynamicAnimation animation, boolean canceled, float value, float velocity) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipMotionHelper.java | 283 Rect flingToSnapTarget(float velocity, float velocityX, float velocityY, Rect movementBounds, argument 293 velocity); 373 final float velocity = PointF.length(velocityX, velocityY); 374 final boolean isFling = velocity > mFlingAnimationUtils.getMinVelocityPxPerSecond(); 388 distanceBetweenRectOffsets(mBounds, toBounds), velocity); 460 * @return the coordinates the PIP should animate to based on the direction of velocity when 477 // If it wasn't a fling the velocity on 'up' is not reliable for direction of movement, 484 * @return whether the gesture it towards the dismiss area based on the velocity when
|
H A D | PipTouchHandler.java | 660 final float velocity = PointF.length(vel.x, vel.y); 661 final boolean isFling = velocity > mFlingAnimationUtils.getMinVelocityPxPerSecond(); 722 mMotionHelper.flingToSnapTarget(velocity, vel.x, vel.y, mMovementBounds,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackViewTouchHandler.java | 242 // Initialize the velocity tracker 335 int velocity = (int) mVelocityTracker.getYVelocity(mActivePointerId); 339 } else if (Math.abs(velocity) > mMinimumVelocity && 345 mScroller.fling(mDownScrollP, mDownY, y, velocity, (int) minY, (int) maxY, 354 mScroller.scrollToClosestTask(velocity);
|
/frameworks/base/core/java/android/widget/ |
H A D | StackView.java | 1040 float getDurationForNeutralPosition(float velocity) { argument 1041 return getDuration(false, velocity); 1044 float getDurationForOffscreenPosition(float velocity) { argument 1045 return getDuration(true, velocity); 1048 private float getDuration(boolean invert, float velocity) { argument 1060 if (velocity == 0) { 1063 float duration = invert ? d / Math.abs(velocity) : 1064 (maxd - d) / Math.abs(velocity);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 490 private void smoothScrollTo(int yOffset, float velocity) { argument 505 velocity = Math.abs(velocity); 506 if (velocity > 0) { 507 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
|
H A D | ViewPager.java | 494 boolean setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 530 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 536 private void scrollToItem(int position, boolean smoothScroll, int velocity, argument 541 smoothScrollTo(destX, 0, velocity); 763 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 765 void smoothScrollTo(int x, int y, int velocity) { argument 792 velocity = Math.abs(velocity); 793 if (velocity > 2223 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | ViewDragHelper.java | 185 * The fling velocity is also supplied, if relevant. The velocity values may 198 * @param xvel X velocity of the pointer as it left the screen in pixels per second. 199 * @param yvel Y velocity of the pointer as it left the screen in pixels per second. 397 * Set the minimum velocity that will be detected as having a magnitude greater than zero 398 * in pixels per second. Callback methods accepting a velocity will be clamped appropriately. 400 * @param minVel Minimum velocity to detect 407 * Return the currently configured minimum velocity. Any flings with a magnitude less 408 * than this value in pixels per second. Callback methods accepting a velocity will receive 409 * zero as a velocity valu 626 computeAxisDuration(int delta, int velocity, int motionRange) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | AppBarLayout.java | 897 final AppBarLayout child, final int offset, float velocity) { 901 velocity = Math.abs(velocity); 902 if (velocity > 0) { 903 duration = 3 * Math.round(1000 * (distance / velocity)); 896 animateOffsetTo(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, float velocity) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | KeyguardAffordanceView.java | 219 public void finishAnimation(float velocity, final Runnable mAnimationEndRunnable) { argument 234 velocity, maxCircleSize); 252 velocity, maxCircleSize);
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | ViewPager.java | 627 void setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) { argument 663 scrollToItem(item, smoothScroll, velocity, dispatchSelected); 667 private void scrollToItem(int item, boolean smoothScroll, int velocity, argument 677 smoothScrollTo(destX, 0, velocity); 939 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise) 941 void smoothScrollTo(int x, int y, int velocity) { argument 982 velocity = Math.abs(velocity); 983 if (velocity > 2396 determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | DividerView.java | 415 public void stopDragging(int position, float velocity, boolean avoidDismissStart, argument 418 fling(position, velocity, avoidDismissStart, logMetrics); 513 mStartPosition, 0 /* velocity */, false /* hardDismiss */); 566 private void fling(int position, float velocity, boolean avoidDismissStart, argument 569 SnapTarget snapTarget = currentSnapAlgorithm.calculateSnapTarget(position, velocity); 577 mFlingAnimationUtils.apply(anim, position, snapTarget.position, velocity);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 327 // or if the velocity is in the opposite direction. 370 private void startFinishingCircleAnimation(float velocity, Runnable mAnimationEndRunnable, argument 373 targetView.finishAnimation(velocity, mAnimationEndRunnable); 493 // Project the velocity onto the distance vector: a * b / |b|
|