HomeSort by relevance Sort by last modified time
    Searched refs:rate (Results 201 - 225 of 924) sorted by null

1 2 3 4 5 6 7 891011>>

  /device/google/contexthub/firmware/os/inc/
sensors.h 144 uint32_t rate; member in struct:SensorSetRateEvent
170 bool (*sensorFirmwareUpload)(void *); /* -> SENSOR_INTERNAL_EVT_FW_STATE_CHG (rate or 0 if fail) */
171 bool (*sensorSetRate)(uint32_t rate, uint64_t latency, void *);
172 /* -> SENSOR_INTERNAL_EVT_RATE_CHG (rate) */
203 sampling rate. In this case, the sensorSendOneDirectEvt callback will be
212 If NULL, the expectation is that rate is not applicable/configurable, and
229 * Sensor rate is encoded as a 32-bit integer as number of samples it can
273 bool sensorRequest(uint32_t clientTid, uint32_t sensorHandle, uint32_t rate, uint64_t latency);
297 uint32_t rate; local
299 while ((rate = *supportedRates++) != 0)
    [all...]
  /external/autotest/client/cros/audio/
audio_test_data.py 29 file_type, sample_format, channel, and rate.
34 rate: sampling rate.
68 channel=2, rate=48000)
108 rate_src = self.data_format['rate']
123 rate_dst=data_format['rate'],
164 file_type, sample_format, channel, and rate.
169 rate: sampling rate.
192 rate=data_format['rate']
226 rate=48000)) variable
239 rate=48000), variable
255 rate=48000), variable
271 rate=48000), variable
288 rate=48000), variable
    [all...]
cras_utils.py 46 channels=2, rate=48000):
54 @param rate: the sampling rate
66 args += ['--rate', str(rate)]
71 capture_file, block_size=None, duration=10, channels=1, rate=48000):
80 @param rate: the sampling rate.
92 args += ['--rate', str(rate)]
    [all...]
  /external/libnl/python/netlink/route/qdisc/
htb.py 55 def rate(self): member in class:HTBClass
56 rate = capi.rtnl_htb_get_rate(self._class._rtnl_class)
57 return util.Rate(rate)
59 @rate.setter
60 def rate(self, value): member in class:HTBClass
67 return util.Rate(ceil)
123 ret = ' {t|prio} {t|rate}'
125 if self.rate != self.ceil:
  /external/tinyalsa/
tinyhostless.c 49 unsigned int rate, unsigned int bits, unsigned int period_size,
205 can_play = check_param(params, PCM_PARAM_RATE, config->rate, "Sample rate", "Hz");
218 unsigned int rate, unsigned int bits, unsigned int period_size,
233 config.rate = rate;
271 printf("Sample: %u ch, %u hz, %u bit\n", channels, rate, bits);
  /external/webrtc/webrtc/modules/utility/source/
file_player_impl.cc 66 // Make sure that sample rate is 8,16 or 32 kHz. E.g. WAVE files may have
223 codecInstL16.rate = 128000;
229 codecInstL16.rate = 256000;
235 codecInstL16.rate = 512000;
304 codecInstL16.rate = 128000;
310 codecInstL16.rate = 256000;
316 codecInstL16.rate = 512000;
  /frameworks/av/media/libmediaplayer2/include/mediaplayer2/
MediaPlayer2Interface.h 128 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate) = 0;
129 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */) = 0;
177 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate) {
178 // by default, players only support setting rate to the default
179 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) {
184 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
185 *rate = AUDIO_PLAYBACK_RATE_DEFAULT;
  /frameworks/av/media/libmediaplayerservice/include/
MediaPlayerInterface.h 145 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) {
207 // by default, players only support setting rate to the default
208 if (!isAudioPlaybackRateEqual(rate, AUDIO_PLAYBACK_RATE_DEFAULT)) {
213 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) {
214 *rate = AUDIO_PLAYBACK_RATE_DEFAULT;
  /frameworks/base/media/jni/soundpool/
SoundPool.h 92 float rightVolume, int priority, int loop, float rate);
99 float rate() { return mRate; } function in class:android::SoundEvent
121 int priority, int loop, float rate);
131 void setRate(float rate);
171 int loop, float rate);
181 void setRate(int channelID, float rate);
SoundPool.cpp 248 int priority, int loop, float rate)
250 ALOGV("play sampleID=%d, leftVolume=%f, rightVolume=%f, priority=%d, loop=%d, rate=%f",
251 sampleID, leftVolume, rightVolume, priority, loop, rate);
281 channel->play(sample, channelID, leftVolume, rightVolume, priority, loop, rate);
433 void SoundPool::setRate(int channelID, float rate)
435 ALOGV("setRate(%d, %f)", channelID, rate);
439 channel->setRate(rate);
515 uint32_t *rate, int *numChannels, audio_format_t *audioFormat,
648 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, (int32_t*) rate) ||
685 ALOGE("Sample rate (%u) out of range", sampleRate)
848 float rate; local
    [all...]
  /hardware/qcom/audio/legacy/alsa_sound/
ALSAStreamOps.cpp 96 uint32_t *rate,
134 if (rate && *rate > 0) {
135 if (mHandle->sampleRate != *rate)
137 } else if (rate) {
138 *rate = mHandle->sampleRate;
  /prebuilts/go/darwin-x86/src/runtime/pprof/
protomem_test.go 23 rate := int64(512 * 1024)
30 if err := writeHeapProto(&buf, rec, rate); err != nil {
73 checkProfile(t, p, rate, periodType, sampleType, samples)
  /prebuilts/go/linux-x86/src/runtime/pprof/
protomem_test.go 23 rate := int64(512 * 1024)
30 if err := writeHeapProto(&buf, rec, rate); err != nil {
73 checkProfile(t, p, rate, periodType, sampleType, samples)
  /device/google/contexthub/firmware/os/drivers/st_acc44/
st_acc44.c 239 uint32_t rate; member in struct:st_acc44_Task
341 static uint8_t st_acc44_computeOdr(uint32_t rate)
346 if (st_acc44_Rates[i] == rate)
357 static uint32_t st_acc44_Rate_hz_to_ns(uint32_t rate)
361 if ((i = st_acc44_computeOdr(rate)) >= 0)
408 static bool st_acc44_SetRate(uint32_t rate, uint64_t latency, void *cookie)
412 INFO_PRINT("SetRate %lu Hz - %llu ns\n", rate, latency);
415 num = st_acc44_computeOdr(rate);
418 mTask.rate = rate;
    [all...]
  /hardware/qcom/audio/legacy/libalsa-intf/
aplay.c 59 {"Rate", 1, 0, 'R'},
90 unsigned int requestedRate = pcm->rate;
115 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate);
164 static int play_file(unsigned rate, unsigned channels, int fd,
235 pcm->rate = rate;
472 int play_raw(const char *fg, int rate, int ch, const char *device, const char *fn)
495 return play_file(rate, ch, fd, flag, device, 0);
498 int play_wav(const char *fg, int rate, int ch, const char *device, const char *fn)
516 hdr.sample_rate = rate;
564 int rate = 44100; local
    [all...]
  /external/libxaac/decoder/
ixheaacd_esbr_envcal.c 151 WORD32 rate = upsamp_4_flag ? 4 : 2; local
281 for (nrg = 0, l = 0; l < rate; l++) {
283 (input_real[rate * t + l][k] * input_real[rate * t + l][k]) +
284 (input_imag[rate * t + l][k] * input_imag[rate * t + l][k]);
286 nrg_est_pvc[c][t] = nrg / rate;
399 for (nrg = 0, l = 0; l < rate; l++) {
401 (input_real[rate * t + l][k] * input_real[rate * t + l][k])
    [all...]
  /device/google/contexthub/firmware/os/drivers/si_si7034/
si7034a10.c 242 // should match "supported rates in length" and be the timer length for that rate in nanosecs
284 static bool humiSetRate(uint32_t rate, uint64_t latency, void *cookie)
286 DEBUG_PRINT("%s %ld (%lld)\n", __func__, rate, latency);
292 si7034RatesRateVals, rate), 0, 50, sensorHumiTimerCallback, NULL, false);
295 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency);
325 static bool tempSetRate(uint32_t rate, uint64_t latency, void *cookie)
327 DEBUG_PRINT("%s %ld (%lld)\n", __func__, rate, latency);
333 si7034RatesRateVals, rate), 0, 50, sensorTempTimerCallback, NULL, false);
336 SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency);
344 #define DEC_OPS(power, firmware, rate, flush, cal, cfg)
    [all...]
  /hardware/intel/common/utils/ISV/profile/
isv_profile.cpp 51 mFrcRates[i].rate = FRC_RATE_1X;
73 FRC_RATE rate = FRC_RATE_1X; local
78 rate = mFrcRates[i].rate;
82 return rate;
224 if (!strcmp(atts[attIndex], "input") && !strcmp(atts[attIndex + 2], "rate")) {
227 mFrcRates[mCurrentFrcTab].rate = FRC_RATE_2X;
229 mFrcRates[mCurrentFrcTab].rate = FRC_RATE_2_5X;
231 mFrcRates[mCurrentFrcTab].rate = FRC_RATE_4X;
233 mFrcRates[mCurrentFrcTab].rate = FRC_RATE_1X
    [all...]
  /packages/services/Car/service/src/com/android/car/
CarPropertyService.java 90 void addProperty(int propId, float rate) {
91 mRateMap.put(propId, rate);
120 // Return 0 if no key found, since that is the slowest rate.
158 public void registerListener(int propId, float rate, ICarPropertyEventListener listener) {
160 Log.d(TAG, "registerListener: propId=0x" + toHexString(propId) + " rate=" + rate);
181 client.addProperty(propId, rate);
195 // Set the new rate
196 if (rate > mHal.getSampleRate(propId)) {
197 mHal.subscribeProperty(propId, rate);
266 float rate = c.getRate(propId); local
    [all...]
  /external/iproute2/tc/
tc_util.c 195 int get_rate(unsigned int *rate, const char *str)
216 *rate = bps;
218 if (*rate != floor(bps))
223 int get_rate64(__u64 *rate, const char *str)
244 *rate = bps;
248 void print_rate(char *buf, int len, __u64 rate)
256 rate <<= 3; /* bytes/sec -> bits/sec */
259 if (rate < kilo)
261 if (((rate % kilo) != 0) && rate < 1000*kilo
    [all...]
  /external/sonic/
Sonic.java 25 private float rate; field in class:Sonic
122 // Get the rate of the stream.
125 return rate;
128 // Set the playback rate of the stream. This scales pitch and speed at the same time.
130 float rate)
132 this.rate = rate;
207 rate = 1.0f;
214 // Get the sample rate of the stream.
220 // Set the sample rate of the stream. This will cause samples buffered in the stream to be lost
    [all...]
  /external/tensorflow/tensorflow/python/layers/
core.py 259 Dropout consists in randomly setting a fraction `rate` of input units to 0
261 The units that are kept are scaled by `1 / (1 - rate)`, so that their
265 rate: The dropout rate, between 0 and 1. E.g. `rate=0.1` would drop out
279 def __init__(self, rate=0.5,
285 self.rate = rate
300 return nn.dropout(inputs, 1 - self.rate,
313 rate=0.5
    [all...]
  /packages/services/Car/car-lib/src/android/car/hardware/
CarSensorManager.java 78 * around. For this sensor, rate in {@link #registerListener(OnSensorChangedListener, int, int)}
168 * Indicates the instantaneous battery charging rate in mW.
225 /** Read sensor in default normal rate set for each sensors. This is default rate. */
229 /** Read sensor at the maximum rate. Actual rate will be different depending on the sensor. */
371 * updated depending on the rate.
382 * @param rate how fast the sensor events are delivered. It should be one of
384 * {@link #SENSOR_RATE_NORMAL}. Rate may not be respected especially when the same sensor
385 * is registered with different listener with different rates. Also, rate might b
    [all...]
  /frameworks/base/media/jni/
android_media_MediaSync.cpp 81 status_t JMediaSync::setPlaybackParams(const AudioPlaybackRate& rate) {
82 return mSync->setPlaybackSettings(rate);
85 void JMediaSync::getPlaybackParams(AudioPlaybackRate* rate /* nonnull */) {
86 mSync->getPlaybackSettings(rate);
97 status_t JMediaSync::setVideoFrameRateHint(float rate) {
98 return mSync->setVideoFrameRateHint(rate);
331 AudioPlaybackRate rate; local
332 sync->getPlaybackParams(&rate);
335 rate.mSpeed = pbs.audioRate.mSpeed;
339 rate.mPitch = pbs.audioRate.mPitch
    [all...]
  /hardware/qcom/audio/hal/audio_extn/
hfp.c 75 .rate = 8000,
433 int rate; local
457 rate = atoi(value);
458 if (rate == 8000){
460 pcm_config_hfp.rate = rate;
461 } else if (rate == 16000){
463 pcm_config_hfp.rate = rate;
465 ALOGE("Unsupported rate..")
    [all...]

Completed in 1858 milliseconds

1 2 3 4 5 6 7 891011>>