Home
last modified time | relevance | path

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

12

/frameworks/av/media/libaudioprocessing/include/media/
DAudioResamplerPublic.h54 return fabs(pr1.mSpeed - pr2.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in isAudioPlaybackRateEqual()
65 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid()
66 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid()
70 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid()
71 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid()
/frameworks/av/include/media/
DAudioResamplerPublic.h54 return fabs(pr1.mSpeed - pr2.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && in isAudioPlaybackRateEqual()
65 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && in isAudioPlaybackRateValid()
66 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && in isAudioPlaybackRateValid()
70 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && in isAudioPlaybackRateValid()
71 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX && in isAudioPlaybackRateValid()
/frameworks/base/media/java/android/media/session/
DPlaybackState.java287 private final float mSpeed; field in PlaybackState
301 mSpeed = speed; in PlaybackState()
314 mSpeed = in.readFloat(); in PlaybackState()
330 bob.append(", speed=").append(mSpeed); in toString()
349 dest.writeFloat(mSpeed); in writeToParcel()
405 return mSpeed; in getPlaybackSpeed()
664 private float mSpeed; field in PlaybackState.Builder
690 mSpeed = from.mSpeed; in Builder()
743 mSpeed = playbackSpeed; in setState()
916 return new PlaybackState(mState, mPosition, mUpdateTime, mSpeed, mBufferedPosition, in build()
/frameworks/base/media/java/android/media/
DPlaybackParams.java109 private float mSpeed = 1.0f; field in PlaybackParams
122 mSpeed = in.readFloat(); in PlaybackParams()
220 mSpeed = speed; in setSpeed()
234 return mSpeed; in getSpeed()
262 dest.writeFloat(mSpeed); in writeToParcel()
DRemoteController.java678 float mSpeed; field in RemoteController.PlaybackInfo
684 mSpeed = speed; in PlaybackInfo()
/frameworks/base/location/java/android/location/
DLocation.java140 private float mSpeed = 0.0f; field in Location
186 mSpeed = l.mSpeed; in set()
207 mSpeed = 0; in reset()
734 return mSpeed; in getSpeed()
743 mSpeed = speed; in setSpeed()
757 mSpeed = 0.0f; in removeSpeed()
1128 if (hasSpeed()) s.append(" vel=").append(mSpeed); in toString()
1162 l.mSpeed = in.readFloat();
1193 parcel.writeFloat(mSpeed); in writeToParcel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java50 private int mSpeed = Speed.NONE; field in TestAccessPointBuilder
100 bundle.putInt(AccessPoint.KEY_SPEED, mSpeed); in build()
157 mSpeed = speed; in setSpeed()
DAccessPoint.java256 @Speed private int mSpeed = Speed.NONE; field in AccessPoint
296 mSpeed = savedState.getInt(KEY_SPEED); in AccessPoint()
525 if (mSpeed != Speed.NONE) { in toString()
526 builder.append(",speed=").append(mSpeed); in toString()
610 int oldSpeed = mSpeed; in updateSpeed()
611 mSpeed = generateAverageSpeedForSsid(); in updateSpeed()
613 boolean changed = oldSpeed != mSpeed; in updateSpeed()
615 Log.i(TAG, String.format("%s: Set speed to %d", ssid, mSpeed)); in updateSpeed()
1385 savedState.putInt(KEY_SPEED, mSpeed); in saveWifiState()
1574 int getSpeed() { return mSpeed;} in getSpeed()
[all …]
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp422 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider()
470 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer()
471 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer()
553 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate()
573 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
575 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
DAudioMixer.cpp448 playbackRate->mSpeed, playbackRate->mPitch); in setParameter()
452 playbackRate->mSpeed, in setParameter()
472 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.cpp467 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_MediaPlayer_setPlaybackParams()
477 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_MediaPlayer_setPlaybackParams()
519 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode); in android_media_MediaPlayer_getPlaybackParams()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp1053 __func__, mPortId, mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1056 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1059 playbackRateTemp.mSpeed = effectiveSpeed; in setPlaybackRate()
1067 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1073 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1081 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1087 __func__, mPortId, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
1098 .set(AMEDIAMETRICS_PROP_PLAYBACK_SPEED, (double)mPlaybackRate.mSpeed) in setPlaybackRate()
1103 AMEDIAMETRICS_PROP_PLAYBACK_SPEED, (double)playbackRateTemp.mSpeed) in setPlaybackRate()
1141 / ((double)mSampleRate * mPlaybackRate.mSpeed)); in getBufferDurationInUs()
[all …]
/frameworks/av/media/libstagefright/
DMediaSync.cpp68 mPlaybackSettings.mSpeed = mPlaybackRate; in MediaSync()
167 if (mPlaybackSettings.mSpeed != 0.f in setAudioTrack()
432 updatePlaybackRate_l(rate.mSpeed); in setPlaybackSettings()
438 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings_l()
445 if (rate.mSpeed == 0.f) { in setPlaybackSettings_l()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DPasspointWifiEntry.java559 mSpeed = getAverageSpeedFromScanResults(mScoreCache, currentScanResults); in updateScanResultInfo()
570 mSpeed = getSpeedFromWifiInfo(mScoreCache, mWifiInfo); in onScoreCacheUpdated()
575 mSpeed = getAverageSpeedFromScanResults(mScoreCache, mCurrentHomeScanResults); in onScoreCacheUpdated()
577 mSpeed = getAverageSpeedFromScanResults(mScoreCache, in onScoreCacheUpdated()
DWifiEntry.java212 protected int mSpeed = SPEED_NONE; field in WifiEntry
295 return mSpeed; in getSpeed()
607 mSpeed = getSpeedFromWifiInfo(mScoreCache, wifiInfo); in updateConnectionInfo()
DStandardWifiEntry.java696 mSpeed = getAverageSpeedFromScanResults(mScoreCache, mCurrentScanResults); in updateScanResultInfo()
717 mSpeed = getSpeedFromWifiInfo(mScoreCache, mWifiInfo); in onScoreCacheUpdated()
721 mSpeed = getAverageSpeedFromScanResults(mScoreCache, mCurrentScanResults); in onScoreCacheUpdated()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp403 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) in setPlaybackSettings()
404 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX in setPlaybackSettings()
863 if (mOffloadAudio && ((rate.mSpeed != 0.f && rate.mSpeed != 1.f) in onMessageReceived()
887 if (rate.mSpeed == 0.f) { in onMessageReceived()
893 newRate.mSpeed = mPlaybackSettings.mSpeed; in onMessageReceived()
912 params->setFloat("playback-speed", mPlaybackSettings.mSpeed); in onMessageReceived()
936 rate.mSpeed = 0.f; in onMessageReceived()
1570 && (mPlaybackSettings.mSpeed == 1.f && mPlaybackSettings.mPitch == 1.f); in onStart()
1875 && (mPlaybackSettings.mSpeed == 1.f && mPlaybackSettings.mPitch == 1.f); in determineAudioModeChange()
1937 format->setFloat("operating-rate", rate * mPlaybackSettings.mSpeed); in instantiateDecoder()
DNuPlayerRenderer.cpp158 mPlaybackRate = mPlaybackSettings.mSpeed; in Renderer()
216 if (rate.mSpeed == 0.f) { in onConfigPlayback()
222 newRate.mSpeed = mPlaybackSettings.mSpeed; in onConfigPlayback()
234 mPlaybackRate = rate.mSpeed; in onConfigPlayback()
263 rate->mSpeed = 0.f; in onGetPlaybackSettings()
DNuPlayerDriver.cpp450 if (rate.mSpeed == 0.f && mState == STATE_RUNNING) { in setPlaybackSettings()
453 } else if (rate.mSpeed != 0.f in setPlaybackSettings()
/frameworks/av/media/libmedia/
Dmediaplayer.cpp411 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
414 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings()
422 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) in setPlaybackSettings()
432 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
434 } else if (rate.mSpeed != 0.f in setPlaybackSettings()
DIMediaPlayer.cpp238 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
254 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
740 rate.mSpeed = data.readFloat(); in onTransact()
753 reply->writeFloat(rate.mSpeed); in onTransact()
/frameworks/wilhelm/src/itf/
DI3DDoppler.cpp51 thiz->mVelocitySpherical.mSpeed = speed; in I3DDoppler_SetVelocitySpherical()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1279 mConnId, rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
1292 mConnId, rate->mSpeed, rate->mPitch, rate->mFallbackMode, rate->mStretchMode); in getPlaybackSettings()
2185 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open()
2186 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open()
2188 targetSpeed, mPlaybackRate.mSpeed); in open()
2280 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open()
2469 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackRate()
2481 CHECK_GT(rate.mSpeed, 0.f); in setPlaybackRate()
2484 mMsecsPerFrame = 1E3f / (rate.mSpeed * mSampleRateHz); in setPlaybackRate()

12