Home | History | Annotate | Download | only in libmedia

Lines Matching full:msec

381 status_t MediaPlayer::getCurrentPosition(int *msec)
388 *msec = mCurrentPosition;
391 return mPlayer->getCurrentPosition(msec);
396 status_t MediaPlayer::getDuration_l(int *msec)
404 if (msec)
405 *msec = mDuration;
412 status_t MediaPlayer::getDuration(int *msec)
415 return getDuration_l(msec);
418 status_t MediaPlayer::seekTo_l(int msec)
420 ALOGV("seekTo %d", msec);
422 if ( msec < 0 ) {
423 ALOGW("Attempt to seek to invalid position: %d", msec);
424 msec = 0;
425 } else if ((mDuration > 0) && (msec > mDuration)) {
426 ALOGW("Attempt to seek to past end of file: request = %d, EOF = %d", msec, mDuration);
427 msec = mDuration;
430 mCurrentPosition = msec;
433 mSeekPosition = msec;
434 return mPlayer->seekTo(msec);
437 ALOGV("Seek in progress - queue up seekTo[%d]", msec);
445 status_t MediaPlayer::seekTo(int msec)
449 status_t result = seekTo_l(msec);