/packages/modules/Bluetooth/system/stack/btm/ |
D | btm_devctl.cc | 54 extern tBTM_CB btm_cb; 92 btm_cb.devcb.read_local_name_timer = alarm_new("btm.read_local_name_timer"); in btm_dev_init() 93 btm_cb.devcb.read_rssi_timer = alarm_new("btm.read_rssi_timer"); in btm_dev_init() 94 btm_cb.devcb.read_failed_contact_counter_timer = in btm_dev_init() 96 btm_cb.devcb.read_automatic_flush_timeout_timer = in btm_dev_init() 98 btm_cb.devcb.read_tx_power_timer = alarm_new("btm.read_tx_power_timer"); in btm_dev_init() 102 alarm_free(btm_cb.devcb.read_local_name_timer); in btm_dev_free() 103 alarm_free(btm_cb.devcb.read_rssi_timer); in btm_dev_free() 104 alarm_free(btm_cb.devcb.read_failed_contact_counter_timer); in btm_dev_free() 105 alarm_free(btm_cb.devcb.read_automatic_flush_timeout_timer); in btm_dev_free() [all …]
|
D | btm_ble_gap.cc | 73 extern tBTM_CB btm_cb; 487 btm_cb.ble_ctr_cb.p_opportunistic_obs_results_cb = p_results_cb; in BTM_BleOpportunisticObserve() 489 btm_cb.ble_ctr_cb.p_opportunistic_obs_results_cb = NULL; in BTM_BleOpportunisticObserve() 496 btm_cb.ble_ctr_cb.p_target_announcement_obs_results_cb = p_results_cb; in BTM_BleTargetAnnouncementObserve() 498 btm_cb.ble_ctr_cb.p_target_announcement_obs_results_cb = NULL; in BTM_BleTargetAnnouncementObserve() 534 uint16_t scan_interval = !btm_cb.ble_ctr_cb.inq_var.scan_interval in BTM_BleObserve() 536 : btm_cb.ble_ctr_cb.inq_var.scan_interval; in BTM_BleObserve() 537 uint16_t scan_window = !btm_cb.ble_ctr_cb.inq_var.scan_window in BTM_BleObserve() 539 : btm_cb.ble_ctr_cb.inq_var.scan_window; in BTM_BleObserve() 541 uint8_t scan_phy = !btm_cb.ble_ctr_cb.inq_var.scan_phy in BTM_BleObserve() [all …]
|
D | btm_inq.cc | 120 extern tBTM_CB btm_cb; 284 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_BLE_DISCOVERABLE_MASK); in BTM_SetDiscoverability() 285 btm_cb.btm_inq_vars.discoverable_mode |= in BTM_SetDiscoverability() 321 if ((window != btm_cb.btm_inq_vars.inq_scan_window) || in BTM_SetDiscoverability() 322 (interval != btm_cb.btm_inq_vars.inq_scan_period)) { in BTM_SetDiscoverability() 324 btm_cb.btm_inq_vars.inq_scan_window = window; in BTM_SetDiscoverability() 325 btm_cb.btm_inq_vars.inq_scan_period = interval; in BTM_SetDiscoverability() 328 if (btm_cb.btm_inq_vars.connectable_mode & BTM_CONNECTABLE_MASK) in BTM_SetDiscoverability() 333 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_DISCOVERABLE_MASK); in BTM_SetDiscoverability() 334 btm_cb.btm_inq_vars.discoverable_mode |= inq_mode; in BTM_SetDiscoverability() [all …]
|
D | btm_ble_bgconn.cc | 45 extern tBTM_CB btm_cb; 78 uint32_t scan_interval = !btm_cb.ble_ctr_cb.inq_var.scan_interval in btm_update_scanner_filter_policy() 80 : btm_cb.ble_ctr_cb.inq_var.scan_interval; in btm_update_scanner_filter_policy() 81 uint32_t scan_window = !btm_cb.ble_ctr_cb.inq_var.scan_window in btm_update_scanner_filter_policy() 83 : btm_cb.ble_ctr_cb.inq_var.scan_window; in btm_update_scanner_filter_policy() 84 uint8_t scan_phy = !btm_cb.ble_ctr_cb.inq_var.scan_phy in btm_update_scanner_filter_policy() 86 : btm_cb.ble_ctr_cb.inq_var.scan_phy; in btm_update_scanner_filter_policy() 90 btm_cb.ble_ctr_cb.inq_var.sfp = scan_policy; in btm_update_scanner_filter_policy() 91 btm_cb.ble_ctr_cb.inq_var.scan_type = in btm_update_scanner_filter_policy() 92 btm_cb.ble_ctr_cb.inq_var.scan_type == BTM_BLE_SCAN_MODE_NONE in btm_update_scanner_filter_policy() [all …]
|
D | btm_ble_privacy.cc | 46 extern tBTM_CB btm_cb; 82 tBTM_BLE_RESOLVE_Q* p_q = &btm_cb.ble_ctr_cb.resolving_list_pend_q; in btm_ble_enq_resolving_list_pending() 104 tBTM_BLE_RESOLVE_Q* p_q = &btm_cb.ble_ctr_cb.resolving_list_pend_q; in btm_ble_brcm_find_resolving_pending_entry() 130 tBTM_BLE_RESOLVE_Q* p_q = &btm_cb.ble_ctr_cb.resolving_list_pend_q; in btm_ble_deq_resolving_pending() 160 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit)); in btm_ble_clear_irk_index() 182 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) { in btm_ble_find_irk_index() 183 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit); in btm_ble_find_irk_index() 264 memset(btm_cb.ble_ctr_cb.irk_list_mask, 0, irk_mask_size); in btm_ble_clear_resolving_list_complete() 267 btm_cb.ble_ctr_cb.resolving_list_avail_size = in btm_ble_clear_resolving_list_complete() 271 btm_cb.ble_ctr_cb.resolving_list_avail_size); in btm_ble_clear_resolving_list_complete() [all …]
|
D | btm_sco.cc | 66 extern tBTM_CB btm_cb; 316 if (sco_inx < BTM_MAX_SCO_LINKS) p_sco = &btm_cb.sco_cb.sco_db[sco_inx]; in btm_esco_conn_rsp() 324 if (!btm_cb.sco_cb.esco_supported) { in btm_esco_conn_rsp() 338 *p_setup = btm_cb.sco_cb.def_esco_parms; in btm_esco_conn_rsp() 367 for (auto& link : btm_cb.sco_cb.sco_db) { in btm_get_active_sco() 584 if (!btm_cb.sco_cb.esco_supported) { in btm_send_connect_request() 596 btm_cb.btm_sco_pkt_types_supported); in btm_send_connect_request() 601 (btm_cb.btm_sco_pkt_types_supported & BTM_SCO_EXCEPTION_PKTS_MASK)); in btm_send_connect_request() 734 tSCO_CONN* p = &btm_cb.sco_cb.sco_db[0]; in BTM_CreateSco() 780 for (xx = 0, p = &btm_cb.sco_cb.sco_db[0]; xx < BTM_MAX_SCO_LINKS; in BTM_CreateSco() [all …]
|
D | btm_main.cc | 40 tBTM_CB btm_cb; variable 55 btm_cb.Init(); in btm_init() 62 btm_cb.Free(); in btm_free() 70 if (btm_cb.history_ == nullptr) { in btm_log_history() 76 btm_cb.history_->Push( in btm_log_history()
|
D | btm_ble.cc | 47 extern tBTM_CB btm_cb; 60 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleReceiverTest() 81 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTransmitterTest() 96 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTestEnd() 105 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_le_test_cmd_cmpl_cb; in btm_ble_test_command_complete() 107 btm_cb.devcb.p_le_test_cmd_cmpl_cb = NULL; in btm_ble_test_command_complete()
|
D | btm_ble_cont_energy.cc | 33 extern tBTM_CB btm_cb;
|
D | btm_dev.cc | 55 extern tBTM_CB btm_cb; 736 btm_cb.ble_ctr_cb.privacy_mode < BTM_PRIVACY_1_2) { in BTM_Sec_GetAddressWithType()
|
D | btm_ble_addr.cc | 49 extern tBTM_CB btm_cb;
|
/packages/modules/Bluetooth/system/stack/test/btm/ |
D | stack_btm_inq_test.cc | 30 extern tBTM_CB btm_cb; 48 btm_cb = {}; in SetUp() 61 btm_cb.btm_inq_vars.remname_active = true; in SetUp() 62 btm_cb.btm_inq_vars.remname_bda = kRawAddress; in SetUp() 63 btm_cb.btm_inq_vars.remname_dev_type = BT_DEVICE_TYPE_BREDR; in SetUp() 64 btm_cb.btm_inq_vars.p_remname_cmpl_cb = in SetUp() 76 ASSERT_FALSE(btm_cb.btm_inq_vars.p_remname_cmpl_cb); in TEST_F() 77 ASSERT_FALSE(btm_cb.btm_inq_vars.remname_active); in TEST_F() 78 ASSERT_EQ(btm_cb.btm_inq_vars.remname_bda, RawAddress::kEmpty); in TEST_F() 79 ASSERT_EQ(btm_cb.btm_inq_vars.remname_dev_type, BT_DEVICE_TYPE_UNKNOWN); in TEST_F() [all …]
|
D | stack_btm_test.cc | 45 extern tBTM_CB btm_cb; 115 btm_cb.Init(); in SetUp() 120 btm_cb.Free(); in TearDown() 140 btm_cb.Init(); in TEST_F() 141 btm_cb.Free(); in TEST_F() 148 tSCO_CB* p_sco = &btm_cb.sco_cb; in TEST_F() 184 btm_cb.acl_cb_.SetDefaultPacketTypeMask(0x4321); in TEST_F() 185 ASSERT_EQ(0x4321, btm_cb.acl_cb_.DefaultPacketTypes()); in TEST_F() 197 btm_cb.acl_cb_.SetDefaultPacketTypeMask(0xffff); in TEST_F() 198 ASSERT_EQ(0xffff, btm_cb.acl_cb_.DefaultPacketTypes()); in TEST_F() [all …]
|
D | stack_btm_sec_test.cc | 37 extern tBTM_CB btm_cb; 286 btm_cb.history_ = std::make_shared<TimestampedStringCircularBuffer>( in TEST_F() 300 btm_cb.history_->Pull(); in TEST_F()
|
D | stack_btm_dm_inq_db_test.cc | 35 extern tBTM_CB btm_cb;
|
/packages/modules/Bluetooth/system/stack/acl/ |
D | btm_acl.cc | 101 extern tBTM_CB btm_cb; 117 btm_cb.acl_cb_.btm_acl_pkt_types_supported = packet_types_supported; in set_default_packet_types_supported() 194 btm_set_link_policy(&p_acl, btm_cb.acl_cb_.DefaultLinkPolicy()); in NotifyAclFeaturesReadComplete() 303 tACL_CONN* p_acl = &btm_cb.acl_cb_.acl_db[0]; in btm_bda_to_acl() 320 tACL_CONN* p_acl = &btm_cb.acl_cb_.acl_db[0]; in btm_acl_consolidate() 348 tACL_CONN* p = &btm_cb.acl_cb_.acl_db[0]; in btm_handle_to_acl_index() 363 return &btm_cb.acl_cb_.acl_db[index]; in acl_get_connection_from_handle() 400 tACL_CONN* p_acl = &btm_cb.acl_cb_.acl_db[0]; in acl_allocate_connection() 417 btm_set_link_policy(p_acl, btm_cb.acl_cb_.DefaultLinkPolicy()); in btm_acl_created() 449 btm_set_link_policy(p_acl, btm_cb.acl_cb_.DefaultLinkPolicy()); in btm_acl_created() [all …]
|
D | ble_acl.cc | 38 extern tBTM_CB btm_cb; 47 btm_cb.ble_ctr_cb.set_connection_state_idle(); in acl_ble_common_connection() 143 btm_cb.ble_ctr_cb.set_connection_state_idle(); in acl_ble_connection_fail() 157 btm_cb.ble_ctr_cb.inq_var.adv_mode = BTM_BLE_ADV_DISABLE; in acl_ble_connection_fail()
|
D | btm_pm.cc | 58 extern tBTM_CB btm_cb; 840 if (!btm_cb.ble_ctr_cb.is_connection_state_idle()) { in btm_pm_device_in_active_or_sniff_mode() 859 if ((btm_cb.btm_inq_vars.inq_active & in BTM_PM_DeviceInScanState() 916 return btm_cb.ble_ctr_cb.link_count[HCI_ROLE_CENTRAL] + in BTM_PM_ReadBleLinkCount() 917 btm_cb.ble_ctr_cb.link_count[HCI_ROLE_PERIPHERAL]; in BTM_PM_ReadBleLinkCount() 931 if (!btm_cb.ble_ctr_cb.is_ble_scan_active()) { in BTM_PM_ReadBleScanDutyCycle() 934 uint32_t scan_window = btm_cb.ble_ctr_cb.inq_var.scan_window; in BTM_PM_ReadBleScanDutyCycle() 935 uint32_t scan_interval = btm_cb.ble_ctr_cb.inq_var.scan_interval; in BTM_PM_ReadBleScanDutyCycle()
|
/packages/modules/Bluetooth/system/main/shim/ |
D | le_scanning_manager.cc | 54 extern tBTM_CB btm_cb; 181 if (start && !btm_cb.ble_ctr_cb.is_ble_observe_active()) { in Scan() 182 btm_cb.neighbor.le_scan = { in Scan() 187 btm_cb.ble_ctr_cb.set_ble_observe_active(); in Scan() 188 } else if (!start && btm_cb.ble_ctr_cb.is_ble_observe_active()) { in Scan() 192 btm_cb.neighbor.le_scan.start_time_ms; in Scan() 196 btm_cb.neighbor.le_scan.results)); in Scan() 197 btm_cb.ble_ctr_cb.reset_ble_observe(); in Scan() 198 btm_cb.neighbor.le_scan = {}; in Scan() 201 btm_cb.ble_ctr_cb.is_ble_observe_active()); in Scan() [all …]
|
D | acl.cc | 65 extern tBTM_CB btm_cb; 1279 const tACL_CB& acl_cb = btm_cb.acl_cb_; in DumpsysAcl() 1337 if (btm_cb.history_ != nullptr) { in DumpsysBtm() 1338 std::vector<Record> history = btm_cb.history_->Pull(); in DumpsysBtm() 1376 if (btm_cb.neighbor.classic_inquiry.start_time_ms == 0) { in DumpsysNeighbor() 1381 btm_cb.neighbor.classic_inquiry.start_time_ms) / in DumpsysNeighbor() 1383 btm_cb.neighbor.classic_inquiry.results); in DumpsysNeighbor() 1385 if (btm_cb.neighbor.le_scan.start_time_ms == 0) { in DumpsysNeighbor() 1390 btm_cb.neighbor.le_scan.start_time_ms) / in DumpsysNeighbor() 1392 btm_cb.neighbor.le_scan.results); in DumpsysNeighbor() [all …]
|
/packages/modules/Bluetooth/system/stack/fuzzers/ |
D | l2cap_fuzzer.cc | 55 tBTM_CB btm_cb; variable 168 memset(&btm_cb, 0, sizeof(btm_cb)); in Fuzz()
|
/packages/modules/Bluetooth/system/test/headless/ |
D | log.cc | 29 extern tBTM_CB btm_cb;
|
/packages/modules/Bluetooth/system/main/test/ |
D | main_shim_test.cc | 84 tBTM_CB btm_cb; variable 771 btm_cb.neighbor = {}; in TEST_F() 773 btm_cb.neighbor.inquiry_history_->Push({ in TEST_F() 781 btm_cb.neighbor.inquiry_history_->Push({ in TEST_F()
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_acl_test.cc | 34 tBTM_CB btm_cb; variable
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_ag_sco_test.cc | 31 tBTM_CB btm_cb; variable
|