HomeSort by relevance Sort by last modified time
    Searched refs:getDuration (Results 1 - 25 of 161) sorted by null

1 2 3 4 5 6 7

  /development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
Voicemail.java 49 public long getDuration();
  /external/nist-sip/java/javax/sip/header/
RetryAfterHeader.java 14 int getDuration();
  /frameworks/base/media/libstagefright/include/
MP3Seeker.h 29 virtual bool getDuration(int64_t *durationUs) = 0;
XINGSeeker.h 31 virtual bool getDuration(int64_t *durationUs);
VBRISeeker.h 33 virtual bool getDuration(int64_t *durationUs);
  /frameworks/base/media/java/android/media/videoeditor/
Effect.java 71 if (startTimeMs + durationMs > mediaItem.getDuration()) {
101 if (mStartTimeMs + durationMs > mMediaItem.getDuration()) {
118 public long getDuration() {
130 if (startTimeMs + mDurationMs > mMediaItem.getDuration()) {
157 if (startTimeMs + durationMs > mMediaItem.getDuration()) {
Overlay.java 73 if (startTimeMs + durationMs > mediaItem.getDuration()) {
98 public long getDuration() {
113 if (mStartTimeMs + durationMs > mMediaItem.getDuration()) {
142 if (startTimeMs + mDurationMs > mMediaItem.getDuration()) {
161 if (startTimeMs + durationMs > mMediaItem.getDuration()) {
MediaImageItem.java 351 final long transitionDurationMs = mBeginTransition.getDuration();
391 final long transitionDurationMs = mEndTransition.getDuration();
402 if (effect.getStartTime() + effect.getDuration() >
419 if (overlay.getStartTime() + overlay.getDuration() >
442 if (effect.getStartTime() > getDuration()) {
452 if (effectStartTimeMs + effect.getDuration() > getDuration()) {
453 effectDurationMs = getDuration() - effectStartTimeMs;
455 effectDurationMs = effect.getDuration();
459 effectDurationMs != effect.getDuration()) {
    [all...]
MediaItem.java 249 public abstract long getDuration();
306 if (effect.getStartTime() + effect.getDuration() > getDuration()) {
315 invalidateTransitions(effect.getStartTime(), effect.getDuration());
340 invalidateTransitions(effect.getStartTime(), effect.getDuration());
429 if (overlay.getStartTime() + overlay.getDuration() > getDuration()) {
463 invalidateTransitions(overlay.getStartTime(), overlay.getDuration());
506 invalidateTransitions(overlay.getStartTime(), overlay.getDuration());
672 if (mBeginTransition.getDuration() > maxDurationMs)
    [all...]
  /frameworks/base/media/libmediaplayerservice/nuplayer/
NuPlayerSource.h 41 virtual status_t getDuration(int64_t *durationUs) {
HTTPLiveSource.h 43 virtual status_t getDuration(int64_t *durationUs);
  /frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
MediaPlayerProxy.java 42 int getDuration();
SingleThreadedMediaPlayerProxy.java 73 public synchronized int getDuration() {
74 return mDelegate.getDuration();
  /cts/tests/tests/widget/src/android/widget/cts/
ScrollerTest.java 87 notes = "Test {@link Scroller#getDuration()}",
88 method = "getDuration",
92 assertEquals(0, mScroller.getDuration());
97 assertTrue(mScroller.getDuration() > 0);
100 assertEquals(50000, mScroller.getDuration());
103 assertEquals(0, mScroller.getDuration());
107 assertTrue(mScroller.getDuration() > 0);
202 assertEquals(0, mScroller.getDuration());
211 assertEquals(5000, mScroller.getDuration());
300 assertEquals(0, mScroller.getDuration());
    [all...]
  /frameworks/base/core/tests/coretests/src/android/animation/
AnimatorSetEventsTest.java 46 return (xAnim.getDuration() + yAnim.getDuration()) +
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
VideoEditorAPITest.java 109 assertEquals("Media Video Item Duration", mediaVideoItem1.getDuration(),
121 if (mediaVideoItem1.getDuration() !=
147 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
180 mediaVideoItem1.setExtractBoundaries(1,mediaVideoItem1.getDuration()-1);
183 assertEquals("Media Item End Time", (mediaVideoItem1.getDuration() - 1),
186 mediaVideoItem1.setExtractBoundaries(1, mediaVideoItem1.getDuration());
188 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
190 mediaVideoItem1.setExtractBoundaries(0,mediaVideoItem1.getDuration()/2);
192 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
196 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
    [all...]
VideoEditorPreviewTest.java 263 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
324 validatePreviewProgress(10000, -1, false, mVideoEditor.getDuration());
369 final long storyboardDuration = mVideoEditor.getDuration() ;
381 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
511 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
528 validatePreviewProgress(5000, -1, false, (mVideoEditor.getDuration()));
582 mVideoEditor.getDuration());
601 mediaVideoItem.setExtractBoundaries(mediaVideoItem.getDuration() / 2,
602 mediaVideoItem.getDuration());
605 validatePreviewProgress(1000, -1, false, mVideoEditor.getDuration());
    [all...]
MediaItemThumbnailTest.java 242 final long atTime = mediaVideoItem.getDuration() / 2;
263 final long atTime = mediaVideoItem.getDuration() - 1000;
284 final long atTime = mediaVideoItem.getDuration() - 1000;
304 final long atTime = mediaVideoItem.getDuration() / 4;
359 final long atTime = mediaVideoItem.getDuration() / 2;
419 final long endTime = mediaVideoItem.getDuration() / 2;
449 final long startTime = mediaVideoItem.getDuration() / 2;
450 final long endTime = mediaVideoItem.getDuration();
479 final long startTime = mediaVideoItem.getDuration() / 3;
480 final long endTime = mediaVideoItem.getDuration() / 2
    [all...]
VideoEditorExportTest.java 130 mediaVideoItem4.setExtractBoundaries(mediaVideoItem4.getDuration()-5000,
131 mediaVideoItem4.getDuration());
164 + mediaImageItem2.getDuration() + mediaVideoItem3.getTimelineDuration()
165 + mediaVideoItem4.getTimelineDuration() + mediaImageItem5.getDuration()
166 + mediaImageItem6.getDuration();
240 mediaVideoItem4.setExtractBoundaries(mediaVideoItem4.getDuration()-5000,
241 mediaVideoItem4.getDuration());
290 + mediaImageItem2.getDuration()
293 + mediaImageItem5.getDuration()
294 + mediaImageItem6.getDuration();
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaPlayerGetDurationStateUnitTest.java 25 * MediaPlayer.getDuration() method can be called.
31 * 1. It is valid to call getDuration() in the following states:
33 * 2. It is invalid to call getDuration() in the following states:
56 player.getDuration();
66 return "getDuration()";
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
AnimationDrawableTest.java 299 method = "getDuration",
303 + "AnimationDrawable#getDuration(int) when param index is out of bounds")
305 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX));
306 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX));
307 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX));
308 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1));
311 mAnimationDrawable.getDuration(-1);
318 mAnimationDrawable.getDuration(10);
385 assertEquals(2000, mAnimationDrawable.getDuration(0));
386 assertEquals(1000, mAnimationDrawable.getDuration(1))
    [all...]
  /frameworks/base/media/libmediaplayerservice/
TestPlayerStub.h 95 virtual status_t getDuration(int *d) {return mPlayer->getDuration(d);}
  /packages/apps/VideoEditor/src/com/android/videoeditor/service/
MovieEffect.java 53 mDurationMs = effect.getDuration();
93 public long getDuration() {
  /cts/tests/tests/view/src/android/view/animation/cts/
AnimationSetTest.java 104 assertEquals(SHORT_CHILD_DURATION, children.get(0).getDuration());
105 assertEquals(MEDIUM_CHILD_DURATION, children.get(1).getDuration());
106 assertEquals(LONG_CHILD_DURATION, children.get(2).getDuration());
113 assertEquals(ANIMATIONSET_DURATION, children.get(0).getDuration());
114 assertEquals(ANIMATIONSET_DURATION, children.get(1).getDuration());
115 assertEquals(ANIMATIONSET_DURATION, children.get(2).getDuration());
188 method = "getDuration",
194 assertEquals(LONG_CHILD_DURATION, animationSet.getDuration());
196 assertTrue(animationSet.getDuration() > ANIMATIONSET_DURATION);
199 assertEquals(ANIMATIONSET_DURATION, animationSet.getDuration());
    [all...]
  /frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
MediaPlayerProxyTestCase.java 184 int duration = mPlayer.getDuration();
188 assertEquals(duration, mPlayer.getDuration());
190 assertEquals(duration, mPlayer.getDuration());
197 mPlayer.getDuration();
228 assertEquals(mPlayer.getDuration(), mPlayer.getCurrentPosition(), ERROR_TOLERANCE_MILLIS);
243 assertTrue(mPlayer.getDuration() > 0);
244 mPlayer.seekTo(mPlayer.getDuration() / 2);
255 assertTrue(mPlayer.getDuration() > 0);
256 mPlayer.seekTo(mPlayer.getDuration() / 2);
267 mPlayer.seekTo(mPlayer.getDuration() / 2)
    [all...]

Completed in 468 milliseconds

1 2 3 4 5 6 7