Home
last modified time | relevance | path

Searched refs:getDuration (Results 1 – 25 of 36) 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.java282 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 …]
DAnimationUtilsTest.java65 assertEquals(duration, animation.getDuration()); in testLoad()
82 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
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());
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.java231 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX)); in testGetDuration()
232 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX)); in testGetDuration()
233 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX)); in testGetDuration()
234 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1)); in testGetDuration()
239 mAnimationDrawable.getDuration(-1); in testGetDurationTooLow()
244 mAnimationDrawable.getDuration(10); in testGetDurationTooHigh()
292 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect()
293 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.java381 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration()
688 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone()
689 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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java104 prototype.getPath(), timeMs, prototype.getDuration(), prototype.willContinue()); in startingAt()
108 return stroke.getStartTime() + stroke.getDuration(); in endTimeOf()
/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.java199 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java413 assertEquals(-1, mTransition.getDuration()); in testDuration()
416 assertEquals(500, mTransition.getDuration()); in testDuration()
421 assertThat(durationListener.getDuration(), in testDuration()
747 public long getDuration() { in getDuration() method in TransitionTest.DurationListener
/cts/tests/tests/media/src/android/media/cts/
DMediaRandomTest.java217 mPlayer.getDuration(); in testPlayerRandomAction()
DMediaPlayerTest.java234 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
286 assertEquals(mp3Duration, mp.getDuration(), tolerance);
378 int duration = mp.getDuration(); in testPlayAudioLooping()
411 assertEquals(midiDuration, mp.getDuration(), tolerance); in testPlayMidi()
849 int captureintervalms = mp1.getDuration() + mp2.getDuration() - 2000; in testGapless()
1140 int duration = mMediaPlayer.getDuration();
2229 int duration = mMediaPlayer.getDuration(); in testPositionAtEnd()

12