Lines Matching refs:position
503 private void animateClose(int position) {
504 prepareTracking(position);
505 performFling(position, mMaximumAcceleration, true);
508 private void animateOpen(int position) {
509 prepareTracking(position);
510 performFling(position, -mMaximumAcceleration, true);
513 private void performFling(int position, float velocity, boolean always) {
514 mAnimationPosition = position;
519 (position > mTopOffset + (mVertical ? mHandleHeight : mHandleWidth) &&
522 // us to retract. Animate back to the expanded position.
536 (position > (mVertical ? getHeight() : getWidth()) / 2 &&
545 // us to retract. Animate back to the collapsed position.
562 private void prepareTracking(int position) {
583 moveHandle(position);
587 private void moveHandle(int position) {
591 if (position == EXPANDED_FULL_OPEN) {
594 } else if (position == COLLAPSED_FULL_CLOSED) {
600 int deltaY = position - top;
601 if (position < mTopOffset) {
621 if (position == EXPANDED_FULL_OPEN) {
624 } else if (position == COLLAPSED_FULL_CLOSED) {
630 int deltaX = position - left;
631 if (position < mTopOffset) {
722 final float position = mAnimationPosition;
725 mAnimationPosition = position + (v * t) + (0.5f * a * t * t); // px