Home
last modified time | relevance | path

Searched refs:PresetCtpOpcode (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/bta/has/
Dhas_ctp.cc116 if ((op != static_cast<std::underlying_type_t<PresetCtpOpcode>>( in FromCharacteristicValue()
117 PresetCtpOpcode::READ_PRESET_RESPONSE)) && in FromCharacteristicValue()
118 (op != static_cast<std::underlying_type_t<PresetCtpOpcode>>( in FromCharacteristicValue()
119 PresetCtpOpcode::PRESET_CHANGED))) { in FromCharacteristicValue()
125 ntf.opcode = PresetCtpOpcode(op); in FromCharacteristicValue()
126 if (ntf.opcode == bluetooth::le_audio::has::PresetCtpOpcode::PRESET_CHANGED) { in FromCharacteristicValue()
130 bluetooth::le_audio::has::PresetCtpOpcode::READ_PRESET_RESPONSE) { in FromCharacteristicValue()
144 case PresetCtpOpcode::READ_PRESETS: in ToCharacteristicValue()
148 pp, static_cast<std::underlying_type_t<PresetCtpOpcode>>(opcode)); in ToCharacteristicValue()
152 case PresetCtpOpcode::SET_ACTIVE_PRESET: in ToCharacteristicValue()
[all …]
Dhas_ctp.h46 enum class PresetCtpOpcode : uint8_t { enum
63 std::ostream& operator<<(std::ostream& out, const PresetCtpOpcode value);
65 static constexpr uint16_t PresetCtpOpcode2Bitmask(PresetCtpOpcode op) { in PresetCtpOpcode2Bitmask()
66 return ((uint16_t)0b1 << static_cast<std::underlying_type_t<PresetCtpOpcode>>( in PresetCtpOpcode2Bitmask()
72 PresetCtpOpcode2Bitmask(PresetCtpOpcode::READ_PRESETS) |
73 PresetCtpOpcode2Bitmask(PresetCtpOpcode::SET_ACTIVE_PRESET) |
74 PresetCtpOpcode2Bitmask(PresetCtpOpcode::SET_NEXT_PRESET) |
75 PresetCtpOpcode2Bitmask(PresetCtpOpcode::SET_PREV_PRESET);
79 PresetCtpOpcode2Bitmask(PresetCtpOpcode::SET_ACTIVE_PRESET_SYNC) |
80 PresetCtpOpcode2Bitmask(PresetCtpOpcode::SET_NEXT_PRESET_SYNC) |
[all …]
Dhas_client.cc69 using bluetooth::le_audio::has::PresetCtpOpcode;
429 if (op.opcode == PresetCtpOpcode::READ_PRESETS) { in OnHasPresetIndexOperation()
630 case PresetCtpOpcode::READ_PRESETS: in CpPresetIndexOperation()
639 case PresetCtpOpcode::SET_ACTIVE_PRESET: in CpPresetIndexOperation()
640 case PresetCtpOpcode::SET_ACTIVE_PRESET_SYNC: in CpPresetIndexOperation()
785 PresetCtpOpcode opcode) { in shouldRequestSyncedOp()
814 PresetCtpOpcode::SET_ACTIVE_PRESET_SYNC) in SelectActivePreset()
815 ? PresetCtpOpcode::SET_ACTIVE_PRESET_SYNC in SelectActivePreset()
816 : PresetCtpOpcode::SET_ACTIVE_PRESET; in SelectActivePreset()
826 PresetCtpOpcode::SET_NEXT_PRESET_SYNC) in NextActivePreset()
[all …]
Dhas_client_test.cc327 ::bluetooth::le_audio::has::PresetCtpOpcode>>( in set_sample_database()
328 ::bluetooth::le_audio::has::PresetCtpOpcode::OP_MAX_)) { in set_sample_database()
337 static_cast<::bluetooth::le_audio::has::PresetCtpOpcode>(op)) { in set_sample_database()
338 case ::bluetooth::le_audio::has::PresetCtpOpcode::READ_PRESETS: in set_sample_database()
356 case ::bluetooth::le_audio::has::PresetCtpOpcode:: in set_sample_database()
385 case ::bluetooth::le_audio::has::PresetCtpOpcode:: in set_sample_database()
434 case ::bluetooth::le_audio::has::PresetCtpOpcode::SET_NEXT_PRESET: { in set_sample_database()
460 case ::bluetooth::le_audio::has::PresetCtpOpcode::SET_PREV_PRESET: { in set_sample_database()
496 case ::bluetooth::le_audio::has::PresetCtpOpcode:: in set_sample_database()
552 case ::bluetooth::le_audio::has::PresetCtpOpcode:: in set_sample_database()
[all …]
Dhas_types.h167 PresetCtpOpcode2Bitmask(PresetCtpOpcode::WRITE_PRESET_NAME); in RefreshSupportedOpcodesBitmask()
248 inline bool SupportsOperation(PresetCtpOpcode op) { in SupportsOperation()