Lines Matching refs:preset
861 auto* preset = device->GetPreset(preset_index); in GetPresetInfo() local
862 if (preset == nullptr) { in GetPresetInfo()
872 .writable = preset->IsWritable(), in GetPresetInfo()
873 .available = preset->IsAvailable(), in GetPresetInfo()
874 .preset_name = preset->GetName()}}); in GetPresetInfo()
982 for (auto const& preset : device.has_presets) { in NotifyHasDeviceValid() local
983 preset_indices.push_back(preset.GetIndex()); in NotifyHasDeviceValid()
1171 if (ntf.preset.has_value()) { in OnHasPresetReadResponseNotification()
1172 device.has_presets.erase(ntf.preset->GetIndex()); in OnHasPresetReadResponseNotification()
1173 device.has_presets.insert(ntf.preset.value()); in OnHasPresetReadResponseNotification()
1180 auto info = device.GetPresetInfo(ntf.preset.value().GetIndex()); in OnHasPresetReadResponseNotification()
1225 if (nt.preset.has_value()) { in OnHasPresetGenericUpdate()
1230 (it->GetIndex() < nt.preset->GetIndex())) { in OnHasPresetGenericUpdate()
1241 auto info = device.GetPreset(nt.preset->GetIndex()); in OnHasPresetGenericUpdate()
1243 if (*info != *nt.preset) { in OnHasPresetGenericUpdate()
1244 device.has_presets.erase(nt.preset->GetIndex()); in OnHasPresetGenericUpdate()
1245 device.has_presets.insert(*nt.preset); in OnHasPresetGenericUpdate()
1247 *device.GetPresetInfo(nt.preset->GetIndex())); in OnHasPresetGenericUpdate()
1250 device.has_presets.insert(*nt.preset); in OnHasPresetGenericUpdate()
1251 updated_infos.push_back(*device.GetPresetInfo(nt.preset->GetIndex())); in OnHasPresetGenericUpdate()
1336 auto preset = device.has_presets.extract(nt.index).value(); in OnHasPresetAvailabilityChanged() local
1337 auto new_props = preset.GetProperties(); in OnHasPresetAvailabilityChanged()
1351 HasPreset(preset.GetIndex(), new_props, preset.GetName())); in OnHasPresetAvailabilityChanged()