Searched defs:rate (Results 1 - 25 of 39) sorted by relevance

12

/frameworks/wilhelm/src/itf/
H A DIVisualization.c23 slVisualizationCallback callback, void *pContext, SLmilliHertz rate)
27 if (!(0 < rate && rate <= 20000)) {
34 thiz->mRate = rate;
22 IVisualization_RegisterVisualizationCallback(SLVisualizationItf self, slVisualizationCallback callback, void *pContext, SLmilliHertz rate) argument
H A DIRatePitch.c22 static SLresult IRatePitch_SetRate(SLRatePitchItf self, SLpermille rate) argument
27 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) {
31 thiz->mRate = rate;
49 SLpermille rate = thiz->mRate; local
51 *pRate = rate;
H A DIPlaybackRate.c22 static SLresult IPlaybackRate_SetRate(SLPlaybackRateItf self, SLpermille rate) argument
28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) {
36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties);
44 thiz->mRate = rate;
62 SLpermille rate = thiz->mRate; local
64 *pRate = rate;
128 SLpermille rate, SLuint32 *pCapabilities)
138 if (!(thiz->mMinRate <= rate && rate <
127 IPlaybackRate_GetCapabilitiesOfRate(SLPlaybackRateItf self, SLpermille rate, SLuint32 *pCapabilities) argument
[all...]
/frameworks/av/media/common_time/
H A Dlocal_clock.cpp73 status_t LocalClock::setLocalSlew(int16_t rate) { argument
79 return static_cast<status_t>(dev_->set_local_slew(dev_, rate));
/frameworks/base/core/java/android/view/
H A DOrientationListener.java53 * @param rate at which sensor events are processed (see also
58 public OrientationListener(Context context, int rate) { argument
59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate);
67 OrientationEventListenerInternal(Context context, int rate) { argument
68 super(context, rate);
H A DOrientationEventListener.java63 * @param rate at which sensor events are processed (see also
68 public OrientationEventListener(Context context, int rate) { argument
70 mRate = rate;
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp77 long rate = 44100; local
84 f0 = pow(2., 32.) * freq / (float)rate;
99 rate,
/frameworks/base/services/core/java/com/android/server/display/
H A DRampAnimator.java25 * a given variable rate until it reaches a particular target value.
53 * If this is the first time the property is being set or if the rate is 0,
57 * @param rate The convergence rate in units per second, or 0 to set the value immediately.
60 public boolean animateTo(int target, int rate) { argument
62 if (mFirstTime || rate <= 0) {
81 // Adjust the rate based on the closest target.
82 // If a faster rate is specified, then use the new rate so that we converge
84 // If a slower rate i
[all...]
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DSingleThreadedMediaPlayerProxy.java102 public void setVariableSpeed(float rate) { argument
103 ((VariableSpeed) mDelegate).setVariableSpeed(rate);
H A DVariableSpeed.java378 public void setVariableSpeed(float rate) { argument
386 VariableSpeedNative.setVariableSpeed(rate);
388 mCurrentPlaybackRate = rate;
/frameworks/av/media/libmedia/
H A DVisualizer.cpp101 uint32_t rate)
103 if (rate > CAPTURE_RATE_MAX) {
122 mCaptureRate = rate;
125 mCaptureThread = new CaptureThread(*this, rate, ((flags & CAPTURE_CALL_JAVA) != 0));
127 ALOGV("setCaptureCallBack() rate: %d thread %p flags 0x%08x",
128 rate, mCaptureThread.get(), mCaptureFlags);
100 setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t flags, uint32_t rate) argument
H A DSoundPool.cpp242 int priority, int loop, float rate)
244 ALOGV("play sampleID=%d, leftVolume=%f, rightVolume=%f, priority=%d, loop=%d, rate=%f",
245 sampleID, leftVolume, rightVolume, priority, loop, rate);
276 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
403 void SoundPool::setRate(int channelID, float rate) argument
405 ALOGV("setRate(%d, %f)", channelID, rate);
409 channel->setRate(rate);
527 ALOGE("Sample rate (%u) out of range", sampleRate);
558 float rightVolume, int priority, int loop, float rate)
568 " priority=%d, loop=%d, rate
241 play(int sampleID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
557 play(const sp<Sample>& sample, int nextChannelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
669 float rate; local
854 setRate(float rate) argument
909 set(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java89 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument
95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result;
108 SensorListener listener, int sensors, int rate) {
134 result = mSensorManager.registerListener(legacyListener, sensor, rate);
107 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool_SoundPoolImpl.cpp85 jfloat rate)
90 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
170 jfloat rate)
175 ap->setRate(channelID, (float) rate);
83 android_media_SoundPool_SoundPoolImpl_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument
169 android_media_SoundPool_SoundPoolImpl_setRate(JNIEnv *env, jobject thiz, jint channelID, jfloat rate) argument
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp116 // Compute the learning rate according to PA-I.
121 float rate = loss / twice_norm_square; local
122 if (rate > aggressiveness_) {
123 rate = aggressiveness_;
125 // VLOG(1) << "loss = " << loss << " rate = " << rate;
129 parameters_[target][i] += rate * inputs[i];
131 parameters_[other_class][i] -= rate * inputs[i];
149 // Compute the learning rate according to PA-I.
154 float rate local
[all...]
/frameworks/wilhelm/tests/mimeUri/
H A DslesTestSlowDownUri.cpp71 SLpermille minRate, maxRate, stepSize, rate = 1000; local
75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res);
78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate);
79 rate /= 2;
80 if (rate < minRate) {
81 rate = minRate;
83 fprintf(stdout, "new rate = %d\n", rate);
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckEr
293 SLpermille rate = 1234; local
[all...]
/frameworks/av/include/media/
H A DMediaPlayerInterface.h125 virtual status_t setPlaybackRatePermille(int32_t rate) { return INVALID_OPERATION; } argument
H A DSoundPool.h100 float rightVolume, int priority, int loop, float rate);
107 float rate() { return mRate; } function in class:android::SoundEvent
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/av/media/libstagefright/webm/
H A DWebmElement.cpp307 double rate,
329 audioInfo.push_back(new WebmFloat(kMkvSamplingFrequency, rate));
305 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument
/frameworks/base/media/java/android/media/
H A DSoundPool.java68 * <p>The playback rate can also be changed. A playback rate of 1.0 causes
70 * to the hardware output frequency). A playback rate of 2.0 causes the
71 * sound to play at twice its original frequency, and a playback rate of
73 * rate range is 0.5 to 2.0.</p>
98 * adjusting the playback rate in real-time for doppler or synthesis
126 * @param srcQuality the sample-rate converter quality. Currently has no
287 * The playback rate allows the application to vary the playback
288 * rate (pitch) of the sound. A value of 1.0 means play back at
297 * @param rate playbac
300 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
438 setRate(int streamID, float rate) argument
488 play( int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
500 setRate(int streamID, float rate) argument
601 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
609 _play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
650 setRate(int streamID, float rate) argument
748 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
773 setRate(int streamID, float rate) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp282 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
284 ALOGV("setVideoFrameRate(%d)", rate);
285 if (rate <= 0) {
286 jniThrowException(env, "java/lang/IllegalArgumentException", "invalid frame rate");
290 process_media_recorder_call(env, mr->setVideoFrameRate(rate), "java/lang/RuntimeException", "setVideoFrameRate failed.");
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
H A DMediaPlayerProxyTestCase.java478 // sample rate and number of channels, which was causing an assertion failure when trying
484 // Just check that we can set the rate at any point during playback.
501 * If we have a variable speed media player proxy, set the variable speed rate.
505 private void setVariableSpeedRateIfSupported(float rate) { argument
507 ((SingleThreadedMediaPlayerProxy) mPlayer).setVariableSpeed(rate);
509 ((VariableSpeed) mPlayer).setVariableSpeed(rate);
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java50 * The rate at which the listener capture method is called as well as the type of data returned is
292 * Returns the maximum capture rate for the callback capture method. This is the maximum value
293 * for the rate parameter of the
295 * @return the maximum capture rate expressed in milliHertz
407 * Returns the sampling rate of the captured audio.
408 * @return the sampling rate in milliHertz.
444 * the sampling rate returned by {@link #getSamplingRate()}. The capture returns the real and
551 * @param samplingRate sampling rate of the audio visualized.
562 * @param samplingRate sampling rate of the audio visualized.
568 * Registers an OnDataCaptureListener interface and specifies the rate a
580 setDataCaptureListener(OnDataCaptureListener listener, int rate, boolean waveform, boolean fft) argument
749 native_setPeriodicCapture(int rate, boolean waveForm, boolean fft) argument
[all...]
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp635 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument
647 ALOGV("setPeriodicCapture: rate %d, jWaveform %d jFft %d",
648 rate,
661 rate));
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWindowOrientationListener.java79 * @param rate at which sensor events are processed (see also
86 private WindowOrientationListener(Context context, Handler handler, int rate) { argument
89 mRate = rate;

Completed in 7523 milliseconds

12