Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/wilhelm/src/itf/
DIPlaybackRate.c22 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()
DIRatePitch.c22 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()
DIVisualization.c23 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/
Dmulticlass_pa.cpp121 float rate = loss / twice_norm_square; in TrainOneExample() local
122 if (rate > aggressiveness_) { in TrainOneExample()
123 rate = aggressiveness_; in TrainOneExample()
129 parameters_[target][i] += rate * inputs[i]; in TrainOneExample()
131 parameters_[other_class][i] -= rate * inputs[i]; in TrainOneExample()
154 float rate = loss / twice_norm_square; in SparseTrainOneExample() local
155 if (rate > aggressiveness_) { in SparseTrainOneExample()
156 rate = aggressiveness_; in SparseTrainOneExample()
162 parameters_[target][inputs[i].first] += rate * inputs[i].second; in SparseTrainOneExample()
164 parameters_[other_class][inputs[i].first] -= rate * inputs[i].second; in SparseTrainOneExample()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainRS.java60 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()
Dfountain.rs42 void addParticles(int rate, float x, float y, int index, bool newColor)
49 float rMax = ((float)rate) * 0.02f;
55 while (rate--) {
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountainRS.java60 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()
Dfountain.rs41 void addParticles(int rate, float x, float y, int index, bool newColor)
48 float rMax = ((float)rate) * 0.02f;
54 while (rate--) {
/frameworks/base/core/java/android/view/
DOrientationListener.java58 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()
DOrientationEventListener.java68 public OrientationEventListener(Context context, int rate) { in OrientationEventListener() argument
70 mRate = rate; in OrientationEventListener()
/frameworks/wilhelm/tests/mimeUri/
DslesTestSlowDownUri.cpp71 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/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboRS.java86 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()
Dfountainfbo.rs77 void addParticles(int rate, float x, float y, int index, bool newColor)
84 float rMax = ((float)rate) * 0.02f;
90 while (rate--) {
/frameworks/av/media/libmedia/
DSoundPool.cpp238 int priority, int loop, float rate) in play() argument
241 sampleID, leftVolume, rightVolume, priority, loop, rate); in play()
272 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
399 void SoundPool::setRate(int channelID, float rate) in setRate() argument
401 ALOGV("setRate(%d, %f)", channelID, rate); in setRate()
405 channel->setRate(rate); in setRate()
546 float rightVolume, int priority, int loop, float rate) in play() argument
558 priority, loop, rate); in play()
563 mNextEvent.set(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in play()
579 uint32_t sampleRate = uint32_t(float(sample->sampleRate()) * rate + 0.5); in play()
[all …]
DVisualizer.cpp94 uint32_t rate) in setCaptureCallBack() argument
96 if (rate > CAPTURE_RATE_MAX) { in setCaptureCallBack()
113 mCaptureRate = rate; in setCaptureCallBack()
120 mCaptureThread = new CaptureThread(*this, rate, ((flags & CAPTURE_CALL_JAVA) != 0)); in setCaptureCallBack()
123 rate, mCaptureThread.get(), mCaptureFlags); in setCaptureCallBack()
/frameworks/base/media/java/android/media/
DSoundPool.java231 int priority, int loop, float rate) { in play() argument
233 soundID, leftVolume, rightVolume, priority, loop, rate); in play()
368 public final void setRate(int streamID, float rate) { in setRate() argument
369 mImpl.setRate(streamID, rate); in setRate()
420 int priority, int loop, float rate); in play() argument
430 public void setRate(int streamID, float rate); in setRate() argument
527 int priority, int loop, float rate); in play() argument
550 public native final void setRate(int streamID, float rate); in setRate() argument
648 int priority, int loop, float rate) { in play() argument
672 public final void setRate(int streamID, float rate) { } in setRate() argument
/frameworks/av/include/media/
DSoundPool.h100 float rightVolume, int priority, int loop, float rate);
107 float rate() { return mRate; } in rate() function
129 int priority, int loop, float rate);
138 void setRate(float rate);
176 int loop, float rate);
185 void setRate(int channelID, float rate);
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java89 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/base/services/java/com/android/server/power/
DRampAnimator.java58 public boolean animateTo(int target, int rate) { in animateTo() argument
75 || rate > mRate in animateTo()
78 mRate = rate; in animateTo()
/frameworks/base/core/java/android/speech/tts/
DEventLogTags.logtags5 76001 tts_speak_success (engine|3),(caller_uid|1),(caller_pid|1),(length|1),(locale|3),(rate|1),(pi…
6 76002 tts_speak_failure (engine|3),(caller_uid|1),(caller_pid|1),(length|1),(locale|3),(rate|1),(pi…
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp77 long rate = 44100; in Test01() local
84 f0 = pow(2., 32.) * freq / (float)rate; in Test01()
99 rate, in Test01()
/frameworks/av/media/common_time/
Dlocal_clock.cpp73 status_t LocalClock::setLocalSlew(int16_t rate) { in setLocalSlew() argument
79 return static_cast<status_t>(dev_->set_local_slew(dev_, rate)); in setLocalSlew()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DSingleThreadedMediaPlayerProxy.java102 public void setVariableSpeed(float rate) { in setVariableSpeed() argument
103 ((VariableSpeed) mDelegate).setVariableSpeed(rate); in setVariableSpeed()
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool_SoundPoolImpl.cpp78 jfloat rate) in android_media_SoundPool_SoundPoolImpl_play() argument
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate); in android_media_SoundPool_SoundPoolImpl_play()
163 float rate) in android_media_SoundPool_SoundPoolImpl_setRate() argument
168 ap->setRate(channelID, rate); in android_media_SoundPool_SoundPoolImpl_setRate()
/frameworks/base/docs/html/training/location/
Dreceive-location-updates.jd363 This method sets the rate in milliseconds at which your app prefers to receive location
365 receive updates at this rate.
373 This method sets the <b>fastest</b> rate in milliseconds at which your app can handle
374 location updates. You need to set this rate because other apps also affect the rate
375 at which updates are sent. Location Services sends out updates at the fastest rate that any
378 If this rate is faster than your app can handle, you may encounter problems with UI flicker
381 to set an upper limit to the update rate.
385 also helps to save power. When you request a preferred update rate by calling
387 and a maximum rate by calling
389 then your app gets the same update rate as the fastest rate in the system. If other
[all …]

1234