Lines Matching refs:target
25 * a given variable rate until it reaches a particular target value.
54 * the value jumps directly to the target.
56 * @param target The target value.
58 * @return True if the target differs from the previous target.
60 public boolean animateTo(int target, int rate) {
61 // Immediately jump to the target the first time.
63 if (mFirstTime || target != mCurrentValue) {
66 mTargetValue = target;
67 mCurrentValue = target;
68 mProperty.setValue(mObject, target);
81 // Adjust the rate based on the closest target.
85 // value is somewhere in between the new and the old target meaning that
90 || (target <= mCurrentValue && mCurrentValue <= mTargetValue)
91 || (mTargetValue <= mCurrentValue && mCurrentValue <= target)) {
95 final boolean changed = (mTargetValue != target);
96 mTargetValue = target;
99 if (!mAnimating && target != mCurrentValue) {
139 // Advance the animated value towards the target at the specified rate
140 // and clamp to the target. This gives us the new current value but
142 // towards the target.