Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java55 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 …]
DToastTest.java205 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());
DVideoViewTest.java217 new PollingCheck(mVideoView.getDuration() + TIME_OUT) { in testPlayVideo1()
304 assertTrue(Math.abs(mVideoView.getDuration() - TEST_VIDEO_DURATION) < DURATION_DELTA); in testGetDuration()
DViewAnimatorTest.java84 assertEquals(500, animation.getDuration()); in testAccessInAnimation()
315 assertEquals(500, animation.getDuration()); in testAccessOutAnimation()
DMediaControllerTest.java283 public int getDuration() { in getDuration() method in MediaControllerTest.MockMediaPlayerControl
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationSetTest.java79 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 …]
DAnimationTest.java130 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill()
148 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill()
166 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill()
202 long duration = anim.getDuration(); in testRepeatAnimation()
511 assertEquals(0, animation.getDuration());
517 assertEquals(500, animation.getDuration());
532 assertEquals(0, animation.getDuration());
536 assertEquals(20, animation.getDuration());
540 assertEquals(-10, animation.getDuration());
638 assertEquals(myAnimation.getDuration(), cloneAnimation.getDuration());
DAnimationUtilsTest.java56 assertEquals(duration, animation.getDuration()); in testLoad()
73 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
DAnimationTestUtils.java49 assertRunAnimation(instrumentation, view, animation, animation.getDuration()); in assertRunAnimation()
DLinearInterpolatorTest.java74 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
DAccelerateDecelerateInterpolatorTest.java73 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
DDecelerateInterpolatorTest.java78 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
DAccelerateInterpolatorTest.java75 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java233 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX)); in testGetDuration()
234 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX)); in testGetDuration()
235 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX)); in testGetDuration()
236 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1)); in testGetDuration()
239 mAnimationDrawable.getDuration(-1); in testGetDuration()
246 mAnimationDrawable.getDuration(10); in testGetDuration()
293 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect()
294 assertEquals(1000, dr.getDuration(1)); in testInflateCorrect()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java91 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()
DAnimatorSetTest.java92 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration()
236 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone()
237 assertEquals(animator2.getDuration(), clone2.getDuration()); in testClone()
DAnimatorTest.java50 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone()
70 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
DObjectAnimatorTest.java50 assertEquals(duration, objectAnimatorLocal.getDuration()); in testDuration()
224 assertEquals(mDuration, cloneAnimator.getDuration()); in testClone()
DValueAnimatorTest.java45 assertEquals(duration, valueAnimatorLocal.getDuration()); in testDuration()
/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/cts/jank/leanback/
DUtils.java103 public static long getDuration(String videoUrl) { in getDuration() method in Utils
/cts/tests/tests/media/src/android/media/cts/
DClearKeySystemTest.java357 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in testClearKeyPlayback()
359 ">= duration = " + mMediaCodecPlayer.getDuration()); in testClearKeyPlayback()
DMediaPlayerTest.java165 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
217 assertEquals(mp3Duration, mp.getDuration(), tolerance);
269 assertEquals(midiDuration, mp.getDuration(), tolerance);
636 int captureintervalms = mp1.getDuration() + mp2.getDuration() - 2000;
1422 int duration = mMediaPlayer.getDuration();
DMediaRandomTest.java215 mPlayer.getDuration(); in testPlayerRandomAction()
DNativeDecoderTest.java466 assertEquals("duration is different", player1.getDuration(), player2.getDuration()); in testMuxer()

12