Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolatorTest.java41 Interpolator interpolator = new Interpolator(10); in testReset1() local
42 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testReset1()
43 interpolator.reset(expected); in testReset1()
44 assertEquals(expected, interpolator.getValueCount()); in testReset1()
45 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testReset1()
52 Interpolator interpolator = new Interpolator(10); in testReset2() local
53 interpolator.reset(expected1, expected2); in testReset2()
54 assertEquals(expected1, interpolator.getValueCount()); in testReset2()
55 assertEquals(expected2, interpolator.getKeyFrameCount()); in testReset2()
59 Interpolator interpolator = new Interpolator(1); in testTimeToValues1() local
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DLinearInterpolatorTest.java60 LinearInterpolator interpolator = new LinearInterpolator(); in testGetInterpolation() local
61 final float delta1 = interpolator.getInterpolation(0.1f) in testGetInterpolation()
62 - interpolator.getInterpolation(0.0f); in testGetInterpolation()
63 final float delta2 = interpolator.getInterpolation(0.2f) in testGetInterpolation()
64 - interpolator.getInterpolation(0.1f); in testGetInterpolation()
65 final float delta3 = interpolator.getInterpolation(0.3f) in testGetInterpolation()
66 - interpolator.getInterpolation(0.2f); in testGetInterpolation()
77 Interpolator interpolator = new LinearInterpolator(); in testLinearInterpolator() local
78 anim.setInterpolator(interpolator); in testLinearInterpolator()
DAccelerateInterpolatorTest.java79 Interpolator interpolator = new AccelerateInterpolator(1.0f); in testAccelerateInterpolator() local
80 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
114 interpolator = new AccelerateInterpolator(1.5f); in testAccelerateInterpolator()
115 anim.setInterpolator(interpolator); in testAccelerateInterpolator()
164 Interpolator interpolator = new AccelerateInterpolator();
166 float alpha1 = interpolator.getInterpolation(0f);
167 float alpha2 = interpolator.getInterpolation(0.25f);
168 float alpha3 = interpolator.getInterpolation(0.5f);
169 float alpha4 = interpolator.getInterpolation(0.75f);
170 float alpha5 = interpolator.getInterpolation(1f);
DAccelerateDecelerateInterpolatorTest.java109 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testGetInterpolation() local
111 float alpha1 = interpolator.getInterpolation(0f); in testGetInterpolation()
112 float alpha2 = interpolator.getInterpolation(0.25f); in testGetInterpolation()
113 float alpha3 = interpolator.getInterpolation(0.5f); in testGetInterpolation()
114 float alpha4 = interpolator.getInterpolation(0.75f); in testGetInterpolation()
115 float alpha5 = interpolator.getInterpolation(1f); in testGetInterpolation()
DDecelerateInterpolatorTest.java82 Interpolator interpolator = new DecelerateInterpolator(1.0f); in testDecelerateInterpolator() local
83 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
117 interpolator = new DecelerateInterpolator(1.5f); in testDecelerateInterpolator()
118 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
DAnimationTest.java79 Interpolator interpolator = myAnimation.getInterpolator(); in testAccessInterpolator() local
80 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. in testAccessInterpolator()
83 assertSame(interpolator, myAnimation.getInterpolator()); in testAccessInterpolator()
88 interpolator = myAnimation.getInterpolator(); in testAccessInterpolator()
89 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); in testAccessInterpolator()
92 interpolator = animation.getInterpolator(); in testAccessInterpolator()
93 assertNotNull(interpolator); in testAccessInterpolator()
94 assertTrue(interpolator instanceof DecelerateInterpolator); in testAccessInterpolator()
97 interpolator = animation.getInterpolator(); in testAccessInterpolator()
98 assertNotNull(interpolator); in testAccessInterpolator()
[all …]
DAnimationUtilsTest.java60 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testLoad() local
62 assertTrue(interpolator instanceof AccelerateInterpolator); in testLoad()
DCycleInterpolatorTest.java72 Interpolator interpolator = new CycleInterpolator(1.0f); in testCycyleInterpolator() local
73 anim.setInterpolator(interpolator); in testCycyleInterpolator()
112 interpolator = new CycleInterpolator(2.0f); in testCycyleInterpolator()
113 anim.setInterpolator(interpolator); in testCycyleInterpolator()
DLayoutAnimationControllerTest.java304 DecelerateInterpolator interpolator = new DecelerateInterpolator(1.0f);
305 mController.setInterpolator(interpolator);
306 assertSame(interpolator, mController.getInterpolator());
/cts/tests/tests/animation/src/android/animation/cts/
DKeyframeTest.java84 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
85 keyFrame.setInterpolator(interpolator); in testSetInterpolator()
86 assertEquals(interpolator, keyFrame.getInterpolator()); in testSetInterpolator()
DAnimatorTest.java90 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
91 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
93 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
DObjectAnimatorTest.java217 Interpolator interpolator = new AccelerateInterpolator(); in testClone() local
221 objAnimator.setInterpolator(interpolator); in testClone()
230 assertEquals(interpolator, cloneAnimator.getInterpolator()); in testClone()
238 Interpolator interpolator = new AccelerateInterpolator(); in testIsStarted() local
242 objAnimator.setInterpolator(interpolator); in testIsStarted()
DLayoutAnimationTest.java105 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
106 mLayoutTransition.setInterpolator(LayoutTransition.APPEARING, interpolator); in testSetInterpolator()
107 assertEquals(interpolator, mLayoutTransition.getInterpolator( in testSetInterpolator()
DAnimatorSetTest.java320 TimeInterpolator interpolator = new AccelerateDecelerateInterpolator(); in testSetInterpolator() local
323 mAnimatorSet.setInterpolator(interpolator); in testSetInterpolator()
330 assertEquals(interpolator, ((ObjectAnimator)animatorList.get(0)).getInterpolator()); in testSetInterpolator()
331 assertEquals(interpolator, ((ObjectAnimator)animatorList.get(1)).getInterpolator()); in testSetInterpolator()
DValueAnimatorTest.java283 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local
284 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator()
286 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
DAnimationActivity.java108 public ValueAnimator createAnimatorWithInterpolator(TimeInterpolator interpolator){ in createAnimatorWithInterpolator() argument
110 ValueAnimator.REVERSE, interpolator, mStartY, mStartY + mDeltaY); in createAnimatorWithInterpolator()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java401 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testInterpolator() local
402 transition.setInterpolator(interpolator); in testInterpolator()
403 assertSame(interpolator, transition.getInterpolator()); in testInterpolator()
411 assertSame(interpolator, animator.getInterpolator()); in testInterpolator()
/cts/tools/dex-tools/dex/
Dclasses.out.dex678 public static final int interpolator
109926 public static final int interpolator