Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 147) 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/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java78 int rate) { in AmbientSensor() argument
79 validateArguments(handler, sensorManager, rate); in AmbientSensor()
85 mRate = rate; in AmbientSensor()
141 private static void validateArguments(Handler handler, SensorManager sensorManager, int rate) { in validateArguments() argument
144 if (rate <= 0) { in validateArguments()
249 int rate) { in AmbientBrightnessSensor() argument
250 super(TAG, handler, sensorManager, rate); in AmbientBrightnessSensor()
328 @NonNull SensorManager sensorManager, String name, int rate) { in AmbientColorTemperatureSensor() argument
329 super(TAG, handler, sensorManager, rate); in AmbientColorTemperatureSensor()
/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/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/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/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/soundpool/
DSoundPool.cpp248 int priority, int loop, float rate) in play() argument
251 sampleID, leftVolume, rightVolume, priority, loop, rate); in play()
281 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate); in play()
433 void SoundPool::setRate(int channelID, float rate) in setRate() argument
435 ALOGV("setRate(%d, %f)", channelID, rate); in setRate()
439 channel->setRate(rate); in setRate()
515 uint32_t *rate, int *numChannels, audio_format_t *audioFormat, in decode() argument
649 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, (int32_t*) rate) || in decode()
724 float rightVolume, int priority, int loop, float rate) in play() argument
736 priority, loop, rate); in play()
[all …]
DSoundPool.h94 float rightVolume, int priority, int loop, float rate);
101 float rate() { return mRate; } in rate() function
123 int priority, int loop, float rate);
133 void setRate(float rate);
173 int loop, float rate);
183 void setRate(int channelID, float rate);
/frameworks/base/media/jni/
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 …]
Dandroid_media_MediaSync.h45 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/
DRampAnimator.java60 public boolean animateTo(int target, int rate) { in animateTo() argument
62 if (mFirstTime || rate <= 0) { in animateTo()
89 || rate > mRate in animateTo()
92 mRate = rate; in animateTo()
/frameworks/av/media/libmediaplayer2/
DMediaPlayer2AudioOutput.cpp447 status_t MediaPlayer2AudioOutput::setPlaybackRate(const AudioPlaybackRate &rate) { in setPlaybackRate() argument
449 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); in setPlaybackRate()
453 mPlaybackRate = rate; in setPlaybackRate()
456 status_t res = mJAudioTrack->setPlaybackRate(rate); in setPlaybackRate()
461 CHECK_GT(rate.mSpeed, 0.f); in setPlaybackRate()
462 mPlaybackRate = rate; in setPlaybackRate()
464 mMsecsPerFrame = 1E3f / (rate.mSpeed * mSampleRateHz); in setPlaybackRate()
469 status_t MediaPlayer2AudioOutput::getPlaybackRate(AudioPlaybackRate *rate) { in getPlaybackRate() argument
475 *rate = mJAudioTrack->getPlaybackRate(); in getPlaybackRate()
/frameworks/av/media/libmedia/
DIMediaPlayer.cpp237 status_t setPlaybackSettings(const AudioPlaybackRate& rate) in setPlaybackSettings() argument
241 data.writeFloat(rate.mSpeed); in setPlaybackSettings()
242 data.writeFloat(rate.mPitch); in setPlaybackSettings()
243 data.writeInt32((int32_t)rate.mFallbackMode); in setPlaybackSettings()
244 data.writeInt32((int32_t)rate.mStretchMode); in setPlaybackSettings()
249 status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) in getPlaybackSettings() argument
256 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
257 rate->mSpeed = reply.readFloat(); in getPlaybackSettings()
258 rate->mPitch = reply.readFloat(); in getPlaybackSettings()
259 rate->mFallbackMode = (AudioTimestretchFallbackMode)reply.readInt32(); in getPlaybackSettings()
[all …]
/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/libmediaplayer2/include/mediaplayer2/
DMediaPlayer2Interface.h131 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
132 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
180 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument
182 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings()
187 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument
188 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
/frameworks/av/media/libmediametrics/
DMediaAnalyticsItem.cpp357 prop->u.rate.count = count; in setRate()
358 prop->u.rate.duration = duration; in setRate()
405 prop->u.rate.count += count; in addRate()
406 prop->u.rate.duration += duration; in addRate()
411 prop->u.rate.count = count; in addRate()
412 prop->u.rate.duration = duration; in addRate()
457 …ticsItem::getRate(MediaAnalyticsItem::Attr name, int64_t *count, int64_t *duration, double *rate) { in getRate() argument
463 *count = prop->u.rate.count; in getRate()
466 *duration = prop->u.rate.duration; in getRate()
468 if (rate != NULL) { in getRate()
[all …]
/frameworks/av/include/media/
DMediaPlayerInterface.h145 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
146 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
206 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument
208 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings()
213 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument
214 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()
/frameworks/av/media/libmediaplayerservice/include/
DMediaPlayerInterface.h145 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
146 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
206 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { in setPlaybackSettings() argument
208 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) { in setPlaybackSettings()
213 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { in getPlaybackSettings() argument
214 *rate = AUDIO_PLAYBACK_RATE_DEFAULT; in getPlaybackSettings()

123456