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.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 …]
DIMediaPlayer.cpp302 status_t seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
306 data.writeInt32(msec); in seekTo()
312 status_t getCurrentPosition(int* msec) in getCurrentPosition() argument
317 *msec = reply.readInt32(); in getCurrentPosition()
321 status_t getDuration(int* msec) in getDuration() argument
326 *msec = reply.readInt32(); in getDuration()
794 int msec = data.readInt32(); in onTransact() local
796 reply->writeInt32(seekTo(msec, mode)); in onTransact()
801 int msec = 0; in onTransact() local
802 status_t ret = getCurrentPosition(&msec); in onTransact()
[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/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/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.cpp92 void AudioSfDecoder::getPositionMsec(int* msec) { in getPositionMsec() argument
95 *msec = ANDROID_UNKNOWN_TIME; in getPositionMsec()
97 *msec = timeUsec / 1000; in getPositionMsec()
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
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp474 status_t NuPlayerDriver::seekTo(int msec, MediaPlayerSeekMode mode) { in seekTo() argument
475 ALOGV("seekTo(%p) (%d ms, %d) at state %d", this, msec, mode, mState); in seekTo()
478 int64_t seekTimeUs = msec * 1000LL; in seekTo()
502 status_t NuPlayerDriver::getCurrentPosition(int *msec) { in getCurrentPosition() argument
508 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
524 *msec = (int)divRound(tempUs, (int64_t)(1000)); in getCurrentPosition()
528 status_t NuPlayerDriver::getDuration(int *msec) { in getDuration() argument
535 *msec = (mDurationUs + 500LL) / 1000; in getDuration()
745 int msec = 0; in invoke() local
747 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.cpp1153 status_t MediaPlayerService::Client::getCurrentPosition(int *msec) in getCurrentPosition() argument
1158 status_t ret = p->getCurrentPosition(msec); in getCurrentPosition()
1160 ALOGV("[%d] getCurrentPosition = %d", mConnId, *msec); in getCurrentPosition()
1167 status_t MediaPlayerService::Client::getDuration(int *msec) in getDuration() argument
1172 status_t ret = p->getDuration(msec); in getDuration()
1174 ALOGV("[%d] getDuration = %d", mConnId, *msec); in getDuration()
1242 status_t MediaPlayerService::Client::seekTo(int msec, MediaPlayerSeekMode mode) in seekTo() argument
1244 ALOGV("[%d] seekTo(%d, %d)", mConnId, msec, mode); in seekTo()
1247 return p->seekTo(msec, mode); in seekTo()
1834 int32_t msec = 0; in deleteRecycledTrack_l() local
[all …]
DMediaPlayerService.h333 int msec,
335 virtual status_t getCurrentPosition(int* msec);
336 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/include/media/
DMediaPlayerInterface.h231 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
232 virtual status_t getCurrentPosition(int *msec) = 0;
233 virtual status_t getDuration(int *msec) = 0;
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h231 int msec, MediaPlayerSeekMode mode = MediaPlayerSeekMode::SEEK_PREVIOUS_SYNC) = 0;
232 virtual status_t getCurrentPosition(int *msec) = 0;
233 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.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/base/core/java/android/os/
DDropBoxManager.java376 public @Nullable Entry getNextEntry(String tag, long msec) { in getNextEntry() argument
378 return mService.getNextEntry(tag, msec, mContext.getOpPackageName()); in getNextEntry()
/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/media/java/android/media/
DMediaPlayer.java1851 private native final void _seekTo(long msec, int mode); in _seekTo() argument
1883 public void seekTo(long msec, @SeekMode int mode) { in seekTo() argument
1889 if (msec > Integer.MAX_VALUE) { in seekTo()
1890 Log.w(TAG, "seekTo offset " + msec + " is too large, cap to " + Integer.MAX_VALUE); in seekTo()
1891 msec = Integer.MAX_VALUE; in seekTo()
1892 } else if (msec < Integer.MIN_VALUE) { in seekTo()
1893 Log.w(TAG, "seekTo offset " + msec + " is too small, cap to " + Integer.MIN_VALUE); in seekTo()
1894 msec = Integer.MIN_VALUE; in seekTo()
1896 _seekTo(msec, mode); in seekTo()
1907 public void seekTo(int msec) throws IllegalStateException { in seekTo() argument
[all …]

12