Searched refs:hal_name (Results 1 – 3 of 3) sorted by relevance
102 bt_bdname_t hal_name; in NotifyAdapterNamePropertyChanged() local103 strncpy(reinterpret_cast<char*>(hal_name.name), name.c_str(), in NotifyAdapterNamePropertyChanged()104 std::min(sizeof(hal_name) - 1, name.length())); in NotifyAdapterNamePropertyChanged()105 reinterpret_cast<char*>(hal_name.name)[name.length()] = '\0'; in NotifyAdapterNamePropertyChanged()108 property.len = sizeof(hal_name); in NotifyAdapterNamePropertyChanged()109 property.val = &hal_name; in NotifyAdapterNamePropertyChanged()
161 bt_bdname_t hal_name; in SetName() local162 size_t max_name_len = sizeof(hal_name.name); in SetName()171 strncpy(reinterpret_cast<char*>(hal_name.name), name.c_str(), in SetName()176 if (!SetAdapterProperty(BT_PROPERTY_BDNAME, &hal_name, sizeof(hal_name))) { in SetName()274 bt_bdname_t* hal_name = reinterpret_cast<bt_bdname_t*>(property->val); in AdapterPropertiesCallback() local275 std::string name = reinterpret_cast<char*>(hal_name->name); in AdapterPropertiesCallback()
216 bt_bdname_t hal_name; in TEST_F() local219 EXPECT_FALSE(adapter_->SetName(std::string(sizeof(hal_name.name), 'a'))); in TEST_F()