Loading system/btif/avrcp/avrcp_service.cc +7 −3 Original line number Original line Diff line number Diff line Loading @@ -548,10 +548,14 @@ void AvrcpService::SendActiveDeviceChanged(const RawAddress& address) { void AvrcpService::SendPlayerSettingsChanged( void AvrcpService::SendPlayerSettingsChanged( std::vector<PlayerAttribute> attributes, std::vector<uint8_t> values) { std::vector<PlayerAttribute> attributes, std::vector<uint8_t> values) { log::info(""); if (attributes.size() != values.size()) { log::error("Attributes size {} doesn't match values size {}", attributes.size(), values.size()); return; } std::stringstream ss; std::stringstream ss; for (size_t i = 0; i < attributes.size(); i++) { for (size_t i = 0; i < attributes.size(); i++) { ss << "attribute=" << attributes.at(i) << " : "; ss << "{attribute=" << attributes.at(i) << " : "; if (attributes.at(i) == PlayerAttribute::REPEAT) { if (attributes.at(i) == PlayerAttribute::REPEAT) { ss << "value=" << (PlayerRepeatValue)values.at(i); ss << "value=" << (PlayerRepeatValue)values.at(i); } else if (attributes.at(i) == PlayerAttribute::SHUFFLE) { } else if (attributes.at(i) == PlayerAttribute::SHUFFLE) { Loading @@ -559,7 +563,7 @@ void AvrcpService::SendPlayerSettingsChanged( } else { } else { ss << "value=" << std::to_string(values.at(i)); ss << "value=" << std::to_string(values.at(i)); } } ss << std::endl; ss << ((i + 1 < attributes.size()) ? "}, " : "}"); } } log::info("{}", ss.str()); log::info("{}", ss.str()); Loading Loading
system/btif/avrcp/avrcp_service.cc +7 −3 Original line number Original line Diff line number Diff line Loading @@ -548,10 +548,14 @@ void AvrcpService::SendActiveDeviceChanged(const RawAddress& address) { void AvrcpService::SendPlayerSettingsChanged( void AvrcpService::SendPlayerSettingsChanged( std::vector<PlayerAttribute> attributes, std::vector<uint8_t> values) { std::vector<PlayerAttribute> attributes, std::vector<uint8_t> values) { log::info(""); if (attributes.size() != values.size()) { log::error("Attributes size {} doesn't match values size {}", attributes.size(), values.size()); return; } std::stringstream ss; std::stringstream ss; for (size_t i = 0; i < attributes.size(); i++) { for (size_t i = 0; i < attributes.size(); i++) { ss << "attribute=" << attributes.at(i) << " : "; ss << "{attribute=" << attributes.at(i) << " : "; if (attributes.at(i) == PlayerAttribute::REPEAT) { if (attributes.at(i) == PlayerAttribute::REPEAT) { ss << "value=" << (PlayerRepeatValue)values.at(i); ss << "value=" << (PlayerRepeatValue)values.at(i); } else if (attributes.at(i) == PlayerAttribute::SHUFFLE) { } else if (attributes.at(i) == PlayerAttribute::SHUFFLE) { Loading @@ -559,7 +563,7 @@ void AvrcpService::SendPlayerSettingsChanged( } else { } else { ss << "value=" << std::to_string(values.at(i)); ss << "value=" << std::to_string(values.at(i)); } } ss << std::endl; ss << ((i + 1 < attributes.size()) ? "}, " : "}"); } } log::info("{}", ss.str()); log::info("{}", ss.str()); Loading