/frameworks/wilhelm/src/itf/ |
D | IPlaybackRate.c | 22 static SLresult IPlaybackRate_SetRate(SLPlaybackRateItf self, SLpermille rate) in IPlaybackRate_SetRate() argument 28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_SetRate() 36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); in IPlaybackRate_SetRate() 44 thiz->mRate = rate; in IPlaybackRate_SetRate() 62 SLpermille rate = thiz->mRate; in IPlaybackRate_GetRate() local 64 *pRate = rate; in IPlaybackRate_GetRate() 128 SLpermille rate, SLuint32 *pCapabilities) in IPlaybackRate_GetCapabilitiesOfRate() argument 138 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_GetCapabilitiesOfRate()
|
D | IRatePitch.c | 22 static SLresult IRatePitch_SetRate(SLRatePitchItf self, SLpermille rate) in IRatePitch_SetRate() argument 27 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IRatePitch_SetRate() 31 thiz->mRate = rate; in IRatePitch_SetRate() 49 SLpermille rate = thiz->mRate; in IRatePitch_GetRate() local 51 *pRate = rate; in IRatePitch_GetRate()
|
D | IVisualization.c | 23 slVisualizationCallback callback, void *pContext, SLmilliHertz rate) in IVisualization_RegisterVisualizationCallback() argument 27 if (!(0 < rate && rate <= 20000)) { in IVisualization_RegisterVisualizationCallback() 34 thiz->mRate = rate; in IVisualization_RegisterVisualizationCallback()
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
D | multiclass_pa.cpp | 123 float rate = loss / twice_norm_square; in TrainOneExample() local 124 if (rate > aggressiveness_) { in TrainOneExample() 125 rate = aggressiveness_; in TrainOneExample() 131 parameters_[target][i] += rate * inputs[i]; in TrainOneExample() 133 parameters_[other_class][i] -= rate * inputs[i]; in TrainOneExample() 156 float rate = loss / twice_norm_square; in SparseTrainOneExample() local 157 if (rate > aggressiveness_) { in SparseTrainOneExample() 158 rate = aggressiveness_; in SparseTrainOneExample() 164 parameters_[target][inputs[i].first] += rate * inputs[i].second; in SparseTrainOneExample() 166 parameters_[other_class][inputs[i].first] -= rate * inputs[i].second; in SparseTrainOneExample()
|
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/ |
D | FountainRS.java | 60 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition() local 61 if (rate > 500) { in newTouchPosition() 62 rate = 500; in newTouchPosition() 64 if (rate > 0) { in newTouchPosition() 65 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]); in newTouchPosition()
|
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/ |
D | FountainRS.java | 60 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition() local 61 if (rate > 500) { in newTouchPosition() 62 rate = 500; in newTouchPosition() 64 if (rate > 0) { in newTouchPosition() 65 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]); in newTouchPosition()
|
/frameworks/base/core/java/android/view/ |
D | OrientationListener.java | 58 public OrientationListener(Context context, int rate) { in OrientationListener() argument 59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate); in OrientationListener() 67 OrientationEventListenerInternal(Context context, int rate) { in OrientationEventListenerInternal() argument 68 super(context, rate); in OrientationEventListenerInternal()
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestSlowDownUri.cpp | 71 SLpermille minRate, maxRate, stepSize, rate = 1000; in PlayEventCallback() local 75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); in PlayEventCallback() 78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate); in PlayEventCallback() 79 rate /= 2; in PlayEventCallback() 80 if (rate < minRate) { in PlayEventCallback() 81 rate = minRate; in PlayEventCallback() 83 fprintf(stdout, "new rate = %d\n", rate); in PlayEventCallback() 84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res); in PlayEventCallback() 86 fprintf(stderr, "new playback rate %d per mille is unsupported\n", rate); in PlayEventCallback() 293 SLpermille rate = 1234; in TestSlowDownUri() local [all …]
|
/frameworks/av/media/libstagefright/ |
D | MediaSync.cpp | 244 void MediaSync::updatePlaybackRate_l(float rate) { in updatePlaybackRate_l() argument 245 if (rate > mPlaybackRate) { in updatePlaybackRate_l() 248 mPlaybackRate = rate; in updatePlaybackRate_l() 250 mMediaClock->setPlaybackRate(rate); in updatePlaybackRate_l() 360 status_t MediaSync::setVideoFrameRateHint(float rate) { in setVideoFrameRateHint() argument 362 if (rate < 0.f) { in setVideoFrameRateHint() 366 mFrameScheduler->init(rate); in setVideoFrameRateHint() 423 status_t MediaSync::setPlaybackSettings(const AudioPlaybackRate &rate) { in setPlaybackSettings() argument 426 status_t err = setPlaybackSettings_l(rate); in setPlaybackSettings() 429 updatePlaybackRate_l(rate.mSpeed); in setPlaybackSettings() [all …]
|
D | MediaClock.cpp | 77 void MediaClock::setPlaybackRate(float rate) { in setPlaybackRate() argument 78 CHECK_GE(rate, 0.0); in setPlaybackRate() 81 mPlaybackRate = rate; in setPlaybackRate() 92 mPlaybackRate = rate; in setPlaybackRate()
|
/frameworks/av/media/libmedia/ |
D | IMediaPlayer.cpp | 184 status_t setPlaybackSettings(const AudioPlaybackRate& rate) in setPlaybackSettings() argument 188 data.writeFloat(rate.mSpeed); in setPlaybackSettings() 189 data.writeFloat(rate.mPitch); in setPlaybackSettings() 190 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings() 191 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings() 196 status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) in getPlaybackSettings() argument 203 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings() 204 rate->mSpeed = reply.readFloat(); in getPlaybackSettings() 205 rate->mPitch = reply.readFloat(); in getPlaybackSettings() 206 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings() [all …]
|
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/ |
D | FountainFboRS.java | 86 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition() local 87 if (rate > 500) { in newTouchPosition() 88 rate = 500; in newTouchPosition() 90 if (rate > 0) { in newTouchPosition() 91 mScript.invoke_addParticles(rate, x, y, id, !holdingColor[id]); in newTouchPosition()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 250 int priority, int loop, float rate) in play() argument 253 sampleID, leftVolume, rightVolume, priority, loop, rate); in play() 283 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play() 422 void SoundPool::setRate(int channelID, float rate) in setRate() argument 424 ALOGV("setRate(%d, %f)", channelID, rate); in setRate() 428 channel->setRate(rate); in setRate() 504 uint32_t *rate, int *numChannels, audio_format_t *audioFormat, in decode() argument 613 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, (int32_t*) rate) || in decode() 682 float rightVolume, int priority, int loop, float rate) in play() argument 694 priority, loop, rate); in play() [all …]
|
D | SoundPool.h | 92 float rightVolume, int priority, int loop, float rate); 99 float rate() { return mRate; } in rate() function 121 int priority, int loop, float rate); 130 void setRate(float rate); 169 int loop, float rate); 178 void setRate(int channelID, float rate);
|
/frameworks/av/include/media/stagefright/ |
D | MediaSync.h | 111 status_t setVideoFrameRateHint(float rate); 125 status_t setPlaybackSettings(const AudioPlaybackRate &rate); 128 void getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */); 275 void updatePlaybackRate_l(float rate); 281 status_t setPlaybackSettings_l(const AudioPlaybackRate &rate);
|
/frameworks/base/media/jni/ |
D | android_media_MediaSync.cpp | 81 status_t JMediaSync::setPlaybackParams(const AudioPlaybackRate& rate) { in setPlaybackParams() argument 82 return mSync->setPlaybackSettings(rate); in setPlaybackParams() 85 void JMediaSync::getPlaybackParams(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackParams() argument 86 mSync->getPlaybackSettings(rate); in getPlaybackParams() 97 status_t JMediaSync::setVideoFrameRateHint(float rate) { in setVideoFrameRateHint() argument 98 return mSync->setVideoFrameRateHint(rate); in setVideoFrameRateHint() 331 AudioPlaybackRate rate; in android_media_MediaSync_setPlaybackParams() local 332 sync->getPlaybackParams(&rate); in android_media_MediaSync_setPlaybackParams() 335 rate.mSpeed = pbs.audioRate.mSpeed; in android_media_MediaSync_setPlaybackParams() 339 rate.mPitch = pbs.audioRate.mPitch; in android_media_MediaSync_setPlaybackParams() [all …]
|
D | android_media_MediaSync.h | 45 status_t setPlaybackParams(const AudioPlaybackRate& rate); 46 void getPlaybackParams(AudioPlaybackRate* rate /* nonnull */); 49 status_t setVideoFrameRateHint(float rate);
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | RampAnimator.java | 60 public boolean animateTo(int target, int rate) { in animateTo() argument 62 if (mFirstTime || rate <= 0) { in animateTo() 89 || rate > mRate in animateTo() 92 mRate = rate; in animateTo()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 280 int rate = AudioSystem.getPrimaryOutputSamplingRate(); in build() local 281 if (rate <= 0) { in build() 282 rate = 44100; in build() 284 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 89 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument 95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener() 97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener() 99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener() 108 SensorListener listener, int sensors, int rate) { in registerLegacyListener() argument 134 result = mSensorManager.registerListener(legacyListener, sensor, rate); in registerLegacyListener()
|
/frameworks/av/include/media/ |
D | MediaPlayerInterface.h | 139 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0; 140 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0; 181 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument 183 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings() 188 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument 189 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
|
/frameworks/base/media/java/android/media/ |
D | MediaTimestamp.java | 73 MediaTimestamp(long mediaUs, long systemNs, float rate) { in MediaTimestamp() argument 76 clockRate = rate; in MediaTimestamp()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayer.cpp | 339 status_t NuPlayer::setPlaybackSettings(const AudioPlaybackRate &rate) { in setPlaybackSettings() argument 342 if ((rate.mSpeed != 0.f && rate.mSpeed < AUDIO_TIMESTRETCH_SPEED_MIN) in setPlaybackSettings() 343 || rate.mSpeed > AUDIO_TIMESTRETCH_SPEED_MAX in setPlaybackSettings() 344 || rate.mPitch < AUDIO_TIMESTRETCH_SPEED_MIN in setPlaybackSettings() 345 || rate.mPitch > AUDIO_TIMESTRETCH_SPEED_MAX) { in setPlaybackSettings() 349 writeToAMessage(msg, rate); in setPlaybackSettings() 358 status_t NuPlayer::getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */) { in getPlaybackSettings() argument 365 readFromAMessage(response, rate); in getPlaybackSettings() 713 AudioPlaybackRate rate /* sanitized */; in onMessageReceived() local 714 readFromAMessage(msg, &rate); in onMessageReceived() [all …]
|
D | NuPlayerRenderer.cpp | 158 status_t NuPlayer::Renderer::setPlaybackSettings(const AudioPlaybackRate &rate) { in setPlaybackSettings() argument 160 writeToAMessage(msg, rate); in setPlaybackSettings() 169 status_t NuPlayer::Renderer::onConfigPlayback(const AudioPlaybackRate &rate /* sanitized */) { in onConfigPlayback() argument 170 if (rate.mSpeed == 0.f) { in onConfigPlayback() 175 AudioPlaybackRate newRate = rate; in onConfigPlayback() 182 status_t err = mAudioSink->setPlaybackRate(rate); in onConfigPlayback() 187 mPlaybackSettings = rate; in onConfigPlayback() 188 mPlaybackRate = rate.mSpeed; in onConfigPlayback() 193 status_t NuPlayer::Renderer::getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */) { in getPlaybackSettings() argument 200 readFromAMessage(response, rate); in getPlaybackSettings() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightPlayer.cpp | 191 status_t StagefrightPlayer::setPlaybackSettings(const AudioPlaybackRate &rate) { in setPlaybackSettings() argument 192 return mPlayer->setPlaybackSettings(rate); in setPlaybackSettings() 195 status_t StagefrightPlayer::getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */) { in getPlaybackSettings() argument 196 return mPlayer->getPlaybackSettings(rate); in getPlaybackSettings()
|