Lines Matching refs:bdstr
177 static bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr);
179 static bool btif_has_ble_keys(const std::string& bdstr);
186 std::string bdstr; in prop2cfg() local
188 bdstr = remote_bd_addr->ToString(); in prop2cfg()
191 BTIF_TRACE_DEBUG("in, bd addr:%s, prop type:%d, len:%d", bdstr.c_str(), in prop2cfg()
201 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTIME, in prop2cfg()
211 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME, value); in prop2cfg()
221 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE, value); in prop2cfg()
240 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVCLASS, in prop2cfg()
244 btif_config_set_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, in prop2cfg()
253 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_SERVICE, val); in prop2cfg()
261 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_MFCT, in prop2cfg()
263 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_VER, info->version); in prop2cfg()
264 btif_config_set_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_SUBVER, in prop2cfg()
275 btif_in_fetch_bonded_device(bdstr) == BT_STATUS_SUCCESS) { in prop2cfg()
284 std::string bdstr; in cfg2prop() local
286 bdstr = remote_bd_addr->ToString(); in cfg2prop()
288 BTIF_TRACE_DEBUG("in, bd addr:%s, prop type:%d, len:%d", bdstr.c_str(), in cfg2prop()
299 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTIME, in cfg2prop()
305 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME, in cfg2prop()
320 ret = btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE, in cfg2prop()
354 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVCLASS, in cfg2prop()
359 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, in cfg2prop()
365 if (btif_config_get_str(bdstr, BTIF_STORAGE_PATH_REMOTE_SERVICE, value, in cfg2prop()
382 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_MFCT, in cfg2prop()
386 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_VER, in cfg2prop()
390 ret = btif_config_get_int(bdstr, BT_CONFIG_KEY_REMOTE_VER_SUBVER, in cfg2prop()
412 static bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr) { in btif_in_fetch_bonded_device() argument
417 if (btif_config_get_bin(bdstr, "LinkKey", link_key.data(), &size)) { in btif_in_fetch_bonded_device()
419 if (btif_config_get_int(bdstr, "LinkKeyType", &linkkey_type)) { in btif_in_fetch_bonded_device()
425 if ((btif_in_fetch_bonded_ble_device(bdstr, false, NULL) != in btif_in_fetch_bonded_device()
429 bdstr.c_str()); in btif_in_fetch_bonded_device()
813 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_add_bonded_device() local
814 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type); in btif_storage_add_bonded_device()
815 ret &= btif_config_set_int(bdstr, "PinLength", (int)pin_length); in btif_storage_add_bonded_device()
817 btif_config_set_bin(bdstr, "LinkKey", link_key.data(), link_key.size()); in btif_storage_add_bonded_device()
821 __func__, bdstr.c_str()); in btif_storage_add_bonded_device()
822 btif_config_set_int(bdstr, "Restricted", 1); in btif_storage_add_bonded_device()
842 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_remove_bonded_device() local
843 BTIF_TRACE_DEBUG("in bd addr:%s", bdstr.c_str()); in btif_storage_remove_bonded_device()
848 if (btif_config_exist(bdstr, "LinkKeyType")) in btif_storage_remove_bonded_device()
849 ret &= btif_config_remove(bdstr, "LinkKeyType"); in btif_storage_remove_bonded_device()
850 if (btif_config_exist(bdstr, "PinLength")) in btif_storage_remove_bonded_device()
851 ret &= btif_config_remove(bdstr, "PinLength"); in btif_storage_remove_bonded_device()
852 if (btif_config_exist(bdstr, "LinkKey")) in btif_storage_remove_bonded_device()
853 ret &= btif_config_remove(bdstr, "LinkKey"); in btif_storage_remove_bonded_device()
854 if (btif_config_exist(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE)) { in btif_storage_remove_bonded_device()
855 ret &= btif_config_remove(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE); in btif_storage_remove_bonded_device()
857 if (btif_config_exist(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED)) { in btif_storage_remove_bonded_device()
858 ret &= btif_config_remove(bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED); in btif_storage_remove_bonded_device()
1134 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_remove_ble_bonding_keys() local
1135 BTIF_TRACE_DEBUG(" %s in bd addr:%s", __func__, bdstr.c_str()); in btif_storage_remove_ble_bonding_keys()
1137 if (btif_config_exist(bdstr, "LE_KEY_PENC")) in btif_storage_remove_ble_bonding_keys()
1138 ret &= btif_config_remove(bdstr, "LE_KEY_PENC"); in btif_storage_remove_ble_bonding_keys()
1139 if (btif_config_exist(bdstr, "LE_KEY_PID")) in btif_storage_remove_ble_bonding_keys()
1140 ret &= btif_config_remove(bdstr, "LE_KEY_PID"); in btif_storage_remove_ble_bonding_keys()
1141 if (btif_config_exist(bdstr, "LE_KEY_PCSRK")) in btif_storage_remove_ble_bonding_keys()
1142 ret &= btif_config_remove(bdstr, "LE_KEY_PCSRK"); in btif_storage_remove_ble_bonding_keys()
1143 if (btif_config_exist(bdstr, "LE_KEY_LENC")) in btif_storage_remove_ble_bonding_keys()
1144 ret &= btif_config_remove(bdstr, "LE_KEY_LENC"); in btif_storage_remove_ble_bonding_keys()
1145 if (btif_config_exist(bdstr, "LE_KEY_LCSRK")) in btif_storage_remove_ble_bonding_keys()
1146 ret &= btif_config_remove(bdstr, "LE_KEY_LCSRK"); in btif_storage_remove_ble_bonding_keys()
1298 bool btif_has_ble_keys(const std::string& bdstr) { in btif_has_ble_keys() argument
1299 return btif_config_exist(bdstr, "LE_KEY_PENC"); in btif_has_ble_keys()
1336 std::string bdstr = remote_bd_addr->ToString(); in btif_storage_add_hid_device_info() local
1337 btif_config_set_int(bdstr, "HidAttrMask", attr_mask); in btif_storage_add_hid_device_info()
1338 btif_config_set_int(bdstr, "HidSubClass", sub_class); in btif_storage_add_hid_device_info()
1339 btif_config_set_int(bdstr, "HidAppId", app_id); in btif_storage_add_hid_device_info()
1340 btif_config_set_int(bdstr, "HidVendorId", vendor_id); in btif_storage_add_hid_device_info()
1341 btif_config_set_int(bdstr, "HidProductId", product_id); in btif_storage_add_hid_device_info()
1342 btif_config_set_int(bdstr, "HidVersion", version); in btif_storage_add_hid_device_info()
1343 btif_config_set_int(bdstr, "HidCountryCode", ctry_code); in btif_storage_add_hid_device_info()
1344 btif_config_set_int(bdstr, "HidSSRMaxLatency", ssr_max_latency); in btif_storage_add_hid_device_info()
1345 btif_config_set_int(bdstr, "HidSSRMinTimeout", ssr_min_tout); in btif_storage_add_hid_device_info()
1346 if (dl_len > 0) btif_config_set_bin(bdstr, "HidDescriptor", dsc_list, dl_len); in btif_storage_add_hid_device_info()
1434 std::string bdstr = remote_bd_addr.ToString(); in btif_storage_remove_hid_info() local
1436 btif_config_remove(bdstr, "HidAttrMask"); in btif_storage_remove_hid_info()
1437 btif_config_remove(bdstr, "HidSubClass"); in btif_storage_remove_hid_info()
1438 btif_config_remove(bdstr, "HidAppId"); in btif_storage_remove_hid_info()
1439 btif_config_remove(bdstr, "HidVendorId"); in btif_storage_remove_hid_info()
1440 btif_config_remove(bdstr, "HidProductId"); in btif_storage_remove_hid_info()
1441 btif_config_remove(bdstr, "HidVersion"); in btif_storage_remove_hid_info()
1442 btif_config_remove(bdstr, "HidCountryCode"); in btif_storage_remove_hid_info()
1443 btif_config_remove(bdstr, "HidSSRMaxLatency"); in btif_storage_remove_hid_info()
1444 btif_config_remove(bdstr, "HidSSRMinTimeout"); in btif_storage_remove_hid_info()
1445 btif_config_remove(bdstr, "HidDescriptor"); in btif_storage_remove_hid_info()
1472 std::string bdstr = dev_info.address.ToString(); in btif_storage_add_hearing_aid() local
1473 VLOG(2) << "saving hearing aid device: " << bdstr; in btif_storage_add_hearing_aid()
1474 btif_config_set_int(bdstr, HEARING_AID_SERVICE_CHANGED_CCC_HANDLE, in btif_storage_add_hearing_aid()
1476 btif_config_set_int(bdstr, HEARING_AID_READ_PSM_HANDLE, in btif_storage_add_hearing_aid()
1478 btif_config_set_int(bdstr, HEARING_AID_CAPABILITIES, in btif_storage_add_hearing_aid()
1480 btif_config_set_int(bdstr, HEARING_AID_CODECS, dev_info.codecs); in btif_storage_add_hearing_aid()
1481 btif_config_set_int(bdstr, HEARING_AID_AUDIO_CONTROL_POINT, in btif_storage_add_hearing_aid()
1483 btif_config_set_int(bdstr, HEARING_AID_VOLUME_HANDLE, in btif_storage_add_hearing_aid()
1485 btif_config_set_int(bdstr, HEARING_AID_AUDIO_STATUS_HANDLE, in btif_storage_add_hearing_aid()
1487 btif_config_set_int(bdstr, HEARING_AID_AUDIO_STATUS_CCC_HANDLE, in btif_storage_add_hearing_aid()
1489 btif_config_set_uint64(bdstr, HEARING_AID_SYNC_ID, in btif_storage_add_hearing_aid()
1491 btif_config_set_int(bdstr, HEARING_AID_RENDER_DELAY, in btif_storage_add_hearing_aid()
1493 btif_config_set_int(bdstr, HEARING_AID_PREPARATION_DELAY, in btif_storage_add_hearing_aid()
1495 btif_config_set_int(bdstr, HEARING_AID_IS_WHITE_LISTED, true); in btif_storage_add_hearing_aid()
1768 std::string bdstr = bd_addr.ToString(); in btif_storage_set_gatt_cl_supp_feat() local
1770 << "saving gatt client supported feat: " << bdstr; in btif_storage_set_gatt_cl_supp_feat()
1772 bdstr, BTIF_STORAGE_KEY_GATT_CLIENT_SUPPORTED, feat); in btif_storage_set_gatt_cl_supp_feat()