mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge changes Icfaa316b,Ic26706d7 into main
* changes: Add missing libc++ includes No need to modify acc for std::accumulate
This commit is contained in:
@@ -244,15 +244,15 @@ ndk::ScopedAStatus AudioControl::onDevicesToMuteChange(
|
|||||||
template <typename aidl_type>
|
template <typename aidl_type>
|
||||||
static inline std::string toString(const std::vector<aidl_type>& in_values) {
|
static inline std::string toString(const std::vector<aidl_type>& in_values) {
|
||||||
return std::accumulate(std::begin(in_values), std::end(in_values), std::string{},
|
return std::accumulate(std::begin(in_values), std::end(in_values), std::string{},
|
||||||
[](std::string& ls, const aidl_type& rs) {
|
[](const std::string& ls, const aidl_type& rs) {
|
||||||
return ls += (ls.empty() ? "" : ",") + rs.toString();
|
return ls + (ls.empty() ? "" : ",") + rs.toString();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
template <typename aidl_enum_type>
|
template <typename aidl_enum_type>
|
||||||
static inline std::string toEnumString(const std::vector<aidl_enum_type>& in_values) {
|
static inline std::string toEnumString(const std::vector<aidl_enum_type>& in_values) {
|
||||||
return std::accumulate(std::begin(in_values), std::end(in_values), std::string{},
|
return std::accumulate(std::begin(in_values), std::end(in_values), std::string{},
|
||||||
[](std::string& ls, const aidl_enum_type& rs) {
|
[](const std::string& ls, const aidl_enum_type& rs) {
|
||||||
return ls += (ls.empty() ? "" : ",") + toString(rs);
|
return ls + (ls.empty() ? "" : ",") + toString(rs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <libnl++/Socket.h>
|
#include <libnl++/Socket.h>
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user