Home | History | Annotate | Download | only in src

Lines Matching refs:property

87 /* This is a local property to add a device found */
195 BTIF_TRACE_ERROR("property type:%d, len:%d is invalid", prop->type,
282 BTIF_TRACE_ERROR("property type:%d, len:%d is invalid", prop->type,
508 * Caller is expected to provide a valid pointer to 'property->value' based on
509 * the property->type.
549 * Description BTIF storage API - Fetches the adapter property->type
550 * from NVRAM and fills property->val.
551 * Caller should provide memory for property->val and
552 * set the property->val
558 bt_status_t btif_storage_get_adapter_property(bt_property_t* property) {
560 if (property->type == BT_PROPERTY_BDADDR) {
561 RawAddress* bd_addr = (RawAddress*)property->val;
574 property->len = RawAddress::kLength;
576 } else if (property->type == BT_PROPERTY_ADAPTER_BONDED_DEVICES) {
583 "Property:BT_PROPERTY_ADAPTER_BONDED_DEVICES",
587 property->len = bonded_devices.num_devices * RawAddress::kLength;
588 memcpy(property->val, bonded_devices.devices, property->len);
593 } else if (property->type == BT_PROPERTY_UUIDS) {
595 Uuid* p_uuid = reinterpret_cast<Uuid*>(property->val);
635 property->len = (num_uuids) * sizeof(Uuid);
640 if (!cfg2prop(NULL, property)) {
641 return btif_dm_get_adapter_property(property);
650 * Description BTIF storage API - Stores the adapter property
657 bt_status_t btif_storage_set_adapter_property(bt_property_t* property) {
658 return prop2cfg(NULL, property) ? BT_STATUS_SUCCESS : BT_STATUS_FAIL;
665 * Description BTIF storage API - Fetches the remote device property->type
666 * from NVRAM and fills property->val.
667 * Caller should provide memory for property->val and
668 * set the property->val
675 const RawAddress* remote_bd_addr, bt_property_t* property) {
676 return cfg2prop(remote_bd_addr, property) ? BT_STATUS_SUCCESS
683 * Description BTIF storage API - Stores the remote device property
691 const RawAddress* remote_bd_addr, bt_property_t* property) {
692 return prop2cfg(remote_bd_addr, property) ? BT_STATUS_SUCCESS
712 /* TODO: If writing a property, fails do we go back undo the earlier
831 // Add BT_PROPERTY_BDADDR property into list only when successful.
832 // Otherwise, skip this property entry.
1576 bt_property_t property;
1577 property.type = BT_PROPERTY_BDNAME;
1578 property.len = BTM_MAX_REM_BD_NAME_LEN;
1579 property.val = name;
1581 return (btif_storage_get_remote_device_property(&bd_addr, &property) ==