Home
last modified time | relevance | path

Searched refs:getDuration (Results 1 – 25 of 34) 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.java133 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());
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()
DCycleInterpolatorTest.java68 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycyleInterpolator()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java247 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/
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()
DAnimatorTest.java50 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone()
70 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
DAnimatorSetTest.java291 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration()
435 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone()
436 assertEquals(animator2.getDuration(), clone2.getDuration()); in testClone()
DObjectAnimatorTest.java51 assertEquals(duration, objectAnimatorLocal.getDuration()); in testDuration()
225 assertEquals(mDuration, cloneAnimator.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.java103 public static long getDuration(String videoUrl) { in getDuration() method in Utils
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java178 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
/cts/tests/tests/media/src/android/media/cts/
DClearKeySystemTest.java385 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in testClearKeyPlayback()
387 ">= duration = " + mMediaCodecPlayer.getDuration()); in testClearKeyPlayback()
DMediaPlayerTest.java217 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();
DMediaRandomTest.java215 mPlayer.getDuration(); in testPlayerRandomAction()

12