Lines Matching refs:position
482 private void animateClose(int position) {
483 prepareTracking(position);
484 performFling(position, mMaximumAcceleration, true);
487 private void animateOpen(int position) {
488 prepareTracking(position);
489 performFling(position, -mMaximumAcceleration, true);
492 private void performFling(int position, float velocity, boolean always) {
493 mAnimationPosition = position;
498 (position > mTopOffset + (mVertical ? mHandleHeight : mHandleWidth) &&
501 // us to retract. Animate back to the expanded position.
515 (position > (mVertical ? getHeight() : getWidth()) / 2 &&
524 // us to retract. Animate back to the collapsed position.
541 private void prepareTracking(int position) {
562 moveHandle(position);
566 private void moveHandle(int position) {
570 if (position == EXPANDED_FULL_OPEN) {
573 } else if (position == COLLAPSED_FULL_CLOSED) {
579 int deltaY = position - top;
580 if (position < mTopOffset) {
600 if (position == EXPANDED_FULL_OPEN) {
603 } else if (position == COLLAPSED_FULL_CLOSED) {
609 int deltaX = position - left;
610 if (position < mTopOffset) {
701 final float position = mAnimationPosition;
704 mAnimationPosition = position + (v * t) + (0.5f * a * t * t); // px