Home
last modified time | relevance | path

Searched refs:msec (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DInterpolator.java73 public void setKeyFrame(int index, int msec, float[] values) { in setKeyFrame() argument
74 setKeyFrame(index, msec, values, null); in setKeyFrame()
87 public void setKeyFrame(int index, int msec, float[] values, float[] blend) { in setKeyFrame() argument
97 nativeSetKeyFrame(native_instance, index, msec, values, blend); in setKeyFrame()
136 public Result timeToValues(int msec, float[] values) { in timeToValues() argument
140 switch (nativeTimeToValues(native_instance, msec, values)) { in timeToValues()
160 …private static native void nativeSetKeyFrame(long native_instance, int index, int msec, float[] va… in nativeSetKeyFrame() argument
162 private static native int nativeTimeToValues(long native_instance, int msec, float[] values); in nativeTimeToValues() argument
/frameworks/av/media/libmedia/
Dmediaplayer.cpp494 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()
[all …]
/frameworks/base/core/jni/android/graphics/
DInterpolator.cpp24 …KeyFrame(JNIEnv* env, jobject clazz, jlong interpHandle, jint index, jint msec, jfloatArray valueA… in Interpolator_setKeyFrame() argument
37 interp->setKeyFrame(index, msec, scalars, blend); in Interpolator_setKeyFrame()
50 static jint Interpolator_timeToValues(JNIEnv* env, jobject clazz, jlong interpHandle, jint msec, jf… in Interpolator_timeToValues() argument
56 result = interp->timeToValues(msec, (SkScalar*)values); in Interpolator_timeToValues()
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/
Dmediaplayer2.h84 int64_t msec,
87 status_t getCurrentPosition(int64_t *msec);
88 status_t getDuration(int64_t srcId, int64_t *msec);
130 status_t seekTo_l(int64_t msec, MediaPlayer2SeekMode mode);
132 status_t getDuration_l(int64_t *msec);
DMediaPlayer2Interface.h206 int64_t msec, MediaPlayer2SeekMode mode = MediaPlayer2SeekMode::SEEK_PREVIOUS_SYNC) = 0;
207 virtual status_t getCurrentPosition(int64_t *msec) = 0;
208 virtual status_t getDuration(int64_t *msec) = 0;
/frameworks/av/media/libmediaplayer2/
Dmediaplayer2.cpp696 status_t MediaPlayer2::getCurrentPosition(int64_t *msec) { in getCurrentPosition() argument
704 *msec = mCurrentPosition; in getCurrentPosition()
707 status_t ret = mPlayer->getCurrentPosition(msec); in getCurrentPosition()
709 ALOGV("getCurrentPosition = %lld", (long long)*msec); in getCurrentPosition()
716 status_t MediaPlayer2::getDuration(int64_t srcId, int64_t *msec) { in getDuration() argument
721 *msec = -1; in getDuration()
744 if (msec) { in getDuration()
745 *msec = durationMs; in getDuration()
750 status_t MediaPlayer2::seekTo_l(int64_t msec, MediaPlayer2SeekMode mode) { in seekTo_l() argument
751 ALOGV("seekTo (%lld, %d)", (long long)msec, mode); in seekTo_l()
[all …]
/frameworks/av/include/media/
Dmediaplayer.h240 int msec,
243 status_t getCurrentPosition(int *msec);
244 status_t getDuration(int *msec);
278 status_t seekTo_l(int msec, MediaPlayerSeekMode mode);
280 status_t getDuration_l(int *msec);
DIMediaPlayer.h78 int msec,
80 virtual status_t getCurrentPosition(int* msec) = 0;
81 virtual status_t getDuration(int* msec) = 0;
DMediaPlayerInterface.h232 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
233 virtual status_t getCurrentPosition(int *msec) = 0;
234 virtual status_t getDuration(int *msec) = 0;
/frameworks/av/media/libmedia/include/media/
Dmediaplayer.h240 int msec,
243 status_t getCurrentPosition(int *msec);
244 status_t getDuration(int *msec);
278 status_t seekTo_l(int msec, MediaPlayerSeekMode mode);
280 status_t getDuration_l(int *msec);
DIMediaPlayer.h78 int msec,
80 virtual status_t getCurrentPosition(int* msec) = 0;
81 virtual status_t getDuration(int* msec) = 0;
/frameworks/wilhelm/tests/examples/
DslesTestDecodeToBuffQueue.cpp152 SLmillisecond msec; in DecProgressCallback() local
153 result = (*caller)->GetPosition(caller, &msec); in DecProgressCallback()
157 fprintf(stdout, "SL_PLAYEVENT_HEADATEND current position=%u ms\n", msec); in DecProgressCallback()
162 fprintf(stdout, "SL_PLAYEVENT_HEADATNEWPOS current position=%u ms\n", msec); in DecProgressCallback()
166 fprintf(stdout, "SL_PLAYEVENT_HEADATMARKER current position=%u ms\n", msec); in DecProgressCallback()
181 SLmillisecond msec; in DecPlayCallback() local
182 SLresult result = (*pCntxt->playItf)->GetPosition(pCntxt->playItf, &msec); in DecPlayCallback()
184 printf("DecPlayCallback called (iteration %d): current position=%u ms\n", counter, msec); in DecPlayCallback()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Driver.cpp376 status_t NuPlayer2Driver::seekTo(int64_t msec, MediaPlayer2SeekMode mode) { in seekTo() argument
377 ALOGD("seekTo(%p) (%lld ms, %d) at state %d", this, (long long)msec, mode, mState); in seekTo()
380 int64_t seekTimeUs = msec * 1000LL; in seekTo()
401 status_t NuPlayer2Driver::getCurrentPosition(int64_t *msec) { in getCurrentPosition() argument
407 *msec = divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
423 *msec = divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
427 status_t NuPlayer2Driver::getDuration(int64_t *msec) { in getDuration() argument
434 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
620 int64_t msec = 0; in invoke() local
622 getCurrentPosition(&msec); in invoke()
[all …]
DNuPlayer2Driver.h53 int64_t msec,
55 virtual status_t getCurrentPosition(int64_t *msec) override;
56 virtual status_t getDuration(int64_t *msec) override;
/frameworks/wilhelm/src/android/
Dandroid_GenericMediaPlayer.cpp291 void GenericMediaPlayer::getPositionMsec(int* msec) { in getPositionMsec() argument
296 if (player == 0 || player->getCurrentPosition(msec) != NO_ERROR) { in getPositionMsec()
297 *msec = ANDROID_UNKNOWN_TIME; in getPositionMsec()
567 int msec = 0; in afterMediaPlayerPreparedSuccessfully() local
568 if (OK == mPlayer->getDuration(&msec)) { in afterMediaPlayerPreparedSuccessfully()
570 mDurationMsec = msec; in afterMediaPlayerPreparedSuccessfully()
Dandroid_GenericPlayer.h78 void getDurationMsec(int* msec); //msec != NULL, ANDROID_UNKNOWN_TIME if unknown
79 virtual void getPositionMsec(int* msec) = 0; //msec != NULL, ANDROID_UNKNOWN_TIME if unknown
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp473 status_t NuPlayerDriver::seekTo(int msec, MediaPlayerSeekMode mode) { in seekTo() argument
474 ALOGV("seekTo(%p) (%d ms, %d) at state %d", this, msec, mode, mState); in seekTo()
477 int64_t seekTimeUs = msec * 1000LL; in seekTo()
501 status_t NuPlayerDriver::getCurrentPosition(int *msec) { in getCurrentPosition() argument
507 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
523 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
527 status_t NuPlayerDriver::getDuration(int *msec) { in getDuration() argument
534 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
744 int msec = 0; in invoke() local
746 getCurrentPosition(&msec); in invoke()
[all …]
DNuPlayerDriver.h64 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC);
65 virtual status_t getCurrentPosition(int *msec);
66 virtual status_t getDuration(int *msec);
/frameworks/av/media/libmediaplayerservice/
DTestPlayerStub.h91 int msec,
93 return mPlayer->seekTo(msec, mode);
DMediaPlayerService.cpp1152 status_t MediaPlayerService::Client::getCurrentPosition(int *msec) in getCurrentPosition() argument
1157 status_t ret = p->getCurrentPosition(msec); in getCurrentPosition()
1159 ALOGV("[%d] getCurrentPosition = %d", mConnId, *msec); in getCurrentPosition()
1166 status_t MediaPlayerService::Client::getDuration(int *msec) in getDuration() argument
1171 status_t ret = p->getDuration(msec); in getDuration()
1173 ALOGV("[%d] getDuration = %d", mConnId, *msec); in getDuration()
1241 status_t MediaPlayerService::Client::seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
1243 ALOGV("[%d] seekTo(%d, %d)", mConnId, msec, mode); in seekTo()
1246 return p->seekTo(msec, mode); in seekTo()
1833 int32_t msec = 0; in deleteRecycledTrack_l() local
[all …]
/frameworks/wilhelm/src/itf/
DIRecord.cpp69 static SLresult IRecord_SetDurationLimit(SLRecordItf self, SLmillisecond msec) in IRecord_SetDurationLimit() argument
75 if (thiz->mDurationLimit != msec) { in IRecord_SetDurationLimit()
76 thiz->mDurationLimit = msec; in IRecord_SetDurationLimit()
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h232 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
233 virtual status_t getCurrentPosition(int *msec) = 0;
234 virtual status_t getDuration(int *msec) = 0;
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer2.cpp758 android_media_MediaPlayer2_seekTo(JNIEnv *env, jobject thiz, jlong msec, jint mode) in android_media_MediaPlayer2_seekTo() argument
765 ALOGV("seekTo: %lld(msec), mode=%d", (long long)msec, mode); in android_media_MediaPlayer2_seekTo()
766 process_media_player_call(env, thiz, mp->seekTo((int64_t)msec, (MediaPlayer2SeekMode)mode), in android_media_MediaPlayer2_seekTo()
812 int64_t msec; in android_media_MediaPlayer2_getCurrentPosition() local
813 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); in android_media_MediaPlayer2_getCurrentPosition()
814 ALOGV("getCurrentPosition: %lld (msec)", (long long)msec); in android_media_MediaPlayer2_getCurrentPosition()
815 return (jlong) msec; in android_media_MediaPlayer2_getCurrentPosition()
826 int64_t msec; in android_media_MediaPlayer2_getDuration() local
827 process_media_player_call( env, thiz, mp->getDuration(srcId, &msec), NULL, NULL ); in android_media_MediaPlayer2_getDuration()
828 ALOGV("getDuration: %lld (msec)", (long long)msec); in android_media_MediaPlayer2_getDuration()
[all …]
Dandroid_media_MediaPlayer.cpp611 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jlong msec, jint mode) in android_media_MediaPlayer_seekTo() argument
618 ALOGV("seekTo: %lld(msec), mode=%d", (long long)msec, mode); in android_media_MediaPlayer_seekTo()
619 …process_media_player_call( env, thiz, mp->seekTo((int)msec, (MediaPlayerSeekMode)mode), NULL, NULL… in android_media_MediaPlayer_seekTo()
700 int msec; in android_media_MediaPlayer_getCurrentPosition() local
701 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); in android_media_MediaPlayer_getCurrentPosition()
702 ALOGV("getCurrentPosition: %d (msec)", msec); in android_media_MediaPlayer_getCurrentPosition()
703 return (jint) msec; in android_media_MediaPlayer_getCurrentPosition()
714 int msec; in android_media_MediaPlayer_getDuration() local
715 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL ); in android_media_MediaPlayer_getDuration()
716 ALOGV("getDuration: %d (msec)", msec); in android_media_MediaPlayer_getDuration()
[all …]
/frameworks/av/services/audioflinger/
DNBAIO_Tee.cpp131 char msec[4]; in generateFilename() local
132 (void)snprintf(msec, sizeof(msec), "%03d", (int)(tv.tv_usec / 1000)); in generateFilename()
133 return mPrefix + fileTime + msec + suffix + ".wav"; in generateFilename()

12