Home
last modified time | relevance | path

Searched refs:hal_name (Results 1 – 3 of 3) sorted by relevance

/system/bt/service/hal/
Dfake_bluetooth_interface.cpp107 bt_bdname_t hal_name; in NotifyAdapterNamePropertyChanged() local
108 strncpy(reinterpret_cast<char*>(hal_name.name), in NotifyAdapterNamePropertyChanged()
110 std::min(sizeof(hal_name)-1, name.length())); in NotifyAdapterNamePropertyChanged()
111 reinterpret_cast<char*>(hal_name.name)[name.length()] = '\0'; in NotifyAdapterNamePropertyChanged()
114 property.len = sizeof(hal_name); in NotifyAdapterNamePropertyChanged()
115 property.val = &hal_name; in NotifyAdapterNamePropertyChanged()
/system/bt/service/
Dadapter.cpp163 bt_bdname_t hal_name; in SetName() local
164 size_t max_name_len = sizeof(hal_name.name); in SetName()
173 strncpy(reinterpret_cast<char*>(hal_name.name), name.c_str(), in SetName()
178 if (!SetAdapterProperty(BT_PROPERTY_BDNAME, &hal_name, sizeof(hal_name))) { in SetName()
271 bt_bdname_t* hal_name = reinterpret_cast<bt_bdname_t*>(property->val); in AdapterPropertiesCallback() local
272 std::string name = reinterpret_cast<char*>(hal_name->name); in AdapterPropertiesCallback()
/system/bt/service/test/
Dadapter_unittest.cpp218 bt_bdname_t hal_name; in TEST_F() local
221 EXPECT_FALSE(adapter_->SetName(std::string(sizeof(hal_name.name), 'a'))); in TEST_F()