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

12345

/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DRateEstimatorTest.java48 final float rate = mEstimator.getRate(mTestStartTime - 1000L);
49 assertFalse(Float.isInfinite(rate));
50 assertFalse(Float.isNaN(rate));
63 final float rate = mEstimator.getRate(mTestStartTime);
64 assertFalse(Float.isInfinite(rate));
65 assertFalse(Float.isNaN(rate));
73 final float rate = mEstimator.getRate(nextEventTime);
74 assertLessThan("Rate", rate, 20f);
82 final float rate = mEstimator.getRate(nextEventTime);
83 assertLessThan("Rate", rate, 2
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DRateEstimator.java21 * 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/media/java/android/media/
H A DMediaTimestamp.java21 * and the system time. It contains the media clock rate, together with the media timestamp
55 * Get the rate of the media clock in relation to the system time.
73 MediaTimestamp(long mediaUs, long systemNs, float rate) { argument
76 clockRate = 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);
/frameworks/wilhelm/src/itf/
H A DIVisualization.cpp23 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.cpp22 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.cpp22 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 DIDirectReportChannel.hal31 * 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 DDirectReportChannel.cpp34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, argument
37 static_cast<int>(sensorHandle), static_cast<int>(rate));
/frameworks/av/include/common_time/
H A Dlocal_clock.h37 status_t setLocalSlew(int16_t rate);
/frameworks/base/media/jni/
H A Dandroid_media_MediaSync.h45 status_t setPlaybackParams(const AudioPlaybackRate& rate);
46 void getPlaybackParams(AudioPlaybackRate* rate /* nonnull */);
49 status_t setVideoFrameRateHint(float rate);
/frameworks/ml/bordeaux/learning/multiclass_pa/native/
H A Dmulticlass_pa.cpp118 // Compute the learning rate according to PA-I.
123 float rate = loss / twice_norm_square; local
124 if (rate > aggressiveness_) {
125 rate = aggressiveness_;
127 // VLOG(1) << "loss = " << loss << " rate = " << rate;
131 parameters_[target][i] += rate * inputs[i];
133 parameters_[other_class][i] -= rate * inputs[i];
151 // Compute the learning rate according to PA-I.
156 float rate local
[all...]
/frameworks/av/media/libstagefright/
H A DMediaClock.cpp92 void MediaClock::setPlaybackRate(float rate) { argument
93 CHECK_GE(rate, 0.0);
96 mPlaybackRate = rate;
107 mPlaybackRate = rate;
H A DMediaSync.cpp171 ALOGE("setAudioTrack: native sample rate should be positive.");
244 void MediaSync::updatePlaybackRate_l(float rate) { argument
245 if (rate > mPlaybackRate) {
248 mPlaybackRate = rate;
250 mMediaClock->setPlaybackRate(rate);
260 // User should check the playback rate if it doesn't want to receive a
286 "is too high, possibly due to super low playback rate(%f)", mPlaybackRate);
360 status_t MediaSync::setVideoFrameRateHint(float rate) { argument
362 if (rate < 0.f) {
366 mFrameScheduler->init(rate);
423 setPlaybackSettings(const AudioPlaybackRate &rate) argument
434 setPlaybackSettings_l(const AudioPlaybackRate &rate) argument
458 getPlaybackSettings(AudioPlaybackRate *rate) argument
[all...]
/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/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/av/include/media/stagefright/
H A DMediaSync.h110 // 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 DMediaClock.h44 void setPlaybackRate(float rate);
/frameworks/av/media/libstagefright/foundation/include/
H A DMediaSync.h110 // 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 DMediaClock.h44 void setPlaybackRate(float rate);
/frameworks/av/media/libstagefright/include/
H A DMediaSync.h110 // 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 DMediaClock.h44 void setPlaybackRate(float rate);
/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
290 SLpermille rate = 1234; local
[all...]
/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/media/java/android/media/audiopolicy/
H A DAudioMix.java339 // FIXME Can we eliminate this? Will AudioMix work with an unspecified sample rate?
340 int rate = AudioSystem.getPrimaryOutputSamplingRate();
341 if (rate <= 0) {
342 rate = 44100;
344 mFormat = new AudioFormat.Builder().setSampleRate(rate).build();

Completed in 562 milliseconds

12345