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

Commit 212af5e0 authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

[IMPR] AudioProductStrategy: add getName system 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
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent 9d5c3497
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7125,6 +7125,7 @@ package android.media.audiopolicy {
    method public int describeContents();
    method @NonNull public android.media.AudioAttributes getAudioAttributes();
    method public int getId();
    method @NonNull public String getName();
    method public boolean supportsAudioAttributes(@NonNull android.media.AudioAttributes);
    method public void writeToParcel(@NonNull android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.media.audiopolicy.AudioProductStrategy> CREATOR;
+10 −0
Original line number Diff line number Diff line
@@ -231,6 +231,16 @@ 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()}).
     */
    @SystemApi
    @NonNull public String getName() {
        return mName;
    }

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