Searched defs:rate (Results 1 - 7 of 7) sorted by relevance
/system/extras/simpleperf/ |
H A D | cmd_stat.cpp | 332 return android::base::StringPrintf("%lf%% miss rate", miss_rate * 100); 336 double rate = summary.count / duration_in_sec; local 337 if (rate > 1e9) { 338 return android::base::StringPrintf("%.3lf G/sec", rate / 1e9); 340 if (rate > 1e6) { 341 return android::base::StringPrintf("%.3lf M/sec", rate / 1e6); 343 if (rate > 1e3) { 344 return android::base::StringPrintf("%.3lf K/sec", rate / 1e3); 346 return android::base::StringPrintf("%.3lf /sec", rate);
|
/system/extras/sound/ |
H A D | playwav.c | 38 int pcm_play(unsigned rate, unsigned channels, argument 60 config.sample_rate = rate; 137 void play_file(unsigned rate, unsigned channels, argument 150 pcm_play(rate, channels, fill_buffer, 0); 156 unsigned rate, channels; local 193 int wav_rec(const char *fn, unsigned channels, unsigned rate) argument 210 hdr.sample_rate = rate; 336 unsigned rate = 44100; local 349 } else if (!strcmp(argv[0],"-rate")) { 353 fprintf(stderr,"playwav: -rate require [all...] |
/system/media/alsa_utils/ |
H A D | alsa_device_profile.c | 52 The order here determines the default sample rate for the device. 56 TODO: remove 32000, 22050, 12000, 11025? Each sample rate check 108 * Returns the system defined minimum period size based on the supplied sample rate. 112 ALOGV("profile_calc_min_period_size(%p, rate:%d)", profile, sample_rate); 129 ALOGV("profile_get_period_size(rate:%d) = %d", sample_rate, period_size); 139 * TODO this won't be right in general. we should store a preferred rate as we are scanning. 140 * But right now it will return the highest rate, which may be correct. 145 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate) argument 150 if (profile->sample_rates[index] == rate) { 157 return rate 204 profile_test_sample_rate(alsa_device_profile* profile, unsigned rate) argument [all...] |
/system/core/adb/ |
H A D | file_sync_client.cpp | 304 double rate = (static_cast<double>(total_bytes_) / s) / (1024*1024); local 306 rate, total_bytes_, s);
|
/system/bt/audio_a2dp_hw/ |
H A D | audio_a2dp_hw.c | 98 uint32_t rate; member in struct:a2dp_config 201 return (int)(((int64_t)bytes * (1000000 / (chan_count * 2))) / cfg.rate); 436 common->cfg.rate = sample_rate; 438 INFO("got config %d %d", common->cfg.format, common->cfg.rate); 653 DEBUG("rate %" PRIu32,out->common.cfg.rate); 655 return out->common.cfg.rate; 658 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument 662 DEBUG("out_set_sample_rate : %" PRIu32, rate); 664 if (rate ! 899 in_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_media_task.c | 771 UINT16 rate = BTIF_A2DP_DEFAULT_BITRATE; local 776 rate = BTIF_A2DP_NON_EDR_MAX_RATE; 777 APPL_TRACE_DEBUG("non-edr a2dp sink detected, restrict rate to %d", rate); 780 return rate; 1844 APPL_TRACE_EVENT(" ch mode %d, subnd %d, nb blk %d, alloc %d, rate %d, freq %d", 1908 /* Set the initial target bit rate */ 2011 APPL_TRACE_DEBUG("%s final bit rate %d, final bit pool %d", __func__, 2086 APPL_TRACE_DEBUG("ch mode %d, nbsubd %d, nb %d, alloc %d, rate %d, freq %d", 2827 /* Get the SBC sampling rate */ [all...] |
/system/connectivity/shill/wifi/ |
H A D | wifi.cc | 2816 uint32_t rate = 0; // In 100Kbps. local 2828 rate = static_cast<uint32_t>(u16_rate); 2830 transmit_info->GetU32AttributeValue(NL80211_RATE_INFO_BITRATE32, &rate); 2860 if (rate) { 2863 rate / 10, rate % 10, 2868 metrics()->NotifyWifiTxBitrate(rate/10);
|
Completed in 1704 milliseconds