/packages/modules/Bluetooth/system/btif/src/ |
D | btif_profile_storage.cc | 86 std::string bdstr, uint16_t attr_mask, uint8_t sub_class, uint8_t app_id, in btif_storage_hid_device_info() argument 90 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_ATTR_MASK, attr_mask); in btif_storage_hid_device_info() 91 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_SUB_CLASS, sub_class); in btif_storage_hid_device_info() 92 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_APP_ID, app_id); in btif_storage_hid_device_info() 93 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_VENDOR_ID, vendor_id); in btif_storage_hid_device_info() 94 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_PRODUCT_ID, product_id); in btif_storage_hid_device_info() 95 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_VERSION, version); in btif_storage_hid_device_info() 96 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_COUNTRY_CODE, ctry_code); in btif_storage_hid_device_info() 97 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_SSR_MAX_LATENCY, in btif_storage_hid_device_info() 99 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HID_SSR_MIN_TIMEOUT, in btif_storage_hid_device_info() [all …]
|
D | btif_storage.cc | 109 static bool btif_has_ble_keys(const std::string& bdstr); 116 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_set_mode() local 119 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_RESTRICTED, 1); in btif_storage_set_mode() 124 std::string bdstr; in prop2cfg() local 126 bdstr = remote_bd_addr->ToString(); in prop2cfg() 139 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_TIMESTAMP, (int)time(NULL)); in prop2cfg() 146 btif_config_set_str(bdstr, BTIF_STORAGE_KEY_NAME, value); in prop2cfg() 156 btif_config_set_str(bdstr, BTIF_STORAGE_KEY_ALIAS, value); in prop2cfg() 167 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_DEV_CLASS, *(int*)prop->val); in prop2cfg() 170 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_DEV_TYPE, *(int*)prop->val); in prop2cfg() [all …]
|
D | btif_core.cc | 184 std::string bdstr = local_bd_addr.ToString(); in btif_enable_bluetooth_evt() local 188 bdstr); in btif_enable_bluetooth_evt() 194 strcmp(bdstr.c_str(), val) != 0) { in btif_enable_bluetooth_evt() 199 bdstr.c_str()); in btif_enable_bluetooth_evt()
|
D | btif_dm.cc | 831 const char* bdstr = addrstr.c_str(); in btif_dm_cb_create_bond() local 833 if (!btif_config_get_int(bdstr, BTIF_STORAGE_KEY_DEV_TYPE, &device_type)) { in btif_dm_cb_create_bond() 834 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_DEV_TYPE, BT_DEVICE_TYPE_BLE); in btif_dm_cb_create_bond() 848 if ((btif_config_get_int(bdstr, BTIF_STORAGE_KEY_DEV_TYPE, &device_type) && in btif_dm_cb_create_bond()
|
/packages/modules/Bluetooth/system/btif/co/ |
D | bta_hh_co.cc | 777 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_rpt_info() local 779 size_t len = btif_config_get_bin_length(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT); in bta_hh_le_co_rpt_info() 781 btif_config_get_bin(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT, in bta_hh_le_co_rpt_info() 788 btif_config_set_bin(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT, in bta_hh_le_co_rpt_info() 791 btif_config_set_int(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT_VERSION, in bta_hh_le_co_rpt_info() 817 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_cache_load() local 819 size_t len = btif_config_get_bin_length(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT); in bta_hh_le_co_cache_load() 823 btif_config_get_bin(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT, in bta_hh_le_co_cache_load() 827 btif_config_get_int(bdstr, BTIF_STORAGE_KEY_HOGP_REPORT_VERSION, in bta_hh_le_co_cache_load() 856 const char* bdstr = addrstr.c_str(); in bta_hh_le_co_reset_rpt_cache() local [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_storage.h | 63 std::function<bool(const std::string& bdstr)> body{ 65 bool operator()(const std::string& bdstr) { return body(bdstr); }; in operator() 92 std::function<bt_status_t(const std::string& bdstr)> body{ 94 bt_status_t operator()(const std::string& bdstr) { return body(bdstr); }; in operator()
|
D | mock_btif_storage.cc | 127 bool btif_has_ble_keys(const std::string& bdstr) { in btif_has_ble_keys() argument 129 return test::mock::btif_storage::btif_has_ble_keys(bdstr); in btif_has_ble_keys() 138 bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr) { in btif_in_fetch_bonded_device() argument 140 return test::mock::btif_storage::btif_in_fetch_bonded_device(bdstr); in btif_in_fetch_bonded_device()
|
/packages/modules/Bluetooth/system/device/src/ |
D | interop.cc | 525 const std::string bdstr = addr_entry.addr.ToColonSepHexString().substr( in interop_config_add_or_remove() local 529 key.assign(bdstr); in interop_config_add_or_remove() 569 const std::string bdstr = in interop_config_add_or_remove() local 572 snprintf(m_ssr_max_lat, sizeof(m_ssr_max_lat), "%s-0x%04x", bdstr.c_str(), in interop_config_add_or_remove() 596 const std::string bdstr = in interop_config_add_or_remove() local 600 bdstr.c_str(), db_entry->entry_type.lmp_version_entry.lmp_ver, in interop_config_add_or_remove() 929 std::string bdstr(key); in load_to_database() local 931 for (int i = 6; i > len; i--) bdstr.append(append_str); in load_to_database() 933 if (!RawAddress::FromString(bdstr, addr)) { in load_to_database() 1035 std::string bdstr(bdaddr_str); in load_to_database() local [all …]
|
/packages/modules/Bluetooth/system/btif/include/ |
D | btif_storage.h | 64 bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr);
|