Lines Matching refs:rate
25 * a given variable rate until it reaches a particular target value.
55 * @param rate The convergence rate, in units per second.
58 public boolean animateTo(int target, int rate) {
67 // Adjust the rate based on the closest target.
68 // If a faster rate is specified, then use the new rate so that we converge
70 // If a slower rate is specified, then use the new rate only if the current
73 // Otherwise, continue at the previous rate.
75 || rate > mRate
78 mRate = rate;
108 // Advance the animated value towards the target at the specified rate