Home
last modified time | relevance | path

Searched refs:xx (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_utils.cc58 uint8_t xx; in bta_hh_find_cb() local
61 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
63 if ((bda == bta_hh_cb.kdev[xx].addr && !bda.IsEmpty())) { in bta_hh_find_cb()
65 APPL_TRACE_DEBUG("found kdev_cb[%d] hid_handle = %d ", xx, in bta_hh_find_cb()
66 bta_hh_cb.kdev[xx].hid_handle) in bta_hh_find_cb()
68 return xx; in bta_hh_find_cb()
73 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
74 bta_hh_cb.kdev[xx].hid_handle, bta_hh_cb.kdev[xx].state); in bta_hh_find_cb()
79 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_find_cb()
80 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
[all …]
Dbta_hh_act.cc83 uint8_t xx; in bta_hh_api_enable() local
93 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_api_enable()
94 bta_hh_cb.kdev[xx].state = BTA_HH_IDLE_ST; in bta_hh_api_enable()
95 bta_hh_cb.kdev[xx].hid_handle = BTA_HH_INVALID_HANDLE; in bta_hh_api_enable()
96 bta_hh_cb.kdev[xx].index = xx; in bta_hh_api_enable()
100 for (xx = 0; xx < BTA_HH_MAX_KNOWN; xx++) { in bta_hh_api_enable()
101 bta_hh_cb.cb_index[xx] = BTA_HH_IDX_INVALID; in bta_hh_api_enable()
136 uint8_t xx; in bta_hh_api_disable() local
148 for (xx = 0; xx < BTA_HH_MAX_DEVICE; xx++) { in bta_hh_api_disable()
150 if (bta_hh_cb.kdev[xx].state == BTA_HH_CONN_ST) { in bta_hh_api_disable()
[all …]
/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_db.cc58 uint16_t xx, yy; in sdp_db_service_search() local
74 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) { in sdp_db_service_search()
88 if (xx == p_rec->num_attributes) break; in sdp_db_service_search()
178 uint16_t xx; in sdp_db_find_attr_in_rec() local
181 for (xx = 0, p_at = &p_rec->attribute[0]; xx < p_rec->num_attributes; in sdp_db_find_attr_in_rec()
182 xx++, p_at++) { in sdp_db_find_attr_in_rec()
202 uint16_t xx, yy, len; in sdp_compose_proto_list() local
211 for (xx = 0; xx < num_elem; xx++, p_elem_list++) { in sdp_compose_proto_list()
299 uint16_t xx, yy, zz; in SDP_DeleteRecord() local
312 for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) { in SDP_DeleteRecord()
[all …]
Dsdp_utils.cc332 uint16_t xx; in sdpu_find_ccb_by_cid() local
336 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_cid()
359 uint16_t xx; in sdpu_find_ccb_by_db() local
364 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_find_ccb_by_db()
383 uint16_t xx; in sdpu_allocate_ccb() local
387 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_allocate_ccb()
452 uint16_t xx; in sdpu_get_active_ccb_cid() local
456 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_get_active_ccb_cid()
484 uint16_t xx; in sdpu_process_pend_ccb_same_cid() local
488 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in sdpu_process_pend_ccb_same_cid()
[all …]
Dsdp_server.cc288 uint16_t rsp_param_len, num_rsp_handles, xx; in process_service_search() local
383 for (xx = cont_offset; xx < cont_offset + cur_handles; xx++) in process_service_search()
384 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
421 uint16_t rsp_param_len, xx; in process_service_attr_req() local
529 for (xx = p_ccb->cont_info.next_attr_index; xx < attr_seq.num_attr; xx++) { in process_service_attr_req()
530 p_attr = sdp_db_find_attr_in_rec(p_rec, attr_seq.attr_entry[xx].start, in process_service_attr_req()
531 attr_seq.attr_entry[xx].end); in process_service_attr_req()
555 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
591 p_ccb->cont_info.next_attr_index = xx; in process_service_attr_req()
598 if (attr_seq.attr_entry[xx].start != attr_seq.attr_entry[xx].end) { in process_service_attr_req()
[all …]
Dsdp_discovery.cc74 uint16_t xx; in sdpu_build_uuid_seq() local
93 for (xx = 0; xx < num_uuids; xx++, p_uuid_list++) { in sdpu_build_uuid_seq()
119 xx = (uint16_t)(p_out - p_len - 1); in sdpu_build_uuid_seq()
120 UINT8_TO_BE_STREAM(p_len, xx); in sdpu_build_uuid_seq()
298 uint16_t xx; in process_service_search_rsp() local
329 for (xx = orig; xx < p_ccb->num_handles; xx++) in process_service_search_rsp()
330 BE_STREAM_TO_UINT32(p_ccb->handles[xx], p_reply); in process_service_search_rsp()
Dsdp_api.cc75 uint16_t xx; in SDP_InitDiscoveryDb() local
95 for (xx = 0; xx < num_uuid; xx++) p_db->uuid_filters[xx] = *p_uuid_list++; in SDP_InitDiscoveryDb()
99 for (xx = 0; xx < num_attr; xx++) p_db->attr_filters[xx] = *p_attr_list++; in SDP_InitDiscoveryDb()
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_tg.cc55 uint8_t xx; in avrc_bld_get_capability_rsp() local
86 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
87 UINT24_TO_BE_STREAM(p_data, p_company_id[xx]); in avrc_bld_get_capability_rsp()
93 for (xx = 0; xx < p_rsp->count; xx++) { in avrc_bld_get_capability_rsp()
94 if (AVRC_IS_VALID_EVENT_ID(p_event_id[xx])) { in avrc_bld_get_capability_rsp()
96 UINT8_TO_BE_STREAM(p_data, p_event_id[xx]); in avrc_bld_get_capability_rsp()
123 uint8_t xx; in avrc_bld_list_app_settings_attr_rsp() local
140 for (xx = 0; xx < p_rsp->num_attr; xx++) { in avrc_bld_list_app_settings_attr_rsp()
141 if (AVRC_IsValidPlayerAttr(p_rsp->attrs[xx])) { in avrc_bld_list_app_settings_attr_rsp()
143 UINT8_TO_BE_STREAM(p_data, p_rsp->attrs[xx]); in avrc_bld_list_app_settings_attr_rsp()
[all …]
Davrc_pars_tg.cc114 uint8_t xx, yy; in avrc_pars_vendor_cmd() local
187 for (xx = 0, yy = 0; xx < p_result->get_cur_app_val.num_attr; xx++) { in avrc_pars_vendor_cmd()
205 for (xx = 0; in avrc_pars_vendor_cmd()
206 ((xx < p_result->set_app_val.num_val) && (buf_len > size_needed)); in avrc_pars_vendor_cmd()
207 xx++) { in avrc_pars_vendor_cmd()
208 p_app_set[xx].attr_id = *p++; in avrc_pars_vendor_cmd()
209 p_app_set[xx].attr_val = *p++; in avrc_pars_vendor_cmd()
210 if (!avrc_is_valid_player_attrib_value(p_app_set[xx].attr_id, in avrc_pars_vendor_cmd()
211 p_app_set[xx].attr_val)) in avrc_pars_vendor_cmd()
214 if (xx != p_result->set_app_val.num_val) { in avrc_pars_vendor_cmd()
[all …]
Davrc_pars_ct.cc575 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
576 (xx < AVRC_CAP_MAX_NUM_COMP_ID)); in avrc_ctrl_pars_vendor_rsp()
577 xx++) { in avrc_ctrl_pars_vendor_rsp()
578 BE_STREAM_TO_UINT24(p_result->get_caps.param.company_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
587 for (int xx = 0; ((xx < p_result->get_caps.count) && in avrc_ctrl_pars_vendor_rsp() local
588 (xx < AVRC_CAP_MAX_NUM_EVT_ID)); in avrc_ctrl_pars_vendor_rsp()
589 xx++) { in avrc_ctrl_pars_vendor_rsp()
590 BE_STREAM_TO_UINT8(p_result->get_caps.param.event_id[xx], p); in avrc_ctrl_pars_vendor_rsp()
611 for (int xx = 0; xx < p_result->list_app_attr.num_attr; xx++) { in avrc_ctrl_pars_vendor_rsp() local
612 BE_STREAM_TO_UINT8(p_result->list_app_attr.attrs[xx], p); in avrc_ctrl_pars_vendor_rsp()
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco.cc565 uint16_t xx; in BTM_CreateSco() local
590 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
601 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in BTM_CreateSco()
612 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco()
613 xx++, p++) { in BTM_CreateSco()
690 *p_sco_inx = xx; in BTM_CreateSco()
719 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_unpark() local
750 uint16_t xx; in btm_sco_chk_pend_rolechange() local
754 for (xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_chk_pend_rolechange()
790 for (uint16_t xx = 0; xx < BTM_MAX_SCO_LINKS; xx++, p++) { in btm_sco_disc_chk_pend_for_modechange() local
[all …]
Dbtm_inq.cc782 uint16_t xx; in BTM_InqDbFirst() local
786 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst()
861 uint16_t xx; in btm_clear_all_pending_le_entry() local
865 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clear_all_pending_le_entry()
1026 uint16_t xx; in btm_clr_inq_db() local
1034 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db()
1094 uint16_t xx; in btm_inq_find_bdaddr() local
1099 for (xx = 0; xx < num_bd_entries_; xx++, p_db++) { in btm_inq_find_bdaddr()
1105 if (xx < max_bd_entries_) { in btm_inq_find_bdaddr()
1126 uint16_t xx; in btm_inq_db_find() local
[all …]
Dbtm_sco.h199 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p_sco++) { in get_sco_connection_from_handle() local
218 for (uint16_t xx = 0; xx < kMaxScoLinks; xx++, p++) { in get_index() local
220 return xx; in get_index()
/packages/modules/Bluetooth/system/stack/bnep/
Dbnep_utils.cc64 uint16_t xx; in bnepu_find_bcb_by_cid() local
68 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_cid()
88 uint16_t xx; in bnepu_find_bcb_by_bd_addr() local
92 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_find_bcb_by_bd_addr()
112 uint16_t xx; in bnepu_allocate_bcb() local
116 for (xx = 0, p_bcb = bnep_cb.bcb; xx < BNEP_MAX_CONNECTIONS; xx++, p_bcb++) { in bnepu_allocate_bcb()
123 p_bcb->handle = xx + 1; in bnepu_allocate_bcb()
255 uint16_t xx; in bnepu_send_peer_our_filters() local
269 for (xx = 0; xx < p_bcb->sent_num_filters; xx++) { in bnepu_send_peer_our_filters()
270 UINT16_TO_BE_STREAM(p, p_bcb->sent_prot_filter_start[xx]); in bnepu_send_peer_our_filters()
[all …]
Dbnep_api.cc547 uint16_t xx; in BNEP_SetProtocolFilters() local
566 for (xx = 0; xx < num_filters; xx++) { in BNEP_SetProtocolFilters()
567 p_bcb->sent_prot_filter_start[xx] = *p_start_array++; in BNEP_SetProtocolFilters()
568 p_bcb->sent_prot_filter_end[xx] = *p_end_array++; in BNEP_SetProtocolFilters()
603 uint16_t xx; in BNEP_SetMulticastFilters() local
622 for (xx = 0; xx < num_filters; xx++) { in BNEP_SetMulticastFilters()
623 memcpy(p_bcb->sent_mcast_filter_start[xx].address, p_start_array, in BNEP_SetMulticastFilters()
625 memcpy(p_bcb->sent_mcast_filter_end[xx].address, p_end_array, BD_ADDR_LEN); in BNEP_SetMulticastFilters()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_utils.cc60 int xx; in l2cu_allocate_lcb() local
63 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_allocate_lcb()
243 int xx; in l2cu_find_lcb_by_bd_addr() local
246 for (xx = 0; xx < MAX_L2CAP_LINKS; xx++, p_lcb++) { in l2cu_find_lcb_by_bd_addr()
1127 int xx; in l2cu_send_peer_info_rsp() local
1129 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2cu_send_peer_info_rsp()
1131 if ((xx >= L2CAP_ATT_CID - L2CAP_FIRST_FIXED_CHNL) && in l2cu_send_peer_info_rsp()
1132 (xx <= L2CAP_SMP_CID - L2CAP_FIRST_FIXED_CHNL)) in l2cu_send_peer_info_rsp()
1135 if (l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb != NULL) in l2cu_send_peer_info_rsp()
1136 p[(xx + L2CAP_FIRST_FIXED_CHNL) / 8] |= in l2cu_send_peer_info_rsp()
[all …]
Dl2c_link.cc72 int xx; in l2c_link_hci_conn_req() local
90 for (xx = 0, p_lcb_cur = &l2cb.lcb_pool[0]; xx < MAX_L2CAP_LINKS; in l2c_link_hci_conn_req()
91 xx++, p_lcb_cur++) { in l2c_link_hci_conn_req()
433 int xx; in l2c_link_hci_disc_comp() local
434 for (xx = 0; xx < L2CAP_NUM_FIXED_CHNLS; xx++) { in l2c_link_hci_disc_comp()
435 if (p_lcb->p_fixed_ccbs[xx] && in l2c_link_hci_disc_comp()
436 p_lcb->p_fixed_ccbs[xx] != p_lcb->p_pending_ccb) { in l2c_link_hci_disc_comp()
437 l2cu_release_ccb(p_lcb->p_fixed_ccbs[xx]); in l2c_link_hci_disc_comp()
439 p_lcb->p_fixed_ccbs[xx] = NULL; in l2c_link_hci_disc_comp()
440 (*l2cb.fixed_reg[xx].pL2CA_FixedConn_Cb)( in l2c_link_hci_disc_comp()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_rc.cc3012 int xx = 0; in handle_get_capability_response() local
3028 for (xx = 0; xx < p_rsp->count; xx++) { in handle_get_capability_response()
3030 if ((p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_STATUS_CHANGE) || in handle_get_capability_response()
3031 (p_rsp->param.event_id[xx] == AVRC_EVT_TRACK_CHANGE) || in handle_get_capability_response()
3032 (p_rsp->param.event_id[xx] == AVRC_EVT_PLAY_POS_CHANGED) || in handle_get_capability_response()
3033 (p_rsp->param.event_id[xx] == AVRC_EVT_APP_SETTING_CHANGE) || in handle_get_capability_response()
3034 (p_rsp->param.event_id[xx] == AVRC_EVT_NOW_PLAYING_CHANGE) || in handle_get_capability_response()
3035 (p_rsp->param.event_id[xx] == AVRC_EVT_ADDR_PLAYER_CHANGE) || in handle_get_capability_response()
3036 (p_rsp->param.event_id[xx] == AVRC_EVT_UIDS_CHANGE) || in handle_get_capability_response()
3037 (p_rsp->param.event_id[xx] == AVRC_EVT_AVAL_PLAYERS_CHANGE)) { in handle_get_capability_response()
[all …]
/packages/modules/Bluetooth/system/bta/av/
Dbta_av_act.cc457 int xx; in bta_av_find_lcb() local
463 for (xx = 0; xx < BTA_AV_NUM_LINKS; xx++) { in bta_av_find_lcb()
464 mask = 1 << xx; /* the used mask for this lcb */ in bta_av_find_lcb()
465 if ((mask & p_cb->conn_lcb) && p_cb->lcb[xx].addr == addr) { in bta_av_find_lcb()
466 p_lcb = &p_cb->lcb[xx]; in bta_av_find_lcb()
728 uint8_t xx; in bta_av_chk_notif_evt_id() local
738 for (xx = 0; xx < p_bta_av_cfg->num_evt_ids; xx++) { in bta_av_chk_notif_evt_id()
739 if (*p == p_bta_av_cfg->p_meta_evt_ids[xx]) { in bta_av_chk_notif_evt_id()
743 if (xx == p_bta_av_cfg->num_evt_ids) { in bta_av_chk_notif_evt_id()
1311 uint16_t xx; in bta_av_disable() local
[all …]
Dbta_av_main.cc199 int xx; in bta_av_addr_to_scb() local
201 for (xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_addr_to_scb()
202 if (bta_av_cb.p_scb[xx]) { in bta_av_addr_to_scb()
203 if (bd_addr == bta_av_cb.p_scb[xx]->PeerAddress()) { in bta_av_addr_to_scb()
204 p_scb = bta_av_cb.p_scb[xx]; in bta_av_addr_to_scb()
270 for (int xx = 0; xx < BTA_AV_NUM_STRS; xx++) { in bta_av_alloc_scb() local
271 if (bta_av_cb.p_scb[xx] != nullptr) continue; in bta_av_alloc_scb()
278 p_ret->hndl = (tBTA_AV_HNDL)((xx + 1) | chnl); in bta_av_alloc_scb()
279 p_ret->hdi = xx; in bta_av_alloc_scb()
282 bta_av_cb.p_scb[xx] = p_ret; in bta_av_alloc_scb()
[all …]
/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc608 uint16_t xx; in gap_connect_ind() local
612 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_connect_ind()
618 if (xx == GAP_MAX_CONNECTIONS) { in gap_connect_ind()
908 uint16_t xx; in gap_find_ccb_by_cid() local
912 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_find_ccb_by_cid()
956 uint16_t xx; in gap_allocate_ccb() local
960 for (xx = 0, p_ccb = conn.ccb_pool; xx < GAP_MAX_CONNECTIONS; xx++, p_ccb++) { in gap_allocate_ccb()
966 p_ccb->gap_handle = xx; in gap_allocate_ccb()
/packages/modules/Bluetooth/system/stack/hid/
Dhidh_conn.cc98 int xx; in hidh_conn_reg() local
127 for (xx = 0; xx < kHID_HOST_MAX_DEVICES; xx++) { in hidh_conn_reg()
128 hh_cb.devices[xx].in_use = false; in hidh_conn_reg()
129 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
922 uint8_t xx; in find_conn_by_cid() local
924 for (xx = 0; xx < kHID_HOST_MAX_DEVICES; xx++) { in find_conn_by_cid()
925 if ((hh_cb.devices[xx].in_use) && in find_conn_by_cid()
926 (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) && in find_conn_by_cid()
927 ((hh_cb.devices[xx].conn.ctrl_cid == cid) || in find_conn_by_cid()
928 (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
[all …]
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_api.cc259 uint8_t xx, yy; in BTA_GetEirService() local
267 for (xx = 0; xx < num_uuid; xx++) { in BTA_GetEirService()
270 if (*(p_uuid16 + xx) == bta_service_id_to_uuid_lkup_tbl[yy]) { in BTA_GetEirService()
278 if (*(p_uuid16 + xx) == UUID_SERVCLASS_HEADSET_HS) in BTA_GetEirService()
281 if (*(p_uuid16 + xx) == UUID_SERVCLASS_HDP_SOURCE) in BTA_GetEirService()
284 if (*(p_uuid16 + xx) == UUID_SERVCLASS_HDP_SINK) in BTA_GetEirService()
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_rfc.cc308 uint8_t xx; in bta_ag_is_server_closed() local
311 for (xx = 0; xx < BTA_AG_NUM_IDX; xx++) { in bta_ag_is_server_closed()
312 if (p_scb->serv_handle[xx] != 0) is_closed = false; in bta_ag_is_server_closed()
/packages/modules/Bluetooth/system/stack/test/sdp/
Dstack_sdp_test.cc100 uint16_t xx; in find_ccb() local
104 for (xx = 0, p_ccb = sdp_cb.ccb; xx < SDP_MAX_CONNECTIONS; xx++, p_ccb++) { in find_ccb()

12