/frameworks/av/include/common_time/ |
H A D | local_clock.h | 37 status_t setLocalSlew(int16_t rate);
|
/frameworks/av/include/media/ |
H A D | MediaPlayerInterface.h | 111 virtual status_t setPlaybackRatePermille(int32_t rate) { return INVALID_OPERATION; } argument
|
H A D | SoundPool.h | 95 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 D | Visualizer.h | 44 * 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/av/media/common_time/ |
H A D | local_clock.cpp | 73 status_t LocalClock::setLocalSlew(int16_t rate) { argument 79 return static_cast<status_t>(dev_->set_local_slew(dev_, rate));
|
/frameworks/av/media/libmedia/ |
H A D | AudioTrack.cpp | 563 status_t AudioTrack::setSampleRate(int rate) argument 574 // Resampler implementation limits input sampling rate to 2 x output sampling rate. 575 if (rate <= 0 || rate > afSamplingRate*2 ) return BAD_VALUE; 578 mCblk->sampleRate = rate; 1446 snprintf(buffer, 255, " sample rate(%d), status(%d), muted(%d)\n", (mCblk == 0) ? 0 : mCblk->sampleRate, mStatus, mMuted);
|
H A D | SoundPool.cpp | 242 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); 518 ALOGE("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 662 float rate; local 841 setRate(float rate) argument 896 set(const sp<Sample>& sample, int channelID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument [all...] |
H A D | Visualizer.cpp | 91 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)); 119 ALOGV("setCaptureCallBack() rate: %d thread %p flags 0x%08x", 120 rate, mCaptureThread.get(), mCaptureFlags);
|
/frameworks/av/media/libstagefright/ |
H A D | AVIExtractor.cpp | 613 uint32_t rate = U32LE_AT(&data[20]); local 655 track->mRate = rate;
|
H A D | OggExtractor.cpp | 492 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);
|
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
H A D | SoftVorbis.cpp | 148 vorbisParams->nSampleRate = mVi->rate; 179 pcmParams->nSamplingRate = mVi->rate; 383 + (mNumFramesOutput * 1000000ll) / mVi->rate;
|
/frameworks/av/services/camera/tests/CameraServiceTest/ |
H A D | CameraServiceTest.cpp | 773 const float rate = 0.9; // byte per pixel limit local 789 int(pixels * rate));
|
/frameworks/base/core/java/android/hardware/ |
H A D | LegacySensorManager.java | 89 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
|
H A D | SensorManager.java | 311 /** rate suitable for games */ 313 /** rate suitable for the user interface */ 315 /** rate (default) suitable for screen orientation changes */ 467 * @param rate 468 * rate of events. This is only a hint to the system. events may be 469 * received faster or slower than the specified rate. Usually events 478 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument 479 return getLegacySensorManager().registerListener(listener, sensors, rate); 568 * @param rate 569 * The rate { 585 registerListener(SensorEventListener listener, Sensor sensor, int rate) argument 621 registerListener(SensorEventListener listener, Sensor sensor, int rate, Handler handler) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | OrientationEventListener.java | 63 * @param rate at which sensor events are processed (see also 68 public OrientationEventListener(Context context, int rate) { argument 70 mRate = rate;
|
H A D | OrientationListener.java | 53 * @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 D | WindowOrientationListener.java | 70 * @param rate at which sensor events are processed (see also 77 private WindowOrientationListener(Context context, int rate) { argument 79 mRate = rate;
|
/frameworks/base/media/java/android/media/ |
H A D | MediaRecorder.java | 348 * Set video frame capture rate. This can be used to set a different video frame capture 349 * rate than the recorded video's playback rate. This method also sets the recording mode 360 * given rate due to camera/encoder limitations. However it tries to be as close as 461 * Sets the frame rate of the video to be captured. Must be called 465 * @param rate the number of frames per second of video to capture 469 * NOTE: On some devices that have auto-frame rate, this sets the 470 * maximum frame rate, not a constant frame rate. Actual frame rate 473 setVideoFrameRate(int rate) argument [all...] |
H A D | SoundPool.java | 59 * <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 269 * The playback rate allows the application to vary the playback 270 * rate (pitch) of the sound. A value of 1.0 means play back at 279 * @param rate playbac 282 play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) argument 393 setRate(int streamID, float rate) argument [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
H A D | Visualizer.java | 51 * The rate at which the listener capture method is called as well as the type of data returned is 275 * Returns the maximum capture rate for the callback capture method. This is the maximum value 276 * for the rate parameter of the 278 * @return the maximum capture rate expressed in milliHertz 353 * Returns the sampling rate of the captured audio. 354 * @return the sampling rate in milliHertz. 390 * the sampling rate returned by {@link #getSamplingRate()}. The capture returns the real and 457 * @param samplingRate sampling rate of the audio visualized. 468 * @param samplingRate sampling rate of the audio visualized. 474 * Registers an OnDataCaptureListener interface and specifies the rate a 486 setDataCaptureListener(OnDataCaptureListener listener, int rate, boolean waveform, boolean fft) argument 649 native_setPeriodicCapture(int rate, boolean waveForm, boolean fft) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 277 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument 279 ALOGV("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 D | android_media_Visualizer.cpp | 562 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument 574 ALOGV("setPeriodicCapture: rate %d, jWaveform %d jFft %d", 575 rate, 588 rate));
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 78 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/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 128 // Light sensor event rate in milliseconds. 131 // A rate for generating synthetic light sensor events in the case where the light 137 // Brightness animation ramp rate in brightness units per second. 798 private void animateScreenBrightness(int target, int rate) { argument 799 if (mScreenBrightnessRampAnimator.animateTo(target, rate)) {
|
H A D | RampAnimator.java | 25 * a given variable rate until it reaches a particular target value. 55 * @param rate The convergence rate, in units per second. 58 public boolean animateTo(int target, int rate) { argument 67 // Adjust the rate based on the closest target. 68 // If a faster rate is specified, then use the new rate so that we converge 70 // If a slower rate is specified, then use the new rate only if the current 73 // Otherwise, continue at the previous rate [all...] |