Loading services/audiopolicy/engine/common/include/VolumeGroup.h +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ public: VolumeCurves *getVolumeCurves() { return &mGroupVolumeCurves; } void addSupportedAttributes(const audio_attributes_t &attr); AttributesVector getSupportedAttributes() const { return mGroupVolumeCurves.getAttributes(); } AttributesVector getSupportedAttributes() const; void addSupportedStream(audio_stream_type_t stream); StreamTypeVector getStreamTypes() const { return mGroupVolumeCurves.getStreamTypes(); } Loading services/audiopolicy/engine/common/src/VolumeGroup.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,17 @@ VolumeGroup::VolumeGroup(const std::string &name, int indexMin, int indexMax) : { } // Used for introspection, e.g. JAVA AttributesVector VolumeGroup::getSupportedAttributes() const { AttributesVector supportedAttributes = {}; for (auto &aa : mGroupVolumeCurves.getAttributes()) { aa.source = AUDIO_SOURCE_INVALID; supportedAttributes.push_back(aa); } return supportedAttributes; } void VolumeGroup::dump(String8 *dst, int spaces) const { dst->appendFormat("\n%*s-%s (id: %d)\n", spaces, "", mName.c_str(), mId); Loading Loading
services/audiopolicy/engine/common/include/VolumeGroup.h +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ public: VolumeCurves *getVolumeCurves() { return &mGroupVolumeCurves; } void addSupportedAttributes(const audio_attributes_t &attr); AttributesVector getSupportedAttributes() const { return mGroupVolumeCurves.getAttributes(); } AttributesVector getSupportedAttributes() const; void addSupportedStream(audio_stream_type_t stream); StreamTypeVector getStreamTypes() const { return mGroupVolumeCurves.getStreamTypes(); } Loading
services/audiopolicy/engine/common/src/VolumeGroup.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,17 @@ VolumeGroup::VolumeGroup(const std::string &name, int indexMin, int indexMax) : { } // Used for introspection, e.g. JAVA AttributesVector VolumeGroup::getSupportedAttributes() const { AttributesVector supportedAttributes = {}; for (auto &aa : mGroupVolumeCurves.getAttributes()) { aa.source = AUDIO_SOURCE_INVALID; supportedAttributes.push_back(aa); } return supportedAttributes; } void VolumeGroup::dump(String8 *dst, int spaces) const { dst->appendFormat("\n%*s-%s (id: %d)\n", spaces, "", mName.c_str(), mId); Loading