/cts/tests/tests/graphics/src/android/graphics/cts/ |
InterpolatorTest.java | 20 import android.graphics.Interpolator; 21 import android.graphics.Interpolator.Result; 30 Interpolator i = new Interpolator(10); 34 i = new Interpolator(15, 20); 41 Interpolator interpolator = new Interpolator(10); local 42 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); 43 interpolator.reset(expected) 52 Interpolator interpolator = new Interpolator(10); local 59 Interpolator interpolator = new Interpolator(1); local 98 Interpolator interpolator = new Interpolator(1); local 139 Interpolator interpolator = new Interpolator(1, 3); local 172 Interpolator interpolator = new Interpolator(1); local [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
LinearInterpolatorTest.java | 25 import android.view.animation.Interpolator; 60 LinearInterpolator interpolator = new LinearInterpolator(); local 61 final float delta1 = interpolator.getInterpolation(0.1f) 62 - interpolator.getInterpolation(0.0f); 63 final float delta2 = interpolator.getInterpolation(0.2f) 64 - interpolator.getInterpolation(0.1f); 65 final float delta3 = interpolator.getInterpolation(0.3f) 66 - interpolator.getInterpolation(0.2f); 77 Interpolator interpolator = new LinearInterpolator() local [all...] |
AccelerateDecelerateInterpolatorTest.java | 32 import android.view.animation.Interpolator; 67 // android:interpolator="@android:anim/accelerate_decelerate_interpolator" 109 Interpolator interpolator = new AccelerateDecelerateInterpolator(); local 111 float alpha1 = interpolator.getInterpolation(0f); 112 float alpha2 = interpolator.getInterpolation(0.25f); 113 float alpha3 = interpolator.getInterpolation(0.5f); 114 float alpha4 = interpolator.getInterpolation(0.75f); 115 float alpha5 = interpolator.getInterpolation(1f);
|
AccelerateInterpolatorTest.java | 32 import android.view.animation.Interpolator; 69 // android:interpolator="@android:anim/accelerate_interpolator" 79 Interpolator interpolator = new AccelerateInterpolator(1.0f); local 80 anim.setInterpolator(interpolator); 114 interpolator = new AccelerateInterpolator(1.5f); 115 anim.setInterpolator(interpolator); 153 Interpolator interpolator1 = new AccelerateInterpolator(1.0f); 155 Interpolator interpolator2 = new AccelerateInterpolator(2.0f); 164 Interpolator interpolator = new AccelerateInterpolator() [all...] |
DecelerateInterpolatorTest.java | 32 import android.view.animation.Interpolator; 72 // android:interpolator="@android:anim/decelerate_interpolator" 82 Interpolator interpolator = new DecelerateInterpolator(1.0f); local 83 anim.setInterpolator(interpolator); 117 interpolator = new DecelerateInterpolator(1.5f); 118 anim.setInterpolator(interpolator); 156 Interpolator interpolator1 = new DecelerateInterpolator(1.0f); 158 Interpolator interpolator2 = new DecelerateInterpolator(2.0f);
|
AnimationUtilsTest.java | 29 import android.view.animation.Interpolator; 50 // android:interpolator="@android:anim/accelerate_interpolator" 59 // Load Interpolator from android.R.anim.accelerate_interpolator 60 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, local 62 assertTrue(interpolator instanceof AccelerateInterpolator);
|
AnimationTest.java | 34 import android.view.animation.Interpolator; 74 // check default interpolator 76 Interpolator interpolator = myAnimation.getInterpolator(); local 77 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. 80 assertSame(interpolator, myAnimation.getInterpolator()); 85 interpolator = myAnimation.getInterpolator(); 86 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); 89 interpolator = animation.getInterpolator(); 90 assertNotNull(interpolator); [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAnimation.java | 4 import android.view.animation.Interpolator; 19 private Interpolator interpolator; field in class:ShadowAnimation 68 public void setInterpolator(Interpolator interpolator) { 69 this.interpolator = interpolator; 73 public Interpolator getInterpolator() { 74 return interpolator;
|
/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 | 166 * animation's interpolator) and the evaluator used to calculate in-between values. This 169 * outside the [0-1] bounds, if the animation's interpolator made that happen (e.g., a 188 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 189 if (interpolator != null) { 190 fraction = interpolator.getInterpolation(fraction); 199 final TimeInterpolator interpolator = mLastKeyframe.getInterpolator(); local 200 if (interpolator != null) { 201 fraction = interpolator.getInterpolation(fraction); 213 final TimeInterpolator interpolator = nextKeyframe.getInterpolator(); local 214 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;
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
Animation.java | 19 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 | 260 * Loads an {@link Interpolator} object from a resource 267 public static Interpolator loadInterpolator(Context context, int id) throws NotFoundException { 288 private static Interpolator createInterpolatorFromXml(Context c, XmlPullParser parser) 291 Interpolator interpolator = null; local 310 interpolator = new LinearInterpolator(c, attrs); 312 interpolator = new AccelerateInterpolator(c, attrs); 314 interpolator = new DecelerateInterpolator(c, attrs); 316 interpolator = new AccelerateDecelerateInterpolator(c, attrs); 318 interpolator = new CycleInterpolator(c, attrs) [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
ScrollerCompat.java | 21 import android.view.animation.Interpolator; 35 Object createScroller(Context context, Interpolator interpolator); 57 public Object createScroller(Context context, Interpolator interpolator) { 58 return interpolator != null ? 59 new Scroller(context, interpolator) : new Scroller(context); 145 public Object createScroller(Context context, Interpolator interpolator) { 146 return ScrollerCompatGingerbread.createScroller(context, interpolator); [all...] |
/external/skia/legacy/src/animator/ |
SkAnimateActive.cpp | 172 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 183 interpolator.timeToValues(time, values.get()); 210 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 221 interpolator.timeToValues(time, values.get()); 355 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 357 int count = interpolator.getValuesCount(); 358 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand)); 362 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 364 int count = interpolator.getValuesCount(); 367 memcpy(cache, interpolator.getValues(), count * sizeof(SkOperand)) 378 SkOperandInterpolator& interpolator = *fInterpolators[index]; local [all...] |
/external/skia/src/animator/ |
SkAnimateActive.cpp | 172 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 183 interpolator.timeToValues(time, values.get()); 210 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 221 interpolator.timeToValues(time, values.get()); 355 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 357 int count = interpolator.getValuesCount(); 358 memcpy(interpolator.getValues(), fSaveInterpolators[index], count * sizeof(SkOperand)); 362 SkOperandInterpolator& interpolator = *fInterpolators[index]; local 364 int count = interpolator.getValuesCount(); 367 memcpy(cache, interpolator.getValues(), count * sizeof(SkOperand)) 378 SkOperandInterpolator& interpolator = *fInterpolators[index]; local [all...] |
/cts/tests/tests/animation/src/android/animation/cts/ |
KeyframeTest.java | 84 TimeInterpolator interpolator = new AccelerateInterpolator(); local 85 keyFrame.setInterpolator(interpolator); 86 assertEquals(interpolator, keyFrame.getInterpolator());
|
AnimatorSetTest.java | 116 TimeInterpolator interpolator = new AccelerateDecelerateInterpolator(); local 119 mAnimatorSet.setInterpolator(interpolator); 126 assertEquals(interpolator, ((ObjectAnimator)animatorList.get(0)).getInterpolator()); 127 assertEquals(interpolator, ((ObjectAnimator)animatorList.get(1)).getInterpolator());
|
ObjectAnimatorTest.java | 25 import android.view.animation.Interpolator; 201 Interpolator interpolator = new AccelerateInterpolator(); local 205 objAnimator.setInterpolator(interpolator); 214 assertEquals(interpolator, cloneAnimator.getInterpolator()); 222 Interpolator interpolator = new AccelerateInterpolator(); local 226 objAnimator.setInterpolator(interpolator);
|
/frameworks/support/v4/gingerbread/android/support/v4/widget/ |
ScrollerCompatGingerbread.java | 21 import android.view.animation.Interpolator; 25 public static Object createScroller(Context context, Interpolator interpolator) { 26 return interpolator != null ? 27 new OverScroller(context, interpolator) : new OverScroller(context);
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
Tweener.java | 61 TimeInterpolator interpolator = null; local 74 interpolator = (TimeInterpolator) value; // TODO: multiple interpolators? 112 if (interpolator != null) { 113 anim.setInterpolator(interpolator);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
Tweener.java | 61 TimeInterpolator interpolator = null; local 75 interpolator = (TimeInterpolator) value; // TODO: multiple interpolators? 113 if (interpolator != null) { 114 anim.setInterpolator(interpolator);
|
/frameworks/base/core/java/android/widget/ |
OverScroller.java | 25 import android.view.animation.Interpolator; 38 private 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...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
OverScroller.java | 25 import android.view.animation.Interpolator; 38 private 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...] |