Home
last modified time | relevance | path

Searched refs:addr_or_group_id (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Bluetooth/system/btif/src/
Dbtif_has_client.cc77 void SelectActivePreset(std::variant<RawAddress, int> addr_or_group_id, in SelectActivePreset() argument
82 std::move(addr_or_group_id), preset_index)); in SelectActivePreset()
86 std::variant<RawAddress, int> addr_or_group_id) override { in NextActivePreset() argument
89 std::move(addr_or_group_id))); in NextActivePreset()
93 std::variant<RawAddress, int> addr_or_group_id) override { in PreviousActivePreset() argument
96 std::move(addr_or_group_id))); in PreviousActivePreset()
105 void SetPresetName(std::variant<RawAddress, int> addr_or_group_id, in SetPresetName() argument
109 std::move(addr_or_group_id), preset_index, in SetPresetName()
143 void OnActivePresetSelected(std::variant<RawAddress, int> addr_or_group_id, in OnActivePresetSelected() argument
146 Unretained(callbacks_), std::move(addr_or_group_id), in OnActivePresetSelected()
[all …]
Dbtif_vc.cc139 void SetVolume(std::variant<RawAddress, int> addr_or_group_id, in SetVolume() argument
150 std::move(addr_or_group_id), volume)); in SetVolume()
153 void Mute(std::variant<RawAddress, int> addr_or_group_id) override { in Mute() argument
163 std::move(addr_or_group_id))); in Mute()
166 void Unmute(std::variant<RawAddress, int> addr_or_group_id) override { in Unmute() argument
176 std::move(addr_or_group_id))); in Unmute()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_has.h94 std::variant<RawAddress, int> addr_or_group_id, uint8_t preset_index) = 0;
98 std::variant<RawAddress, int> addr_or_group_id, ErrorCode error_code) = 0;
101 virtual void OnPresetInfo(std::variant<RawAddress, int> addr_or_group_id,
106 virtual void OnPresetInfoError(std::variant<RawAddress, int> addr_or_group_id,
112 std::variant<RawAddress, int> addr_or_group_id, uint8_t preset_index,
131 std::variant<RawAddress, int> addr_or_group_id, uint8_t preset_index) = 0;
135 std::variant<RawAddress, int> addr_or_group_id) = 0;
139 std::variant<RawAddress, int> addr_or_group_id) = 0;
145 virtual void SetPresetName(std::variant<RawAddress, int> addr_or_group_id,
Dbt_vc.h87 virtual void SetVolume(std::variant<RawAddress, int> addr_or_group_id,
90 virtual void Mute(std::variant<RawAddress, int> addr_or_group_id) = 0;
93 virtual void Unmute(std::variant<RawAddress, int> addr_or_group_id) = 0;
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_hap_client.cpp130 void OnActivePresetSelected(std::variant<RawAddress, int> addr_or_group_id, in OnActivePresetSelected() argument
136 if (std::holds_alternative<RawAddress>(addr_or_group_id)) { in OnActivePresetSelected()
145 (jbyte*)&std::get<RawAddress>(addr_or_group_id)); in OnActivePresetSelected()
152 std::get<int>(addr_or_group_id), (jint)preset_index); in OnActivePresetSelected()
156 void OnActivePresetSelectError(std::variant<RawAddress, int> addr_or_group_id, in OnActivePresetSelectError() argument
162 if (std::holds_alternative<RawAddress>(addr_or_group_id)) { in OnActivePresetSelectError()
171 (jbyte*)&std::get<RawAddress>(addr_or_group_id)); in OnActivePresetSelectError()
179 std::get<int>(addr_or_group_id), (jint)error_code); in OnActivePresetSelectError()
183 void OnPresetInfo(std::variant<RawAddress, int> addr_or_group_id, in OnPresetInfo() argument
219 if (std::holds_alternative<RawAddress>(addr_or_group_id)) { in OnPresetInfo()
[all …]
/packages/modules/Bluetooth/system/bta/include/
Dbta_has_api.h43 std::variant<RawAddress, int> addr_or_group_id, uint8_t preset_index) = 0;
45 std::variant<RawAddress, int> addr_or_group_id) = 0;
47 std::variant<RawAddress, int> addr_or_group_id) = 0;
49 virtual void SetPresetName(std::variant<RawAddress, int> addr_or_group_id,
Dbta_vc_api.h42 virtual void SetVolume(std::variant<RawAddress, int> addr_or_group_id,
44 virtual void Mute(std::variant<RawAddress, int> addr_or_group_id) = 0;
45 virtual void UnMute(std::variant<RawAddress, int> addr_or_group_id) = 0;
/packages/modules/Bluetooth/system/bta/vc/
Dvc.cc880 void MuteUnmute(std::variant<RawAddress, int> addr_or_group_id, bool mute) { in MuteUnmute() argument
885 if (std::holds_alternative<RawAddress>(addr_or_group_id)) { in MuteUnmute()
887 std::get<RawAddress>(addr_or_group_id)); in MuteUnmute()
898 auto group_id = std::get<int>(addr_or_group_id); in MuteUnmute()
946 void Mute(std::variant<RawAddress, int> addr_or_group_id) override { in Mute() argument
948 MuteUnmute(addr_or_group_id, true /* mute */); in Mute()
951 void UnMute(std::variant<RawAddress, int> addr_or_group_id) override { in UnMute() argument
953 MuteUnmute(addr_or_group_id, false /* mute */); in UnMute()
956 void SetVolume(std::variant<RawAddress, int> addr_or_group_id, in SetVolume() argument
961 if (std::holds_alternative<RawAddress>(addr_or_group_id)) { in SetVolume()
[all …]
/packages/modules/Bluetooth/system/bta/has/
Dhas_client.cc784 bool shouldRequestSyncedOp(std::variant<RawAddress, int> addr_or_group_id, in shouldRequestSyncedOp() argument
790 if (std::holds_alternative<RawAddress>(addr_or_group_id)) return false; in shouldRequestSyncedOp()
795 auto addresses = csis_api->GetDeviceList(std::get<int>(addr_or_group_id)); in shouldRequestSyncedOp()
809 void SelectActivePreset(std::variant<RawAddress, int> addr_or_group_id, in SelectActivePreset() argument
813 auto opcode = shouldRequestSyncedOp(addr_or_group_id, in SelectActivePreset()
818 CpPresetIndexOperation(HasCtpOp(addr_or_group_id, opcode, preset_index)); in SelectActivePreset()
822 std::variant<RawAddress, int> addr_or_group_id) override { in NextActivePreset() argument
825 auto opcode = shouldRequestSyncedOp(addr_or_group_id, in NextActivePreset()
830 CpPresetsCycleOperation(HasCtpOp(addr_or_group_id, opcode)); in NextActivePreset()
834 std::variant<RawAddress, int> addr_or_group_id) override { in PreviousActivePreset() argument
[all …]
Dhas_ctp.h108 HasCtpOp(std::variant<RawAddress, int> addr_or_group_id, PresetCtpOpcode op,
112 : addr_or_group(addr_or_group_id), in addr_or_group()
Dhas_client_test.cc109 ((std::variant<RawAddress, int> addr_or_group_id),
113 ((std::variant<RawAddress, int> addr_or_group_id),
117 ((std::variant<RawAddress, int> addr_or_group_id),
122 ((std::variant<RawAddress, int> addr_or_group_id),
126 ((std::variant<RawAddress, int> addr_or_group_id),