/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | RateEstimatorTest.java | 50 final float rate = mEstimator.getRate(mTestStartTime - 1000L); 51 assertFalse(Float.isInfinite(rate)); 52 assertFalse(Float.isNaN(rate)); 65 final float rate = mEstimator.getRate(mTestStartTime); 66 assertFalse(Float.isInfinite(rate)); 67 assertFalse(Float.isNaN(rate)); 75 final float rate = mEstimator.getRate(nextEventTime); 76 assertLessThan("Rate", rate, 20f); 84 final float rate = mEstimator.getRate(nextEventTime); 85 assertLessThan("Rate", rate, 2 [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | RateEstimator.java | 21 * Exponentially weighted moving average estimator for event rate. 38 float rate; 40 // No last event time, rate is zero. 41 rate = 0f; 45 rate = (float) (1.0 / mInterarrivalTime); 48 return rate; 51 /** @return the estimated rate if there were a new event right now. */
|
/frameworks/base/core/java/android/view/ |
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);
|
/frameworks/wilhelm/src/itf/ |
H A D | IVisualization.cpp | 23 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 D | IRatePitch.cpp | 22 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 D | IPlaybackRate.cpp | 22 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/hardware/interfaces/sensorservice/1.0/ |
H A D | IDirectReportChannel.hal | 31 * Configure sensor direct report on a direct channel: set rate to value 33 * shared memory region used for creating the channel; set rate to STOP will 37 * sensorHandle to -1 and rate to STOP. 40 * and rate is STOP, the call must stop of all active 42 * @param rate rate level value to set on the specified sensor. 46 * rate level is not supported by sensor, etc); 54 configure(int32_t sensorHandle, RateLevel rate)
|
/frameworks/native/services/sensorservice/hidl/ |
H A D | DirectReportChannel.cpp | 34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, argument 37 static_cast<int>(sensorHandle), static_cast<int>(rate));
|
/frameworks/base/media/java/android/media/ |
H A D | MediaTimestamp.java | 21 * and the system time. It contains the media clock rate, together with the media timestamp 60 * Get the rate of the media clock in relation to the system time. 78 MediaTimestamp(long mediaUs, long systemNs, float rate) { argument 81 clockRate = rate;
|
/frameworks/av/include/common_time/ |
H A D | local_clock.h | 37 status_t setLocalSlew(int16_t rate);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaSync.h | 45 status_t setPlaybackParams(const AudioPlaybackRate& rate); 46 void getPlaybackParams(AudioPlaybackRate* rate /* nonnull */); 49 status_t setVideoFrameRateHint(float rate);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | RampAnimator.java | 25 * 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/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/include/media/stagefright/ |
H A D | MediaSync.h | 110 // Set the video frame rate hint - this is used by the video FrameScheduler 111 status_t setVideoFrameRateHint(float rate); 113 // Get the video frame rate measurement from the FrameScheduler 123 // Sets the playback rate using playback settings. 125 status_t setPlaybackSettings(const AudioPlaybackRate &rate); 127 // Gets the playback rate (playback settings parameters). 128 void getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */); 269 // |rate| is the ratio between desired speed and the normal one, and should 270 // be non-negative. The meaning of rate values: 275 void updatePlaybackRate_l(float rate); [all...] |
H A D | AudioPlayer.h | 65 status_t setPlaybackRate(const AudioPlaybackRate &rate); 66 status_t getPlaybackRate(AudioPlaybackRate *rate /* nonnull */);
|
H A D | Utils.h | 72 void writeToAMessage(const sp<AMessage> &msg, const AudioPlaybackRate &rate); 73 void readFromAMessage(const sp<AMessage> &msg, AudioPlaybackRate *rate /* nonnull */);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | MediaSync.h | 110 // Set the video frame rate hint - this is used by the video FrameScheduler 111 status_t setVideoFrameRateHint(float rate); 113 // Get the video frame rate measurement from the FrameScheduler 123 // Sets the playback rate using playback settings. 125 status_t setPlaybackSettings(const AudioPlaybackRate &rate); 127 // Gets the playback rate (playback settings parameters). 128 void getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */); 269 // |rate| is the ratio between desired speed and the normal one, and should 270 // be non-negative. The meaning of rate values: 275 void updatePlaybackRate_l(float rate); [all...] |
H A D | AudioPlayer.h | 65 status_t setPlaybackRate(const AudioPlaybackRate &rate); 66 status_t getPlaybackRate(AudioPlaybackRate *rate /* nonnull */);
|
H A D | Utils.h | 72 void writeToAMessage(const sp<AMessage> &msg, const AudioPlaybackRate &rate); 73 void readFromAMessage(const sp<AMessage> &msg, AudioPlaybackRate *rate /* nonnull */);
|
/frameworks/wilhelm/tests/mimeUri/ |
H A D | slesTestSlowDownUri.cpp | 71 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 290 SLpermille rate = 1234; local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaSync.cpp | 174 ALOGE("setAudioTrack: native sample rate should be positive."); 247 void MediaSync::updatePlaybackRate_l(float rate) { argument 248 if (rate > mPlaybackRate) { 251 mPlaybackRate = rate; 253 mMediaClock->setPlaybackRate(rate); 263 // User should check the playback rate if it doesn't want to receive a 289 "is too high, possibly due to super low playback rate(%f)", mPlaybackRate); 363 status_t MediaSync::setVideoFrameRateHint(float rate) { argument 365 if (rate < 0.f) { 369 mFrameScheduler->init(rate); 426 setPlaybackSettings(const AudioPlaybackRate &rate) argument 437 setPlaybackSettings_l(const AudioPlaybackRate &rate) argument 461 getPlaybackSettings(AudioPlaybackRate *rate) argument [all...] |
/frameworks/base/media/tests/audiotests/ |
H A D | shared_mem_test.cpp | 77 long rate = 44100; local 84 f0 = pow(2., 32.) * freq / (float)rate; 99 rate,
|
/frameworks/base/core/java/android/hardware/ |
H A D | LegacySensorManager.java | 90 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument 96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; 98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; 100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 104 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; 109 SensorListener listener, int sensors, int rate) { 135 result = mSensorManager.registerListener(legacyListener, sensor, rate); 108 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument
|
/frameworks/rs/perf-test-scripts/ |
H A D | get-freq | 95 elif fileexists /d/clock/override.gbus/rate; then 96 freq=`getprop /d/clock/override.gbus/rate`
|
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/ |
H A D | MediaPlayer2Interface.h | 128 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0; 129 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0; 177 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { argument 178 // by default, players only support setting rate to the default 179 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { 184 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { 185 *rate = AUDIO_PLAYBACK_RATE_DEFAULT;
|