/system/bt/bta/hf_client/ |
H A D | bta_hf_client_sco.c | 98 if (bta_hf_client_cb.scb.sco_idx != BTM_INVALID_SCO_INDEX) 100 status = BTM_RemoveSco(bta_hf_client_cb.scb.sco_idx); 102 APPL_TRACE_DEBUG("%s idx 0x%04x, status:0x%x", __FUNCTION__, bta_hf_client_cb.scb.sco_idx, status); 111 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; 154 if (bta_hf_client_cb.scb.sco_state == BTA_HF_CLIENT_SCO_LISTEN_ST) 162 resp = bta_hf_client_esco_params[bta_hf_client_cb.scb.negotiated_codec]; 166 bta_sys_sco_use(BTA_ID_HS, 1, bta_hf_client_cb.scb.peer_addr); 198 bta_hf_client_cb.scb.sco_idx = p_data->conn_evt.sco_inx; 202 bta_hf_client_cb.scb.sco_state = BTA_HF_CLIENT_SCO_OPENING_ST; 223 if (rem_bd && bdcmp(bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_rfc.c | 48 if (port_handle != bta_hf_client_cb.scb.conn_handle) 51 port_handle, bta_hf_client_cb.scb.conn_handle); 76 code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); 79 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) 87 if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* outgoing connection */ 88 (port_handle == bta_hf_client_cb.scb.serv_handle)) /* incoming connection */ 99 else if (port_handle == bta_hf_client_cb.scb.conn_handle) 146 if (bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_act.c | 49 ** Description This function initializes values of the scb and sets up 66 bta_hf_client_cb.scb.serv_sec_mask = p_data->api_register.sec_mask; 67 bta_hf_client_cb.scb.features = p_data->api_register.features; 100 bta_hf_client_cb.scb.deregister = TRUE; 124 bta_hf_client_cb.scb.deregister = TRUE; 143 bta_dm_pm_active(bta_hf_client_cb.scb.peer_addr); 144 L2CA_SetIdleTimeoutByBdAddr(bta_hf_client_cb.scb.peer_addr, 0, BT_TRANSPORT_BR_EDR); 147 if (bta_hf_client_cb.scb.sco_state == BTA_HF_CLIENT_SCO_OPEN_ST) 149 bta_hf_client_cb.scb.sco_close_rfc = TRUE; 177 bdcpy(bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_sdp.c | 59 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) 224 bta_hf_client_cb.scb.peer_version = HFP_VERSION_1_1; /* Default version */ 230 if ((p_rec = SDP_FindServiceInDb(bta_hf_client_cb.scb.p_disc_db, UUID_SERVCLASS_AG_HANDSFREE, p_rec)) == NULL) 236 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) 240 bta_hf_client_cb.scb.peer_scn = (UINT8) pe.params[0]; 249 SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_HF_HANDSFREE, &bta_hf_client_cb.scb.peer_version); 257 if (bta_hf_client_cb.scb.peer_features == 0) 259 bta_hf_client_cb.scb.peer_features = p_attr->attr_value.v.u16; 262 if (bta_hf_client_cb.scb.peer_features & 0x0020) 264 bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_main.c | 246 alarm_free(bta_hf_client_cb.scb.collision_timer); 247 alarm_free(bta_hf_client_cb.scb.at_cb.resp_timer); 248 alarm_free(bta_hf_client_cb.scb.at_cb.hold_timer); 249 memset(&bta_hf_client_cb.scb, 0, sizeof(tBTA_HF_CLIENT_SCB)); 250 bta_hf_client_cb.scb.collision_timer = 252 bta_hf_client_cb.scb.sco_idx = BTM_INVALID_SCO_INDEX; 253 bta_hf_client_cb.scb.negotiated_codec = BTM_SCO_CODEC_CVSD; 290 if (bta_hf_client_cb.scb.state == BTA_HF_CLIENT_INIT_ST) 292 bta_hf_client_cb.scb.state = BTA_HF_CLIENT_OPENING_ST; 332 if (bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_at.c | 108 tBTA_HF_CLIENT_AT_QCMD *cur = bta_hf_client_cb.scb.at_cb.queued_cmd; 117 bta_hf_client_cb.scb.at_cb.queued_cmd = NULL; 132 if (bta_hf_client_cb.scb.at_cb.queued_cmd != NULL) { 133 tBTA_HF_CLIENT_AT_QCMD *qcmd = bta_hf_client_cb.scb.at_cb.queued_cmd; 140 bta_hf_client_cb.scb.at_cb.queued_cmd = new_cmd; 146 if (bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_CNUM) { 157 alarm_set_on_queue(bta_hf_client_cb.scb.at_cb.resp_timer, 166 alarm_cancel(bta_hf_client_cb.scb.at_cb.resp_timer); 171 if ((bta_hf_client_cb.scb.at_cb.current_cmd == BTA_HF_CLIENT_AT_NONE || 172 bta_hf_client_cb.scb [all...] |
H A D | bta_hf_client_int.h | 182 tBTA_HF_CLIENT_SCB scb; /* service control block */ member in struct:__anon208
|
/system/bt/bta/ag/ |
H A D | bta_ag_main.c | 284 ** Returns pointer to the scb, or NULL if none could be allocated. 289 tBTA_AG_SCB *p_scb = &bta_ag_cb.scb[0]; 360 if (bta_ag_cb.scb[idx].in_use) 379 ** Description Given a pointer to an scb, return its index. 382 ** Returns Index of scb. 388 return ((UINT16) (p_scb - bta_ag_cb.scb)) + 1; 395 ** Description Given an scb index return pointer to scb. 398 ** Returns Pointer to scb or NULL if not allocated. 408 p_scb = &bta_ag_cb.scb[id [all...] |
H A D | bta_ag_sco.c | 160 /* match callback to scb; first check current sco scb */ 165 /* then check for scb connected to this peer */ 204 APPL_TRACE_DEBUG ("bta_ag_sco_disc_cback(): scb[0] addr: 0x%08x in_use: %u sco_idx: 0x%x sco state: %u", 205 &bta_ag_cb.scb[0], bta_ag_cb.scb[0].in_use, bta_ag_cb.scb[0].sco_idx, bta_ag_cb.scb[0].state); 206 APPL_TRACE_DEBUG ("bta_ag_sco_disc_cback(): scb[1] addr: 0x%08x in_use: %u sco_idx: 0x%x sco state: %u", 207 &bta_ag_cb.scb[ [all...] |
H A D | bta_ag_api.c | 61 if (bta_ag_cb.scb[idx].in_use) {
|
H A D | bta_ag_act.c | 216 /* Issue collision for this scb for now. */ 476 if (bta_ag_cb.scb[i].in_use && bta_ag_cb.scb[i].svc_conn) 486 /* else close port and deallocate scb */ 569 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++)
|
H A D | bta_ag_int.h | 266 BOOLEAN in_use; /* scb in use */ 319 tBTA_AG_SCB scb[BTA_AG_NUM_SCB]; /* service control blocks */ member in struct:__anon29
|
H A D | bta_ag_sdp.c | 104 ** distinguish scb from the callback we need separate 105 ** callbacks for each scb. 254 tBTA_AG_SCB *p = &bta_ag_cb.scb[0]; 278 /* if service registered for this scb and not registered for any other scb */
|
H A D | bta_ag_cmd.c | 1003 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++) 1120 for (i = 0, ag_scb = &bta_ag_cb.scb[0]; i < BTA_AG_NUM_SCB; i++, ag_scb++) 1386 /* if audio connected to this scb open sco */
|
/system/bt/bta/pan/ |
H A D | bta_pan_main.c | 161 ** Returns pointer to the scb, or NULL if none could be allocated. 166 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0]; 204 APPL_TRACE_EVENT("PAN scb=%d event=0x%x state=%d", bta_pan_scb_to_idx(p_scb), event, p_scb->state); 281 /* allocate an scb */ 315 ** Description Given a pointer to an scb, return its index. 318 ** Returns Index of scb. 324 return ((UINT8) (p_scb - bta_pan_cb.scb)) + 1; 333 ** Description Find scb associated with handle. 336 ** Returns Pointer to scb or NULL if not found. 341 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[ [all...] |
H A D | bta_pan_int.h | 144 BOOLEAN in_use; /* scb in use */ 160 tBTA_PAN_SCB scb[BTA_PAN_NUM_CONN]; /* state machine control blocks */ member in struct:__anon539
|
H A D | bta_pan_act.c | 97 /* allocate an scb */ 267 p_scb = &bta_pan_cb.scb[index]; 285 p_scb = &bta_pan_cb.scb[index]; 424 tBTA_PAN_SCB *p_scb = &bta_pan_cb.scb[0];
|
/system/bt/bta/hl/ |
H A D | bta_hl_act.c | 1941 bta_hl_sdp_cback(bta_hl_cb.scb[0].sdp_oper, 1942 bta_hl_cb.scb[0].app_idx, 1943 bta_hl_cb.scb[0].mcl_idx, 1944 bta_hl_cb.scb[0].mdl_idx, 1962 bta_hl_sdp_cback(bta_hl_cb.scb[1].sdp_oper, 1963 bta_hl_cb.scb[1].app_idx, 1964 bta_hl_cb.scb[1].mcl_idx, 1965 bta_hl_cb.scb[1].mdl_idx, 1981 bta_hl_sdp_cback(bta_hl_cb.scb[2].sdp_oper, 1982 bta_hl_cb.scb[ [all...] |
H A D | bta_hl_int.h | 562 tBTA_HL_SDP_CB scb[BTA_HL_NUM_SDP_CBACKS]; member in struct:__anon260
|
/system/bt/stack/avdt/ |
H A D | avdt_scb.c | 519 ** Description State machine event handling function for scb 572 memset(&avdt_cb.scb[0], 0, sizeof(tAVDT_SCB) * AVDT_NUM_SEPS); 584 ** Returns pointer to the scb, or NULL if none could be allocated. 589 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 592 /* find available scb */ 663 ** Description Given a pointer to an scb, return its handle (or seid). 666 ** Returns Index of scb. 671 return (UINT8) (p_scb - avdt_cb.scb + 1); 678 ** Description Given an scb handle (or seid), return a pointer to the scb [all...] |
H A D | avdt_ccb_act.c | 121 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 161 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 225 /* look up scb for seid sent to us */ 564 /* send start event to each scb */ 642 /* send start event to each scb */ 669 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 734 /* we get the scb out of the current cmd */
|
H A D | avdt_api.c | 159 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 167 AVDT_TRACE_DEBUG("AVDT_SINK_Activate found scb"); 189 tAVDT_SCB *p_scb = &avdt_cb.scb[0]; 197 AVDT_TRACE_DEBUG("AVDT_SINK_Deactivate, found scb"); 242 /* Allocate scb; if no scbs, return failure */ 273 /* look up scb */ 280 /* send remove event to scb */ 482 /* map handle to scb */ 488 /* send event to scb */ 523 /* map handle to scb */ [all...] |
H A D | avdt_int.h | 102 ** Note that we "hide" the scb handles at the top of the message buffer. 106 /* scb transport channel connect timeout value (in milliseconds) */ 109 /* scb transport channel disconnect timeout value (in milliseconds) */ 202 /* scb state machine states; these state values are private to this module so 203 ** the scb state cannot be read or set by actions functions 284 /* scb state machine events */ 475 /* type for scb event data */ 493 tAVDT_CCB *p_ccb; /* ccb associated with this scb */ 495 BOOLEAN allocated; /* whether scb is allocated or unused */ 548 tAVDT_SCB scb[AVDT_NUM_SEP member in struct:__anon849 [all...] |