Home
last modified time | relevance | path

Searched refs:interpolator (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolatorTest.java42 Interpolator interpolator = new Interpolator(10); in testConstructor() local
43 assertEquals(10, interpolator.getValueCount()); in testConstructor()
44 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testConstructor()
46 interpolator = new Interpolator(15, 20); in testConstructor()
47 assertEquals(15, interpolator.getValueCount()); in testConstructor()
48 assertEquals(20, interpolator.getKeyFrameCount()); in testConstructor()
54 Interpolator interpolator = new Interpolator(10); in testReset1() local
55 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testReset1()
56 interpolator.reset(expected); in testReset1()
57 assertEquals(expected, interpolator.getValueCount()); in testReset1()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DInterpolatorTest.java52 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testFastOutExtraSlowIn() local
53 android.R.interpolator.fast_out_extra_slow_in); in testFastOutExtraSlowIn()
58 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn()
59 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn()
63 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
68 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn()
75 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn()
80 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
DKeyframeTest.java104 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
105 keyFrame.setInterpolator(interpolator); in testSetInterpolator()
106 assertEquals(interpolator, keyFrame.getInterpolator()); in testSetInterpolator()
DAnimatorTest.java117 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
118 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
120 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
DLayoutAnimationTest.java125 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
126 mLayoutTransition.setInterpolator(LayoutTransition.APPEARING, interpolator); in testSetInterpolator()
127 assertEquals(interpolator, mLayoutTransition.getInterpolator( in testSetInterpolator()
DAnimationActivity.java107 public ValueAnimator createAnimatorWithInterpolator(TimeInterpolator interpolator){ in createAnimatorWithInterpolator() argument
109 ValueAnimator.REVERSE, interpolator, mStartY, mStartY + mDeltaY); in createAnimatorWithInterpolator()
DObjectAnimatorTest.java349 Interpolator interpolator = new AccelerateInterpolator(); in testClone() local
353 objAnimator.setInterpolator(interpolator); in testClone()
362 assertEquals(interpolator, cloneAnimator.getInterpolator()); in testClone()
782 Interpolator interpolator = new AccelerateInterpolator(); in testIsStarted() local
786 objAnimator.setInterpolator(interpolator); in testIsStarted()
DAnimatorSetTest.java609 TimeInterpolator interpolator = new AccelerateDecelerateInterpolator(); in testSetInterpolator() local
612 mAnimatorSet.setInterpolator(interpolator); in testSetInterpolator()
619 assertEquals(interpolator, animatorList.get(0).getInterpolator()); in testSetInterpolator()
620 assertEquals(interpolator, animatorList.get(1).getInterpolator()); in testSetInterpolator()
DValueAnimatorTest.java452 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
453 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
455 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
/cts/tests/tests/view/src/android/view/animation/cts/
DLinearInterpolatorTest.java77 LinearInterpolator interpolator = new LinearInterpolator(); in testGetInterpolation() local
78 final float delta1 = interpolator.getInterpolation(0.1f) in testGetInterpolation()
79 - interpolator.getInterpolation(0.0f); in testGetInterpolation()
80 final float delta2 = interpolator.getInterpolation(0.2f) in testGetInterpolation()
81 - interpolator.getInterpolation(0.1f); in testGetInterpolation()
82 final float delta3 = interpolator.getInterpolation(0.3f) in testGetInterpolation()
83 - interpolator.getInterpolation(0.2f); in testGetInterpolation()
95 Interpolator interpolator = new LinearInterpolator(); in testLinearInterpolator() local
96 anim.setInterpolator(interpolator); in testLinearInterpolator()
DAccelerateInterpolatorTest.java95 Interpolator interpolator = new AccelerateInterpolator(1.0f); in testAccelerateInterpolator() local
96 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
130 interpolator = new AccelerateInterpolator(1.5f); in testAccelerateInterpolator()
131 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
181 Interpolator interpolator = new AccelerateInterpolator();
183 float alpha1 = interpolator.getInterpolation(0f);
184 float alpha2 = interpolator.getInterpolation(0.25f);
185 float alpha3 = interpolator.getInterpolation(0.5f);
186 float alpha4 = interpolator.getInterpolation(0.75f);
187 float alpha5 = interpolator.getInterpolation(1f);
DAccelerateDecelerateInterpolatorTest.java126 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testGetInterpolation() local
128 float alpha1 = interpolator.getInterpolation(0f); in testGetInterpolation()
129 float alpha2 = interpolator.getInterpolation(0.25f); in testGetInterpolation()
130 float alpha3 = interpolator.getInterpolation(0.5f); in testGetInterpolation()
131 float alpha4 = interpolator.getInterpolation(0.75f); in testGetInterpolation()
132 float alpha5 = interpolator.getInterpolation(1f); in testGetInterpolation()
DDecelerateInterpolatorTest.java98 Interpolator interpolator = new DecelerateInterpolator(1.0f); in testDecelerateInterpolator() local
99 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
133 interpolator = new DecelerateInterpolator(1.5f); in testDecelerateInterpolator()
134 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
DAnimationTest.java111 Interpolator interpolator = myAnimation.getInterpolator(); in testAccessInterpolator() local
112 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. in testAccessInterpolator()
115 assertSame(interpolator, myAnimation.getInterpolator()); in testAccessInterpolator()
120 interpolator = myAnimation.getInterpolator(); in testAccessInterpolator()
121 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); in testAccessInterpolator()
124 interpolator = animation.getInterpolator(); in testAccessInterpolator()
125 assertNotNull(interpolator); in testAccessInterpolator()
126 assertTrue(interpolator instanceof DecelerateInterpolator); in testAccessInterpolator()
129 interpolator = animation.getInterpolator(); in testAccessInterpolator()
130 assertNotNull(interpolator); in testAccessInterpolator()
[all …]
DCycleInterpolatorTest.java87 Interpolator interpolator = new CycleInterpolator(1.0f); in testCycleInterpolator() local
88 anim.setInterpolator(interpolator); in testCycleInterpolator()
127 interpolator = new CycleInterpolator(2.0f); in testCycleInterpolator()
128 anim.setInterpolator(interpolator); in testCycleInterpolator()
DAnimationUtilsTest.java70 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testLoad() local
72 assertTrue(interpolator instanceof AccelerateInterpolator); in testLoad()
DLayoutAnimationControllerTest.java315 DecelerateInterpolator interpolator = new DecelerateInterpolator(1.0f);
316 mController.setInterpolator(interpolator);
317 assertSame(interpolator, mController.getInterpolator());
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionSetTest.java156 TimeInterpolator interpolator = new DecelerateInterpolator(); in testSetTransferValuesDuringAdd() local
166 transitionSet.setInterpolator(interpolator); in testSetTransferValuesDuringAdd()
173 assertSame(interpolator, fade.getInterpolator()); in testSetTransferValuesDuringAdd()
212 TimeInterpolator interpolator = new DecelerateInterpolator(); in testSetNoTransferValuesDuringAdd() local
222 fade.setInterpolator(interpolator); in testSetNoTransferValuesDuringAdd()
231 assertSame(interpolator, fade.getInterpolator()); in testSetNoTransferValuesDuringAdd()
DTransitionTest.java476 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testInterpolator() local
477 transition.setInterpolator(interpolator); in testInterpolator()
478 assertSame(interpolator, transition.getInterpolator()); in testInterpolator()
486 assertSame(interpolator, animator.getInterpolator()); in testInterpolator()
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java354 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testAccessInterpolator() local
355 mProgressBar.setInterpolator(interpolator); in testAccessInterpolator()
356 assertEquals(interpolator, mProgressBar.getInterpolator()); in testAccessInterpolator()