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

Commit 362e4ef5 authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

[IMPR] AudioProductStrategy: add getName hidden API



As volume group, being able to retrieve strategy name helps
clients (e.g. CarAudioService) to refer strategies by name.

Bug: 260298113
Test: build

Change-Id: I8c01f31d715c754f1449b75fa7c754fe61b04d4a
Merged-In: I8c01f31d715c754f1449b75fa7c754fe61b04d4a
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent adc81000
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -233,6 +233,15 @@ public final class AudioProductStrategy implements Parcelable {
        return mId;
        return mId;
    }
    }


    /**
     * @hide
     * @return the product strategy ID (which is the generalisation of Car Audio Usage / legacy
     *         routing_strategy linked to {@link AudioAttributes#getUsage()}).
     */
    @NonNull public String getName() {
        return mName;
    }

    /**
    /**
     * @hide
     * @hide
     * @return first {@link AudioAttributes} associated to this product strategy.
     * @return first {@link AudioAttributes} associated to this product strategy.