Home
last modified time | relevance | path

Searched refs:interpolator (Results 1 – 22 of 22) 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.java61 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testFastOutExtraSlowIn() local
62 android.R.interpolator.fast_out_extra_slow_in); in testFastOutExtraSlowIn()
67 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn()
68 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn()
72 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
77 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn()
84 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn()
89 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.java138 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
139 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
141 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
DLayoutAnimationTest.java146 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
147 mLayoutTransition.setInterpolator(LayoutTransition.APPEARING, interpolator); in testSetInterpolator()
148 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.java403 Interpolator interpolator = new AccelerateInterpolator(); in testClone() local
407 objAnimator.setInterpolator(interpolator); in testClone()
416 assertEquals(interpolator, cloneAnimator.getInterpolator()); in testClone()
836 Interpolator interpolator = new AccelerateInterpolator(); in testIsStarted() local
840 objAnimator.setInterpolator(interpolator); in testIsStarted()
DValueAnimatorTest.java462 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
463 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
465 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
DAnimatorSetTest.java619 TimeInterpolator interpolator = new AccelerateDecelerateInterpolator(); in testSetInterpolator() local
622 mAnimatorSet.setInterpolator(interpolator); in testSetInterpolator()
629 assertEquals(interpolator, animatorList.get(0).getInterpolator()); in testSetInterpolator()
630 assertEquals(interpolator, animatorList.get(1).getInterpolator()); in testSetInterpolator()
/cts/tests/tests/view/src/android/view/animation/cts/
DLinearInterpolatorTest.java88 LinearInterpolator interpolator = new LinearInterpolator(); in testGetInterpolation() local
89 final float delta1 = interpolator.getInterpolation(0.1f) in testGetInterpolation()
90 - interpolator.getInterpolation(0.0f); in testGetInterpolation()
91 final float delta2 = interpolator.getInterpolation(0.2f) in testGetInterpolation()
92 - interpolator.getInterpolation(0.1f); in testGetInterpolation()
93 final float delta3 = interpolator.getInterpolation(0.3f) in testGetInterpolation()
94 - interpolator.getInterpolation(0.2f); in testGetInterpolation()
106 Interpolator interpolator = new LinearInterpolator(); in testLinearInterpolator() local
107 anim.setInterpolator(interpolator); in testLinearInterpolator()
DAccelerateInterpolatorTest.java106 Interpolator interpolator = new AccelerateInterpolator(1.0f); in testAccelerateInterpolator() local
107 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
141 interpolator = new AccelerateInterpolator(1.5f); in testAccelerateInterpolator()
142 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
192 Interpolator interpolator = new AccelerateInterpolator();
194 float alpha1 = interpolator.getInterpolation(0f);
195 float alpha2 = interpolator.getInterpolation(0.25f);
196 float alpha3 = interpolator.getInterpolation(0.5f);
197 float alpha4 = interpolator.getInterpolation(0.75f);
198 float alpha5 = interpolator.getInterpolation(1f);
DAccelerateDecelerateInterpolatorTest.java137 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testGetInterpolation() local
139 float alpha1 = interpolator.getInterpolation(0f); in testGetInterpolation()
140 float alpha2 = interpolator.getInterpolation(0.25f); in testGetInterpolation()
141 float alpha3 = interpolator.getInterpolation(0.5f); in testGetInterpolation()
142 float alpha4 = interpolator.getInterpolation(0.75f); in testGetInterpolation()
143 float alpha5 = interpolator.getInterpolation(1f); in testGetInterpolation()
DDecelerateInterpolatorTest.java109 Interpolator interpolator = new DecelerateInterpolator(1.0f); in testDecelerateInterpolator() local
110 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
144 interpolator = new DecelerateInterpolator(1.5f); in testDecelerateInterpolator()
145 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
DAnimationTest.java121 Interpolator interpolator = myAnimation.getInterpolator(); in testAccessInterpolator() local
122 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. in testAccessInterpolator()
125 assertSame(interpolator, myAnimation.getInterpolator()); in testAccessInterpolator()
130 interpolator = myAnimation.getInterpolator(); in testAccessInterpolator()
131 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); in testAccessInterpolator()
134 interpolator = animation.getInterpolator(); in testAccessInterpolator()
135 assertNotNull(interpolator); in testAccessInterpolator()
136 assertTrue(interpolator instanceof DecelerateInterpolator); in testAccessInterpolator()
139 interpolator = animation.getInterpolator(); in testAccessInterpolator()
140 assertNotNull(interpolator); in testAccessInterpolator()
[all …]
DCycleInterpolatorTest.java98 Interpolator interpolator = new CycleInterpolator(1.0f); in testCycleInterpolator() local
99 anim.setInterpolator(interpolator); in testCycleInterpolator()
138 interpolator = new CycleInterpolator(2.0f); in testCycleInterpolator()
139 anim.setInterpolator(interpolator); in testCycleInterpolator()
DAnimationUtilsTest.java92 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testLoad() local
94 assertTrue(interpolator instanceof AccelerateInterpolator); in testLoad()
DLayoutAnimationControllerTest.java326 DecelerateInterpolator interpolator = new DecelerateInterpolator(1.0f);
327 mController.setInterpolator(interpolator);
328 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.java363 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testAccessInterpolator() local
364 mProgressBar.setInterpolator(interpolator); in testAccessInterpolator()
365 assertEquals(interpolator, mProgressBar.getInterpolator()); in testAccessInterpolator()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationControllerTests.java599 Interpolator interpolator = in setupAnimationListener()
607 interpolator.getInterpolation( in setupAnimationListener()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt1008 field public static final int interpolator = 16843073; // 0x1010141
2462 public static final class R.interpolator {
2463 ctor public R.interpolator();