Lines Matching refs:newScroll
115 float newScroll = mLayoutAlgorithm.updateFocusStateOnScroll(downP + mLastDeltaP, targetScroll,
117 setStackScroll(newScroll, AnimationProps.IMMEDIATE);
119 return newScroll - targetScroll;
126 public void setStackScroll(float newScroll, AnimationProps animation) {
128 mStackScrollP = newScroll;
161 float newScroll = getBoundedStackScroll(curScroll);
162 if (Float.compare(newScroll, curScroll) != 0) {
163 setStackScroll(newScroll);
193 float newScroll = getBoundedStackScroll(curScroll);
194 if (Float.compare(newScroll, curScroll) != 0) {
196 animateScroll(newScroll, null /* postScrollRunnable */);
202 void animateScroll(float newScroll, final Runnable postRunnable) {
205 animateScroll(newScroll, duration, postRunnable);
209 void animateScroll(float newScroll, int duration, final Runnable postRunnable) {
218 if (Float.compare(mStackScrollP, newScroll) != 0) {
219 mFinalAnimatedScroll = newScroll;
220 mScrollAnimator = ObjectAnimator.ofFloat(this, STACK_SCROLL, getStackScroll(), newScroll);