Home
last modified time | relevance | path

Searched refs:HasPreset (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/bta/has/
Dhas_preset.h33 class HasPreset {
47 HasPreset(uint8_t index, uint8_t props = 0,
52 HasPreset() in HasPreset() function
63 HasPreset& operator=(const HasPreset& other) {
74 bool operator==(const HasPreset& b) const {
78 bool operator!=(const HasPreset& b) const {
82 bool operator<(const HasPreset& b) const { return index_ < b.index_; }
83 friend std::ostream& operator<<(std::ostream& os, const HasPreset& b);
87 bool operator()(HasPreset const& a, int index) const { in operator()
90 bool operator()(int index, HasPreset const& a) const { in operator()
[all …]
Dhas_client_test.cc63 using ::bluetooth::le_audio::has::HasPreset;
135 std::map<uint16_t, std::set<HasPreset, HasPreset::ComparatorDesc>>
249 std::optional<std::set<HasPreset, HasPreset::ComparatorDesc>> presets_op = in set_sample_database() argument
256 HasPreset(6, HasPreset::kPropertyAvailable, "Universal"), in set_sample_database()
257 HasPreset( in set_sample_database()
258 55, HasPreset::kPropertyAvailable | HasPreset::kPropertyWritable, in set_sample_database()
635 auto new_preset = HasPreset(current->GetIndex(), in set_sample_database()
912 uint16_t handle, const HasPreset& preset, in InjectNotifyReadPresetResponse()
927 const HasPreset& preset, uint8_t prev_index, in InjectPresetChanged()
1140 std::optional<std::set<HasPreset, HasPreset::ComparatorDesc>> presets = in SetSampleDatabaseHasPresetsNtf() argument
[all …]
Dhas_preset.cc29 std::optional<HasPreset> HasPreset::FromCharacteristicValue( in FromCharacteristicValue()
37 HasPreset preset; in FromCharacteristicValue()
47 void HasPreset::ToCharacteristicValue(std::vector<uint8_t>& value) const { in ToCharacteristicValue()
58 uint8_t* HasPreset::Serialize(uint8_t* p_out, size_t buffer_size) const { in Serialize()
79 const uint8_t* HasPreset::Deserialize(const uint8_t* p_in, size_t len, in Deserialize()
80 HasPreset& preset) { in Deserialize()
81 const uint8_t nonamed_size = HasPreset(0, 0).SerializedSize(); in Deserialize()
110 std::ostream& operator<<(std::ostream& os, const HasPreset& b) { in operator <<()
Dhas_types.h184 std::set<HasPreset, HasPreset::ComparatorDesc> has_presets;
261 const HasPreset* GetPreset(uint8_t preset_index,
334 HasPreset preset; in DeserializePresets()
354 auto* p_new = HasPreset::Deserialize(p_in, p_end - p_in, preset); in DeserializePresets()
Dhas_ctp.cc32 if (len < sizeof(ntf.prev_index) + HasPreset::kCharValueMinSize) { in ParsePresetGenericUpdate()
40 ntf.preset = HasPreset::FromCharacteristicValue(len, value); in ParsePresetGenericUpdate()
58 if (len < sizeof(ntf.is_last) + HasPreset::kCharValueMinSize) { in ParsePresetReadResponse()
66 ntf.preset = HasPreset::FromCharacteristicValue(len, value); in ParsePresetReadResponse()
Dhas_ctp.h92 std::optional<HasPreset> preset;
Dhas_client.cc61 using bluetooth::le_audio::has::HasPreset;
713 bluetooth::le_audio::has::HasPreset::kPresetNameLengthLimit) in CpWritePresetNameOperationWriteReq()
1346 new_props |= HasPreset::kPropertyAvailable; in OnHasPresetAvailabilityChanged()
1348 new_props &= !HasPreset::kPropertyAvailable; in OnHasPresetAvailabilityChanged()
1351 HasPreset(preset.GetIndex(), new_props, preset.GetName())); in OnHasPresetAvailabilityChanged()