/system/core/logd/tests/ |
logd_test.cpp | 1199 static const int rate = AUDIT_RATE_LIMIT; local 1205 rate * duration + rate); local [all...] |
/external/adhd/cras/src/server/ |
cras_alsa_helpers.c | 469 unsigned int rate, ret_rate; local 473 rate = format->frame_rate; 527 /* Set the stream rate. */ 528 ret_rate = rate; 531 syslog(LOG_ERR, "set_rate_near %iHz %s\n", rate, 535 if (ret_rate != rate) { 536 syslog(LOG_ERR, "tried for %iHz, settled for %iHz)\n", rate, 569 syslog(LOG_ERR, "hw_params: %s: rate: %u, ret_rate: %u, " 570 "channel: %zu, format: %u\n", snd_strerror(err), rate, 701 /* Limit the log rate. * [all...] |
/external/syslinux/gpxe/src/drivers/net/ath5k/ |
ath5k_reset.c | 102 /* TODO: Half/quarter rate */ 146 * ath5k_hw_write_rate_duration - fill rate code to duration table 151 * Write the rate code to duration table upon hw reset. This is a helper for 153 * the hardware, based on current mode, for each rate. The rates which are 155 * different rate code so we write their value twice (one for long preample 161 * quarter rate mode, we need to use another set of bitrates (that's why we 168 u16 rate; local 171 /* Write rate duration table */ 176 rate = sc->hwinfo->rates[NET80211_BAND_2GHZ][i]; 179 reg = AR5K_RATE_DUR(ath5k_bitrate_to_hw_rix(rate)); [all...] |
/frameworks/av/media/libmediaplayer2/ |
mediaplayer2.cpp | 884 status_t MediaPlayer2::setPlaybackSettings(const AudioPlaybackRate& rate) { 886 rate.mSpeed, rate.mPitch, rate.mFallbackMode, rate.mStretchMode); 889 if (rate.mSpeed <= 0.f || rate.mPitch < 0.f) { 897 status_t err = mPlayer->setPlaybackSettings(rate); 901 status_t MediaPlayer2::getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */) { 906 status_t ret = mPlayer->getPlaybackSettings(rate); [all...] |
/external/fio/ |
gclient.c | 386 rate_str[0] = num2str(je->rate[0], 4, 10, i2p, N2S_BYTEPERSEC); 387 rate_alt[0] = num2str(je->rate[0], 4, 10, !i2p, N2S_BYTEPERSEC); 392 rate_str[1] = num2str(je->rate[1], 4, 10, i2p, N2S_BYTEPERSEC); 393 rate_alt[1] = num2str(je->rate[1], 4, 10, !i2p, N2S_BYTEPERSEC); 398 rate_str[2] = num2str(je->rate[2], 4, 10, i2p, N2S_BYTEPERSEC); 399 rate_alt[2] = num2str(je->rate[2], 4, 10, !i2p, N2S_BYTEPERSEC); 407 graph_add_xy_data(ge->graphs.bandwidth_graph, ge->graphs.read_bw, je->elapsed_sec, je->rate[0], rate_str[0]); 408 graph_add_xy_data(ge->graphs.bandwidth_graph, ge->graphs.write_bw, je->elapsed_sec, je->rate[1], rate_str[1]); 409 graph_add_xy_data(ge->graphs.bandwidth_graph, ge->graphs.trim_bw, je->elapsed_sec, je->rate[2], rate_str[2]); 470 rate_str[0] = num2str(je->rate[0], 4, 10, i2p, N2S_BYTEPERSEC) [all...] |
/hardware/libhardware/modules/audio_remote_submix/ |
audio_hw.cpp | 72 // the duration of a record buffer at the current record sample rate (of the device, not of 77 #define DEFAULT_SAMPLE_RATE_HZ 48000 // default sample rate 211 // Determine whether the specified sample rate is supported by the submix module. 223 // Determine whether the specified sample rate is supported, if it is return the specified sample 224 // rate, otherwise return the default sample rate for the submix module. 342 ALOGE("audio_config_compare() sample rate mismatch %ul vs. %ul", 380 // If the output isn't configured yet, set the output sample rate to the maximum supported 381 // sample rate such that the smallest possible input buffer is created, and put a default 547 SUBMIX_ALOGV("submix_open_validate_l(): sample rate=%d format=%x [all...] |
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/ |
ams_tmd4903.c | 505 static bool sensorRateAls(uint32_t rate, uint64_t latency, void *cookie) 507 if (rate == SENSOR_RATE_ONCHANGE) 508 rate = AMS_TMD4903_DEFAULT_RATE; 510 DEBUG_PRINT("sensorRateAls: rate=%ld Hz latency=%lld ns\n", rate/1024, latency); 512 return sensorSignalInternalEvt(mTask.alsHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 592 static bool sensorRateProx(uint32_t rate, uint64_t latency, void *cookie) 594 if (rate == SENSOR_RATE_ONCHANGE) 595 rate = AMS_TMD4903_DEFAULT_RATE; 597 DEBUG_PRINT("sensorRateProx: rate=%ld Hz latency=%lld ns\n", rate/1024, latency) [all...] |
/external/webrtc/tools/matlab/ |
rtpAnalyze.m | 72 warning('This tool cannot yet handle changes in codec sample rate'); 96 %% Trying to figure out sample rate. 107 fprintf('Cannot determine sample rate. I get it to %.2f kHz\n', ... 109 fs = input('Please, input a sample rate (in kHz): '); 111 fprintf('Sample rate estimated to %i kHz\n', fs);
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
llstats.cpp | 356 stats->rate.preamble = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE]); 363 stats->rate.nss = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS]); 370 stats->rate.bw = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW]); 377 stats->rate.rateMcsIdx = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX]); 384 stats->rate.bitrate = nla_get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE]); 429 stats->rate.preamble, 430 stats->rate.nss, 431 stats->rate.bw, 432 stats->rate.rateMcsIdx, 433 stats->rate.bitrate [all...] |
/external/libvpx/libvpx/vp8/encoder/ |
pickinter.c | 185 int rate; local 195 rate = mode_costs[mode]; 200 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); 203 *bestrate = rate; 215 static int pick_intra4x4mby_modes(MACROBLOCK *mb, int *Rate, int *best_dist) { 254 *Rate = cost; 578 int rate; local 861 pick_intra4x4mby_modes(x, &rate, &distortion2); 866 rate2 += rate; 1306 int rate, best_rate = 0, distortion, best_sse; local [all...] |
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/ |
bosch_bmp280.c | 156 static const uint64_t rateTimerValsTemp[] = //should match "supported rates in length" and be the timer length for that rate in nanosecs 174 static const uint64_t rateTimerValsBaro[] = //should match "supported rates in length" and be the timer length for that rate in nanosecs 362 static bool sensorRateBaro(uint32_t rate, uint64_t latency, void *cookie) 366 mTask.baroTimerHandle = timTimerSet(sensorTimerLookupCommon(baroSupportedRates, rateTimerValsBaro, rate), 0, 50, baroTimerCallback, NULL, false); 367 return sensorSignalInternalEvt(mTask.baroHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency); 453 static bool sensorRateTemp(uint32_t rate, uint64_t latency, void *cookie) 457 mTask.tempTimerHandle = timTimerSet(sensorTimerLookupCommon(tempSupportedRates, rateTimerValsTemp, rate), 0, 50, tempTimerCallback, NULL, false); 458 sensorSignalInternalEvt(mTask.tempHandle, SENSOR_INTERNAL_EVT_RATE_CHG, rate, latency);
|
/frameworks/av/media/libmediaplayerservice/ |
MediaPlayerService.cpp | [all...] |
MediaPlayerService.h | 123 virtual status_t setPlaybackRate(const AudioPlaybackRate& rate); 124 virtual status_t getPlaybackRate(AudioPlaybackRate* rate /* nonnull */); 167 uint32_t mSampleRateHz; // sample rate of the content, as set in open() 328 virtual status_t setPlaybackSettings(const AudioPlaybackRate& rate); 329 virtual status_t getPlaybackSettings(AudioPlaybackRate* rate /* nonnull */); 330 virtual status_t setSyncSettings(const AVSyncSettings& rate, float videoFpsHint); 331 virtual status_t getSyncSettings(AVSyncSettings* rate /* nonnull */,
|
/hardware/libhardware/modules/audio/ |
audio_hw.c | 74 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) 78 ALOGV("out_set_sample_rate: %d", rate); 79 out->sample_rate = rate; 225 static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate) 229 ALOGV("in_set_sample_rate: %u", rate); 230 in->sample_rate = rate;
|
/external/libvpx/libvpx/vp9/encoder/ |
vp9_rdopt.c | 246 int64_t rate; local 251 rate = (square_error * (280 - quantizer)) >> (16 - VP9_PROB_COST_SHIFT); 253 rate = 0; 255 rate_sum += rate; 261 int rate; local 263 &rate, &dist); 264 rate_sum += rate; 664 int rate; local 754 rate = rate_block(plane, block, tx_size, coeff_ctx, args); 757 rd1 = RDCOST(x->rdmult, x->rddiv, rate, dist) 990 int rate = bmode_costs[mode]; local 1092 int rate = bmode_costs[mode]; local 3993 int rate; local 4011 int rate; local [all...] |
/external/libnl/include/linux-private/linux/ |
pkt_sched.h | 38 __u32 bps; /* Current flow byte rate */ 39 __u32 pps; /* Current flow packet rate */ 82 __u32 rate; member in struct:tc_ratespec 154 struct tc_ratespec rate; member in struct:tc_tbf_qopt 306 struct tc_ratespec rate; member in struct:tc_htb_opt 337 __u32 giants; /* too big packets (rate will not be accurate) */ 609 __u32 penalty_rate; /* inelastic flows are rate limited to 'rate' pps */
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
isac.c | 80 * Do a rate allocation for the given limit. */ 135 /* We might need a rate allocation. */ 142 /* Do the rate-allocation and get the new bandwidth. */ 330 * - CodingMode : 0 -> Bit rate and frame length are automatically 335 * rate which is taken as the maximum 336 * short-term average bit rate. 650 /* Update rate model and get minimum number of bytes in this packet. */ 706 /* update rate model */ 736 * stream. If the rate is set to a value less than bottleneck of codec 737 * the new bistream will be re-encoded with the given target rate [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_payload_registry_unittest.cc | 42 uint32_t rate) { 48 {kTypicalFrequency, kTypicalChannels, rate}}}; 56 kTypicalFrequency, kTypicalChannels, rate)) 114 // Sample rate is correctly registered. 152 // Ok, update the rate for one of the codecs. If either the incoming rate or 153 // the stored rate is zero it's not really an error to register the same
|
rtp_sender_audio.cc | 70 const uint32_t rate, 97 // The default timestamp rate is 8000 Hz, but other rates may be defined. 102 (*payload)->typeSpecific.Audio.rate = rate;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
AudioProfile.h | 92 inline bool supportsRate(uint32_t rate) const 94 return mSamplingRates.indexOf(rate) >= 0; 97 status_t checkExact(uint32_t rate, audio_channel_mask_t channels, audio_format_t format) const; 152 // for a profile with dynamic format, rate and channels attributes
|
/frameworks/base/native/android/ |
sensor.cpp | 188 ASensorManager *manager, ASensor const *sensor, int channelId, int rate) { 193 if (rate != ASENSOR_DIRECT_RATE_STOP) { 195 "sensor cannot be null when rate is not ASENSOR_DIRECT_RATE_STOP"); 203 channelId, sensorHandle, rate);
|
/hardware/interfaces/sensors/1.0/default/ |
Sensors.cpp | 303 int32_t sensorHandle, int32_t channelHandle, RateLevel rate, 313 .rate_level = convertFromRateLevel(rate) 323 if (rate == RateLevel::STOP) {
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
pkt_sched.h | 38 __u32 bps; /* Current flow byte rate */ 39 __u32 pps; /* Current flow packet rate */ 82 __u32 rate; member in struct:tc_ratespec 133 struct tc_ratespec rate; member in struct:tc_tbf_qopt 285 struct tc_ratespec rate; member in struct:tc_htb_opt 316 __u32 giants; /* too big packets (rate will not be accurate) */ 573 __u32 penalty_rate; /* inelastic flows are rate limited to 'rate' pps */
|
/system/bt/embdrv/g722/ |
g722_decode.cc | 172 g722_decode_state_t *g722_decode_init(g722_decode_state_t *s, unsigned int rate, int options) 182 if (rate == 48000) 184 else if (rate == 56000)
|
g722_encode.cc | 167 unsigned int rate, int options) 177 if (rate == 48000) 179 else if (rate == 56000)
|