Home
last modified time | relevance | path

Searched refs:in_use (Results 1 – 25 of 85) sorted by relevance

1234

/system/bt/bta/gatt/
Dbta_gatts_utils.cc47 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
48 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if()
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i; in bta_gatts_find_app_rcb_idx_by_app_if()
110 if (p_cb->srvc_cb[i].in_use && p_cb->srvc_cb[i].service_id == service_id) { in bta_gatts_find_srvc_cb_by_srvc_id()
132 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
133 p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
137 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
138 !p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
Dbta_gattc_utils.cc52 if (p_clrcb->in_use && p_clrcb->client_if == client_if) return p_clrcb; in bta_gattc_cl_get_regcb()
69 if (bta_gattc_cb.cl_rcb[i].in_use) j++; in bta_gattc_num_reg_app()
89 if (p_clcb->in_use && p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif()
109 if (p_clcb->in_use && p_clcb->bta_conn_id == conn_id) return p_clcb; in bta_gattc_find_clcb_by_conn_id()
130 if (!bta_gattc_cb.clcb[i_clcb].in_use) { in bta_gattc_clcb_alloc()
135 p_clcb->in_use = true; in bta_gattc_clcb_alloc()
151 p_clcb->in_use = false; in bta_gattc_clcb_alloc()
228 if (p_srcb->in_use && p_srcb->server_bda == bda) return p_srcb; in bta_gattc_find_srcb()
283 if (!p_tcb->in_use) { in bta_gattc_srcb_alloc()
303 p_tcb->in_use = true; in bta_gattc_srcb_alloc()
[all …]
Dbta_gattc_int.h198 bool in_use; member
227 bool in_use; member
234 bool in_use; member
258 bool in_use; member
274 bool in_use; member
281 bool in_use; member
Dbta_gatts_int.h127 bool in_use; member
139 bool in_use; member
/system/bt/audio_bluetooth_hw/
Ddevice_port_proxy.cc112 if (!port->in_use()) { in SetUp()
124 if (!port->in_use()) { in SetUp()
173 if (!in_use()) { in TearDown()
187 if (!in_use()) { in ControlResultHandler()
232 if (!in_use()) { in SessionChangedHandler()
249 bool BluetoothAudioPortOut::in_use() const { in in_use() function in android::bluetooth::audio::BluetoothAudioPortOut
254 if (!in_use()) { in LoadAudioConfig()
317 if (!in_use()) { in Start()
348 if (!in_use()) { in Suspend()
378 if (!in_use()) { in Stop()
[all …]
/system/bt/stack/avdt/
Davdt_defs.h162 #define AVDT_MSG_PRS_DISC(p, seid, in_use, type, tsep) \ argument
165 (in_use) = (*(p)++ >> 1) & 0x01; \
211 #define AVDT_MSG_BLD_DISC(p, seid, in_use, type, tsep) \ argument
213 *(p)++ = (uint8_t)(((seid) << 2) | ((in_use) << 1)); \
/system/bt/stack/hid/
Dhidh_api.cc324 if ((hh_cb.devices[i].in_use) && addr == hh_cb.devices[i].addr) break; in HID_HostAddDev()
329 if (!hh_cb.devices[i].in_use) break; in HID_HostAddDev()
335 if (!hh_cb.devices[i].in_use) { in HID_HostAddDev()
336 hh_cb.devices[i].in_use = true; in HID_HostAddDev()
363 (!hh_cb.devices[dev_handle].in_use)) in HID_HostRemoveDev()
367 hh_cb.devices[dev_handle].in_use = false; in HID_HostRemoveDev()
389 (!hh_cb.devices[dev_handle].in_use)) in HID_HostOpenDev()
421 (!hh_cb.devices[dev_handle].in_use)) { in HID_HostWriteDev()
453 (!hh_cb.devices[dev_handle].in_use)) in HID_HostCloseDev()
549 if ((hh_cb.devices[i].in_use) && bd_addr == hh_cb.devices[i].addr) in hid_known_hid_device()
Dhidd_api.cc432 hd_cb.device.in_use = TRUE; in HID_DevPlugDevice()
449 hd_cb.device.in_use = FALSE; in HID_DevUnplugDevice()
472 if (!hd_cb.device.in_use) { in HID_DevConnect()
497 if (!hd_cb.device.in_use) { in HID_DevDisconnect()
576 if (hd_cb.device.in_use) { in HID_DevGetDevice()
Dhidd_int.h36 bool in_use; member
Dhidh_int.h35 bool in_use; member
/system/bt/stack/srvc/
Dsrvc_eng.cc74 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_conn_id_by_bd_addr()
97 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_clcb_by_bd_addr()
119 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_by_conn_id()
141 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_idx_by_conn_id()
164 if (!p_clcb->in_use) { in srvc_eng_clcb_alloc()
165 p_clcb->in_use = true; in srvc_eng_clcb_alloc()
189 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) { in srvc_eng_clcb_dealloc()
Dsrvc_eng_int.h37 bool in_use; member
/system/bt/stack/rfcomm/
Dport_api.cc253 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in RFCOMM_RemoveConnection()
285 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in RFCOMM_RemoveServer()
325 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetEventCallback()
385 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetDataCOCallback()
417 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetEventMask()
448 __func__, handle, p_port->in_use, p_port->state, p_port->rfc.p_mcb, in PORT_CheckConnection()
452 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_CheckConnection()
537 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_SetState()
582 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_GetState()
622 if (!p_port->in_use || (p_port->state == PORT_STATE_CLOSED)) { in PORT_FlowControl_MaxCredit()
[all …]
Dport_utils.cc72 if (!p_port->in_use) { in port_allocate_port()
75 p_port->in_use = true; in port_allocate_port()
341 if (port.in_use && (port.rfc.p_mcb == nullptr)) { in port_find_dlci_port()
364 if (port.in_use && (port.dlci == dlci) && (port.bd_addr == bd_addr)) { in port_find_port()
/system/bt/stack/gatt/
Dgatt_utils.cc257 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].ch_state == GATT_CH_OPEN) { in gatt_find_the_connected_bda()
343 if (gatt_cb.tcb[i].in_use && gatt_cb.tcb[i].peer_bda == bda) { in gatt_is_bda_connected()
385 if ((tcb_idx < GATT_MAX_PHY_CHANNEL) && gatt_cb.tcb[tcb_idx].in_use) in gatt_get_tcb_by_idx()
429 if (p_tcb->in_use) continue; in gatt_allocate_tcb_by_bdaddr()
436 p_tcb->in_use = true; in gatt_allocate_tcb_by_bdaddr()
718 if (p_reg->in_use && p_reg->app_cb.p_req_cb) { in gatt_sr_send_req_callback()
859 if (!p_reg->in_use) { in gatt_get_regcb()
882 if (gatt_cb.clcb[i].in_use && (gatt_cb.clcb[i].conn_id == conn_id)) { in gatt_is_clcb_allocated()
910 if (!gatt_cb.clcb[i].in_use) { in gatt_clcb_alloc()
913 p_clcb->in_use = true; in gatt_clcb_alloc()
[all …]
Dgatt_attr.cc108 if (p_clcb->in_use && p_clcb->conn_id == conn_id) return p_clcb; in gatt_profile_find_clcb_by_conn_id()
130 if (p_clcb->in_use && p_clcb->transport == transport && p_clcb->connected && in gatt_profile_find_clcb_by_bd_addr()
157 if (!p_clcb->in_use) { in gatt_profile_clcb_alloc()
158 p_clcb->in_use = true; in gatt_profile_clcb_alloc()
/system/nfc/src/nfa/dm/
Dnfa_dm_discover.cc748 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) in nfa_dm_disc_notify_started()
850 if (!nfa_dm_cb.disc_cb.tle.in_use) { in nfa_dm_send_deactivate_cmd()
859 } else if (nfa_dm_cb.disc_cb.tle.in_use) { in nfa_dm_send_deactivate_cmd()
888 (nfa_dm_cb.disc_cb.excl_disc_entry.in_use == false)) { in nfa_dm_start_rf_discover()
895 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) { in nfa_dm_start_rf_discover()
903 if (nfa_dm_cb.disc_cb.entry[xx].in_use) { in nfa_dm_start_rf_discover()
1065 if (!nfa_dm_cb.disc_cb.excl_disc_entry.in_use) { in nfa_dm_start_rf_discover()
1089 (!nfa_dm_cb.disc_cb.kovio_tle.in_use)) { in nfa_dm_start_rf_discover()
1131 if (nfa_dm_cb.disc_cb.kovio_tle.in_use) { in nfa_dm_disc_handle_kovio_activation()
1195 if (nfa_dm_cb.disc_cb.excl_disc_entry.in_use) { in nfa_dm_disc_notify_activation()
[all …]
/system/bt/bta/ag/
Dbta_ag_main.cc326 if (!p_scb->in_use) { in bta_ag_scb_alloc()
328 p_scb->in_use = true; in bta_ag_scb_alloc()
386 if (bta_ag_cb.scb[idx].in_use) { in bta_ag_scb_dealloc()
429 if (!p_scb->in_use) { in bta_ag_scb_by_idx()
472 if (p_scb->in_use && *peer_addr == p_scb->peer_addr) { in bta_ag_idx_by_bdaddr()
496 if (p_scb->in_use && p_scb != p_curr_scb && in bta_ag_other_scb_open()
517 return p_curr_scb && p_curr_scb->in_use && in bta_ag_scb_open()
632 if (p_scb->in_use) { in bta_ag_api_disable()
711 if (p_scb->in_use && p_scb->svc_conn) { in bta_ag_api_result()
/system/bt/stack/l2cap/
Dl2c_utils.cc54 if (!l2cb.lcb_pool[i].in_use) return true; in l2cu_can_allocate_lcb()
74 if (!p_lcb->in_use) { in l2cu_allocate_lcb()
81 p_lcb->in_use = true; in l2cu_allocate_lcb()
144 p_lcb->in_use = false; in l2cu_release_lcb()
251 if ((p_lcb->in_use) && p_lcb->transport == transport && in l2cu_find_lcb_by_bd_addr()
1181 if ((!p_ccb->in_use) || (p_q == NULL)) { in l2cu_enqueue_ccb()
1183 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb); in l2cu_enqueue_ccb()
1264 if ((!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL)) { in l2cu_dequeue_ccb()
1268 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb, p_q, in l2cu_dequeue_ccb()
1414 p_ccb->in_use = true; in l2cu_allocate_ccb()
[all …]
/system/bt/bta/dm/
Dbta_dm_pm.cc163 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer()
222 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_mode()
252 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_stop_timer_by_srvc_id()
280 p_timer->in_use = true; in bta_dm_pm_start_timer()
313 CHECK(p_timer->in_use && (p_timer->active > 0)); in bta_dm_pm_stop_timer_by_index()
319 if (p_timer->active == 0) p_timer->in_use = false; in bta_dm_pm_stop_timer_by_index()
599 if (bta_dm_cb.pm_timer[i].in_use && in bta_dm_pm_set_mode()
621 } else if (!bta_dm_cb.pm_timer[i].in_use) { in bta_dm_pm_set_mode()
869 bta_dm_cb.pm_timer[i].in_use);
870 if (bta_dm_cb.pm_timer[i].in_use) {
[all …]
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h107 uint32_t in_use = 0; member
Dbuilder.cpp86 if ((table_.header.in_use & (1 << i)) == 0) return i; in GetEmptySlot()
115 table_.header.in_use |= (1 << slot_number); in AddVBMetaImage()
128 table_.header.in_use &= ~(1 << desc->vbmeta_index); in DeleteVBMetaImage()
/system/bt/bta/hh/
Dbta_hh_le.cc90 if (!p_cb->hid_srvc.in_use) return; in bta_hh_le_hid_report_dbg()
97 if (!p_rpt->in_use) break; in bta_hh_le_hid_report_dbg()
277 p_cb->in_use = true; in bta_hh_le_open_conn()
295 if (p_dev_cb->in_use && p_dev_cb->conn_id == conn_id) return p_dev_cb; in bta_hh_le_find_dev_cb_by_conn_id()
312 if (p_dev_cb->in_use && p_dev_cb->addr == bda) return p_dev_cb; in bta_hh_le_find_dev_cb_by_bda()
326 if (p_cb->hid_srvc.in_use && p_cb->hid_srvc.incl_srvc_inst == ba_inst_id) { in bta_hh_le_find_service_inst_by_battery_inst_id()
387 if (p_rpt->in_use && p_rpt->rpt_id == rpt_id && r_type == p_rpt->rpt_type) { in bta_hh_le_find_rpt_by_idtype()
427 if (!p_rpt->in_use || in bta_hh_le_find_alloc_report_entry()
430 if (!p_rpt->in_use) { in bta_hh_le_find_alloc_report_entry()
431 p_rpt->in_use = true; in bta_hh_le_find_alloc_report_entry()
[all …]
Dbta_hh_utils.cc75 bta_hh_cb.kdev[xx].in_use, xx, in bta_hh_find_cb()
82 if (!bta_hh_cb.kdev[xx].in_use) { in bta_hh_find_cb()
180 p_cb->in_use = true; in bta_hh_add_device_to_list()
507 bta_hh_cb.kdev[xx].in_use, bta_hh_cb.kdev[xx].hid_handle); in bta_hh_trace_dev_db()
/system/bt/stack/btm/
Dbtm_ble_multi_adv.cc62 bool in_use; member
94 in_use(false), in AdvertisingInstance()
246 if (p_inst->in_use) continue; in RegisterAdvertiser()
248 p_inst->in_use = true; in RegisterAdvertiser()
622 if (!p_inst->in_use) { in Enable()
680 if (!p_inst->in_use) { in SetParameters()
829 if (!p_inst->in_use) { in SetPeriodicAdvertisingEnable()
872 p_inst->in_use = false; in Unregister()
908 if (!inst.in_use || !inst.enable_status) continue; in Suspend()
924 if (inst.in_use && inst.enable_status) { in Resume()
[all …]

1234