Lines Matching refs:bdstr

178 static bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr);
180 static bool btif_has_ble_keys(const std::string& bdstr);
187 std::string bdstr; in prop2cfg() local
189 bdstr = remote_bd_addr->ToString(); in prop2cfg()
202 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTIME, in prop2cfg()
212 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME, value); in prop2cfg()
222 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE, value); in prop2cfg()
241 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVCLASS, in prop2cfg()
245 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, in prop2cfg()
254 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_SERVICE, val); in prop2cfg()
262 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_MFCT, in prop2cfg()
264 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_VER, info->version); in prop2cfg()
265 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_SUBVER, in prop2cfg()
276 btif_in_fetch_bonded_device(bdstr) == BT_STATUS_SUCCESS) { in prop2cfg()
285 std::string bdstr; in cfg2prop() local
287 bdstr = remote_bd_addr->ToString(); in cfg2prop()
298 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTIME, in cfg2prop()
304 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME, in cfg2prop()
319 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE, in cfg2prop()
353 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVCLASS, in cfg2prop()
358 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, in cfg2prop()
364 if (btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_SERVICE, value, in cfg2prop()
381 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_MFCT, in cfg2prop()
385 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_VER, in cfg2prop()
389 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_SUBVER, in cfg2prop()
411 static bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr) { in btif_in_fetch_bonded_device() argument
416 if (btif_config_get_bin(bdstr, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_device()
418 if (btif_config_get_int(bdstr, "LinkKeyType", &linkkey_type)) { in btif_in_fetch_bonded_device()
424 if ((btif_in_fetch_bonded_ble_device(bdstr, false, NULL) != in btif_in_fetch_bonded_device()
809 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_add_bonded_device() local
810 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type); in btif_storage_add_bonded_device()
811 ret &= btif_config_set_int(bdstr, "PinLength", (int)pin_length); in btif_storage_add_bonded_device()
813 btif_config_set_bin(bdstr, "LinkKey", link_key.data(), link_key.size()); in btif_storage_add_bonded_device()
817 __func__, bdstr.c_str()); in btif_storage_add_bonded_device()
818 btif_config_set_int(bdstr, "Restricted", 1); in btif_storage_add_bonded_device()
838 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_remove_bonded_device() local
839 LOG_INFO("Removing bonded device addr:%s", bdstr.c_str()); in btif_storage_remove_bonded_device()
844 if (btif_config_exist(bdstr, "LinkKeyType")) in btif_storage_remove_bonded_device()
845 ret &= btif_config_remove(bdstr, "LinkKeyType"); in btif_storage_remove_bonded_device()
846 if (btif_config_exist(bdstr, "PinLength")) in btif_storage_remove_bonded_device()
847 ret &= btif_config_remove(bdstr, "PinLength"); in btif_storage_remove_bonded_device()
848 if (btif_config_exist(bdstr, "LinkKey")) in btif_storage_remove_bonded_device()
849 ret &= btif_config_remove(bdstr, "LinkKey"); in btif_storage_remove_bonded_device()
850 if (btif_config_exist(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE)) { in btif_storage_remove_bonded_device()
851 ret &= btif_config_remove(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE); in btif_storage_remove_bonded_device()
853 if (btif_config_exist(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED)) { in btif_storage_remove_bonded_device()
854 ret &= btif_config_remove(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED); in btif_storage_remove_bonded_device()
856 if (btif_config_exist(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_DB_HASH)) { in btif_storage_remove_bonded_device()
857 ret &= btif_config_remove(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_DB_HASH); in btif_storage_remove_bonded_device()
859 if (btif_config_exist(bdstr, BTIF_STORAGE_KEY_GATT_SERVER_SUPPORTED)) { in btif_storage_remove_bonded_device()
860 ret &= btif_config_remove(bdstr, BTIF_STORAGE_KEY_GATT_SERVER_SUPPORTED); in btif_storage_remove_bonded_device()
1137 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_remove_ble_bonding_keys() local
1138 LOG_INFO("Removing bonding keys for bd addr:%s", bdstr.c_str()); in btif_storage_remove_ble_bonding_keys()
1140 if (btif_config_exist(bdstr, "LE_KEY_PENC")) in btif_storage_remove_ble_bonding_keys()
1141 ret &= btif_config_remove(bdstr, "LE_KEY_PENC"); in btif_storage_remove_ble_bonding_keys()
1142 if (btif_config_exist(bdstr, "LE_KEY_PID")) in btif_storage_remove_ble_bonding_keys()
1143 ret &= btif_config_remove(bdstr, "LE_KEY_PID"); in btif_storage_remove_ble_bonding_keys()
1144 if (btif_config_exist(bdstr, "LE_KEY_PCSRK")) in btif_storage_remove_ble_bonding_keys()
1145 ret &= btif_config_remove(bdstr, "LE_KEY_PCSRK"); in btif_storage_remove_ble_bonding_keys()
1146 if (btif_config_exist(bdstr, "LE_KEY_LENC")) in btif_storage_remove_ble_bonding_keys()
1147 ret &= btif_config_remove(bdstr, "LE_KEY_LENC"); in btif_storage_remove_ble_bonding_keys()
1148 if (btif_config_exist(bdstr, "LE_KEY_LCSRK")) in btif_storage_remove_ble_bonding_keys()
1149 ret &= btif_config_remove(bdstr, "LE_KEY_LCSRK"); in btif_storage_remove_ble_bonding_keys()
1301 bool btif_has_ble_keys(const std::string& bdstr) { in btif_has_ble_keys() argument
1302 return btif_config_exist(bdstr, "LE_KEY_PENC"); in btif_has_ble_keys()
1340 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_add_hid_device_info() local
1341 btif_config_set_int(bdstr, "HidAttrMask", attr_mask); in btif_storage_add_hid_device_info()
1342 btif_config_set_int(bdstr, "HidSubClass", sub_class); in btif_storage_add_hid_device_info()
1343 btif_config_set_int(bdstr, "HidAppId", app_id); in btif_storage_add_hid_device_info()
1344 btif_config_set_int(bdstr, "HidVendorId", vendor_id); in btif_storage_add_hid_device_info()
1345 btif_config_set_int(bdstr, "HidProductId", product_id); in btif_storage_add_hid_device_info()
1346 btif_config_set_int(bdstr, "HidVersion", version); in btif_storage_add_hid_device_info()
1347 btif_config_set_int(bdstr, "HidCountryCode", ctry_code); in btif_storage_add_hid_device_info()
1348 btif_config_set_int(bdstr, "HidSSRMaxLatency", ssr_max_latency); in btif_storage_add_hid_device_info()
1349 btif_config_set_int(bdstr, "HidSSRMinTimeout", ssr_min_tout); in btif_storage_add_hid_device_info()
1350 if (dl_len > 0) btif_config_set_bin(bdstr, "HidDescriptor", dsc_list, dl_len); in btif_storage_add_hid_device_info()
1438 std::string bdstr = remote_bd_addr.ToString(); in btif_storage_remove_hid_info() local
1440 btif_config_remove(bdstr, "HidAttrMask"); in btif_storage_remove_hid_info()
1441 btif_config_remove(bdstr, "HidSubClass"); in btif_storage_remove_hid_info()
1442 btif_config_remove(bdstr, "HidAppId"); in btif_storage_remove_hid_info()
1443 btif_config_remove(bdstr, "HidVendorId"); in btif_storage_remove_hid_info()
1444 btif_config_remove(bdstr, "HidProductId"); in btif_storage_remove_hid_info()
1445 btif_config_remove(bdstr, "HidVersion"); in btif_storage_remove_hid_info()
1446 btif_config_remove(bdstr, "HidCountryCode"); in btif_storage_remove_hid_info()
1447 btif_config_remove(bdstr, "HidSSRMaxLatency"); in btif_storage_remove_hid_info()
1448 btif_config_remove(bdstr, "HidSSRMinTimeout"); in btif_storage_remove_hid_info()
1449 btif_config_remove(bdstr, "HidDescriptor"); in btif_storage_remove_hid_info()
1476 std::string bdstr = dev_info.address.ToString(); in btif_storage_add_hearing_aid() local
1477 VLOG(2) << "saving hearing aid device: " << bdstr; in btif_storage_add_hearing_aid()
1478 btif_config_set_int(bdstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE, in btif_storage_add_hearing_aid()
1480 btif_config_set_int(bdstr, HEARING_AID_READ_PSM_HANDLE, in btif_storage_add_hearing_aid()
1482 btif_config_set_int(bdstr, HEARING_AID_CAPABILITIES, in btif_storage_add_hearing_aid()
1484 btif_config_set_int(bdstr, HEARING_AID_CODECS, dev_info.codecs); in btif_storage_add_hearing_aid()
1485 btif_config_set_int(bdstr, HEARING_AID_AUDIO_CONTROL_POINT, in btif_storage_add_hearing_aid()
1487 btif_config_set_int(bdstr, HEARING_AID_VOLUME_HANDLE, in btif_storage_add_hearing_aid()
1489 btif_config_set_int(bdstr, HEARING_AID_AUDIO_STATUS_HANDLE, in btif_storage_add_hearing_aid()
1491 btif_config_set_int(bdstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE, in btif_storage_add_hearing_aid()
1493 btif_config_set_uint64(bdstr, HEARING_AID_SYNC_ID, in btif_storage_add_hearing_aid()
1495 btif_config_set_int(bdstr, HEARING_AID_RENDER_DELAY, in btif_storage_add_hearing_aid()
1497 btif_config_set_int(bdstr, HEARING_AID_PREPARATION_DELAY, in btif_storage_add_hearing_aid()
1499 btif_config_set_int(bdstr, HEARING_AID_IS_ACCEPTLISTED, true); in btif_storage_add_hearing_aid()
1672 std::string bdstr = addr.ToString(); in btif_storage_set_gatt_sr_supp_feat() local
1674 << "GATT server supported features for: " << bdstr in btif_storage_set_gatt_sr_supp_feat()
1677 bdstr, BTIF_STORAGE_KEY_GATT_SERVER_SUPPORTED, feat); in btif_storage_set_gatt_sr_supp_feat()
1800 std::string bdstr = bd_addr.ToString(); in btif_storage_set_gatt_cl_supp_feat() local
1802 << "saving gatt client supported feat: " << bdstr; in btif_storage_set_gatt_cl_supp_feat()
1804 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED, feat); in btif_storage_set_gatt_cl_supp_feat()
1827 auto bdstr = bd_addr.ToString(); in btif_storage_remove_gatt_cl_supp_feat() local
1829 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED)) { in btif_storage_remove_gatt_cl_supp_feat()
1831 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED); in btif_storage_remove_gatt_cl_supp_feat()
1842 auto bdstr = bd_addr.ToString(); in btif_storage_set_gatt_cl_db_hash() local
1844 bdstr, in btif_storage_set_gatt_cl_db_hash()
1854 auto bdstr = bd_addr.ToString(); in btif_storage_get_gatt_cl_db_hash() local
1858 btif_config_get_bin(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_DB_HASH, hash.data(), in btif_storage_get_gatt_cl_db_hash()
1869 auto bdstr = bd_addr.ToString(); in btif_storage_remove_gatt_cl_db_hash() local
1871 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_DB_HASH)) { in btif_storage_remove_gatt_cl_db_hash()
1873 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_DB_HASH); in btif_storage_remove_gatt_cl_db_hash()