Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 30) sorted by relevance

12

/system/chre/platform/slpi/smgr/tests/
Dplatform_sensor_util_test.cc28 uint16_t rate = intervalToSmgrSamplingRate(Nanoseconds(0)); in TEST() local
29 EXPECT_EQ(rate, 0); in TEST()
34 uint16_t rate = intervalToSmgrSamplingRate(kFiftyHertzInterval); in TEST() local
35 EXPECT_EQ(rate, 50); in TEST()
40 uint16_t rate = intervalToSmgrSamplingRate(kZeroPointFiveHertzInterval); in TEST() local
41 EXPECT_EQ(rate, 2000); in TEST()
46 uint16_t rate = intervalToSmgrSamplingRate(kOneNanoHzInterval); in TEST() local
47 EXPECT_EQ(rate, INT16_MAX); in TEST()
52 uint16_t rate = intervalToSmgrSamplingRate(kTwentyMHzInterval); in TEST() local
53 EXPECT_EQ(rate, 1000); // Should clamp to inversion point in TEST()
[all …]
/system/core/logd/
Dauditctl.cpp28 static void do_update_rate(uint32_t rate) { in do_update_rate() argument
33 int result = audit_rate_limit(fd, rate); in do_update_rate()
42 uint32_t rate = 0; in main() local
49 if (!android::base::ParseUint<uint32_t>(optarg, &rate)) { in main()
70 do_update_rate(rate); in main()
/system/media/alsa_utils/
Dalsa_device_proxy.c71 if (config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate)) { in proxy_prepare()
72 proxy->alsa_config.rate = config->rate; in proxy_prepare()
74 proxy->alsa_config.rate = profile->default_config.rate; in proxy_prepare()
76 config->rate, profile->default_config.rate); in proxy_prepare()
78 if (config->rate != 0) { in proxy_prepare()
97 profile_get_period_size(proxy->profile, proxy->alsa_config.rate); in proxy_prepare()
119 if (proxy->alsa_config.rate > profile->sample_rates[max_rate_index]) { in proxy_prepare()
121 proxy->alsa_config.rate, profile->sample_rates[max_rate_index]); in proxy_prepare()
122 proxy->alsa_config.rate = profile->sample_rates[max_rate_index]; in proxy_prepare()
173 return proxy->alsa_config.rate; in proxy_get_sample_rate()
[all …]
Dalsa_device_profile.c158 bool profile_is_sample_rate_valid(const alsa_device_profile* profile, unsigned rate) in profile_is_sample_rate_valid() argument
163 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid()
171 return rate == DEFAULT_SAMPLE_RATE; in profile_is_sample_rate_valid()
233 static bool profile_test_sample_rate(const alsa_device_profile* profile, unsigned rate) in profile_test_sample_rate() argument
236 config.rate = rate; in profile_test_sample_rate()
372 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE); in read_alsa_device_config()
374 if (config->rate < 48000 && in read_alsa_device_config()
376 config->rate = 48000; in read_alsa_device_config()
377 } else if (config->rate < 44100 && in read_alsa_device_config()
379 config->rate = 44100; in read_alsa_device_config()
[all …]
Dalsa_logging.c106 ALOGV(" rate:%d", config->rate); in log_pcm_config()
/system/extras/sound/
Dplaywav.c38 int pcm_play(unsigned rate, unsigned channels, in pcm_play() argument
62 config.sample_rate = rate; in pcm_play()
138 void play_file(unsigned rate, unsigned channels, in play_file() argument
151 pcm_play(rate, channels, fill_buffer, 0); in play_file()
193 int wav_rec(const char *fn, unsigned channels, unsigned rate) in wav_rec() argument
210 hdr.sample_rate = rate; in wav_rec()
336 unsigned rate = 44100; in main() local
356 rate = atoi(argv[0]); in main()
376 return wav_rec(fn, channels, rate); in main()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc99 uint32_t rate; member
214 cfg.rate); in calc_audiotime_usec()
479 common->cfg.rate = sample_rate; in ha_read_input_audio_config()
501 INFO("got input audio config %d %d", common->cfg.format, common->cfg.rate); in ha_read_input_audio_config()
547 stream_config.rate = 44100; in ha_read_output_audio_config()
550 stream_config.rate = 48000; in ha_read_output_audio_config()
553 stream_config.rate = 88200; in ha_read_output_audio_config()
556 stream_config.rate = 96000; in ha_read_output_audio_config()
559 stream_config.rate = 176400; in ha_read_output_audio_config()
562 stream_config.rate = 192000; in ha_read_output_audio_config()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc112 uint32_t rate; member
230 cfg.rate); in calc_audiotime_usec()
498 common->cfg.rate = sample_rate; in a2dp_read_input_audio_config()
520 INFO("got input audio config %d %d", common->cfg.format, common->cfg.rate); in a2dp_read_input_audio_config()
566 stream_config.rate = 44100; in a2dp_read_output_audio_config()
569 stream_config.rate = 48000; in a2dp_read_output_audio_config()
572 stream_config.rate = 88200; in a2dp_read_output_audio_config()
575 stream_config.rate = 96000; in a2dp_read_output_audio_config()
578 stream_config.rate = 176400; in a2dp_read_output_audio_config()
581 stream_config.rate = 192000; in a2dp_read_output_audio_config()
[all …]
/system/bt/embdrv/g722/
Dg722_enc_dec.h136 g722_encode_state_t *g722_encode_init(g722_encode_state_t *s, unsigned int rate, int options);
140 g722_decode_state_t *g722_decode_init(g722_decode_state_t *s, unsigned int rate, int options);
Dg722_decode.cc172 g722_decode_state_t *g722_decode_init(g722_decode_state_t *s, unsigned int rate, int options) in g722_decode_init() argument
182 if (rate == 48000) in g722_decode_init()
184 else if (rate == 56000) in g722_decode_init()
Dg722_encode.cc167 unsigned int rate, int options) in g722_encode_init() argument
177 if (rate == 48000) in g722_encode_init()
179 else if (rate == 56000) in g722_encode_init()
/system/sepolicy/prebuilts/api/30.0/private/
Dauditctl.te5 # setting rate limits on SELinux denials.
/system/sepolicy/prebuilts/api/29.0/private/
Dauditctl.te5 # setting rate limits on SELinux denials.
/system/sepolicy/private/
Dauditctl.te5 # setting rate limits on SELinux denials.
Dapp_neverallows.te209 # incidence rate of security issues than system/core components and have
/system/extras/simpleperf/
Dcmd_stat.cpp255 double rate = s.count / runtime_in_sec; in GetCommentForSummary() local
256 if (rate >= 1e9 - 1e5) { in GetCommentForSummary()
257 return android::base::StringPrintf("%.3f%cG/sec", rate / 1e9, sap_mid); in GetCommentForSummary()
259 if (rate >= 1e6 - 1e2) { in GetCommentForSummary()
260 return android::base::StringPrintf("%.3f%cM/sec", rate / 1e6, sap_mid); in GetCommentForSummary()
262 if (rate >= 1e3) { in GetCommentForSummary()
263 return android::base::StringPrintf("%.3f%cK/sec", rate / 1e3, sap_mid); in GetCommentForSummary()
265 return android::base::StringPrintf("%.3f%c/sec", rate, sap_mid); in GetCommentForSummary()
Dcmd_trace_sched.cpp269 double rate = std::min(1.0, in ProcessSampleRecord() local
271 if (rate > thread.spin_info.max_rate) { in ProcessSampleRecord()
272 thread.spin_info.max_rate = rate; in ProcessSampleRecord()
Dreport_sample.proto47 // and sample lost rate.
/system/media/alsa_utils/include/
Dalsa_device_profile.h78 bool profile_is_sample_rate_valid(const alsa_device_profile* profile, unsigned rate);
/system/bt/stack/a2dp/
Da2dp_sbc_encoder.cc835 uint16_t rate = A2DP_SBC_DEFAULT_BITRATE; in a2dp_sbc_source_rate() local
839 rate = A2DP_SBC_NON_EDR_MAX_RATE; in a2dp_sbc_source_rate()
841 rate); in a2dp_sbc_source_rate()
844 return rate; in a2dp_sbc_source_rate()
/system/bt/audio_bluetooth_hw/
Dstream_apis.cc165 static int out_set_sample_rate(struct audio_stream* stream, uint32_t rate) { in out_set_sample_rate() argument
169 return (rate == out->sample_rate_ ? 0 : -1); in out_set_sample_rate()
/system/extras/app-launcher/
Dapp-launcher123 echo -n 852000000 > /d/clock/override.gbus/rate
/system/sepolicy/prebuilts/api/27.0/private/
Dapp_neverallows.te137 # incidence rate of security issues than system/core components and have
/system/sepolicy/prebuilts/api/26.0/private/
Dapp_neverallows.te132 # incidence rate of security issues than system/core components and have
/system/sepolicy/prebuilts/api/28.0/private/
Dapp_neverallows.te160 # incidence rate of security issues than system/core components and have

12