Lines Matching refs:msec
494 status_t MediaPlayer::getCurrentPosition(int *msec) in getCurrentPosition() argument
501 *msec = mCurrentPosition; in getCurrentPosition()
504 return mPlayer->getCurrentPosition(msec); in getCurrentPosition()
509 status_t MediaPlayer::getDuration_l(int *msec) in getDuration_l() argument
524 if (msec) { in getDuration_l()
525 *msec = durationMs; in getDuration_l()
534 status_t MediaPlayer::getDuration(int *msec) in getDuration() argument
537 return getDuration_l(msec); in getDuration()
540 status_t MediaPlayer::seekTo_l(int msec, MediaPlayerSeekMode mode) in seekTo_l() argument
542 ALOGV("seekTo (%d, %d)", msec, mode); in seekTo_l()
545 if ( msec < 0 ) { in seekTo_l()
546 ALOGW("Attempt to seek to invalid position: %d", msec); in seekTo_l()
547 msec = 0; in seekTo_l()
558 if (msec > durationMs) { in seekTo_l()
561 msec, in seekTo_l()
564 msec = durationMs; in seekTo_l()
568 mCurrentPosition = msec; in seekTo_l()
571 mSeekPosition = msec; in seekTo_l()
573 return mPlayer->seekTo(msec, mode); in seekTo_l()
576 ALOGV("Seek in progress - queue up seekTo[%d, %d]", msec, mode); in seekTo_l()
585 status_t MediaPlayer::seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
589 status_t result = seekTo_l(msec, mode); in seekTo()