Searched refs:rate (Results 1 - 22 of 22) sorted by relevance

/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;
H A DWindowOrientationListener.java72 * @param rate at which sensor events are processed (see also
79 private WindowOrientationListener(Context context, int rate) { argument
81 mRate = rate;
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DSingleThreadedMediaPlayerProxy.java97 public void setVariableSpeed(float rate) { argument
98 ((VariableSpeed) mDelegate).setVariableSpeed(rate);
H A DVariableSpeed.java371 public void setVariableSpeed(float rate) { argument
379 VariableSpeedNative.setVariableSpeed(rate);
381 mCurrentPlaybackRate = rate;
/frameworks/base/media/jni/soundpool/
H A DSoundPool.h95 float rightVolume, int priority, int loop, float rate);
102 float rate() { return mRate; } function in class:android::SoundEvent
124 int priority, int loop, float rate);
133 void setRate(float rate);
171 int loop, float rate);
180 void setRate(int channelID, float rate);
H A DSoundPool.cpp242 int priority, int loop, float rate)
244 LOGV("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 LOGV("setRate(%d, %f)", channelID, rate);
409 channel->setRate(rate);
518 LOGE("Sample rate (%u) out of range", sampleRate);
548 float rightVolume, int priority, int loop, float rate)
558 " priority=%d, loop=%d, rate
241 play(int sampleID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
547 play(const sp<Sample>& sample, int nextChannelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
661 float rate; local
840 setRate(float rate) argument
894 set(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
[all...]
H A Dandroid_media_SoundPool.cpp78 jfloat rate)
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
163 float rate)
168 ap->setRate(channelID, rate);
76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument
162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument
/frameworks/base/media/libmedia/
H A DVisualizer.cpp91 status_t Visualizer::setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t flags, uint32_t rate) argument
93 if (rate > CAPTURE_RATE_MAX) {
110 mCaptureRate = rate;
117 mCaptureThread = new CaptureThread(*this, rate, ((flags & CAPTURE_CALL_JAVA) != 0));
123 LOGV("setCaptureCallBack() rate: %d thread %p flags 0x%08x",
124 rate, mCaptureThread.get(), mCaptureFlags);
H A DAudioTrack.cpp519 status_t AudioTrack::setSampleRate(int rate) argument
526 // Resampler implementation limits input sampling rate to 2 x output sampling rate.
527 if (rate <= 0 || rate > afSamplingRate*2 ) return BAD_VALUE;
530 mCblk->sampleRate = rate;
1276 snprintf(buffer, 255, " sample rate(%d), status(%d), muted(%d)\n", (mCblk == 0) ? 0 : mCblk->sampleRate, mStatus, mMuted);
/frameworks/base/media/java/android/media/
H A DSoundPool.java59 * <p>The playback rate can also be changed. A playback rate of 1.0 causes
61 * to the hardware output frequency). A playback rate of 2.0 causes the
62 * sound to play at twice its original frequency, and a playback rate of
64 * rate range is 0.5 to 2.0.</p>
89 * adjusting the playback rate in real-time for doppler or synthesis
133 * @param srcQuality the sample-rate converter quality. Currently has no
271 * The playback rate allows the application to vary the playback
272 * rate (pitch) of the sound. A value of 1.0 means play back at
281 * @param rate playbac
284 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument
395 setRate(int streamID, float rate) argument
[all...]
H A DMediaRecorder.java320 * Set video frame capture rate. This can be used to set a different video frame capture
321 * rate than the recorded video's playback rate. Currently this works only for time lapse mode.
329 * given rate due to camera/encoder limitations. However it tries to be as close as
428 * Sets the frame rate of the video to be captured. Must be called
432 * @param rate the number of frames per second of video to capture
436 * NOTE: On some devices that have auto-frame rate, this sets the
437 * maximum frame rate, not a constant frame rate. Actual frame rate
440 setVideoFrameRate(int rate) argument
[all...]
/frameworks/base/include/media/
H A DVisualizer.h44 * callback function by use of the setCaptureCallBack() method. The rate at which the callback
81 // maximum capture rate in millihertz
95 // install a callback to receive periodic captures. The capture rate is specified in milliHertz
97 status_t setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t flags, uint32_t rate);
105 // returns the capture rate indicated when installing the callback
108 // returns the sampling rate of the audio being captured
/frameworks/base/media/java/android/media/audiofx/
H A DVisualizer.java51 * The rate at which the listener capture method is called as well as the type of data returned is
258 * Returns the maximum capture rate for the callback capture method. This is the maximum value
259 * for the rate parameter of the
261 * @return the maximum capture rate expressed in milliHertz
300 * Returns the sampling rate of the captured audio.
301 * @return the sampling rate in milliHertz.
337 * the sampling rate returned by {@link #getSamplingRate()}. The capture returns the real and
401 * @param samplingRate sampling rate of the audio visualized.
409 * @param samplingRate sampling rate of the audio visualized.
415 * Registers an OnDataCaptureListener interface and specifies the rate a
427 setDataCaptureListener(OnDataCaptureListener listener, int rate, boolean waveform, boolean fft) argument
522 native_setPeriodicCapture(int rate, boolean waveForm, boolean fft) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java314 /** rate suitable for games */
316 /** rate suitable for the user interface */
318 /** rate (default) suitable for screen orientation changes */
807 * @param rate
808 * rate of events. This is only a hint to the system. events may be
809 * received faster or slower than the specified rate. Usually events
818 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument
824 listener, sensors, rate) || result;
826 listener, sensors, rate) || result;
828 listener, sensors, rate) || resul
837 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument
1017 registerListener(SensorEventListener listener, Sensor sensor, int rate) argument
1078 registerListener(SensorEventListener listener, Sensor sensor, int rate, Handler handler) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp277 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
279 LOGV("setVideoFrameRate(%d)", rate);
280 if (rate <= 0) {
281 jniThrowException(env, "java/lang/IllegalArgumentException", "invalid frame rate");
285 process_media_recorder_call(env, mr->setVideoFrameRate(rate), "java/lang/RuntimeException", "setVideoFrameRate failed.");
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp449 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument
461 LOGV("setPeriodicCapture: rate %d, jWaveform %d jFft %d",
462 rate,
475 rate));
/frameworks/base/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp148 vorbisParams->nSampleRate = mVi->rate;
179 pcmParams->nSamplingRate = mVi->rate;
383 + (mNumFramesOutput * 1000000ll) / mVi->rate;
/frameworks/base/media/libstagefright/
H A DOggExtractor.cpp492 if (mVi.rate) {
496 timeUs = mCurrentPage.mGranulePosition * 1000000ll / mVi.rate;
636 int64_t durationUs = lastGranulePosition * 1000000ll / mVi.rate;
657 entry.mTimeUs = page.mGranulePosition * 1000000ll / mVi.rate;
722 mMeta->setInt32(kKeySampleRate, mVi.rate);
H A DAVIExtractor.cpp612 uint32_t rate = U32LE_AT(&data[20]); local
654 track->mRate = rate;
/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/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp774 const float rate = 0.9; // byte per pixel limit local
790 int(pixels * rate));

Completed in 3098 milliseconds