Home
last modified time | relevance | path

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

123

/system/bt/stack/avdt/
Davdt_l2c.cc80 tL2CAP_CFG_INFO cfg; in avdt_sec_check_complete_term() local
103 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avdt_sec_check_complete_term()
104 cfg.mtu_present = true; in avdt_sec_check_complete_term()
105 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
106 cfg.flush_to_present = true; in avdt_sec_check_complete_term()
107 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term()
108 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term()
131 tL2CAP_CFG_INFO cfg; in avdt_sec_check_complete_orig() local
144 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avdt_sec_check_complete_orig()
145 cfg.mtu_present = true; in avdt_sec_check_complete_orig()
[all …]
/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 …]
Dnfa_hci_api.cc171 if ((nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) && in NFA_HciDeregister()
172 (!strncmp(p_app_name, &nfa_hci_cb.cfg.reg_app_names[xx][0], in NFA_HciDeregister()
825 tNFA_HCI_DYN_GATE* pg = nfa_hci_cb.cfg.dyn_gates; in NFA_HciDebug()
826 tNFA_HCI_DYN_PIPE* pp = nfa_hci_cb.cfg.dyn_pipes; in NFA_HciDebug()
835 if (nfa_hci_cb.cfg.reg_app_names[xx][0] != 0) { in NFA_HciDebug()
838 &nfa_hci_cb.cfg.reg_app_names[xx][0]); in NFA_HciDebug()
/system/bt/stack/sdp/
Dsdp_main.cc162 tL2CAP_CFG_INFO cfg = sdp_cb.l2cap_my_cfg; in sdp_connect_ind() local
164 if (cfg.fcr_present) { in sdp_connect_ind()
168 cfg.fcr.mode, cfg.fcr.tx_win_sz, cfg.fcr.max_transmit, in sdp_connect_ind()
169 cfg.fcr.rtrans_tout, cfg.fcr.mon_tout, cfg.fcr.mps); in sdp_connect_ind()
172 if ((!L2CA_ConfigReq(l2cap_cid, &cfg)) && cfg.fcr_present && in sdp_connect_ind()
173 cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) { in sdp_connect_ind()
175 cfg.fcr.mode = L2CAP_FCR_BASIC_MODE; in sdp_connect_ind()
176 cfg.fcr_present = false; in sdp_connect_ind()
177 L2CA_ConfigReq(l2cap_cid, &cfg); in sdp_connect_ind()
202 tL2CAP_CFG_INFO cfg; in sdp_connect_cfm() local
[all …]
/system/bt/stack/avct/
Davct_l2c_br.cc123 tL2CAP_CFG_INFO cfg; in avct_l2c_br_connect_ind_cback() local
127 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_br_connect_ind_cback()
128 cfg.mtu_present = true; in avct_l2c_br_connect_ind_cback()
143 cfg.mtu = avct_cb.mtu_br; in avct_l2c_br_connect_ind_cback()
145 cfg.fcr_present = true; in avct_l2c_br_connect_ind_cback()
146 cfg.fcr = avct_l2c_br_fcr_opts_def; in avct_l2c_br_connect_ind_cback()
152 ertm_info.preferred_mode = cfg.fcr.mode; in avct_l2c_br_connect_ind_cback()
171 L2CA_ConfigReq(lcid, &cfg); in avct_l2c_br_connect_ind_cback()
187 tL2CAP_CFG_INFO cfg; in avct_l2c_br_connect_cfm_cback() local
206 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_br_connect_cfm_cback()
[all …]
Davct_l2c.cc105 tL2CAP_CFG_INFO cfg; in avct_l2c_connect_ind_cback() local
147 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_connect_ind_cback()
148 cfg.mtu_present = true; in avct_l2c_connect_ind_cback()
149 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_ind_cback()
150 L2CA_ConfigReq(lcid, &cfg); in avct_l2c_connect_ind_cback()
169 tL2CAP_CFG_INFO cfg; in avct_l2c_connect_cfm_cback() local
186 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in avct_l2c_connect_cfm_cback()
187 cfg.mtu_present = true; in avct_l2c_connect_cfm_cback()
188 cfg.mtu = avct_cb.mtu; in avct_l2c_connect_cfm_cback()
189 L2CA_ConfigReq(lcid, &cfg); in avct_l2c_connect_cfm_cback()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc112 struct ha_config cfg; member
186 static int calc_audiotime_usec(struct ha_config cfg, int bytes) { in calc_audiotime_usec() argument
187 int chan_count = audio_channel_count_from_out_mask(cfg.channel_mask); in calc_audiotime_usec()
190 switch (cfg.format) { in calc_audiotime_usec()
207 ASSERTC(false, "unsupported sample format", cfg.format); in calc_audiotime_usec()
214 cfg.rate); in calc_audiotime_usec()
479 common->cfg.rate = sample_rate; in ha_read_input_audio_config()
488 common->cfg.channel_mask = AUDIO_CHANNEL_IN_MONO; in ha_read_input_audio_config()
491 common->cfg.channel_mask = AUDIO_CHANNEL_IN_STEREO; in ha_read_input_audio_config()
499 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/extras/simpleperf/
DIOEventLoop.cpp62 event_config* cfg = event_config_new(); in EnsureInit() local
63 if (cfg != nullptr) { in EnsureInit()
65 event_config_set_flag(cfg, EVENT_BASE_FLAG_PRECISE_TIMER); in EnsureInit()
67 if (event_config_avoid_method(cfg, "epoll") != 0) { in EnsureInit()
71 ebase_ = event_base_new_with_config(cfg); in EnsureInit()
85 event_config_free(cfg); in EnsureInit()
DETMDecoder.cpp624 ocsd_etmv4_cfg cfg; in CreateDecodeTree() local
625 memset(&cfg, 0, sizeof(cfg)); in CreateDecodeTree()
626 cfg.reg_idr0 = etm4.trcidr0; in CreateDecodeTree()
627 cfg.reg_idr1 = etm4.trcidr1; in CreateDecodeTree()
628 cfg.reg_idr2 = etm4.trcidr2; in CreateDecodeTree()
629 cfg.reg_idr8 = etm4.trcidr8; in CreateDecodeTree()
630 cfg.reg_configr = etm4.trcconfigr; in CreateDecodeTree()
631 cfg.reg_traceidr = etm4.trctraceidr; in CreateDecodeTree()
632 cfg.arch_ver = ARCH_V8; in CreateDecodeTree()
633 cfg.core_prof = profile_CortexA; in CreateDecodeTree()
[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/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.cc231 p_scb->cfg.codec_info)) { in bta_av_get_scb_handle()
437 p_msg->cfg = *p_data->config_ind.p_cfg; in bta_av_proc_stream_evt()
613 A2DP_CodecName(p_scb->cfg.codec_info)); in bta_av_adjust_seps_idx()
620 p_scb->cfg.codec_info)) { in bta_av_adjust_seps_idx()
981 const AvdtpSepConfig* p_evt_cfg = &p_data->str_msg.cfg; in bta_av_config_ind()
982 uint8_t psc_mask = (p_evt_cfg->psc_mask | p_scb->cfg.psc_mask); in bta_av_config_ind()
996 memcpy(p_scb->cfg.codec_info, p_evt_cfg->codec_info, AVDT_CODEC_SIZE); in bta_av_config_ind()
1006 ((psc_mask != p_scb->cfg.psc_mask) && in bta_av_config_ind()
1007 (psc_mask != (p_scb->cfg.psc_mask & ~AVDT_PSC_DELAY_RPT)))) { in bta_av_config_ind()
1149 av_sink_codec_info.avk_config.codec_info = p_scb->cfg.codec_info; in bta_av_setconfig_rsp()
[all …]
/system/core/libcutils/
Dashmem_test.cpp165 for (const auto& cfg : seeks) { in TEST() local
168 auto off = lseek(fd, cfg.offset, cfg.whence); in TEST()
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" in TEST()
/system/bt/stack/gap/
Dgap_conn.cc68 tL2CAP_CFG_INFO cfg; /* Configuration */ member
209 if (p_cfg) p_ccb->cfg = *p_cfg; in GAP_ConnOpen()
237 if (p_ccb->cfg.fcr_present) { in GAP_ConnOpen()
239 p_ccb->ertm_info.preferred_mode = p_ccb->cfg.fcr.mode; in GAP_ConnOpen()
565 p_ccb->cfg = *p_cfg; in GAP_ConnReconfig()
772 L2CA_ConfigReq(l2cap_cid, &p_ccb->cfg); in gap_connect_ind()
856 L2CA_ConfigReq(l2cap_cid, &p_ccb->cfg); in gap_connect_cfm()
899 if (p_ccb->cfg.fcr.mode == L2CAP_FCR_ERTM_MODE) { in gap_config_ind()
943 if (p_ccb->cfg.fcr_present) in gap_config_cfm()
944 p_ccb->cfg.fcr.mode = p_cfg->fcr.mode; in gap_config_cfm()
[all …]
/system/update_engine/
DCPPLINT.cfg1 # This should be kept in sync with platform2/CPPLINT.cfg
/system/bt/stack/btm/
Dbtm_devctl.cc85 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); in btm_dev_init()
220 BTM_SetPinType(btm_cb.cfg.pin_type, btm_cb.cfg.pin_code, in reset_complete()
221 btm_cb.cfg.pin_code_len); in reset_complete()
417 p = (uint8_t*)btm_cb.cfg.bd_name; in BTM_SetLocalDeviceName()
419 strlcpy(btm_cb.cfg.bd_name, p_name, BTM_MAX_LOC_BD_NAME_LEN); in BTM_SetLocalDeviceName()
439 *p_name = btm_cb.cfg.bd_name; in BTM_ReadLocalDeviceName()
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py87 cfg = yaml.load(args.config)
97 for key, pattern in cfg['events'].iteritems()}
99 for key, pattern in cfg['timings'].iteritems()}
101 for key, pattern in cfg['shutdown_events'].iteritems()}
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
343 if ('time_correction_key' in cfg
344 and cfg['time_correction_key'] in logcat_events):
345 match = search_events[cfg['time_correction_key']].search(
346 logcat_events[cfg['time_correction_key']])
[all …]
/system/bt/stack/gatt/
Dgatt_main.cc600 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_ind_cback() local
601 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_ind_cback()
602 cfg.mtu_present = true; in gatt_l2cif_connect_ind_cback()
603 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_ind_cback()
605 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_ind_cback()
611 tL2CAP_CFG_INFO cfg; in gatt_l2cif_connect_cfm_cback() local
629 memset(&cfg, 0, sizeof(tL2CAP_CFG_INFO)); in gatt_l2cif_connect_cfm_cback()
630 cfg.mtu_present = true; in gatt_l2cif_connect_cfm_cback()
631 cfg.mtu = GATT_MAX_MTU_SIZE; in gatt_l2cif_connect_cfm_cback()
632 L2CA_ConfigReq(lcid, &cfg); in gatt_l2cif_connect_cfm_cback()
/system/netd/server/
DInterfaceController.cpp473 Status InterfaceController::setCfg(const InterfaceConfigurationParcel& cfg) { in setCfg() argument
479 strlcpy(ifr.ifr_name, cfg.ifName.c_str(), IFNAMSIZ); in setCfg()
485 if (!cfg.flags.empty()) { in setCfg()
489 for (const auto& flag : cfg.flags) { in setCfg()
502 if (int ret = ifc_add_address(cfg.ifName.c_str(), cfg.ipv4Addr.c_str(), cfg.prefixLength)) { in setCfg()
/system/core/fastboot/
Dusb_linux.cpp149 struct usb_config_descriptor *cfg; in filter_usb_device() local
166 cfg = (struct usb_config_descriptor *)ptr; in filter_usb_device()
167 len -= cfg->bLength; in filter_usb_device()
168 ptr += cfg->bLength; in filter_usb_device()
209 for(i = 0; i < cfg->bNumInterfaces; i++) { in filter_usb_device()
/system/nfc/src/nfa/include/
Dnfa_dta_int.h133 tNFA_DTA_API_CONFIG cfg; member
167 tNFA_DTA_CONFIG cfg; member

123