[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: François Gaffie <francois.gaffie@renault.com>
This commit is contained in:
François Gaffie
2023-01-09 10:04:59 +01:00
committed by Eric Laurent
parent adc81000e3
commit 362e4ef551

View File

@@ -233,6 +233,15 @@ public final class AudioProductStrategy implements Parcelable {
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
* @return first {@link AudioAttributes} associated to this product strategy.