Home
last modified time | relevance | path

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

12345

/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_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/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/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()
/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/base/media/java/android/media/
DSoundPool.java301 int priority, int loop, float rate) { in play() argument
303 soundID, leftVolume, rightVolume, priority, loop, rate); in play()
438 public final void setRate(int streamID, float rate) { in setRate() argument
439 mImpl.setRate(streamID, rate); in setRate()
490 int priority, int loop, float rate); in play() argument
500 public void setRate(int streamID, float rate); in setRate() argument
602 int priority, int loop, float rate) { in play() argument
606 return _play(soundID, leftVolume, rightVolume, priority, loop, rate); in play()
610 int priority, int loop, float rate); in _play() argument
650 public native final void setRate(int streamID, float rate); in setRate() argument
[all …]
DAudioRecord.java290 int rate = 0; in AudioRecord() local
294 rate = format.getSampleRate(); in AudioRecord()
296 rate = AudioSystem.getPrimaryOutputSamplingRate(); in AudioRecord()
297 if (rate <= 0) { in AudioRecord()
298 rate = 44100; in AudioRecord()
308 audioParamCheck(attributes.getCapturePreset(), rate, encoding); in AudioRecord() local
/frameworks/av/media/libmedia/
DSoundPool.cpp242 int priority, int loop, float rate) in play() argument
245 sampleID, leftVolume, rightVolume, priority, loop, rate); in play()
276 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
403 void SoundPool::setRate(int channelID, float rate) in setRate() argument
405 ALOGV("setRate(%d, %f)", channelID, rate); in setRate()
409 channel->setRate(rate); in setRate()
558 float rightVolume, int priority, int loop, float rate) in play() argument
570 priority, loop, rate); in play()
575 mNextEvent.set(sample, nextChannelID, leftVolume, rightVolume, priority, loop, rate); in play()
591 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/audiopolicy/
DAudioMix.java167 int rate = AudioSystem.getPrimaryOutputSamplingRate(); in build() local
168 if (rate <= 0) { in build()
169 rate = 44100; in build()
171 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
/frameworks/base/services/core/java/com/android/server/display/
DRampAnimator.java60 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/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/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/base/tests/OneMedia/src/com/android/onemedia/
DPlayerSession.java139 float rate = newState == PlaybackState.STATE_PLAYING ? 1 : 0; in updateState() local
142 bob.setState(newState, position, rate, SystemClock.elapsedRealtime()); in updateState()
186 float rate = 0; in onStateChanged() local
205 rate = 1; in onStateChanged()
213 bob.setState(pbState, position, rate, SystemClock.elapsedRealtime()); in onStateChanged()
/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()

12345