Home
last modified time | relevance | path

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

12

/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackControlGlue.java44 private int mSpeed = PlaybackControlGlue.PLAYBACK_SPEED_PAUSED; field in PlaybackControlGlue
186 return mSpeed; in getCurrentSpeedId()
192 if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_PAUSED) { in getCurrentPosition()
194 } else if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_NORMAL) { in getCurrentPosition()
196 } else if (mSpeed >= PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
197 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
199 } else if (mSpeed <= -PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
200 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
233 if (speed == mSpeed) { in play()
237 mSpeed = speed; in play()
[all …]
/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/av/media/libaudioprocessing/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/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DPlaybackTestFragment.java154 private int mSpeed = PLAYBACK_SPEED_PAUSED; field in PlaybackTestFragment.PlaybackControlHelper
284 return mSpeed; in getCurrentSpeedId()
290 if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_PAUSED) { in getCurrentPosition()
292 } else if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_NORMAL) { in getCurrentPosition()
294 } else if (mSpeed >= PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
295 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
297 } else if (mSpeed <= -PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
298 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
331 if (speed == mSpeed) { in play()
335 mSpeed = speed; in play()
[all …]
DPlaybackTestSupportFragment.java157 private int mSpeed = PLAYBACK_SPEED_PAUSED; field in PlaybackTestSupportFragment.PlaybackControlHelper
287 return mSpeed; in getCurrentSpeedId()
293 if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_PAUSED) { in getCurrentPosition()
295 } else if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_NORMAL) { in getCurrentPosition()
297 } else if (mSpeed >= PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
298 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
300 } else if (mSpeed <= -PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { in getCurrentPosition()
301 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; in getCurrentPosition()
334 if (speed == mSpeed) { in play()
338 mSpeed = speed; in play()
[all …]
/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.java677 float mSpeed; field in RemoteController.PlaybackInfo
683 mSpeed = speed; in PlaybackInfo()
/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()
822 private float mSpeed;
848 mSpeed = from.mSpeed;
901 mSpeed = playbackSpeed;
1074 return new PlaybackState(mState, mPosition, mUpdateTime, mSpeed, mBufferedPosition,
/frameworks/base/location/java/android/location/
DLocation.java131 private float mSpeed = 0.0f; field in Location
173 mSpeed = l.mSpeed; in set()
193 mSpeed = 0; in reset()
671 return mSpeed; in getSpeed()
680 mSpeed = speed; in setSpeed()
694 mSpeed = 0.0f; in removeSpeed()
1045 if (hasSpeed()) s.append(" vel=").append(mSpeed); in toString()
1078 l.mSpeed = in.readFloat();
1108 parcel.writeFloat(mSpeed); in writeToParcel()
/frameworks/support/media-compat/java/android/support/v4/media/session/
DPlaybackStateCompat.java540 final float mSpeed; field in PlaybackStateCompat
558 mSpeed = rate; in PlaybackStateCompat()
571 mSpeed = in.readFloat(); in PlaybackStateCompat()
589 bob.append(", speed=").append(mSpeed); in toString()
609 dest.writeFloat(mSpeed); in writeToParcel()
666 return mSpeed; in getPlaybackSpeed()
836 mSpeed, mActions, mErrorMessage, mUpdateTime, in getPlaybackState()
841 mBufferedPosition, mSpeed, mActions, mErrorMessage, mUpdateTime, in getPlaybackState()
1110 mRate = source.mSpeed; in Builder()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java47 private int mSpeed = Speed.NONE; field in TestAccessPointBuilder
94 bundle.putInt(AccessPoint.KEY_SPEED, mSpeed); in build()
153 mSpeed = speed; in setSpeed()
DAccessPoint.java197 @Speed private int mSpeed = Speed.NONE; field in AccessPoint
230 mSpeed = savedState.getInt(KEY_SPEED); in AccessPoint()
327 this.mSpeed = that.mSpeed; in copyFrom()
424 if (mSpeed != Speed.NONE) { in toString()
425 builder.append(",speed=").append(mSpeed); in toString()
504 int oldSpeed = mSpeed; in updateSpeed()
505 mSpeed = generateAverageSpeedForSsid(); in updateSpeed()
507 boolean changed = oldSpeed != mSpeed; in updateSpeed()
509 Log.i(TAG, String.format("%s: Set speed to %d", ssid, mSpeed)); in updateSpeed()
941 if (mSpeed != Speed.NONE) { in getVisibilityStatus()
[all …]
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp397 this, channelCount, format, sampleRate, playbackRate.mSpeed, in TimestretchBufferProvider()
445 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL in getNextBuffer()
446 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; in getNextBuffer()
518 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); in setPlaybackRate()
538 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
540 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
/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.cpp527 pbp.speedSet, pbp.audioRate.mSpeed, in android_media_MediaPlayer_setPlaybackParams()
537 rate.mSpeed = pbp.audioRate.mSpeed; in android_media_MediaPlayer_setPlaybackParams()
576 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode); in android_media_MediaPlayer_getPlaybackParams()
/frameworks/av/media/libstagefright/
DMediaSync.cpp67 mPlaybackSettings.mSpeed = mPlaybackRate; in MediaSync()
166 if (mPlaybackSettings.mSpeed != 0.f in setAudioTrack()
431 updatePlaybackRate_l(rate.mSpeed); in setPlaybackSettings()
437 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings_l()
444 if (rate.mSpeed == 0.f) { in setPlaybackSettings_l()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp906 mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
909 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
912 playbackRateTemp.mSpeed = effectiveSpeed; in setPlaybackRate()
920 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
926 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
934 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
940 playbackRate.mSpeed, playbackRate.mPitch); in setPlaybackRate()
979 / ((double)mSampleRate * mPlaybackRate.mSpeed)); in getBufferDurationInUs()
1468 max(mMaxRequiredSpeed, mPlaybackRate.mSpeed); in createTrack_l()
1649 const float effectiveSpeed = adjustSpeed(mPlaybackRate.mSpeed, mPlaybackRate.mPitch); in createTrack_l()
[all …]
/frameworks/av/media/libmedia/
Dmediaplayer.cpp436 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
439 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { in setPlaybackSettings()
447 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) in setPlaybackSettings()
457 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { in setPlaybackSettings()
459 } else if (rate.mSpeed != 0.f in setPlaybackSettings()
DIMediaPlayer.cpp232 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
248 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
670 rate.mSpeed = data.readFloat(); in onTransact()
683 reply->writeFloat(rate.mSpeed); in onTransact()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayer.cpp395 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) in setPlaybackSettings()
396 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX in setPlaybackSettings()
837 if (mOffloadAudio && ((rate.mSpeed != 0.f && rate.mSpeed != 1.f) in onMessageReceived()
861 if (rate.mSpeed == 0.f) { in onMessageReceived()
867 newRate.mSpeed = mPlaybackSettings.mSpeed; in onMessageReceived()
886 params->setFloat("playback-speed", mPlaybackSettings.mSpeed); in onMessageReceived()
910 rate.mSpeed = 0.f; in onMessageReceived()
1511 && (mPlaybackSettings.mSpeed == 1.f && mPlaybackSettings.mPitch == 1.f); in onStart()
1729 && (mPlaybackSettings.mSpeed == 1.f && mPlaybackSettings.mPitch == 1.f); in determineAudioModeChange()
1791 format->setFloat("operating-rate", rate * mPlaybackSettings.mSpeed); in instantiateDecoder()
DNuPlayerRenderer.cpp134 mPlaybackRate = mPlaybackSettings.mSpeed; in Renderer()
192 if (rate.mSpeed == 0.f) { in onConfigPlayback()
198 newRate.mSpeed = mPlaybackSettings.mSpeed; in onConfigPlayback()
210 mPlaybackRate = rate.mSpeed; in onConfigPlayback()
239 rate->mSpeed = 0.f; in onGetPlaybackSettings()
DNuPlayerDriver.cpp430 if (rate.mSpeed == 0.f && mState == STATE_RUNNING) { in setPlaybackSettings()
433 } else if (rate.mSpeed != 0.f in setPlaybackSettings()
/frameworks/wilhelm/src/itf/
DI3DDoppler.cpp51 thiz->mVelocitySpherical.mSpeed = speed; in I3DDoppler_SetVelocitySpherical()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1134 mConnId, rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackSettings()
1147 mConnId, rate->mSpeed, rate->mPitch, rate->mFallbackMode, rate->mStretchMode); in getPlaybackSettings()
1984 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); in open()
1985 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, in open()
1987 targetSpeed, mPlaybackRate.mSpeed); in open()
2076 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); in open()
2261 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackRate()
2273 CHECK_GT(rate.mSpeed, 0.f); in setPlaybackRate()
2276 mMsecsPerFrame = 1E3f / (rate.mSpeed * mSampleRateHz); in setPlaybackRate()

12