Home
last modified time | relevance | path

Searched refs:getDuration (Results 1 – 25 of 35) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java70 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 …]
DToastTest.java183 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()
DViewAnimatorTest.java86 assertEquals(500, animation.getDuration()); in testAccessInAnimation()
326 assertEquals(500, animation.getDuration()); in testAccessOutAnimation()
DMediaControllerTest.java253 public int getDuration() { in getDuration() method in MediaControllerTest.MockMediaPlayerControl
DVideoViewTest.java283 assertTrue(Math.abs(mVideoView.getDuration() - TEST_VIDEO_DURATION) < DURATION_DELTA); in testGetDuration()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationSetTest.java95 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 …]
DAnimationTest.java167 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());
DAnimationUtilsTest.java65 assertEquals(duration, animation.getDuration()); in testLoad()
82 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
DAnimationTestUtils.java56 animation.getDuration()); in assertRunAnimation()
DLinearInterpolatorTest.java91 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
DAccelerateDecelerateInterpolatorTest.java88 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
DDecelerateInterpolatorTest.java93 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
DAccelerateInterpolatorTest.java90 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
DCycleInterpolatorTest.java82 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycleInterpolator()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java215 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/
DLayoutAnimationTest.java108 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()
DAnimatorTest.java71 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone()
94 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
DAnimatorSetTest.java379 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/
DCodecTest.java80 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/
DUtils.java105 public static long getDuration(String videoUrl) { in getDuration() method in Utils
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java195 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
/cts/tests/tests/media/src/android/media/cts/
DClearKeySystemTest.java399 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in testClearKeyPlayback()
401 ">= duration = " + mMediaCodecPlayer.getDuration()); in testClearKeyPlayback()
DMediaPlayerTest.java219 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()
DMediaRandomTest.java215 mPlayer.getDuration(); in testPlayerRandomAction()
DNativeDecoderTest.java513 player1.getDuration(), player2.getDuration(), maxDurationDiffUs * 0.001); in testMuxer()

12