/frameworks/av/include/media/ |
H A D | AudioResamplerPublic.h | 90 float mSpeed; member in struct:android::AudioPlaybackRate 105 return fabs(pr1.mSpeed - pr2.mSpeed) < AUDIO_TIMESTRETCH_SPEED_MIN_DELTA && 116 return playbackRate.mSpeed >= TIMESTRETCH_SONIC_SPEED_MIN && 117 playbackRate.mSpeed <= TIMESTRETCH_SONIC_SPEED_MAX && 121 return playbackRate.mSpeed >= AUDIO_TIMESTRETCH_SPEED_MIN && 122 playbackRate.mSpeed <= AUDIO_TIMESTRETCH_SPEED_MAX &&
|
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackControlHelper.java | 48 private int mSpeed = PlaybackControlGlue.PLAYBACK_SPEED_PAUSED; field in class:PlaybackControlHelper 199 return mSpeed; 205 if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_PAUSED) { 207 } else if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_NORMAL) { 209 } else if (mSpeed >= PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { 210 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; 212 } else if (mSpeed <= -PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { 213 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; 247 if (speed == mSpeed) { 251 mSpeed [all...] |
H A D | PlaybackControlSupportHelper.java | 50 private int mSpeed = PlaybackControlSupportGlue.PLAYBACK_SPEED_PAUSED; field in class:PlaybackControlSupportHelper 201 return mSpeed; 207 if (mSpeed == PlaybackControlSupportGlue.PLAYBACK_SPEED_PAUSED) { 209 } else if (mSpeed == PlaybackControlSupportGlue.PLAYBACK_SPEED_NORMAL) { 211 } else if (mSpeed >= PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0) { 212 int index = mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; 214 } else if (mSpeed <= -PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0) { 215 int index = -mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; 249 if (speed == mSpeed) { 253 mSpeed [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackControlHelper.java | 48 private int mSpeed = PlaybackControlGlue.PLAYBACK_SPEED_PAUSED; field in class:PlaybackControlHelper 199 return mSpeed; 205 if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_PAUSED) { 207 } else if (mSpeed == PlaybackControlGlue.PLAYBACK_SPEED_NORMAL) { 209 } else if (mSpeed >= PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { 210 int index = mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; 212 } else if (mSpeed <= -PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0) { 213 int index = -mSpeed - PlaybackControlGlue.PLAYBACK_SPEED_FAST_L0; 247 if (speed == mSpeed) { 251 mSpeed [all...] |
H A D | PlaybackControlSupportHelper.java | 50 private int mSpeed = PlaybackControlSupportGlue.PLAYBACK_SPEED_PAUSED; field in class:PlaybackControlSupportHelper 201 return mSpeed; 207 if (mSpeed == PlaybackControlSupportGlue.PLAYBACK_SPEED_PAUSED) { 209 } else if (mSpeed == PlaybackControlSupportGlue.PLAYBACK_SPEED_NORMAL) { 211 } else if (mSpeed >= PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0) { 212 int index = mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; 214 } else if (mSpeed <= -PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0) { 215 int index = -mSpeed - PlaybackControlSupportGlue.PLAYBACK_SPEED_FAST_L0; 249 if (speed == mSpeed) { 253 mSpeed [all...] |
/frameworks/base/media/java/android/media/ |
H A D | PlaybackParams.java | 97 private float mSpeed = 1.0f; field in class:PlaybackParams 110 mSpeed = in.readFloat(); 206 mSpeed = speed; 220 return mSpeed; 248 dest.writeFloat(mSpeed);
|
H A D | RemoteController.java | 677 float mSpeed; field in class:RemoteController.PlaybackInfo 683 mSpeed = speed;
|
/frameworks/base/media/java/android/media/session/ |
H A D | PlaybackState.java | 287 private final float mSpeed; field in class:PlaybackState 301 mSpeed = speed; 314 mSpeed = in.readFloat(); 330 bob.append(", speed=").append(mSpeed); 349 dest.writeFloat(mSpeed); 405 return mSpeed; 822 private float mSpeed; field in class:PlaybackState.Builder 848 mSpeed = from.mSpeed; 901 mSpeed [all...] |
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
H A D | PlaybackStateCompat.java | 349 final float mSpeed; field in class:PlaybackStateCompat 366 mSpeed = rate; 378 mSpeed = in.readFloat(); 394 bob.append(", speed=").append(mSpeed); 413 dest.writeFloat(mSpeed); 468 return mSpeed; 608 mSpeed, mActions, mErrorMessage, mUpdateTime, 612 mSpeed, mActions, mErrorMessage, mUpdateTime, 879 mRate = source.mSpeed;
|
/frameworks/base/location/java/android/location/ |
H A D | Location.java | 86 * Bit mask for mFieldsMask indicating the presence of mSpeed. 119 private float mSpeed = 0.0f; field in class:Location 157 mSpeed = l.mSpeed; 174 mSpeed = 0; 646 return mSpeed; 655 mSpeed = speed; 666 mSpeed = 0.0f; 864 if (hasSpeed()) s.append(" vel=").append(mSpeed); 891 l.mSpeed [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_PlaybackParams.h | 59 speed = env->GetFieldID(clazz, "mSpeed", "F"); 84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); 103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed);
|
H A D | android_media_MediaSync.cpp | 326 pbs.speedSet, pbs.audioRate.mSpeed, 335 rate.mSpeed = pbs.audioRate.mSpeed; 378 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode);
|
H A D | android_media_MediaPlayer.cpp | 442 pbp.speedSet, pbp.audioRate.mSpeed, 452 rate.mSpeed = pbp.audioRate.mSpeed; 491 audioRate.mSpeed, audioRate.mPitch, audioRate.mFallbackMode, audioRate.mStretchMode);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/ |
H A D | CopyJob.java | 86 private long mSpeed; field in class:CopyJob 178 if (mSpeed == 0) { 179 mSpeed = sampleSpeed; 181 mSpeed = ((3 * mSpeed) + sampleSpeed) / 4; 184 if (mSampleTime > 0 && mSpeed > 0) { 185 mRemainingTime = ((mBatchSize - mBytesCopied) * 1000) / mSpeed;
|
/frameworks/av/services/audioflinger/ |
H A D | BufferProviders.cpp | 342 this, channelCount, format, sampleRate, playbackRate.mSpeed, 390 mBuffer.frameCount = mPlaybackRate.mSpeed == AUDIO_TIMESTRETCH_SPEED_NORMAL 391 ? outputDesired : outputDesired * mPlaybackRate.mSpeed + 1; 463 sonicSetSpeed(mSonicStream, mPlaybackRate.mSpeed); 483 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; 485 *dstFrames = *srcFrames / mPlaybackRate.mSpeed;
|
/frameworks/wilhelm/src/itf/ |
H A D | I3DDoppler.c | 51 thiz->mVelocitySpherical.mSpeed = speed;
|
/frameworks/av/media/libstagefright/ |
H A D | MediaSync.cpp | 65 mPlaybackSettings.mSpeed = mPlaybackRate; 164 if (mPlaybackSettings.mSpeed != 0.f 429 updatePlaybackRate_l(rate.mSpeed); 435 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { 442 if (rate.mSpeed == 0.f) {
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 344 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) 345 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX 739 if (mOffloadAudio && ((rate.mSpeed != 0.f && rate.mSpeed != 1.f) 763 if (rate.mSpeed == 0.f) { 769 newRate.mSpeed = mPlaybackSettings.mSpeed; 771 } else { /* rate.mSpeed != 0.f */ 788 params->setFloat("playback-speed", mPlaybackSettings.mSpeed); [all...] |
H A D | NuPlayerRenderer.cpp | 134 mPlaybackRate = mPlaybackSettings.mSpeed; 191 if (rate.mSpeed == 0.f) { 197 newRate.mSpeed = mPlaybackSettings.mSpeed; 209 mPlaybackRate = rate.mSpeed; 238 rate->mSpeed = 0.f;
|
H A D | NuPlayerDriver.cpp | 360 if (rate.mSpeed == 0.f && mState == STATE_RUNNING) { 363 } else if (rate.mSpeed != 0.f
|
/frameworks/av/media/libmedia/ |
H A D | AudioTrack.cpp | 866 ALOGV("setPlaybackRate (input): mSampleRate:%u mSpeed:%f mPitch:%f", 867 mSampleRate, playbackRate.mSpeed, playbackRate.mPitch); 870 const float effectiveSpeed = adjustSpeed(playbackRate.mSpeed, playbackRate.mPitch); 873 playbackRateTemp.mSpeed = effectiveSpeed; 876 ALOGV("setPlaybackRate (effective): mSampleRate:%u mSpeed:%f mPitch:%f", 881 playbackRate.mSpeed, playbackRate.mPitch); 887 playbackRate.mSpeed, playbackRate.mPitch); 894 playbackRate.mSpeed, playbackRate.mPitch); 900 playbackRate.mSpeed, playbackRate.mPitch); 939 / ((double)mSampleRate * mPlaybackRate.mSpeed)); [all...] |
H A D | mediaplayer.cpp | 391 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); 394 if (rate.mSpeed < 0.f || rate.mPitch < 0.f) { 402 if (rate.mSpeed != 0.f && !(mCurrentState & MEDIA_PLAYER_STARTED) 412 if (rate.mSpeed == 0.f && mCurrentState == MEDIA_PLAYER_STARTED) { 414 } else if (rate.mSpeed != 0.f
|
H A D | IMediaPlayer.cpp | 188 data.writeFloat(rate.mSpeed); 204 rate->mSpeed = reply.readFloat(); 525 rate.mSpeed = data.readFloat(); 538 reply->writeFloat(rate.mSpeed);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 1018 mConnId, rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); 1031 mConnId, rate->mSpeed, rate->mPitch, rate->mFallbackMode, rate->mStretchMode); 1802 std::min(std::max(mPlaybackRate.mSpeed, 1.0f), kMaxRequiredSpeed); 1803 ALOGW_IF(targetSpeed != mPlaybackRate.mSpeed, 1805 targetSpeed, mPlaybackRate.mSpeed); 1876 mMsecsPerFrame = 1E3f / (mPlaybackRate.mSpeed * sampleRate); 2057 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); 2068 // rate.mSpeed is always greater than 0 if setPlaybackRate succeeded 2069 CHECK_GT(rate.mSpeed, 0.f); 2072 mMsecsPerFrame = 1E3f / (rate.mSpeed * mSampleRateH [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioTrack.cpp | 810 pbp.speedSet, pbp.audioRate.mSpeed, 820 rate.mSpeed = pbp.audioRate.mSpeed;
|