/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/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/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 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 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/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);
|
H A D | OrientationEventListener.java | 63 * @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 D | MediaClock.cpp | 92 void MediaClock::setPlaybackRate(float rate) { argument 93 CHECK_GE(rate, 0.0); 96 mPlaybackRate = rate; 107 mPlaybackRate = rate;
|
H A D | AudioPlayer.cpp | 402 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 D | shared_mem_test.cpp | 77 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 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/include/media/ |
H A D | MediaAnalyticsItem.h | 131 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 D | MediaPlayerInterface.h | 142 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 D | StreamHalHidl.cpp | 57 status_t StreamHalHidl::getSampleRate(uint32_t *rate) { argument 59 return processReturn("getSampleRate", mStream->getSampleRate(), rate);
|
H A D | StreamHalLocal.cpp | 38 status_t StreamHalLocal::getSampleRate(uint32_t *rate) { argument 39 *rate = mStream->get_sample_rate(mStream);
|
/frameworks/av/media/libmedia/ |
H A D | Visualizer.cpp | 96 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 D | MediaAnalyticsItem.h | 131 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 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/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 71 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 D | FakeSensorManager.java | 123 protected int configureDirectChannelImpl(SensorDirectChannel channel, Sensor s, int rate) { argument
|
/frameworks/ml/bordeaux/learning/multiclass_pa/native/ |
H A D | multiclass_pa.cpp | 118 // 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 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/libmediaplayerservice/include/ |
H A D | MediaPlayerInterface.h | 142 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 D | AudioPort.cpp | 87 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(),
|