Lines Matching refs:nt
1219 auto nt = device.ctp_notifications_.front(); in OnHasPresetGenericUpdate() local
1222 if (nt.opcode != PresetCtpOpcode::PRESET_CHANGED) break; in OnHasPresetGenericUpdate()
1223 if (nt.change_id != PresetCtpChangeId::PRESET_GENERIC_UPDATE) break; in OnHasPresetGenericUpdate()
1225 if (nt.preset.has_value()) { in OnHasPresetGenericUpdate()
1229 if ((it->GetIndex() > nt.prev_index) && 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()
1256 device.has_journal_.Append(HasJournalRecord(nt)); in OnHasPresetGenericUpdate()
1331 auto nt = device.ctp_notifications_.front(); in OnHasPresetAvailabilityChanged() local
1334 if (nt.opcode != PresetCtpOpcode::PRESET_CHANGED) break; in OnHasPresetAvailabilityChanged()
1336 auto preset = device.has_presets.extract(nt.index).value(); in OnHasPresetAvailabilityChanged()
1340 if ((nt.change_id != PresetCtpChangeId::PRESET_AVAILABLE) && in OnHasPresetAvailabilityChanged()
1341 (nt.change_id != PresetCtpChangeId::PRESET_UNAVAILABLE)) in OnHasPresetAvailabilityChanged()
1345 if (nt.change_id == PresetCtpChangeId::PRESET_AVAILABLE) { in OnHasPresetAvailabilityChanged()
1353 auto info = device.GetPresetInfo(nt.index); in OnHasPresetAvailabilityChanged()
1357 device.has_journal_.Append(HasJournalRecord(nt)); in OnHasPresetAvailabilityChanged()
1380 auto nt = device.ctp_notifications_.front(); in OnHasPresetDeleted() local
1383 if (nt.opcode != PresetCtpOpcode::PRESET_CHANGED) break; in OnHasPresetDeleted()
1386 if (nt.change_id != PresetCtpChangeId::PRESET_DELETED) break; in OnHasPresetDeleted()
1388 auto info = device.GetPresetInfo(nt.index); in OnHasPresetDeleted()
1391 if (device.has_presets.count(nt.index)) { in OnHasPresetDeleted()
1393 device.has_presets.erase(nt.index); in OnHasPresetDeleted()
1397 device.has_journal_.Append(HasJournalRecord(nt)); in OnHasPresetDeleted()