/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 70 assertEquals(0, mScroller.getDuration()); in testGetDuration() 75 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 78 assertEquals(50000, mScroller.getDuration()); in testGetDuration() 81 assertEquals(0, mScroller.getDuration()); in testGetDuration() 85 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 124 assertEquals(0, mScroller.getDuration()); in testScrollMode() 133 assertEquals(5000, mScroller.getDuration()); in testScrollMode() 180 assertEquals(0, mScroller.getDuration()); 189 int defaultDuration = mScroller.getDuration(); 212 assertEquals(0, mScroller.getDuration()); in testFlingMode() [all …]
|
D | ToastTest.java | 183 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testAccessDuration() 195 assertEquals(Toast.LENGTH_SHORT, mToast.getDuration()); in testAccessDuration() 322 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString() 328 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString() 334 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString() 351 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromResource() 357 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromResource()
|
D | ViewAnimatorTest.java | 86 assertEquals(500, animation.getDuration()); in testAccessInAnimation() 326 assertEquals(500, animation.getDuration()); in testAccessOutAnimation()
|
D | MediaControllerTest.java | 253 public int getDuration() { in getDuration() method in MediaControllerTest.MockMediaPlayerControl
|
D | VideoViewTest.java | 283 assertTrue(Math.abs(mVideoView.getDuration() - TEST_VIDEO_DURATION) < DURATION_DELTA); in testGetDuration()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationSetTest.java | 95 assertEquals(SHORT_CHILD_DURATION, children.get(0).getDuration()); in testInitialize() 96 assertEquals(MEDIUM_CHILD_DURATION, children.get(1).getDuration()); in testInitialize() 97 assertEquals(LONG_CHILD_DURATION, children.get(2).getDuration()); in testInitialize() 104 assertEquals(ANIMATIONSET_DURATION, children.get(0).getDuration()); in testInitialize() 105 assertEquals(ANIMATIONSET_DURATION, children.get(1).getDuration()); in testInitialize() 106 assertEquals(ANIMATIONSET_DURATION, children.get(2).getDuration()); in testInitialize() 166 assertEquals(LONG_CHILD_DURATION, animationSet.getDuration()); in testAccessDuration() 168 assertTrue(animationSet.getDuration() > ANIMATIONSET_DURATION); in testAccessDuration() 171 assertEquals(ANIMATIONSET_DURATION, animationSet.getDuration()); in testAccessDuration() 174 assertEquals(ANIMATIONSET_DURATION, children.get(i).getDuration()); in testAccessDuration() [all …]
|
D | AnimationTest.java | 167 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 186 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 205 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 243 long duration = anim.getDuration(); in testRepeatAnimation() 523 assertEquals(0, animation.getDuration()); 529 assertEquals(500, animation.getDuration()); 545 assertEquals(0, animation.getDuration()); 549 assertEquals(20, animation.getDuration()); 553 assertEquals(-10, animation.getDuration()); 649 assertEquals(myAnimation.getDuration(), cloneAnimation.getDuration());
|
D | AnimationUtilsTest.java | 65 assertEquals(duration, animation.getDuration()); in testLoad() 82 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
|
D | AnimationTestUtils.java | 56 animation.getDuration()); in assertRunAnimation()
|
D | LinearInterpolatorTest.java | 91 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
|
D | AccelerateDecelerateInterpolatorTest.java | 88 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
|
D | DecelerateInterpolatorTest.java | 93 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
|
D | AccelerateInterpolatorTest.java | 90 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
|
D | CycleInterpolatorTest.java | 82 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycleInterpolator()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 215 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX)); in testGetDuration() 216 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX)); in testGetDuration() 217 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX)); in testGetDuration() 218 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1)); in testGetDuration() 223 mAnimationDrawable.getDuration(-1); in testGetDurationTooLow() 228 mAnimationDrawable.getDuration(10); in testGetDurationTooHigh() 276 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect() 277 assertEquals(1000, dr.getDuration(1)); in testInflateCorrect()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 108 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration() 109 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration() 111 mLayoutTransition.getDuration(LayoutTransition.CHANGE_DISAPPEARING)); in testSetDuration() 112 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration() 119 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDurationForTransitionType()
|
D | AnimatorTest.java | 71 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone() 94 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
|
D | AnimatorSetTest.java | 379 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration() 686 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone() 687 assertEquals(animator2.getDuration(), clone2.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 | 105 public static long getDuration(String videoUrl) { in getDuration() method in Utils
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | GestureDescriptionTest.java | 195 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ClearKeySystemTest.java | 399 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in testClearKeyPlayback() 401 ">= duration = " + mMediaCodecPlayer.getDuration()); in testClearKeyPlayback()
|
D | MediaPlayerTest.java | 219 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI() 271 assertEquals(mp3Duration, mp.getDuration(), tolerance); 363 int duration = mp.getDuration(); in testPlayAudioLooping() 396 assertEquals(midiDuration, mp.getDuration(), tolerance); in testPlayMidi() 769 int captureintervalms = mp1.getDuration() + mp2.getDuration() - 2000; 1056 int duration = mMediaPlayer.getDuration(); 1983 int duration = mMediaPlayer.getDuration(); in testPositionAtEnd()
|
D | MediaRandomTest.java | 215 mPlayer.getDuration(); in testPlayerRandomAction()
|
D | NativeDecoderTest.java | 513 player1.getDuration(), player2.getDuration(), maxDurationDiffUs * 0.001); in testMuxer()
|