Searched defs:rate (Results 1 - 25 of 63) sorted by relevance

123

/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/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/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/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/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);
H A DOrientationEventListener.java63 * @param rate at which sensor events are processed (see also
68 public OrientationEventListener(Context context, int rate) { argument
70 mRate = rate;
/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 DAudioPlayer.cpp402 status_t AudioPlayer::setPlaybackRate(const AudioPlaybackRate &rate) { argument
404 return mAudioSink->setPlaybackRate(rate);
406 return mAudioTrack->setPlaybackRate(rate);
412 status_t AudioPlayer::getPlaybackRate(AudioPlaybackRate *rate /* nonnull */) {
414 return mAudioSink->getPlaybackRate(rate);
416 *rate = mAudioTrack->getPlaybackRate();
/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/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/include/media/
H A DMediaAnalyticsItem.h131 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate);
215 struct { int64_t count, duration; } rate; member in union:android::MediaAnalyticsItem::Prop::__anon81
H A DMediaPlayerInterface.h142 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
143 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
198 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { argument
199 // by default, players only support setting rate to the default
200 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) {
205 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
206 *rate = AUDIO_PLAYBACK_RATE_DEFAULT;
/frameworks/av/media/libaudiohal/
H A DStreamHalHidl.cpp57 status_t StreamHalHidl::getSampleRate(uint32_t *rate) { argument
59 return processReturn("getSampleRate", mStream->getSampleRate(), rate);
H A DStreamHalLocal.cpp38 status_t StreamHalLocal::getSampleRate(uint32_t *rate) { argument
39 *rate = mStream->get_sample_rate(mStream);
/frameworks/av/media/libmedia/
H A DVisualizer.cpp96 uint32_t rate)
98 if (rate > CAPTURE_RATE_MAX) {
117 mCaptureRate = rate;
120 mCaptureThread = new CaptureThread(*this, rate, ((flags & CAPTURE_CALL_JAVA) != 0));
122 ALOGV("setCaptureCallBack() rate: %d thread %p flags 0x%08x",
123 rate, mCaptureThread.get(), mCaptureFlags);
95 setCaptureCallBack(capture_cbk_t cbk, void* user, uint32_t flags, uint32_t rate) argument
/frameworks/av/media/libmediametrics/include/
H A DMediaAnalyticsItem.h131 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate);
215 struct { int64_t count, duration; } rate; member in union:android::MediaAnalyticsItem::Prop::__anon394
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java90 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/base/media/jni/soundpool/
H A Dandroid_media_SoundPool.cpp71 jfloat rate)
76 return (jint) ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
165 jfloat rate)
170 ap->setRate(channelID, (float) rate);
69 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument
164 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, jfloat rate) argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
H A DFakeSensorManager.java123 protected int configureDirectChannelImpl(SensorDirectChannel channel, Sensor s, int rate) { argument
/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/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/av/media/libmediaplayerservice/include/
H A DMediaPlayerInterface.h142 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
143 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
198 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) { argument
199 // by default, players only support setting rate to the default
200 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) {
205 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
206 *rate = AUDIO_PLAYBACK_RATE_DEFAULT;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPort.cpp87 uint32_t rate = ratesToExport[rateIndex]; local
88 if (flatenedRates.indexOf(rate) < 0) {
89 flatenedRates.add(rate);
157 // For direct outputs, pick minimum sampling rate: this helps ensuring that the
158 // channel count / sampling rate combination chosen will be supported by the connected
172 // limit sampling rate otherwise
193 // channel count / sampling rate combination chosen will be supported by the connected
339 ALOGV("%s Port[nm:%s] profile rate=%d, format=%d, channels=%d", __FUNCTION__, mName.string(),

Completed in 511 milliseconds

123