HomeSort by relevance Sort by last modified time
    Searched refs:interpolator (Results 1 - 25 of 40) sorted by null

1 2

  /cts/tests/tests/graphics/src/android/graphics/cts/
InterpolatorTest.java 20 import android.graphics.Interpolator;
21 import android.graphics.Interpolator.Result;
29 @TestTargetClass(Interpolator.class)
38 method = "Interpolator",
43 method = "Interpolator",
48 Interpolator i = new Interpolator(10);
52 i = new Interpolator(15, 20);
71 Interpolator interpolator = new Interpolator(10) local
99 Interpolator interpolator = new Interpolator(10); local
133 Interpolator interpolator = new Interpolator(1); local
190 Interpolator interpolator = new Interpolator(1); local
250 Interpolator interpolator = new Interpolator(1, 3); local
295 Interpolator interpolator = new Interpolator(1); local
    [all...]
  /cts/tests/tests/view/src/android/view/animation/cts/
LinearInterpolatorTest.java 25 import android.view.animation.Interpolator;
82 LinearInterpolator interpolator = new LinearInterpolator(); local
83 final float delta1 = interpolator.getInterpolation(0.1f)
84 - interpolator.getInterpolation(0.0f);
85 final float delta2 = interpolator.getInterpolation(0.2f)
86 - interpolator.getInterpolation(0.1f);
87 final float delta3 = interpolator.getInterpolation(0.3f)
88 - interpolator.getInterpolation(0.2f);
99 Interpolator interpolator = new LinearInterpolator() local
    [all...]
AccelerateInterpolatorTest.java 36 import android.view.animation.Interpolator;
98 // android:interpolator="@android:anim/accelerate_interpolator"
108 Interpolator interpolator = new AccelerateInterpolator(1.0f); local
109 anim.setInterpolator(interpolator);
143 interpolator = new AccelerateInterpolator(1.5f);
144 anim.setInterpolator(interpolator);
188 Interpolator interpolator1 = new AccelerateInterpolator(1.0f);
190 Interpolator interpolator2 = new AccelerateInterpolator(2.0f);
199 Interpolator interpolator = new AccelerateInterpolator()
    [all...]
AccelerateDecelerateInterpolatorTest.java 36 import android.view.animation.Interpolator;
92 // android:interpolator="@android:anim/accelerate_decelerate_interpolator"
140 Interpolator interpolator = new AccelerateDecelerateInterpolator(); local
142 float alpha1 = interpolator.getInterpolation(0f);
143 float alpha2 = interpolator.getInterpolation(0.25f);
144 float alpha3 = interpolator.getInterpolation(0.5f);
145 float alpha4 = interpolator.getInterpolation(0.75f);
146 float alpha5 = interpolator.getInterpolation(1f);
AnimationUtilsTest.java 33 import android.view.animation.Interpolator;
72 // android:interpolator="@android:anim/accelerate_interpolator"
81 // Load Interpolator from android.R.anim.accelerate_interpolator
82 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, local
84 assertTrue(interpolator instanceof AccelerateInterpolator);
DecelerateInterpolatorTest.java 36 import android.view.animation.Interpolator;
104 // android:interpolator="@android:anim/decelerate_interpolator"
114 Interpolator interpolator = new DecelerateInterpolator(1.0f); local
115 anim.setInterpolator(interpolator);
149 interpolator = new DecelerateInterpolator(1.5f);
150 anim.setInterpolator(interpolator);
194 Interpolator interpolator1 = new DecelerateInterpolator(1.0f);
196 Interpolator interpolator2 = new DecelerateInterpolator(2.0f);
CycleInterpolatorTest.java 29 import android.view.animation.Interpolator;
89 Interpolator interpolator = new CycleInterpolator(1.0f); local
90 anim.setInterpolator(interpolator);
129 interpolator = new CycleInterpolator(2.0f);
130 anim.setInterpolator(interpolator);
AnimationTest.java 38 import android.view.animation.Interpolator;
113 notes = "Test {@link Animation#setInterpolator(Interpolator)}",
115 args = {android.view.animation.Interpolator.class}
118 @ToBeFixed(bug = "1561186", explanation = "javadoc of setInterpolator(Interpolator) " +
120 "Interpolator type")
122 // check default interpolator
124 Interpolator interpolator = myAnimation.getInterpolator(); local
125 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186.
128 assertSame(interpolator, myAnimation.getInterpolator())
    [all...]
  /frameworks/base/core/java/android/animation/
FloatKeyframeSet.java 84 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
85 if (interpolator != null) {
86 fraction = interpolator.getInterpolation(fraction);
100 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
101 if (interpolator != null) {
102 fraction = interpolator.getInterpolation(fraction);
114 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
115 if (interpolator != null) {
116 fraction = interpolator.getInterpolation(fraction);
IntKeyframeSet.java 84 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
85 if (interpolator != null) {
86 fraction = interpolator.getInterpolation(fraction);
100 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
101 if (interpolator != null) {
102 fraction = interpolator.getInterpolation(fraction);
113 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
114 if (interpolator != null) {
115 fraction = interpolator.getInterpolation(fraction);
KeyframeSet.java 153 * animation's interpolator) and the evaluator used to calculate in-between values. This
156 * outside the [0-1] bounds, if the animation's interpolator made that happen (e.g., a
175 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
176 if (interpolator != null) {
177 fraction = interpolator.getInterpolation(fraction);
186 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); local
187 if (interpolator != null) {
188 fraction = interpolator.getInterpolation(fraction);
200 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local
201 if (interpolator != null)
    [all...]
Keyframe.java 49 * The optional time interpolator for the interval preceding this keyframe. A null interpolator
203 * Gets the optional interpolator for this Keyframe. A value of <code>null</code> indicates
206 * @return The optional interpolator for this Keyframe.
213 * Sets the optional interpolator for this Keyframe. A value of <code>null</code> indicates
216 * @return The optional interpolator for this Keyframe.
218 public void setInterpolator(TimeInterpolator interpolator) {
219 mInterpolator = interpolator;
LayoutTransition.java 430 * Sets the interpolator on one of the animation objects used by this transition. The
431 * <code>transitionType</code> parameter determines the animation whose interpolator
437 * @param interpolator The interpolator that the specified animation should use.
440 public void setInterpolator(int transitionType, TimeInterpolator interpolator) {
443 mChangingAppearingInterpolator = interpolator;
446 mChangingDisappearingInterpolator = interpolator;
449 mAppearingInterpolator = interpolator;
452 mDisappearingInterpolator = interpolator;
458 * Gets the interpolator on one of the animation objects used by this transition. Th
    [all...]
AnimatorSet.java 228 * @param interpolator the interpolator to be used by each child animation of this AnimatorSet
231 public void setInterpolator(TimeInterpolator interpolator) {
233 node.animation.setInterpolator(interpolator);
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/anim/
Animation.java 21 import android.view.animation.Interpolator;
37 // Before onCalculate(float) is called, There is an optional interpolator which
38 // can change the progress value. The interpolator can be set by
39 // setInterpolator(Interpolator). If the interpolator is used, the value passed
54 private Interpolator mInterpolator;
56 public void setInterpolator(Interpolator interpolator) {
57 mInterpolator = interpolator;
85 Interpolator i = mInterpolator
    [all...]
  /frameworks/base/core/java/android/view/animation/
AnimationUtils.java 252 * Loads an {@link Interpolator} object from a resource
259 public static Interpolator loadInterpolator(Context context, int id) throws NotFoundException {
280 private static Interpolator createInterpolatorFromXml(Context c, XmlPullParser parser)
283 Interpolator interpolator = null; local
302 interpolator = new LinearInterpolator(c, attrs);
304 interpolator = new AccelerateInterpolator(c, attrs);
306 interpolator = new DecelerateInterpolator(c, attrs);
308 interpolator = new AccelerateDecelerateInterpolator(c, attrs);
310 interpolator = new CycleInterpolator(c, attrs)
    [all...]
LayoutAnimationController.java 85 * The interpolator used to interpolate the delays.
87 protected Interpolator mInterpolator;
217 * Sets the interpolator used to interpolate the delays between the
220 * @param context the context from which the interpolator must be inflated
221 * @param resourceID the resource identifier of the interpolator
224 * @see #setInterpolator(Interpolator)
233 * Sets the interpolator used to interpolate the delays between the
236 * @param interpolator the interpolator
239 * @see #setInterpolator(Interpolator)
    [all...]
AnimationSet.java 117 * should use the interpolator assocciated with this AnimationSet.
118 * Pass false if each animation should use its own interpolator.
351 final Interpolator interpolator = a.mInterpolator; local
352 a.applyTransformation(interpolator != null ? interpolator.getInterpolation(0.0f)
444 final Interpolator interpolator = mInterpolator; local
472 a.setInterpolator(interpolator);
  /external/skia/src/animator/
SkAnimateActive.cpp 175 SkOperandInterpolator& interpolator = *fInterpolators[index]; local
186 interpolator.timeToValues(time, values.get());
213 SkOperandInterpolator& interpolator = *fInterpolators[index]; local
224 interpolator.timeToValues(time, values.get());
358 SkOperandInterpolator& interpolator = *fInterpolators[index]; local
360 int count = interpolator.getValuesCount();
361 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand));
365 SkOperandInterpolator& interpolator = *fInterpolators[index]; local
367 int count = interpolator.getValuesCount();
370 memcpy(cache, interpolator.getValues(), count * sizeof(SkOperand))
381 SkOperandInterpolator& interpolator = *fInterpolators[index]; local
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/multiwaveview/
Tweener.java 61 TimeInterpolator interpolator = null; local
74 interpolator = (TimeInterpolator) value; // TODO: multiple interpolators?
109 if (interpolator != null) {
110 anim.setInterpolator(interpolator);
  /frameworks/base/core/java/android/widget/
OverScroller.java 25 import android.view.animation.Interpolator;
38 private final Interpolator mInterpolator;
47 * Creates an OverScroller with a viscous fluid scroll interpolator and flywheel.
57 * @param interpolator The scroll interpolator. If null, a default (viscous) interpolator will
60 public OverScroller(Context context, Interpolator interpolator) {
61 this(context, interpolator, true);
67 * @param interpolator The scroll interpolator. If null, a default (viscous) interpolator wil
    [all...]
Scroller.java 25 import android.view.animation.Interpolator;
56 private Interpolator mInterpolator;
105 * Create a Scroller with the default duration and interpolator.
112 * Create a Scroller with the specified interpolator. If the interpolator is
113 * null, the default (viscous) interpolator will be used. "Flywheel" behavior will
116 public Scroller(Context context, Interpolator interpolator) {
117 this(context, interpolator,
122 * Create a Scroller with the specified interpolator. If the interpolator i
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
FloatingChildLayout.java 158 final int scaleInterpolator = isExitAnimation ? android.R.interpolator.accelerate_quint
159 : android.R.interpolator.decelerate_quint;
  /frameworks/base/core/tests/coretests/src/android/view/
VelocityTest.java 27 import android.view.animation.Interpolator;
232 * the VelocityTracker using a linear interpolator
241 * the VelocityTracker using a given interpolator
244 long startime, int duration, Interpolator interpolator) {
250 float ii = interpolator.getInterpolation(i / (float)steps);
  /frameworks/base/core/java/android/view/
ViewPropertyAnimator.java 83 * The interpolator of the underlying Animator object. By default, we don't set the interpolator
84 * on the Animator and just use its default interpolator. If the interpolator is ever set on
85 * this Animator, then we use the interpolator that it was set to.
90 * A flag indicating whether the interpolator has been set on this object. If not, we don't set
91 * the interpolator on the underlying Animator, but instead just use its default interpolator.
304 * Sets the interpolator for the underlying animator that animates the requested properties.
305 * By default, the animator uses the default interpolator for ValueAnimator. Calling this metho
    [all...]

Completed in 912 milliseconds

1 2