/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 41 Interpolator interpolator = new Interpolator(10); in testConstructor() local 42 assertEquals(10, interpolator.getValueCount()); in testConstructor() 43 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testConstructor() 45 interpolator = new Interpolator(15, 20); in testConstructor() 46 assertEquals(15, interpolator.getValueCount()); in testConstructor() 47 assertEquals(20, interpolator.getKeyFrameCount()); in testConstructor() 53 Interpolator interpolator = new Interpolator(10); in testReset1() local 54 assertEquals(DEFAULT_KEYFRAME_COUNT, interpolator.getKeyFrameCount()); in testReset1() 55 interpolator.reset(expected); in testReset1() 56 assertEquals(expected, interpolator.getValueCount()); in testReset1() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | InterpolatorTest.java | 51 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testFastOutExtraSlowIn() local 52 android.R.interpolator.fast_out_extra_slow_in); in testFastOutExtraSlowIn() 57 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn() 58 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn() 62 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn() 67 assertTrue(interpolator.getInterpolation(fraction) in testFastOutExtraSlowIn() 74 float value = interpolator.getInterpolation(fraction); in testFastOutExtraSlowIn() 79 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
|
D | KeyframeTest.java | 103 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local 104 keyFrame.setInterpolator(interpolator); in testSetInterpolator() 105 assertEquals(interpolator, keyFrame.getInterpolator()); in testSetInterpolator()
|
D | AnimatorTest.java | 117 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local 118 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator() 120 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
|
D | LayoutAnimationTest.java | 124 TimeInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local 125 mLayoutTransition.setInterpolator(LayoutTransition.APPEARING, interpolator); in testSetInterpolator() 126 assertEquals(interpolator, mLayoutTransition.getInterpolator( in testSetInterpolator()
|
D | AnimationActivity.java | 107 public ValueAnimator createAnimatorWithInterpolator(TimeInterpolator interpolator){ in createAnimatorWithInterpolator() argument 109 ValueAnimator.REVERSE, interpolator, mStartY, mStartY + mDeltaY); in createAnimatorWithInterpolator()
|
D | ObjectAnimatorTest.java | 349 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()
|
D | AnimatorSetTest.java | 581 TimeInterpolator interpolator = new AccelerateDecelerateInterpolator(); in testSetInterpolator() local 584 mAnimatorSet.setInterpolator(interpolator); in testSetInterpolator() 591 assertEquals(interpolator, animatorList.get(0).getInterpolator()); in testSetInterpolator() 592 assertEquals(interpolator, animatorList.get(1).getInterpolator()); in testSetInterpolator()
|
D | ValueAnimatorTest.java | 449 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testSetInterpolator() local 450 ValueAnimator mValueAnimator = mActivity.createAnimatorWithInterpolator(interpolator); in testSetInterpolator() 452 assertTrue(interpolator.equals(mValueAnimator.getInterpolator())); in testSetInterpolator()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | LinearInterpolatorTest.java | 76 LinearInterpolator interpolator = new LinearInterpolator(); in testGetInterpolation() local 77 final float delta1 = interpolator.getInterpolation(0.1f) in testGetInterpolation() 78 - interpolator.getInterpolation(0.0f); in testGetInterpolation() 79 final float delta2 = interpolator.getInterpolation(0.2f) in testGetInterpolation() 80 - interpolator.getInterpolation(0.1f); in testGetInterpolation() 81 final float delta3 = interpolator.getInterpolation(0.3f) in testGetInterpolation() 82 - interpolator.getInterpolation(0.2f); in testGetInterpolation() 94 Interpolator interpolator = new LinearInterpolator(); in testLinearInterpolator() local 95 anim.setInterpolator(interpolator); in testLinearInterpolator()
|
D | AccelerateInterpolatorTest.java | 94 Interpolator interpolator = new AccelerateInterpolator(1.0f); in testAccelerateInterpolator() local 95 anim.setInterpolator(interpolator); in testAccelerateInterpolator() 129 interpolator = new AccelerateInterpolator(1.5f); in testAccelerateInterpolator() 130 anim.setInterpolator(interpolator); in testAccelerateInterpolator() 180 Interpolator interpolator = new AccelerateInterpolator(); 182 float alpha1 = interpolator.getInterpolation(0f); 183 float alpha2 = interpolator.getInterpolation(0.25f); 184 float alpha3 = interpolator.getInterpolation(0.5f); 185 float alpha4 = interpolator.getInterpolation(0.75f); 186 float alpha5 = interpolator.getInterpolation(1f);
|
D | AccelerateDecelerateInterpolatorTest.java | 125 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testGetInterpolation() local 127 float alpha1 = interpolator.getInterpolation(0f); in testGetInterpolation() 128 float alpha2 = interpolator.getInterpolation(0.25f); in testGetInterpolation() 129 float alpha3 = interpolator.getInterpolation(0.5f); in testGetInterpolation() 130 float alpha4 = interpolator.getInterpolation(0.75f); in testGetInterpolation() 131 float alpha5 = interpolator.getInterpolation(1f); in testGetInterpolation()
|
D | DecelerateInterpolatorTest.java | 97 Interpolator interpolator = new DecelerateInterpolator(1.0f); in testDecelerateInterpolator() local 98 anim.setInterpolator(interpolator); in testDecelerateInterpolator() 132 interpolator = new DecelerateInterpolator(1.5f); in testDecelerateInterpolator() 133 anim.setInterpolator(interpolator); in testDecelerateInterpolator()
|
D | AnimationUtilsTest.java | 69 Interpolator interpolator = AnimationUtils.loadInterpolator(mActivity, in testLoad() local 71 assertTrue(interpolator instanceof AccelerateInterpolator); in testLoad()
|
D | AnimationTest.java | 110 Interpolator interpolator = myAnimation.getInterpolator(); in testAccessInterpolator() local 111 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); // issue 1561186. in testAccessInterpolator() 114 assertSame(interpolator, myAnimation.getInterpolator()); in testAccessInterpolator() 119 interpolator = myAnimation.getInterpolator(); in testAccessInterpolator() 120 assertTrue(interpolator instanceof AccelerateDecelerateInterpolator); in testAccessInterpolator() 123 interpolator = animation.getInterpolator(); in testAccessInterpolator() 124 assertNotNull(interpolator); in testAccessInterpolator() 125 assertTrue(interpolator instanceof DecelerateInterpolator); in testAccessInterpolator() 128 interpolator = animation.getInterpolator(); in testAccessInterpolator() 129 assertNotNull(interpolator); in testAccessInterpolator() [all …]
|
D | CycleInterpolatorTest.java | 86 Interpolator interpolator = new CycleInterpolator(1.0f); in testCycleInterpolator() local 87 anim.setInterpolator(interpolator); in testCycleInterpolator() 126 interpolator = new CycleInterpolator(2.0f); in testCycleInterpolator() 127 anim.setInterpolator(interpolator); in testCycleInterpolator()
|
D | LayoutAnimationControllerTest.java | 314 DecelerateInterpolator interpolator = new DecelerateInterpolator(1.0f); 315 mController.setInterpolator(interpolator); 316 assertSame(interpolator, mController.getInterpolator());
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarTest.java | 335 Interpolator interpolator = new AccelerateDecelerateInterpolator(); in testAccessInterpolator() local 336 mProgressBar.setInterpolator(interpolator); in testAccessInterpolator() 337 assertEquals(interpolator, mProgressBar.getInterpolator()); in testAccessInterpolator()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionTest.java | 445 AccelerateInterpolator interpolator = new AccelerateInterpolator(); in testInterpolator() local 446 transition.setInterpolator(interpolator); in testInterpolator() 447 assertSame(interpolator, transition.getInterpolator()); in testInterpolator() 455 assertSame(interpolator, animator.getInterpolator()); in testInterpolator()
|