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.h180 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets; variable
224 has_presets.clear(); in ClearSvcData()
250 if (has_presets.count(preset_index)) {
251 return writable_only ? has_presets.find(preset_index)->IsWritable()
259 if (has_presets.count(preset_index)) {
260 decltype(has_presets)::iterator preset = has_presets.find(preset_index);
268 if (has_presets.count(index)) { in GetPresetInfo()
269 auto preset = *has_presets.find(index); in GetPresetInfo()
280 all_info.reserve(has_presets.size()); in GetAllPresetInfo()
282 for (auto const& preset : has_presets) { in GetAllPresetInfo()
[all …]
Dhas_client_test.cc1341 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1349 .WillByDefault([&has_presets](const RawAddress& address, in TEST_F()
1354 device.has_presets = has_presets; in TEST_F()
1396 auto preset = has_presets.find(info.preset_index); in TEST_F()
1397 ASSERT_NE(preset, has_presets.end()); in TEST_F()
1411 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1419 .WillByDefault([&has_presets](const RawAddress& address, in TEST_F()
1424 device.has_presets = has_presets; in TEST_F()
1461 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets = {{ in TEST_F() local
1471 has_presets); in TEST_F()
[all …]
Dhas_client.cc974 preset_indices.reserve(device.has_presets.size()); in NotifyHasDeviceValid()
975 for (auto const& preset : device.has_presets) { in NotifyHasDeviceValid()
1167 device.has_presets.erase(ntf.preset->GetIndex()); in OnHasPresetReadResponseNotification()
1168 device.has_presets.insert(ntf.preset.value()); in OnHasPresetReadResponseNotification()
1222 device.has_presets.erase(nt.preset->GetIndex()); in OnHasPresetGenericUpdate()
1226 auto it = device.has_presets.begin(); in OnHasPresetGenericUpdate()
1227 while (it != device.has_presets.end()) { in OnHasPresetGenericUpdate()
1233 it = device.has_presets.erase(it); in OnHasPresetGenericUpdate()
1241 device.has_presets.insert(*nt.preset); in OnHasPresetGenericUpdate()
1326 auto preset = device.has_presets.extract(nt.index).value(); in OnHasPresetAvailabilityChanged()
[all …]