/device/google/contexthub/firmware/os/core/ |
sensors.c | 230 static bool sensorCallFuncSetRate(struct Sensor* s, uint32_t rate, uint64_t latency) 233 INVOKE_AS_OWNER_AND_RETURN(LOCAL_APP_OPS(s)->sensorSetRate, rate, latency, s->callData); 241 evt->externalSetRateEvt.rate = rate; 371 /* simple rate change - > do it, there is nothing we can do if this fails, so we ignore the immediate errors :( */ 411 osLog(LOG_WARN, "Bad rate 0x%08" PRIX32 " for sensor %u", extraReqedRate, s->si->sensorType); 427 /* skip an instance of a removed rate if one was given */ 428 if (req->rate == removedRate) { 436 if (req->rate == SENSOR_RATE_ONDEMAND) 438 if (req->rate == SENSOR_RATE_ONCHANGE) [all...] |
/device/google/contexthub/util/nanotool/ |
nanomessage.cpp | 192 uint32_t ConfigureSensorRequest::FloatRateToFixedPoint(float rate) { 193 return rate * 1024.0f; 196 float ConfigureSensorRequest::FixedPointRateToFloat(uint32_t rate) { 197 return rate / 1024.0f; 219 " rate (fixed point): %08x\n" 227 config.rate,
|
/external/iproute2/tc/ |
q_red.c | 42 unsigned int rate = 0; local 87 if (get_rate(&rate, *argv)) { 124 if (!rate) { 125 get_rate(&rate, "10Mbit"); 140 if ((parm = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0) {
|
m_sample.c | 24 fprintf(stderr, "\tSAMPLE_PARAMS := rate RATE group GROUP [trunc SIZE] [SAMPLE_INDEX]\n"); 50 __u32 rate; local 66 if (matches(*argv, "rate") == 0) { 68 if (get_unsigned(&rate, *argv, 10) != 0) { 69 fprintf(stderr, "Illegal rate %s\n", *argv); 120 fprintf(stderr, "param \"rate\" not set\n"); 128 addattr32(n, MAX_MSG, TCA_SAMPLE_RATE, rate); 158 fprintf(f, "sample rate 1/%d group %d",
|
q_hfsc.c | 54 "SC := [ [ umax BYTE ] dmax SEC ] rate BPS\n" 58 " rate : rate\n" 332 unsigned int umax = 0, dmax = 0, rate = 0; local 352 if (matches(*argv, "rate") == 0) { 354 if (get_rate(&rate, *argv) < 0) { 355 explain1("rate"); 366 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) { 373 sc->m2 = rate; 377 * is at dmax - umax / rate [all...] |
/external/sonic/ |
sonic.c | 29 float rate; member in struct:sonicStreamStruct 117 /* Get the rate of the stream. */ 121 return stream->rate; 124 /* Set the playback rate of the stream. This scales pitch and speed at the same time. */ 127 float rate) 129 stream->rate = rate; 267 stream->rate = 1.0f; 275 /* Get the sample rate of the stream. */ 282 /* Set the sample rate of the stream. This will cause samples buffered in the stream t 552 float rate = stream->rate*stream->pitch; local 1052 float rate = stream->rate; local [all...] |
/external/syslinux/gpxe/src/include/gpxe/ |
net80211.h | 71 /** 802.11n: High-rate operation using MIMO technology on 2.4GHz or 5GHz */ 83 /** Requested transmission rate (@c dev->rate) has changed */ 154 * implemented to prevent high data-rate attacks. 324 * transmission of the I/O buffer, using the channel and rate 327 * channel and rate will be the same as those currently 803 /* ---------- Channel and rate fields ---------- */ 823 /** The rate currently in use, as an index into the rates array */ 824 u8 rate; member in struct:net80211_device 826 /** The rate to use for RTS/CTS transmission [all...] |
/external/tensorflow/tensorflow/contrib/training/python/training/ |
resample_test.py | 53 def testRoundtrip(self, rate=0.25, count=5, n=500): 54 """Tests `resample(x, weights)` and resample(resample(x, rate), 1/rate)`.""" 61 [foo, bar], constant_op.constant(weights), rate, seed=123) 86 self.assert_expected(weights, rate, counts_resampled, n) 96 def testCorrectRates(self, rate=0.25, count=10, n=500, rtol=0.1): 100 # - sum(1/rate) approximates the size of the original collection 101 # - sum(1/rate * value) approximates the sum of the original inputs, 102 # - sum(1/rate * value)/sum(1/rate) approximates the mean [all...] |
/external/tinycompress/ |
cplay.c | 209 unsigned int channels, rate, bits; local 221 if (parse_mp3_header(&header, &channels, &rate, &bits) == -1) { 229 codec.sample_rate = rate; 231 fprintf(stderr, "invalid sample rate %d\n", rate); 285 printf("Format %u Channels %u, %u Hz, Bit Rate %d\n", 286 SND_AUDIOCODEC_MP3, channels, rate, bits);
|
/external/webrtc/webrtc/modules/rtp_rtcp/test/testAPI/ |
test_api_rtcp.cc | 142 voice_codec.rate = 64000; 151 (voice_codec.rate < 0) ? 0 : voice_codec.rate)); 158 (voice_codec.rate < 0) ? 0 : voice_codec.rate));
|
/frameworks/av/media/libstagefright/ |
MediaClock.cpp | 129 void MediaClock::setPlaybackRate(float rate) { 130 CHECK_GE(rate, 0.0); 133 mPlaybackRate = rate; 143 updateAnchorTimesAndPlaybackRate_l(nowMediaUs, nowUs, rate); 145 if (rate > 0.0) { 333 msg->setFloat("playback-rate", mPlaybackRate);
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
PlayerSession.java | 139 float rate = newState == PlaybackState.STATE_PLAYING ? 1 : 0; local 142 bob.setState(newState, position, rate, SystemClock.elapsedRealtime()); 186 float rate = 0; local 205 rate = 1; 213 bob.setState(pbState, position, rate, SystemClock.elapsedRealtime());
|
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/ |
ams_tmd2772.c | 205 static const uint64_t rateTimerVals[] = //should match "supported rates in length" and be the timer length for that rate in nanosecs 344 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) 346 if (rate == SENSOR_RATE_ONCHANGE) { 347 rate = AMS_TMD2772_DEFAULT_RATE; 349 osLog(LOG_INFO, DRIVER_NAME "sensorRateAls: %ld/%lld\n", rate, latency); 353 mData.alsTimerHandle = timTimerSet(sensorTimerLookupCommon(supportedRates, rateTimerVals, rate), 0, 50, alsTimerCallback, NULL, false); 355 sensorSignalInternalEvt(mData.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 399 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) 401 if (rate == SENSOR_RATE_ONCHANGE) { 402 rate = AMS_TMD2772_DEFAULT_RATE [all...] |
/external/aac/libSBRdec/src/ |
sbrdec_freq_sca.cpp | 140 SBR_RATE rate = DUAL; local 144 rate = QUAD; 149 FDK_ASSERT(2 * (rate + 1) <= (4)); 163 band = FDK_sbrDecoder_sbr_start_freq_88[rate][startFreq]; 166 band = FDK_sbrDecoder_sbr_start_freq_64[rate][startFreq]; 169 band = FDK_sbrDecoder_sbr_start_freq_48[rate][startFreq]; 172 band = FDK_sbrDecoder_sbr_start_freq_44[rate][startFreq]; 175 band = FDK_sbrDecoder_sbr_start_freq_40[rate][startFreq]; 178 band = FDK_sbrDecoder_sbr_start_freq_32[rate][startFreq]; 181 band = FDK_sbrDecoder_sbr_start_freq_24[rate][startFreq] [all...] |
/external/iptables/extensions/ |
libebt_limit.c | 43 "--limit avg : max average match rate: default "EBT_LIMIT_AVG"\n" 50 static int parse_rate(const char *rate, uint32_t *val) 56 delim = strchr(rate, '/'); 72 r = atoi(rate); 107 "bad rate `%s'", optarg);
|
/external/libopus/celt/ |
opus_custom_demo.c | 51 opus_int32 frame_size, channels, rate; local 64 fprintf (stderr, "Usage: test_opus_custom <rate> <channels> <frame size> " 65 " <bytes per packet> [<complexity> [packet loss rate]] " 70 rate = (opus_int32)atol(argv[1]); 73 mode = opus_custom_mode_create(rate, frame_size, NULL);
|
/external/libvpx/libvpx/vp8/encoder/ |
encodemb.c | 128 int rate; member in struct:vp8_token_state 195 tokens[eob][0].rate = 0; 215 rate0 = tokens[next][0].rate; 216 rate1 = tokens[next][1].rate; 236 tokens[i][0].rate = base_bits + (best ? rate1 : rate0); 243 rate0 = tokens[next][0].rate; 244 rate1 = tokens[next][1].rate; 296 tokens[i][1].rate = base_bits + (best ? rate1 : rate0); 314 tokens[next][0].rate += mb->token_costs[type][band][0][t0]; 318 tokens[next][1].rate += mb->token_costs[type][band][0][t1] [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/ |
audio_encoder_isac_t_impl.h | 30 config.adaptive_mode = (codec_inst.rate == -1); 31 if (codec_inst.rate != -1) 32 config.bit_rate = codec_inst.rate; 179 // Set the decoder sample rate even though we just use the encoder. This
|
/external/webrtc/webrtc/voice_engine/test/auto_test/ |
voe_output_test.cc | 46 void SetBitRate(int rate); 138 void OutputTest::SetBitRate(int rate) { 139 manager_.CodecPtr()->SetBitRate(channel_, rate);
|
/frameworks/av/media/libmediaplayer2/ |
MediaPlayer2AudioOutput.cpp | 195 // Calculate duration of played samples if played at normal rate (i.e., 1.0). 539 status_t MediaPlayer2AudioOutput::setPlaybackRate(const AudioPlaybackRate &rate) { 541 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); 544 // remember rate so that we can set it when the track is opened 545 mPlaybackRate = rate; 548 status_t res = mTrack->setPlaybackRate(rate); 552 // rate.mSpeed is always greater than 0 if setPlaybackRate succeede [all...] |
/packages/services/Car/service/src/com/android/car/ |
CarDiagnosticService.java | 201 public boolean registerOrUpdateDiagnosticListener(int frameType, int rate, 228 diagnosticListeners = new Listeners<>(rate); 238 new ClientWithRate<>(diagnosticClient, rate); 241 diagnosticClientWithRate.setRate(rate); 243 if (diagnosticListeners.getRate() > rate) { 244 diagnosticListeners.setRate(rate); 254 "shouldStartDiagnostics = %s for %s at rate %d", 255 shouldStartDiagnostics, frameType, rate)); 258 if (!startDiagnostic(frameType, rate)) { 278 private boolean startDiagnostic(int frameType, int rate) { [all...] |
/packages/services/Car/service/src/com/android/car/hal/ |
SensorHalServiceBase.java | 109 public synchronized boolean requestSensorStart(int sensorType, int rate) { 110 if (DBG) Log.d(TAG, "requestSensorStart, sensorType: " + sensorType + ", rate: " + rate); 116 //TODO calculate sampling rate properly, bug: 32095903 117 mHal.subscribeProperty(this, config.prop, fixSamplingRateForProperty(config, rate));
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_pickmode.c | 339 int rate; local 516 dc_quant >> (xd->bd - 5), &rate, &dist); 519 dc_quant >> 3, &rate, &dist); 524 *out_rate_sum = rate >> 1; 533 ac_quant >> (xd->bd - 5), &rate, &dist); 536 &rate, &dist); 539 *out_rate_sum += rate; 551 int rate; local 615 dc_quant >> (xd->bd - 5), &rate, &dist); 618 dc_quant >> 3, &rate, &dist) 788 int rate; local 1325 int rate = 0; local [all...] |
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/ |
isl29034.c | 159 // should match "supported rates in length" and be the timer length for that rate in nanosecs 255 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) 257 if (rate == SENSOR_RATE_ONCHANGE) 258 rate = ISL29034_DEFAULT_RATE; 260 INFO_PRINT("sensorRateAls: %ld/%lld\n", rate, latency); 264 mData.alsTimerHandle = timTimerSet(sensorTimerLookupCommon(supportedRates, rateTimerVals, rate), 0, 50, alsTimerCallback, NULL, false); 266 sensorSignalInternalEvt(mData.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency);
|
/external/autotest/client/cros/audio/ |
alsa_utils.py | 28 def _get_format_args(channels, bits, rate): 31 args += ['-r', str(rate)] 270 input, duration=None, channels=2, bits=16, rate=48000, device=None): 277 @param rate: The sampling rate. 284 args += _get_format_args(channels, bits, rate) 305 output, duration=None, channels=1, bits=16, rate=48000, device=None): 312 @param rate: The sampling rate. 319 args += _get_format_args(channels, bits, rate) [all...] |