Searched refs:getDuration (Results 1 - 25 of 97) sorted by relevance

1234

/frameworks/av/media/libstagefright/include/
H A DMP3Seeker.h29 virtual bool getDuration(int64_t *durationUs) = 0;
H A DVBRISeeker.h33 virtual bool getDuration(int64_t *durationUs);
H A DXINGSeeker.h31 virtual bool getDuration(int64_t *durationUs);
/frameworks/base/media/java/android/media/videoeditor/
H A DEffect.java71 if (startTimeMs + durationMs > mediaItem.getDuration()) {
101 if (mStartTimeMs + durationMs > mMediaItem.getDuration()) {
118 public long getDuration() { method in class:Effect
130 if (startTimeMs + mDurationMs > mMediaItem.getDuration()) {
157 if (startTimeMs + durationMs > mMediaItem.getDuration()) {
H A DOverlay.java73 if (startTimeMs + durationMs > mediaItem.getDuration()) {
98 public long getDuration() { method in class:Overlay
113 if (mStartTimeMs + durationMs > mMediaItem.getDuration()) {
142 if (startTimeMs + mDurationMs > mMediaItem.getDuration()) {
161 if (startTimeMs + durationMs > mMediaItem.getDuration()) {
H A DMediaImageItem.java351 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()) {
590 public long getDuration() { method in class:MediaImageItem
[all...]
H A DMediaItem.java249 public abstract long getDuration(); method in class:MediaItem
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() > maxDurationM
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerSource.h42 virtual status_t getDuration(int64_t *durationUs) { function in struct:android::NuPlayer::Source
H A DHTTPLiveSource.h42 virtual status_t getDuration(int64_t *durationUs);
H A DGenericSource.h48 virtual status_t getDuration(int64_t *durationUs);
H A DHTTPLiveSource.cpp168 status_t NuPlayer::HTTPLiveSource::getDuration(int64_t *durationUs) { function in class:android::NuPlayer::HTTPLiveSource
169 return mLiveSession->getDuration(durationUs);
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DMediaPlayerProxy.java42 int getDuration(); method in interface:MediaPlayerProxy
H A DSingleThreadedMediaPlayerProxy.java73 public synchronized int getDuration() { method in class:SingleThreadedMediaPlayerProxy
74 return mDelegate.getDuration();
/frameworks/base/core/tests/coretests/src/android/animation/
H A DAnimatorSetEventsTest.java46 return (xAnim.getDuration() + yAnim.getDuration()) +
/frameworks/support/v4/java/android/support/v4/widget/
H A DScrollerCompat.java68 public int getDuration() { method in class:ScrollerCompat
69 return mScroller.getDuration();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
H A DVideoEditorAPITest.java108 assertEquals("Media Video Item Duration", mediaVideoItem1.getDuration(),
120 if (mediaVideoItem1.getDuration() !=
145 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
178 mediaVideoItem1.setExtractBoundaries(1,mediaVideoItem1.getDuration()-1);
181 assertEquals("Media Item End Time", (mediaVideoItem1.getDuration() - 1),
184 mediaVideoItem1.setExtractBoundaries(1, mediaVideoItem1.getDuration());
186 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
188 mediaVideoItem1.setExtractBoundaries(0,mediaVideoItem1.getDuration()/2);
190 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
194 mediaVideoItem1.getTimelineDuration(), mVideoEditor.getDuration());
[all...]
H A DVideoEditorPreviewTest.java271 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
331 validatePreviewProgress(10000, -1, false, mVideoEditor.getDuration());
375 final long storyboardDuration = mVideoEditor.getDuration() ;
387 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
522 validatePreviewProgress(0, -1, false, mVideoEditor.getDuration());
539 validatePreviewProgress(5000, -1, false, (mVideoEditor.getDuration()));
592 mVideoEditor.getDuration());
610 mediaVideoItem.setExtractBoundaries(mediaVideoItem.getDuration() / 2,
611 mediaVideoItem.getDuration());
614 validatePreviewProgress(1000, -1, false, mVideoEditor.getDuration());
[all...]
H A DMediaItemThumbnailTest.java234 final long atTime = mediaVideoItem.getDuration() / 2;
254 final long atTime = mediaVideoItem.getDuration() - 1000;
274 final long atTime = mediaVideoItem.getDuration() - 1000;
293 final long atTime = mediaVideoItem.getDuration() / 4;
346 final long atTime = mediaVideoItem.getDuration() / 2;
404 final long endTime = mediaVideoItem.getDuration() / 2;
433 final long startTime = mediaVideoItem.getDuration() / 2;
434 final long endTime = mediaVideoItem.getDuration();
462 final long startTime = mediaVideoItem.getDuration() / 3;
463 final long endTime = mediaVideoItem.getDuration() /
[all...]
H A DVideoEditorExportTest.java129 mediaVideoItem4.setExtractBoundaries(mediaVideoItem4.getDuration()-5000,
130 mediaVideoItem4.getDuration());
163 + mediaImageItem2.getDuration() + mediaVideoItem3.getTimelineDuration()
164 + mediaVideoItem4.getTimelineDuration() + mediaImageItem5.getDuration()
165 + mediaImageItem6.getDuration();
238 mediaVideoItem4.setExtractBoundaries(mediaVideoItem4.getDuration()-5000,
239 mediaVideoItem4.getDuration());
288 + mediaImageItem2.getDuration()
291 + mediaImageItem5.getDuration()
292 + mediaImageItem6.getDuration();
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerGetDurationStateUnitTest.java25 * 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()";
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
H A DMediaPlayerProxyTestCase.java184 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() /
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DTestPlayerStub.h92 virtual status_t getDuration(int *d) {return mPlayer->getDuration(d);} function in class:android::TestPlayerStub
H A DMidiMetadataRetriever.cpp74 if (mMidiPlayer->getDuration(&duration) != NO_ERROR) {
H A DStagefrightPlayer.cpp133 status_t StagefrightPlayer::getDuration(int *msec) { function in class:android::StagefrightPlayer
134 ALOGV("getDuration");
137 status_t err = mPlayer->getDuration(&durationUs);
/frameworks/base/core/java/android/animation/
H A DAnimator.java101 public abstract long getDuration(); method in class:Animator

Completed in 272 milliseconds

1234