Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 145) sorted by relevance

123456

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRateEstimatorTest.java52 final float rate = mEstimator.getRate(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeGet() local
53 assertFalse(Float.isInfinite(rate)); in testRunningTimeBackwardDoesntExplodeGet()
54 assertFalse(Float.isNaN(rate)); in testRunningTimeBackwardDoesntExplodeGet()
67 final float rate = mEstimator.getRate(mTestStartTime); in testInstantaneousEventsDontExplodeGet() local
68 assertFalse(Float.isInfinite(rate)); in testInstantaneousEventsDontExplodeGet()
69 assertFalse(Float.isNaN(rate)); in testInstantaneousEventsDontExplodeGet()
77 final float rate = mEstimator.getRate(nextEventTime); in testInstantaneousBurstIsEstimatedUnderTwoPercent() local
78 assertLessThan("Rate", rate, 20f); in testInstantaneousBurstIsEstimatedUnderTwoPercent()
86 final float rate = mEstimator.getRate(nextEventTime); in testCompactBurstIsEstimatedUnderTwoPercent() local
87 assertLessThan("Rate", rate, 20f); in testCompactBurstIsEstimatedUnderTwoPercent()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtrack_test_output_v1.0_ref_walleye.txt7 sample rate(48000), original sample rate(48000), speed(1.000000)
18 sample rate(24000), original sample rate(24000), speed(1.000000)
29 sample rate(16000), original sample rate(16000), speed(1.000000)
40 sample rate(8000), original sample rate(8000), speed(1.000000)
51 sample rate(44100), original sample rate(44100), speed(1.000000)
62 sample rate(22050), original sample rate(22050), speed(1.000000)
73 sample rate(11025), original sample rate(11025), speed(1.000000)
84 sample rate(48000), original sample rate(48000), speed(1.000000)
95 sample rate(48000), original sample rate(48000), speed(1.000000)
106 sample rate(48000), original sample rate(48000), speed(1.000000)
[all …]
Drecord_test_output_v1.0_ref_walleye.txt6 format(0x1), channel mask(0x10), channel count(1), sample rate(48000)
15 format(0x1), channel mask(0x10), channel count(1), sample rate(24000)
24 format(0x1), channel mask(0x10), channel count(1), sample rate(16000)
33 format(0x1), channel mask(0x10), channel count(1), sample rate(8000)
42 format(0x1), channel mask(0x10), channel count(1), sample rate(44100)
51 format(0x1), channel mask(0x10), channel count(1), sample rate(22050)
60 format(0x1), channel mask(0x10), channel count(1), sample rate(11025)
69 format(0x2), channel mask(0x10), channel count(1), sample rate(48000)
78 format(0x3), channel mask(0x10), channel count(1), sample rate(48000)
87 format(0x5), channel mask(0x10), channel count(1), sample rate(48000)
[all …]
/frameworks/wilhelm/src/itf/
DIPlaybackRate.cpp22 static SLresult IPlaybackRate_SetRate(SLPlaybackRateItf self, SLpermille rate) in IPlaybackRate_SetRate() argument
28 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_SetRate()
36 result = android_audioPlayer_setPlaybackRateAndConstraints(ap, rate, thiz->mProperties); in IPlaybackRate_SetRate()
44 thiz->mRate = rate; in IPlaybackRate_SetRate()
62 SLpermille rate = thiz->mRate; in IPlaybackRate_GetRate() local
64 *pRate = rate; in IPlaybackRate_GetRate()
128 SLpermille rate, SLuint32 *pCapabilities) in IPlaybackRate_GetCapabilitiesOfRate() argument
138 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IPlaybackRate_GetCapabilitiesOfRate()
DIRatePitch.cpp22 static SLresult IRatePitch_SetRate(SLRatePitchItf self, SLpermille rate) in IRatePitch_SetRate() argument
27 if (!(thiz->mMinRate <= rate && rate <= thiz->mMaxRate)) { in IRatePitch_SetRate()
31 thiz->mRate = rate; in IRatePitch_SetRate()
49 SLpermille rate = thiz->mRate; in IRatePitch_GetRate() local
51 *pRate = rate; in IRatePitch_GetRate()
DIVisualization.cpp23 slVisualizationCallback callback, void *pContext, SLmilliHertz rate) in IVisualization_RegisterVisualizationCallback() argument
27 if (!(0 < rate && rate <= 20000)) { in IVisualization_RegisterVisualizationCallback()
34 thiz->mRate = rate; in IVisualization_RegisterVisualizationCallback()
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp57 bool checkRate(float *rate) in checkRate() argument
59 if (*rate != std::clamp(*rate, 0.125f, 8.f)) { in checkRate()
60 ALOGI("rate %f out of (0.125f, 8.f) bounds, clamping", *rate); in checkRate()
62 *rate = std::clamp(*rate, 0.125f, 8.f); in checkRate()
116 int32_t priority, int32_t loop, float rate) in play() argument
119 __func__, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
127 || checkRate(&rate)) return 0; in play()
137 sound, soundID, leftVolume, rightVolume, priority, loop, rate); in play()
221 void SoundPool::setRate(int32_t streamID, float rate) in setRate() argument
223 ALOGV("%s(%d, %f)", __func__, streamID, rate); in setRate()
[all …]
DStream.cpp102 void Stream::setRate(int32_t streamID, float rate) in setRate() argument
106 mRate = rate; in setRate()
108 const auto sampleRate = (uint32_t)lround(double(mSound->getSampleRate()) * rate); in setRate()
155 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate) in setPlay() argument
166 mRate = rate; in setPlay()
276 float leftVolume, float rightVolume, int32_t priority, int32_t loop, float rate, in play_l() argument
288 priority, loop, rate); in play_l()
294 const auto sampleRate = (uint32_t)lround(double(sound->getSampleRate()) * rate); in play_l()
365 mRate = rate; in play_l()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java79 int rate) { in AmbientSensor() argument
80 validateArguments(handler, sensorManager, rate); in AmbientSensor()
86 mRate = rate; in AmbientSensor()
142 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() argument
145 if (rate <= 0) { in validateArguments()
250 int rate) { in AmbientBrightnessSensor() argument
251 super(TAG, handler, sensorManager, rate); in AmbientBrightnessSensor()
329 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor() argument
330 super(TAG, handler, sensorManager, rate); in AmbientColorTemperatureSensor()
/frameworks/base/services/core/java/com/android/server/notification/
DRateEstimator.java38 float rate; in update() local
41 rate = 0f; in update()
45 rate = (float) (1.0 / mInterarrivalTime); in update()
48 return rate; in update()
/frameworks/hardware/interfaces/sensorservice/1.0/
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/base/core/java/android/view/
DOrientationListener.java58 public OrientationListener(Context context, int rate) { in OrientationListener() argument
59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate); in OrientationListener()
67 OrientationEventListenerInternal(Context context, int rate) { in OrientationEventListenerInternal() argument
68 super(context, rate); in OrientationEventListenerInternal()
/frameworks/wilhelm/tests/mimeUri/
DslesTestSlowDownUri.cpp71 SLpermille minRate, maxRate, stepSize, rate = 1000; in PlayEventCallback() local
75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); in PlayEventCallback()
78 fprintf(stdout, "old rate = %d, minRate=%d, maxRate=%d\n", rate, minRate, maxRate); in PlayEventCallback()
79 rate /= 2; in PlayEventCallback()
80 if (rate < minRate) { in PlayEventCallback()
81 rate = minRate; in PlayEventCallback()
83 fprintf(stdout, "new rate = %d\n", rate); in PlayEventCallback()
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res); in PlayEventCallback()
86 fprintf(stderr, "new playback rate %d per mille is unsupported\n", rate); in PlayEventCallback()
290 SLpermille rate = 1234; in TestSlowDownUri() local
[all …]
/frameworks/av/media/libstagefright/
DMediaSync.cpp247 void MediaSync::updatePlaybackRate_l(float rate) { in updatePlaybackRate_l() argument
248 if (rate > mPlaybackRate) { in updatePlaybackRate_l()
251 mPlaybackRate = rate; in updatePlaybackRate_l()
253 mMediaClock->setPlaybackRate(rate); in updatePlaybackRate_l()
363 status_t MediaSync::setVideoFrameRateHint(float rate) { in setVideoFrameRateHint() argument
365 if (rate < 0.f) { in setVideoFrameRateHint()
369 mFrameScheduler->init(rate); in setVideoFrameRateHint()
426 status_t MediaSync::setPlaybackSettings(const AudioPlaybackRate &rate) { in setPlaybackSettings() argument
429 status_t err = setPlaybackSettings_l(rate); in setPlaybackSettings()
432 updatePlaybackRate_l(rate.mSpeed); in setPlaybackSettings()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DPolicyAudioPort.cpp92 for (const auto rate : samplingRates) { in pickSamplingRate() local
93 if ((rate < samplingRate) && (rate > 0)) { in pickSamplingRate()
94 samplingRate = rate; in pickSamplingRate()
110 for (const auto rate : samplingRates) { in pickSamplingRate() local
111 if ((rate > pickedRate) && (rate <= maxRate)) { in pickSamplingRate()
112 pickedRate = rate; in pickSamplingRate()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h111 status_t setVideoFrameRateHint(float rate);
125 status_t setPlaybackSettings(const AudioPlaybackRate &rate);
128 void getPlaybackSettings(AudioPlaybackRate *rate /* nonnull */);
275 void updatePlaybackRate_l(float rate);
281 status_t setPlaybackSettings_l(const AudioPlaybackRate &rate);
/frameworks/base/media/jni/
Dandroid_media_MediaSync.h45 status_t setPlaybackParams(const AudioPlaybackRate& rate);
46 void getPlaybackParams(AudioPlaybackRate* rate /* nonnull */);
49 status_t setVideoFrameRateHint(float rate);
Dandroid_media_MediaSync.cpp81 status_t JMediaSync::setPlaybackParams(const AudioPlaybackRate& rate) { in setPlaybackParams() argument
82 return mSync->setPlaybackSettings(rate); in setPlaybackParams()
85 void JMediaSync::getPlaybackParams(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackParams() argument
86 mSync->getPlaybackSettings(rate); in getPlaybackParams()
97 status_t JMediaSync::setVideoFrameRateHint(float rate) { in setVideoFrameRateHint() argument
98 return mSync->setVideoFrameRateHint(rate); in setVideoFrameRateHint()
331 AudioPlaybackRate rate; in android_media_MediaSync_setPlaybackParams() local
332 sync->getPlaybackParams(&rate); in android_media_MediaSync_setPlaybackParams()
335 rate.mSpeed = pbs.audioRate.mSpeed; in android_media_MediaSync_setPlaybackParams()
339 rate.mPitch = pbs.audioRate.mPitch; in android_media_MediaSync_setPlaybackParams()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DRampAnimator.java62 public boolean animateTo(float target, float rate) { in animateTo() argument
65 if (mFirstTime || rate <= 0) { in animateTo()
92 || rate > mRate in animateTo()
95 mRate = rate; in animateTo()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java90 public boolean registerListener(SensorListener listener, int sensors, int rate) { in registerListener() argument
96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener()
98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener()
100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener()
104 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener()
109 SensorListener listener, int sensors, int rate) { in registerLegacyListener() argument
135 result = mSensorManager.registerListener(legacyListener, sensor, rate); in registerLegacyListener()
/frameworks/av/media/libmedia/
DIMediaPlayer.cpp234 status_t setPlaybackSettings(const AudioPlaybackRate& rate) in setPlaybackSettings() argument
238 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
239 data.writeFloat(rate.mPitch); in setPlaybackSettings()
240 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings()
241 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings()
246 status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) in getPlaybackSettings() argument
253 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
254 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
255 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
256 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
[all …]
/frameworks/native/services/sensorservice/hidl/
DDirectReportChannel.cpp34 Return<void> DirectReportChannel::configure(int32_t sensorHandle, RateLevel rate, in configure() argument
37 static_cast<int>(sensorHandle), static_cast<int>(rate)); in configure()
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h144 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
145 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
205 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument
207 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings()
212 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument
213 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
/frameworks/av/include/media/
DMediaPlayerInterface.h144 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
145 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
205 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument
207 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings()
212 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument
213 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerHistory.cpp42 if (layer.getFrameRateForLayerTree().rate > 0) { in isLayerActive()
116 if (frameRate.rate > 0.f) { in summarize()
127 summary.push_back({layer->getName(), voteType, frameRate.rate, /* weight */ 1.0f, in summarize()
136 trace(weakLayer, round<int>(frameRate.rate)); in summarize()

123456