/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 55 assertEquals(0, mScroller.getDuration()); in testGetDuration() 60 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 63 assertEquals(50000, mScroller.getDuration()); in testGetDuration() 66 assertEquals(0, mScroller.getDuration()); in testGetDuration() 70 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 105 assertEquals(0, mScroller.getDuration()); in testScrollMode() 114 assertEquals(5000, mScroller.getDuration()); in testScrollMode() 171 assertEquals(0, mScroller.getDuration()); 180 int defaultDuration = mScroller.getDuration(); 205 assertEquals(0, mScroller.getDuration()); in testFlingMode() [all …]
|
D | ToastTest.java | 205 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testAccessDuration() 219 assertEquals(Toast.LENGTH_SHORT, mToast.getDuration()); in testAccessDuration() 353 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); 359 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); 365 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); 382 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); 388 assertEquals(Toast.LENGTH_SHORT, toast.getDuration());
|
D | VideoViewTest.java | 217 new PollingCheck(mVideoView.getDuration() + TIME_OUT) { in testPlayVideo1() 304 assertTrue(Math.abs(mVideoView.getDuration() - TEST_VIDEO_DURATION) < DURATION_DELTA); in testGetDuration()
|
D | ViewAnimatorTest.java | 84 assertEquals(500, animation.getDuration()); in testAccessInAnimation() 315 assertEquals(500, animation.getDuration()); in testAccessOutAnimation()
|
D | MediaControllerTest.java | 283 public int getDuration() { in getDuration() method in MediaControllerTest.MockMediaPlayerControl
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationSetTest.java | 79 assertEquals(SHORT_CHILD_DURATION, children.get(0).getDuration()); in testInitialize() 80 assertEquals(MEDIUM_CHILD_DURATION, children.get(1).getDuration()); in testInitialize() 81 assertEquals(LONG_CHILD_DURATION, children.get(2).getDuration()); in testInitialize() 88 assertEquals(ANIMATIONSET_DURATION, children.get(0).getDuration()); in testInitialize() 89 assertEquals(ANIMATIONSET_DURATION, children.get(1).getDuration()); in testInitialize() 90 assertEquals(ANIMATIONSET_DURATION, children.get(2).getDuration()); in testInitialize() 147 assertEquals(LONG_CHILD_DURATION, animationSet.getDuration()); in testAccessDuration() 149 assertTrue(animationSet.getDuration() > ANIMATIONSET_DURATION); in testAccessDuration() 152 assertEquals(ANIMATIONSET_DURATION, animationSet.getDuration()); in testAccessDuration() 155 assertEquals(ANIMATIONSET_DURATION, children.get(i).getDuration()); in testAccessDuration() [all …]
|
D | AnimationTest.java | 133 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 151 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 169 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 205 long duration = anim.getDuration(); in testRepeatAnimation() 514 assertEquals(0, animation.getDuration()); 520 assertEquals(500, animation.getDuration()); 535 assertEquals(0, animation.getDuration()); 539 assertEquals(20, animation.getDuration()); 543 assertEquals(-10, animation.getDuration()); 641 assertEquals(myAnimation.getDuration(), cloneAnimation.getDuration());
|
D | AnimationUtilsTest.java | 56 assertEquals(duration, animation.getDuration()); in testLoad() 73 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
|
D | AnimationTestUtils.java | 49 assertRunAnimation(instrumentation, view, animation, animation.getDuration()); in assertRunAnimation()
|
D | LinearInterpolatorTest.java | 74 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
|
D | AccelerateDecelerateInterpolatorTest.java | 73 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
|
D | DecelerateInterpolatorTest.java | 78 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
|
D | AccelerateInterpolatorTest.java | 75 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
|
D | CycleInterpolatorTest.java | 68 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycyleInterpolator()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 247 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX)); in testGetDuration() 248 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX)); in testGetDuration() 249 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX)); in testGetDuration() 250 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1)); in testGetDuration() 253 mAnimationDrawable.getDuration(-1); in testGetDuration() 260 mAnimationDrawable.getDuration(10); in testGetDuration() 324 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect() 325 assertEquals(1000, dr.getDuration(1)); in testInflateCorrect()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 91 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration() 92 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration() 94 mLayoutTransition.getDuration(LayoutTransition.CHANGE_DISAPPEARING)); in testSetDuration() 95 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration() 101 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDurationForTransitionType()
|
D | AnimatorTest.java | 50 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone() 70 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
|
D | AnimatorSetTest.java | 291 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration() 435 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone() 436 assertEquals(animator2.getDuration(), clone2.getDuration()); in testClone()
|
D | ObjectAnimatorTest.java | 51 assertEquals(duration, objectAnimatorLocal.getDuration()); in testDuration() 225 assertEquals(mDuration, cloneAnimator.getDuration()); in testClone()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 80 public static int getDuration(String filePath) { in getDuration() method in CodecTest 89 int duration = mp.getDuration(); in getDuration() 160 duration = mp.getDuration(); in setLooping() 197 int duration = mp.getDuration(); in pause() 329 duration = mp.getDuration(); in videoSeekTo() 361 duration = mp.getDuration(); in seekToEnd() 389 duration = mp.getDuration(); in shortMediaStop() 446 duration = mp.getDuration(); in seektoBeforeStart() 484 duration = mp.getDuration(); in mediaRecorderRecord() 552 duration = mp.getDuration(); in resourcesPlayback() [all …]
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
D | Utils.java | 103 public static long getDuration(String videoUrl) { in getDuration() method in Utils
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | GestureDescriptionTest.java | 178 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ClearKeySystemTest.java | 385 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in testClearKeyPlayback() 387 ">= duration = " + mMediaCodecPlayer.getDuration()); in testClearKeyPlayback()
|
D | MediaPlayerTest.java | 217 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI() 269 assertEquals(mp3Duration, mp.getDuration(), tolerance); 325 int duration = mp.getDuration(); 358 assertEquals(midiDuration, mp.getDuration(), tolerance); 731 int captureintervalms = mp1.getDuration() + mp2.getDuration() - 2000; 1018 int duration = mMediaPlayer.getDuration(); 1871 int duration = mMediaPlayer.getDuration();
|
D | MediaRandomTest.java | 215 mPlayer.getDuration(); in testPlayerRandomAction()
|