Lines Matching refs:direction
488 * @return whether the target is able to scroll in the requested direction
537 int direction, float coordinate, float srcSize, float dstSize) {
538 final float relativeEdge = mRelativeEdges[direction];
539 final float maximumEdge = mMaximumEdges[direction];
542 // The edge in this direction is not activated.
546 final float relativeVelocity = mRelativeVelocity[direction];
547 final float minimumVelocity = mMinimumVelocity[direction];
548 final float maximumVelocity = mMaximumVelocity[direction];
572 * horizontally in a certain direction.
574 * @param direction Negative to check scrolling left, positive to check
577 * specified direction.
579 public abstract boolean canTargetScrollHorizontally(int direction);
583 * vertically in a certain direction.
585 * @param direction Negative to check scrolling up, positive to check
588 * specified direction.
590 public abstract boolean canTargetScrollVertically(int direction);
886 public boolean canTargetScrollHorizontally(int direction) {
892 public boolean canTargetScrollVertically(int direction) {
903 if (direction > 0) {
911 } else if (direction < 0) {
920 // The behavior for direction 0 is undefined and we can return