Home
last modified time | relevance | path

Searched refs:mSpeed (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/av/include/media/
DAudioResamplerPublic.h90 float mSpeed; member
105 return fabs(pr1.mSpeed - pr2.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in isAudioPlaybackRateEqual()
116 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid()
117 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid()
121 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid()
122 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid()
/frameworks/base/media/java/android/media/
DPlaybackParams.java97 private float mSpeed = 1.0f; field in PlaybackParams
110 mSpeed = in.readFloat(); in PlaybackParams()
206 mSpeed = speed; in setSpeed()
220 return mSpeed; in getSpeed()
248 dest.writeFloat(mSpeed); in writeToParcel()
DRemoteController.java272 final long scaledSinceThen = (long) (sinceThen * lastPlaybackInfo.mSpeed); in getEstimatedMediaPosition()
866 pi.mSpeed); in onNewPlaybackInfo()
1060 float mSpeed; field in RemoteController.PlaybackInfo
1066 mSpeed = speed; in PlaybackInfo()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java235 private final float mSpeed; field in PlaybackState
249 mSpeed = speed; in PlaybackState()
262 mSpeed = in.readFloat(); in PlaybackState()
278 bob.append(", speed=").append(mSpeed); in toString()
297 dest.writeFloat(mSpeed); in writeToParcel()
347 return mSpeed; in getPlaybackSpeed()
759 private float mSpeed;
785 mSpeed = from.mSpeed;
833 mSpeed = playbackSpeed;
998 return new PlaybackState(mState, mPosition, mUpdateTime, mSpeed, mBufferedPosition,
/frameworks/support/v4/java/android/support/v4/media/session/
DPlaybackStateCompat.java261 private final float mSpeed; field in PlaybackStateCompat
278 mSpeed = rate; in PlaybackStateCompat()
290 mSpeed = in.readFloat(); in PlaybackStateCompat()
306 bob.append(", speed=").append(mSpeed); in toString()
325 dest.writeFloat(mSpeed); in writeToParcel()
380 return mSpeed; in getPlaybackSpeed()
516 mSpeed, mActions, mErrorMessage, mUpdateTime, in getPlaybackState()
520 mSpeed, mActions, mErrorMessage, mUpdateTime, in getPlaybackState()
787 mRate = source.mSpeed; in Builder()
/frameworks/base/location/java/android/location/
DLocation.java89 private float mSpeed = 0.0f; field in Location
139 mSpeed = l.mSpeed; in set()
160 mSpeed = 0; in reset()
635 return mSpeed; in getSpeed()
644 mSpeed = speed; in setSpeed()
655 mSpeed = 0.0f; in removeSpeed()
853 if (mHasSpeed) s.append(" vel=").append(mSpeed); in toString()
881 l.mSpeed = in.readFloat();
912 parcel.writeFloat(mSpeed); in writeToParcel()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DCopyService.java84 private long mSpeed; field in CopyService
231 mSpeed = 0; in setupCopyJob()
357 if (mSpeed == 0) { in updateRemainingTimeEstimate()
358 mSpeed = sampleSpeed; in updateRemainingTimeEstimate()
360 mSpeed = ((3 * mSpeed) + sampleSpeed) / 4; in updateRemainingTimeEstimate()
363 if (mSampleTime > 0 && mSpeed > 0) { in updateRemainingTimeEstimate()
364 mRemainingTime = ((mBatchSize - mBytesCopied) * 1000) / mSpeed; in updateRemainingTimeEstimate()
/frameworks/base/services/core/java/com/android/server/audio/
DPlayerRecord.java92 public float mSpeed; field in PlayerRecord.RccPlaybackState
97 mSpeed = speed; in RccPlaybackState()
103 mSpeed = RemoteControlClient.PLAYBACK_SPEED_1X; in reset()
108 return stateToString() + ", " + posToString() + ", " + mSpeed + "X"; in toString()
/frameworks/av/services/audioflinger/
DBufferProviders.cpp343 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider()
391 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer()
392 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer()
464 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate()
481 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
483 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
DAudioMixer.cpp737 "bad parameters speed %f, pitch %f",playbackRate->mSpeed, in setParameter()
742 playbackRate->mSpeed, in setParameter()
800 fabs(playbackRate.mSpeed - mPlaybackRate.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in setPlaybackRate()
/frameworks/base/media/jni/
Dandroid_media_PlaybackParams.h84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); in fillFromJobject()
103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed); in asJobject()
Dandroid_media_MediaSync.cpp326 pbs.speedSet, pbs.audioRate.mSpeed, in android_media_MediaSync_setPlaybackParams()
335 rate.mSpeed = pbs.audioRate.mSpeed; in android_media_MediaSync_setPlaybackParams()
378 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode); in android_media_MediaSync_getPlaybackParams()
Dandroid_media_MediaPlayer.cpp442 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_MediaPlayer_setPlaybackParams()
452 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_MediaPlayer_setPlaybackParams()
491 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode); in android_media_MediaPlayer_getPlaybackParams()
/frameworks/av/media/libstagefright/
DMediaSync.cpp65 mPlaybackSettings.mSpeed = mPlaybackRate; in MediaSync()
164 if (mPlaybackSettings.mSpeed != 0.f in setAudioTrack()
429 updatePlaybackRate_l(rate.mSpeed); in setPlaybackSettings()
435 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings_l()
442 if (rate.mSpeed == 0.f) { in setPlaybackSettings_l()
DAwesomePlayer.cpp2605 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) in setPlaybackSettings()
2606 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX in setPlaybackSettings()
2613 if (rate.mSpeed == 0.f) { in setPlaybackSettings()
2621 newRate.mSpeed = mPlaybackSettings.mSpeed; in setPlaybackSettings()
2645 rate->mSpeed = 0.f; in getPlaybackSettings()
DUtils.cpp957 msg->setFloat("speed", rate.mSpeed); in writeToAMessage()
965 CHECK(msg->findFloat("speed", &rate->mSpeed)); in readFromAMessage()
/frameworks/av/media/libmedia/
DAudioTrack.cpp809 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
812 playbackRateTemp.mSpeed = effectiveSpeed; in setPlaybackRate()
820 ALOGV("setPlaybackRate(%f, %f) failed", playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
827 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
833 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1233 mPlaybackRate.mSpeed); in createTrack_l()
1409 const float effectiveSpeed = adjustSpeed(mPlaybackRate.mSpeed, mPlaybackRate.mPitch); in createTrack_l()
1414 playbackRateTemp.mSpeed = effectiveSpeed; in createTrack_l()
1790 float speed = mPlaybackRate.mSpeed; in processAudioBuffer()
2261 / ((double)mSampleRate * mPlaybackRate.mSpeed); in getTimestamp()
[all …]
Dmediaplayer.cpp407 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
410 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings()
417 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
419 } else if (rate.mSpeed != 0.f && mCurrentState == MEDIA_PLAYER_PAUSED) { in setPlaybackSettings()
DIMediaPlayer.cpp188 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
204 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
513 rate.mSpeed = data.readFloat(); in onTransact()
526 reply->writeFloat(rate.mSpeed); in onTransact()
/frameworks/wilhelm/src/itf/
DI3DDoppler.c51 thiz->mVelocitySpherical.mSpeed = speed; in I3DDoppler_SetVelocitySpherical()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp342 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) in setPlaybackSettings()
343 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX in setPlaybackSettings()
720 if (rate.mSpeed == 0.f) { in onMessageReceived()
725 newRate.mSpeed = mPlaybackSettings.mSpeed; in onMessageReceived()
737 params->setFloat("operating-rate", rate * mPlaybackSettings.mSpeed); in onMessageReceived()
762 rate.mSpeed = 0.f; in onMessageReceived()
1524 format->setFloat("operating-rate", rate * mPlaybackSettings.mSpeed); in instantiateDecoder()
DNuPlayerRenderer.cpp122 mPlaybackRate = mPlaybackSettings.mSpeed; in Renderer()
168 if (rate.mSpeed == 0.f) { in onConfigPlayback()
174 newRate.mSpeed = mPlaybackSettings.mSpeed; in onConfigPlayback()
186 mPlaybackRate = rate.mSpeed; in onConfigPlayback()
215 rate->mSpeed = 0.f; in onGetPlaybackSettings()
DNuPlayerDriver.cpp368 if (rate.mSpeed == 0.f && mState == STATE_RUNNING) { in setPlaybackSettings()
373 } else if (rate.mSpeed != 0.f && mState == STATE_PAUSED) { in setPlaybackSettings()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp981 mConnId, rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
994 mConnId, rate->mSpeed, rate->mPitch, rate->mFallbackMode, rate->mStretchMode); in getPlaybackSettings()
1738 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open()
1915 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackRate()
1927 CHECK_GT(rate.mSpeed, 0.f); in setPlaybackRate()
1930 mMsecsPerFrame = 1E3f / (rate.mSpeed * mSampleRateHz); in setPlaybackRate()
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp710 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_AudioTrack_set_playback_params()
720 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_AudioTrack_set_playback_params()

12