Lines Matching refs:devices

236     std::vector<RawAddress> devices = {device->address};  in ClearDeviceInformationAndStartSearch()  local
239 RemovePendingVolumeControlOperations(devices, in ClearDeviceInformationAndStartSearch()
397 auto devices = csis_api->GetDeviceList(group_id); in HandleAutonomusVolumeChange() local
398 for (auto it = devices.begin(); it != devices.end();) { in HandleAutonomusVolumeChange()
401 it = devices.erase(it); in HandleAutonomusVolumeChange()
407 if (devices.empty() && (is_volume_change || is_mute_change)) { in HandleAutonomusVolumeChange()
416 PrepareVolumeControlOperation(devices, group_id, true, in HandleAutonomusVolumeChange()
424 PrepareVolumeControlOperation(devices, group_id, true, opcode, arg); in HandleAutonomusVolumeChange()
735 void RemovePendingVolumeControlOperations(std::vector<RawAddress>& devices, in RemovePendingVolumeControlOperations() argument
754 for (auto const& addr : devices) { in RemovePendingVolumeControlOperations()
847 void PrepareVolumeControlOperation(std::vector<RawAddress> devices, in PrepareVolumeControlOperation() argument
854 devices.size(), group_id, is_autonomous, opcode, arguments.size()); in PrepareVolumeControlOperation()
857 [opcode, &devices, &arguments](const VolumeOperation& op) { in PrepareVolumeControlOperation()
864 devices.erase( in PrepareVolumeControlOperation()
865 std::remove_if(devices.begin(), devices.end(), in PrepareVolumeControlOperation()
871 devices.end()); in PrepareVolumeControlOperation()
872 return devices.empty(); in PrepareVolumeControlOperation()
876 devices); in PrepareVolumeControlOperation()
891 std::vector<RawAddress> devices = {dev->address}; in MuteUnmute() local
893 devices, bluetooth::groups::kGroupUnknown, false, opcode, arg); in MuteUnmute()
906 auto devices = csis_api->GetDeviceList(group_id); in MuteUnmute() local
907 if (devices.empty()) { in MuteUnmute()
915 for (auto it = devices.begin(); it != devices.end();) { in MuteUnmute()
918 it = devices.erase(it); in MuteUnmute()
923 it = devices.erase(it); in MuteUnmute()
932 if (devices.empty()) { in MuteUnmute()
940 PrepareVolumeControlOperation(devices, group_id, false, opcode, arg); in MuteUnmute()
968 std::vector<RawAddress> devices = {dev->address}; in SetVolume() local
970 devices, bluetooth::groups::kGroupUnknown); in SetVolume()
972 devices, bluetooth::groups::kGroupUnknown, false, opcode, arg); in SetVolume()
985 auto devices = csis_api->GetDeviceList(group_id); in SetVolume() local
986 if (devices.empty()) { in SetVolume()
994 for (auto it = devices.begin(); it != devices.end();) { in SetVolume()
997 it = devices.erase(it); in SetVolume()
1002 it = devices.erase(it); in SetVolume()
1012 if (devices.empty()) { in SetVolume()
1020 RemovePendingVolumeControlOperations(devices, group_id); in SetVolume()
1021 PrepareVolumeControlOperation(devices, group_id, false, opcode, arg); in SetVolume()
1158 void devices_control_point_helper(std::vector<RawAddress>& devices, in devices_control_point_helper() argument
1163 devices, opcode, arg, in devices_control_point_helper()