Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 102) sorted by relevance

12345

/system/nfc/src/nfa/hci/
Dnfa_hci_main.cc223 if (strlen(&nfa_hci_cb.cfg.reg_app_names[xx][0]) > NFA_MAX_HCI_APP_NAME_LEN) in nfa_hci_is_valid_cfg()
227 if ((nfa_hci_cb.cfg.b_send_conn_evts[xx] != true) && in nfa_hci_is_valid_cfg()
228 (nfa_hci_cb.cfg.b_send_conn_evts[xx] != false)) in nfa_hci_is_valid_cfg()
231 if (nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) { in nfa_hci_is_valid_cfg()
235 if ((nfa_hci_cb.cfg.reg_app_names[yy][0] != 0) && in nfa_hci_is_valid_cfg()
236 (!strncmp(&nfa_hci_cb.cfg.reg_app_names[xx][0], in nfa_hci_is_valid_cfg()
237 &nfa_hci_cb.cfg.reg_app_names[yy][0], in nfa_hci_is_valid_cfg()
238 strlen(nfa_hci_cb.cfg.reg_app_names[xx])))) { in nfa_hci_is_valid_cfg()
242 &nfa_hci_cb.cfg.reg_app_names[xx][0], xx); in nfa_hci_is_valid_cfg()
253 if (nfa_hci_cb.cfg.dyn_gates[xx].gate_id != 0) { in nfa_hci_is_valid_cfg()
[all …]
Dnfa_hci_utils.cc53 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_find_pipe_by_pid()
75 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_by_gid()
95 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_by_owner()
117 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hciu_find_gate_with_nopipes_by_owner()
160 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in nfa_hciu_count_open_pipes_on_gate()
268 for (xx = 0, pg = nfa_hci_cb.cfg.dyn_gates; xx < NFA_HCI_MAX_GATE_CB; in nfa_hciu_alloc_gate()
408 for (xx = 0, p_cb = nfa_hci_cb.cfg.dyn_gates; xx < NFA_HCI_MAX_GATE_CB; in nfa_hciu_get_allocated_gate_list()
443 for (xx = 0, pp = nfa_hci_cb.cfg.dyn_pipes; xx < NFA_HCI_MAX_PIPE_CB; in nfa_hciu_alloc_pipe()
517 pipe_index = (uint8_t)(p_pipe - nfa_hci_cb.cfg.dyn_pipes); in nfa_hciu_add_pipe_to_gate()
568 pipe_index = (uint8_t)(p_pipe - nfa_hci_cb.cfg.dyn_pipes); in nfa_hciu_add_pipe_to_static_gate()
[all …]
Dnfa_hci_act.cc235 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in nfa_hci_api_register()
239 if ((nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) && in nfa_hci_api_register()
240 !strncmp(p_app_name, &nfa_hci_cb.cfg.reg_app_names[xx][0], in nfa_hci_api_register()
262 if (nfa_hci_cb.cfg.reg_app_names[xx][0] == 0) { in nfa_hci_api_register()
263 memset(&nfa_hci_cb.cfg.reg_app_names[xx][0], 0, in nfa_hci_api_register()
264 sizeof(nfa_hci_cb.cfg.reg_app_names[xx])); in nfa_hci_api_register()
265 strlcpy(&nfa_hci_cb.cfg.reg_app_names[xx][0], p_app_name, in nfa_hci_api_register()
288 nfa_hci_cb.cfg.b_send_conn_evts[xx] = p_evt_data->app_info.b_send_conn_evts; in nfa_hci_api_register()
317 if ((nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) && in nfa_hci_api_deregister()
319 &nfa_hci_cb.cfg.reg_app_names[xx][0], in nfa_hci_api_deregister()
[all …]
/system/bt/gd/iso/
Dfacade.cc58 hci::CisParametersConfig cfg; in LeSetCigParameters() local
59 cfg.cis_id_ = request->cis_id(); in LeSetCigParameters()
60 cfg.max_sdu_m_to_s_ = request->max_sdu_m_to_s(); in LeSetCigParameters()
61 cfg.max_sdu_s_to_m_ = request->max_sdu_s_to_m(); in LeSetCigParameters()
62 cfg.phy_m_to_s_ = request->phy_m_to_s(); in LeSetCigParameters()
63 cfg.phy_s_to_m_ = request->phy_s_to_m(); in LeSetCigParameters()
64 cfg.rtn_m_to_s_ = request->rtn_m_to_s(); in LeSetCigParameters()
65 cfg.rtn_s_to_m_ = request->rtn_s_to_m(); in LeSetCigParameters()
67 cis_config.push_back(cfg); in LeSetCigParameters()
100 hci::LeCisParametersTestConfig cfg; in LeSetCigParametersTest() local
[all …]
/system/bt/gd/rust/common/src/
Dsys_prop.rs3 #[cfg(target_os = "android")]
14 #[cfg(target_os = "android")]
18 #[cfg(target_os = "android")]
31 #[cfg(not(target_os = "android"))]
Dlib.rs11 #[cfg(test)]
22 #[cfg(target_os = "android")]
30 #[cfg(not(target_os = "android"))]
/system/extras/perf2cfg/
DREADME.md5 compiler using the `--dump-cfg=<cfg-file>` option. The tool outputs an
20 usage: perf2cfg [-h|--help] --cfg CFG --perf-data PERF_DATA [PERF_DATA ...]
43 --cfg CFG The CFG file to annotate.
52 perf2cfg --cfg art.cfg --perf-data perf.data
57 perf2cfg --cfg art.cfg \
63 perf2cfg --cfg art.cfg --perf-data perf.data \
69 perf2cfg --cfg art.cfg --perf-data perf.data \
101 `~/.c1visualizer/dev/config/Preferences/at/ssw/visualizer/cfg/options/CfgPreferences.properties`.
Dperf2cfg.py80 root, ext = os.path.splitext(args.cfg)
129 input_stream = open(args.cfg, 'r')
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc134 struct ha_config cfg; member
208 static int calc_audiotime_usec(struct ha_config cfg, int bytes) { in calc_audiotime_usec() argument
209 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
212 switch (cfg.format) { in calc_audiotime_usec()
229 ASSERTC(false, "unsupported sample format", cfg.format); in calc_audiotime_usec()
236 cfg.rate); in calc_audiotime_usec()
501 common->cfg.rate = sample_rate; in ha_read_input_audio_config()
510 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in ha_read_input_audio_config()
513 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in ha_read_input_audio_config()
521 common->cfg.format = AUDIO_FORMAT_PCM_16_BIT; in ha_read_input_audio_config()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc125 struct a2dp_config cfg; member
202 static int calc_audiotime_usec(struct a2dp_config cfg, int bytes) { in calc_audiotime_usec() argument
203 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
206 switch (cfg.format) { in calc_audiotime_usec()
223 ASSERTC(false, "unsupported sample format", cfg.format); in calc_audiotime_usec()
230 cfg.rate); in calc_audiotime_usec()
498 common->cfg.rate = sample_rate; in a2dp_read_input_audio_config()
507 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in a2dp_read_input_audio_config()
510 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in a2dp_read_input_audio_config()
518 common->cfg.format = AUDIO_FORMAT_PCM_16_BIT; in a2dp_read_input_audio_config()
[all …]
/system/chre/external/kiss_fft/
Dkiss_fftr.h29 void kiss_fftr(kiss_fftr_cfg cfg,const kiss_fft_scalar *timedata,kiss_fft_cpx *freqdata);
35 void kiss_fftri(kiss_fftr_cfg cfg,const kiss_fft_cpx *freqdata,kiss_fft_scalar *timedata);
Dkiss_fft.h93 void kiss_fft(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout);
98 void kiss_fft_stride(kiss_fft_cfg cfg,const kiss_fft_cpx *fin,kiss_fft_cpx *fout,int fin_stride);
/system/extras/simpleperf/
DIOEventLoop.cpp63 event_config* cfg = event_config_new(); in EnsureInit() local
64 if (cfg != nullptr) { in EnsureInit()
66 event_config_set_flag(cfg, EVENT_BASE_FLAG_PRECISE_TIMER); in EnsureInit()
68 if (event_config_avoid_method(cfg, "epoll") != 0) { in EnsureInit()
72 ebase_ = event_base_new_with_config(cfg); in EnsureInit()
86 event_config_free(cfg); in EnsureInit()
DETMDecoder.cpp633 ocsd_etmv4_cfg cfg; in CreateDecodeTree() local
634 memset(&cfg, 0, sizeof(cfg)); in CreateDecodeTree()
635 cfg.reg_idr0 = etm4.trcidr0; in CreateDecodeTree()
636 cfg.reg_idr1 = etm4.trcidr1; in CreateDecodeTree()
637 cfg.reg_idr2 = etm4.trcidr2; in CreateDecodeTree()
638 cfg.reg_idr8 = etm4.trcidr8; in CreateDecodeTree()
639 cfg.reg_configr = etm4.trcconfigr; in CreateDecodeTree()
640 cfg.reg_traceidr = etm4.trctraceidr; in CreateDecodeTree()
641 cfg.arch_ver = ARCH_V8; in CreateDecodeTree()
642 cfg.core_prof = profile_CortexA; in CreateDecodeTree()
[all …]
/system/bt/gd/rust/hal/src/
Dlib.rs4 #[cfg(target_os = "android")]
12 #[cfg(target_os = "android")]
18 #[cfg(target_os = "android")]
28 #[cfg(not(target_os = "android"))]
/system/bt/stack/test/eatt/
Deatt_test.cc299 tL2CAP_LE_CFG_INFO cfg = {.result = L2CAP_CFG_OK, .mtu = new_mtu}; in TEST_F() local
303 true, &cfg); in TEST_F()
326 tL2CAP_LE_CFG_INFO cfg = {.result = L2CAP_CFG_FAILED_NO_REASON, in TEST_F() local
331 true, &cfg); in TEST_F()
354 tL2CAP_LE_CFG_INFO cfg = {.result = L2CAP_CFG_OK, .mtu = new_mtu}; in TEST_F() local
360 true, &cfg); in TEST_F()
381 tL2CAP_LE_CFG_INFO cfg = {.result = L2CAP_CFG_FAILED_NO_REASON, in TEST_F() local
388 true, &cfg); in TEST_F()
401 tL2CAP_LE_CFG_INFO cfg = {.result = L2CAP_CFG_OK, .mtu = new_mtu}; in TEST_F() local
405 false, &cfg); in TEST_F()
[all …]
/system/extras/sound/
Dplaywav.c197 struct msm_audio_config cfg; in wav_rec() local
232 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec()
237 cfg.channel_count = hdr.num_channels; in wav_rec()
238 cfg.sample_rate = hdr.sample_rate; in wav_rec()
239 if (ioctl(afd, AUDIO_SET_CONFIG, &cfg)) { in wav_rec()
244 if (ioctl(afd, AUDIO_GET_CONFIG, &cfg)) { in wav_rec()
249 sz = cfg.buffer_size; in wav_rec()
250 fprintf(stderr,"buffer size %d x %d\n", sz, cfg.buffer_count); in wav_rec()
/system/bt/bta/av/
Dbta_av_aact.cc176 p_scb->cfg.codec_info)) { in bta_av_get_scb_handle()
381 p_msg->cfg = *p_data->config_ind.p_cfg; in bta_av_proc_stream_evt()
557 A2DP_CodecName(p_scb->cfg.codec_info)); in bta_av_adjust_seps_idx()
564 p_scb->cfg.codec_info)) { in bta_av_adjust_seps_idx()
918 const AvdtpSepConfig* p_evt_cfg = &p_data->str_msg.cfg; in bta_av_config_ind()
919 uint8_t psc_mask = (p_evt_cfg->psc_mask | p_scb->cfg.psc_mask); in bta_av_config_ind()
933 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind()
943 ((psc_mask != p_scb->cfg.psc_mask) && in bta_av_config_ind()
944 (psc_mask != (p_scb->cfg.psc_mask & ~AVDT_PSC_DELAY_RPT)))) { in bta_av_config_ind()
1087 av_sink_codec_info.avk_config.codec_info = p_scb->cfg.codec_info; in bta_av_setconfig_rsp()
[all …]
/system/core/libcutils/
Dashmem_test.cpp170 for (const auto& cfg : seeks) { in TEST() local
173 auto off = lseek(fd, cfg.offset, cfg.whence); in TEST()
174 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" in TEST()
/system/logging/rust/
Dlogger.rs80 #[cfg(not(target_os = "android"))]
108 #[cfg(target_os = "android")]
142 #[cfg(test)]
/system/bt/stack/btm/
Dbtm_devctl.cc88 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); in btm_dev_init()
211 BTM_SetPinType(btm_cb.cfg.pin_type, btm_cb.cfg.pin_code, in BTM_reset_complete()
212 btm_cb.cfg.pin_code_len); in BTM_reset_complete()
324 p = (uint8_t*)btm_cb.cfg.bd_name; in BTM_SetLocalDeviceName()
326 strlcpy(btm_cb.cfg.bd_name, p_name, BTM_MAX_LOC_BD_NAME_LEN + 1); in BTM_SetLocalDeviceName()
346 *p_name = btm_cb.cfg.bd_name; in BTM_ReadLocalDeviceName()
/system/update_engine/
DCPPLINT.cfg1 # This should be kept in sync with platform2/CPPLINT.cfg
/system/logging/rust/tests/
Ddefault_init.rs5 if cfg!(target_os = "android") { in default_init()
Denv_log_level.rs8 if cfg!(target_os = "android") { in env_log_level()
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py87 cfg = yaml.load(args.config, Loader=yaml.FullLoader)
97 for key, pattern in cfg['events'].items()}
99 for key, pattern in cfg['timings'].items()}
101 for key, pattern in cfg['shutdown_events'].items()}
122 args, search_events_pattern, timing_events_pattern, shutdown_events_pattern, cfg,\
304 def iterate(args, search_events_pattern, timings_pattern, shutdown_events_pattern, cfg, error_time,\ argument
338 if ('time_correction_key' in cfg
339 and cfg['time_correction_key'] in logcat_events):
340 match = search_events_pattern[cfg['time_correction_key']].search(
341 logcat_events[cfg['time_correction_key']])
[all …]

12345