Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d73a75e authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9535926 from 0e50045c to tm-qpr3-release

Change-Id: Ie495b5698148b6a91a09ca480e23844502fa40f8
parents 84f0b0d4 0e50045c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(); }
+11 −0
Original line number Diff line number Diff line
@@ -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);