Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/bta/has/
Dhas_types.h184 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets; variable
228 has_presets.clear(); in ClearSvcData()
254 if (has_presets.count(preset_index)) {
255 return writable_only ? has_presets.find(preset_index)->IsWritable()
263 if (has_presets.count(preset_index)) {
264 decltype(has_presets)::iterator preset = has_presets.find(preset_index);
272 if (has_presets.count(index)) { in GetPresetInfo()
273 auto preset = *has_presets.find(index); in GetPresetInfo()
284 all_info.reserve(has_presets.size()); in GetAllPresetInfo()
286 for (auto const& preset : has_presets) { in GetAllPresetInfo()
[all …]
Dhas_client_test.cc1431 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1439 .WillByDefault([&has_presets](const RawAddress& address, in TEST_F()
1444 device.has_presets = has_presets; in TEST_F()
1486 auto preset = has_presets.find(info.preset_index); in TEST_F()
1487 ASSERT_NE(preset, has_presets.end()); in TEST_F()
1501 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1509 .WillByDefault([&has_presets](const RawAddress& address, in TEST_F()
1514 device.has_presets = has_presets; in TEST_F()
1551 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1561 has_presets); in TEST_F()
[all …]
Dhas_client.cc981 preset_indices.reserve(device.has_presets.size()); in NotifyHasDeviceValid()
982 for (auto const& preset : device.has_presets) { in NotifyHasDeviceValid()
1172 device.has_presets.erase(ntf.preset->GetIndex()); in OnHasPresetReadResponseNotification()
1173 device.has_presets.insert(ntf.preset.value()); in OnHasPresetReadResponseNotification()
1227 auto it = device.has_presets.begin(); in OnHasPresetGenericUpdate()
1228 while (it != device.has_presets.end()) { in OnHasPresetGenericUpdate()
1234 it = device.has_presets.erase(it); in OnHasPresetGenericUpdate()
1244 device.has_presets.erase(nt.preset->GetIndex()); in OnHasPresetGenericUpdate()
1245 device.has_presets.insert(*nt.preset); in OnHasPresetGenericUpdate()
1250 device.has_presets.insert(*nt.preset); in OnHasPresetGenericUpdate()
[all …]