Lines Matching refs:bdstr

223     bdstr_t bdstr = {0};  in prop2cfg()  local
225 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in prop2cfg()
226 BTIF_TRACE_DEBUG("in, bd addr:%s, prop type:%d, len:%d", bdstr, prop->type, prop->len); in prop2cfg()
236 btif_config_set_int(bdstr, in prop2cfg()
243 btif_config_set_str(bdstr, in prop2cfg()
253 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_ALIASE, value); in prop2cfg()
266 btif_config_set_int(bdstr, in prop2cfg()
270 btif_config_set_int(bdstr, in prop2cfg()
287 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_SERVICE, value); in prop2cfg()
298 btif_config_set_int(bdstr, in prop2cfg()
300 btif_config_set_int(bdstr, in prop2cfg()
302 btif_config_set_int(bdstr, in prop2cfg()
316 bdstr_t bdstr = {0}; in cfg2prop() local
318 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in cfg2prop()
319 BTIF_TRACE_DEBUG("in, bd addr:%s, prop type:%d, len:%d", bdstr, prop->type, prop->len); in cfg2prop()
330 ret = btif_config_get_int(bdstr, in cfg2prop()
337 ret = btif_config_get_str(bdstr, in cfg2prop()
353 ret = btif_config_get_str(bdstr, in cfg2prop()
376 ret = btif_config_get_int(bdstr, in cfg2prop()
381 ret = btif_config_get_int(bdstr, BTIF_STORAGE_PATH_REMOTE_DEVTYPE, (int*)prop->val); in cfg2prop()
387 if(btif_config_get_str(bdstr, in cfg2prop()
409 ret = btif_config_get_int(bdstr, in cfg2prop()
413 ret = btif_config_get_int(bdstr, in cfg2prop()
417 ret = btif_config_get_int(bdstr, in cfg2prop()
439 static bt_status_t btif_in_fetch_bonded_device(const char *bdstr) in btif_in_fetch_bonded_device() argument
445 if(btif_config_get_bin(bdstr, "LinkKey", (uint8_t *)link_key, &size)) in btif_in_fetch_bonded_device()
448 if(btif_config_get_int(bdstr, "LinkKeyType", &linkkey_type)) in btif_in_fetch_bonded_device()
458 if((btif_in_fetch_bonded_ble_device(bdstr, FALSE, NULL) != BT_STATUS_SUCCESS) in btif_in_fetch_bonded_device()
461 BTIF_TRACE_DEBUG("Remote device:%s, no link key or ble key found", bdstr); in btif_in_fetch_bonded_device()
467 BTIF_TRACE_DEBUG("Remote device:%s, no link key found", bdstr); in btif_in_fetch_bonded_device()
804 bdstr_t bdstr; in btif_storage_add_bonded_device() local
805 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_add_bonded_device()
806 int ret = btif_config_set_int(bdstr, "LinkKeyType", (int)key_type); in btif_storage_add_bonded_device()
807 ret &= btif_config_set_int(bdstr, "PinLength", (int)pin_length); in btif_storage_add_bonded_device()
808 ret &= btif_config_set_bin(bdstr, "LinkKey", link_key, sizeof(LINK_KEY)); in btif_storage_add_bonded_device()
826 bdstr_t bdstr; in btif_storage_remove_bonded_device() local
827 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_remove_bonded_device()
828 BTIF_TRACE_DEBUG("in bd addr:%s", bdstr); in btif_storage_remove_bonded_device()
835 if(btif_config_exist(bdstr, "LinkKeyType")) in btif_storage_remove_bonded_device()
836 ret &= btif_config_remove(bdstr, "LinkKeyType"); in btif_storage_remove_bonded_device()
837 if(btif_config_exist(bdstr, "PinLength")) in btif_storage_remove_bonded_device()
838 ret &= btif_config_remove(bdstr, "PinLength"); in btif_storage_remove_bonded_device()
839 if(btif_config_exist(bdstr, "LinkKey")) in btif_storage_remove_bonded_device()
840 ret &= btif_config_remove(bdstr, "LinkKey"); in btif_storage_remove_bonded_device()
991 bdstr_t bdstr; in btif_storage_add_ble_bonding_key() local
992 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_add_ble_bonding_key()
1017 int ret = btif_config_set_bin(bdstr, name, (const uint8_t *)key, key_length); in btif_storage_add_ble_bonding_key()
1037 bdstr_t bdstr; in btif_storage_get_ble_bonding_key() local
1038 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_get_ble_bonding_key()
1063 int ret = btif_config_get_bin(bdstr, name, (uint8_t *)key_value, &length); in btif_storage_get_ble_bonding_key()
1080 bdstr_t bdstr; in btif_storage_remove_ble_bonding_keys() local
1081 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_remove_ble_bonding_keys()
1082 BTIF_TRACE_DEBUG(" %s in bd addr:%s",__FUNCTION__, bdstr); in btif_storage_remove_ble_bonding_keys()
1084 if(btif_config_exist(bdstr, "LE_KEY_PENC")) in btif_storage_remove_ble_bonding_keys()
1085 ret &= btif_config_remove(bdstr, "LE_KEY_PENC"); in btif_storage_remove_ble_bonding_keys()
1086 if(btif_config_exist(bdstr, "LE_KEY_PID")) in btif_storage_remove_ble_bonding_keys()
1087 ret &= btif_config_remove(bdstr, "LE_KEY_PID"); in btif_storage_remove_ble_bonding_keys()
1088 if(btif_config_exist(bdstr, "LE_KEY_PCSRK")) in btif_storage_remove_ble_bonding_keys()
1089 ret &= btif_config_remove(bdstr, "LE_KEY_PCSRK"); in btif_storage_remove_ble_bonding_keys()
1090 if(btif_config_exist(bdstr, "LE_KEY_LENC")) in btif_storage_remove_ble_bonding_keys()
1091 ret &= btif_config_remove(bdstr, "LE_KEY_LENC"); in btif_storage_remove_ble_bonding_keys()
1092 if(btif_config_exist(bdstr, "LE_KEY_LCSRK")) in btif_storage_remove_ble_bonding_keys()
1093 ret &= btif_config_remove(bdstr, "LE_KEY_LCSRK"); in btif_storage_remove_ble_bonding_keys()
1257 bdstr_t bdstr; in btif_storage_set_remote_addr_type() local
1258 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_set_remote_addr_type()
1259 int ret = btif_config_set_int(bdstr, "AddrType", (int)addr_type); in btif_storage_set_remote_addr_type()
1277 bdstr_t bdstr; in btif_storage_get_remote_addr_type() local
1278 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_get_remote_addr_type()
1279 int ret = btif_config_get_int(bdstr, "AddrType", addr_type); in btif_storage_get_remote_addr_type()
1301 bdstr_t bdstr; in btif_storage_add_hid_device_info() local
1303 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_add_hid_device_info()
1304 btif_config_set_int(bdstr, "HidAttrMask", attr_mask); in btif_storage_add_hid_device_info()
1305 btif_config_set_int(bdstr, "HidSubClass", sub_class); in btif_storage_add_hid_device_info()
1306 btif_config_set_int(bdstr, "HidAppId", app_id); in btif_storage_add_hid_device_info()
1307 btif_config_set_int(bdstr, "HidVendorId", vendor_id); in btif_storage_add_hid_device_info()
1308 btif_config_set_int(bdstr, "HidProductId", product_id); in btif_storage_add_hid_device_info()
1309 btif_config_set_int(bdstr, "HidVersion", version); in btif_storage_add_hid_device_info()
1310 btif_config_set_int(bdstr, "HidCountryCode", ctry_code); in btif_storage_add_hid_device_info()
1311 btif_config_set_int(bdstr, "HidSSRMaxLatency", ssr_max_latency); in btif_storage_add_hid_device_info()
1312 btif_config_set_int(bdstr, "HidSSRMinTimeout", ssr_min_tout); in btif_storage_add_hid_device_info()
1314 btif_config_set_bin(bdstr, "HidDescriptor", dsc_list, dl_len); in btif_storage_add_hid_device_info()
1418 bdstr_t bdstr; in btif_storage_remove_hid_info() local
1419 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_remove_hid_info()
1421 btif_config_remove(bdstr, "HidAttrMask"); in btif_storage_remove_hid_info()
1422 btif_config_remove(bdstr, "HidSubClass"); in btif_storage_remove_hid_info()
1423 btif_config_remove(bdstr, "HidAppId"); in btif_storage_remove_hid_info()
1424 btif_config_remove(bdstr, "HidVendorId"); in btif_storage_remove_hid_info()
1425 btif_config_remove(bdstr, "HidProductId"); in btif_storage_remove_hid_info()
1426 btif_config_remove(bdstr, "HidVersion"); in btif_storage_remove_hid_info()
1427 btif_config_remove(bdstr, "HidCountryCode"); in btif_storage_remove_hid_info()
1428 btif_config_remove(bdstr, "HidSSRMaxLatency"); in btif_storage_remove_hid_info()
1429 btif_config_remove(bdstr, "HidSSRMinTimeout"); in btif_storage_remove_hid_info()
1430 btif_config_remove(bdstr, "HidDescriptor"); in btif_storage_remove_hid_info()
1541 bdstr_t bdstr; in btif_storage_is_device_autopair_blacklisted() local
1546 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_is_device_autopair_blacklisted()
1549 bdstr[8] = '\0'; in btif_storage_is_device_autopair_blacklisted()
1554 if (strcasestr(value,bdstr) != NULL) in btif_storage_is_device_autopair_blacklisted()
1586 if (strstr(value,bdstr) != NULL) in btif_storage_is_device_autopair_blacklisted()
1605 bdstr_t bdstr; in btif_storage_add_device_to_autopair_blacklist() local
1609 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_add_device_to_autopair_blacklist()
1610 strlcpy(input_value, (char*)bdstr, sizeof(input_value)); in btif_storage_add_device_to_autopair_blacklist()
1644 bdstr_t bdstr; in btif_storage_is_fixed_pin_zeros_keyboard() local
1647 bdaddr_to_string(remote_bd_addr, bdstr, sizeof(bdstr)); in btif_storage_is_fixed_pin_zeros_keyboard()
1650 bdstr[8] = '\0'; in btif_storage_is_fixed_pin_zeros_keyboard()
1656 if (strcasestr(linebuf,bdstr) != NULL) in btif_storage_is_fixed_pin_zeros_keyboard()