Home
last modified time | relevance | path

Searched refs:msec (Results 1 – 25 of 31) 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.cpp503 status_t MediaPlayer::getCurrentPosition(int *msec) in getCurrentPosition() argument
510 *msec = mCurrentPosition; in getCurrentPosition()
513 return mPlayer->getCurrentPosition(msec); in getCurrentPosition()
518 status_t MediaPlayer::getDuration_l(int *msec) in getDuration_l() argument
533 if (msec) { in getDuration_l()
534 *msec = durationMs; in getDuration_l()
543 status_t MediaPlayer::getDuration(int *msec) in getDuration() argument
546 return getDuration_l(msec); in getDuration()
549 status_t MediaPlayer::seekTo_l(int msec, MediaPlayerSeekMode mode) in seekTo_l() argument
551 ALOGV("seekTo (%d, %d)", msec, mode); in seekTo_l()
[all …]
DIMediaPlayer.cpp288 status_t seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
292 data.writeInt32(msec); in seekTo()
298 status_t getCurrentPosition(int* msec) in getCurrentPosition() argument
303 *msec = reply.readInt32(); in getCurrentPosition()
307 status_t getDuration(int* msec) in getDuration() argument
312 *msec = reply.readInt32(); in getDuration()
786 int msec = data.readInt32(); in onTransact() local
788 reply->writeInt32(seekTo(msec, mode)); in onTransact()
793 int msec = 0; in onTransact() local
794 status_t ret = getCurrentPosition(&msec); in onTransact()
[all …]
/frameworks/base/libs/hwui/jni/
DInterpolator.cpp21 …KeyFrame(JNIEnv* env, jobject clazz, jlong interpHandle, jint index, jint msec, jfloatArray valueA… in Interpolator_setKeyFrame() argument
34 interp->setKeyFrame(index, msec, scalars, blend); in Interpolator_setKeyFrame()
47 static jint Interpolator_timeToValues(JNIEnv* env, jobject clazz, jlong interpHandle, jint msec, jf… in Interpolator_timeToValues() argument
53 result = interp->timeToValues(msec, (SkScalar*)values); in Interpolator_timeToValues()
/frameworks/av/media/libmedia/include/media/
Dmediaplayer.h249 int msec,
252 status_t getCurrentPosition(int *msec);
253 status_t getDuration(int *msec);
287 status_t seekTo_l(int msec, MediaPlayerSeekMode mode);
289 status_t getDuration_l(int *msec);
DIMediaPlayer.h79 int msec,
81 virtual status_t getCurrentPosition(int* msec) = 0;
82 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/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
Dandroid_AudioSfDecoder.h55 virtual void getPositionMsec(int* msec); //msec != NULL, ANDROID_UNKNOWN_TIME if unknown
Dandroid_GenericMediaPlayer.h90 virtual void getPositionMsec(int* msec); // ANDROID_UNKNOWN_TIME if unknown
Dandroid_AudioSfDecoder.cpp92 void AudioSfDecoder::getPositionMsec(int* msec) { in getPositionMsec() argument
95 *msec = ANDROID_UNKNOWN_TIME; in getPositionMsec()
97 *msec = timeUsec / 1000; in getPositionMsec()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp495 status_t NuPlayerDriver::seekTo(int msec, MediaPlayerSeekMode mode) { in seekTo() argument
496 ALOGV("seekTo(%p) (%d ms, %d) at state %d", this, msec, mode, mState); in seekTo()
499 int64_t seekTimeUs = msec * 1000LL; in seekTo()
523 status_t NuPlayerDriver::getCurrentPosition(int *msec) { in getCurrentPosition() argument
529 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
545 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
549 status_t NuPlayerDriver::getDuration(int *msec) { in getDuration() argument
556 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
789 int msec = 0; in invoke() local
791 getCurrentPosition(&msec); in invoke()
[all …]
DNuPlayerDriver.h66 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC);
67 virtual status_t getCurrentPosition(int *msec);
68 virtual status_t getDuration(int *msec);
/frameworks/av/media/libmediaplayerservice/
DTestPlayerStub.h91 int msec,
93 return mPlayer->seekTo(msec, mode);
DMediaPlayerService.cpp1352 status_t MediaPlayerService::Client::getCurrentPosition(int *msec) in getCurrentPosition() argument
1357 status_t ret = p->getCurrentPosition(msec); in getCurrentPosition()
1359 ALOGV("[%d] getCurrentPosition = %d", mConnId, *msec); in getCurrentPosition()
1366 status_t MediaPlayerService::Client::getDuration(int *msec) in getDuration() argument
1371 status_t ret = p->getDuration(msec); in getDuration()
1373 ALOGV("[%d] getDuration = %d", mConnId, *msec); in getDuration()
1441 status_t MediaPlayerService::Client::seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
1443 ALOGV("[%d] seekTo(%d, %d)", mConnId, msec, mode); in seekTo()
1446 return p->seekTo(msec, mode); in seekTo()
2032 int32_t msec = 0; in deleteRecycledTrack_l() local
[all …]
DMediaPlayerService.h337 int msec,
339 virtual status_t getCurrentPosition(int* msec);
340 virtual status_t getDuration(int* msec);
/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.h236 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
237 virtual status_t getCurrentPosition(int *msec) = 0;
238 virtual status_t getDuration(int *msec) = 0;
/frameworks/av/include/media/
DMediaPlayerInterface.h236 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
237 virtual status_t getCurrentPosition(int *msec) = 0;
238 virtual status_t getDuration(int *msec) = 0;
/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()
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer.cpp612 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jlong msec, jint mode) in android_media_MediaPlayer_seekTo() argument
619 ALOGV("seekTo: %lld(msec), mode=%d", (long long)msec, mode); in android_media_MediaPlayer_seekTo()
620 …process_media_player_call( env, thiz, mp->seekTo((int)msec, (MediaPlayerSeekMode)mode), NULL, NULL… in android_media_MediaPlayer_seekTo()
701 int msec; in android_media_MediaPlayer_getCurrentPosition() local
702 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); in android_media_MediaPlayer_getCurrentPosition()
703 ALOGV("getCurrentPosition: %d (msec)", msec); in android_media_MediaPlayer_getCurrentPosition()
704 return (jint) msec; in android_media_MediaPlayer_getCurrentPosition()
715 int msec; in android_media_MediaPlayer_getDuration() local
716 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL ); in android_media_MediaPlayer_getDuration()
717 ALOGV("getDuration: %d (msec)", msec); in android_media_MediaPlayer_getDuration()
[all …]
/frameworks/av/cmds/screenrecord/
DOverlay.cpp273 int32_t msec = (int32_t) ((realTime % 1000000000) / 1000000); in getTimeString_l() local
275 snprintf(tmpBuf, sizeof(tmpBuf), ".%03d", msec); in getTimeString_l()
/frameworks/base/core/java/android/os/
DDropBoxManager.java389 public @Nullable Entry getNextEntry(String tag, long msec) { in getNextEntry() argument
391 return mService.getNextEntryWithAttribution(tag, msec, mContext.getOpPackageName(), in getNextEntry()
/frameworks/base/media/java/android/media/
DMediaPlayer.java1948 private native final void _seekTo(long msec, int mode); in _seekTo() argument
1980 public void seekTo(long msec, @SeekMode int mode) { in seekTo() argument
1986 if (msec > Integer.MAX_VALUE) { in seekTo()
1987 Log.w(TAG, "seekTo offset " + msec + " is too large, cap to " + Integer.MAX_VALUE); in seekTo()
1988 msec = Integer.MAX_VALUE; in seekTo()
1989 } else if (msec < Integer.MIN_VALUE) { in seekTo()
1990 Log.w(TAG, "seekTo offset " + msec + " is too small, cap to " + Integer.MIN_VALUE); in seekTo()
1991 msec = Integer.MIN_VALUE; in seekTo()
1993 _seekTo(msec, mode); in seekTo()
2004 public void seekTo(int msec) throws IllegalStateException { in seekTo() argument
[all …]

12