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

Commit dd241da2 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Adds getPort (hidden) to AudioDeviceInfo class

Motivation of this change:

In CarAudioService, we enumerate the AudioDeviceInfo on device via
AudioManager.getDevices(). The AudioDeviceInfo would be used to
construct the dynamic routing via AudioMix.Builder, which accepts
AudioDeviceInfo.

Meanwhile, we wire also the volume change to hal via
AudioManager.setAudioPortConfig(), which accepts AudioPort.

Bug: 65751827
Test: lunch bat_land-userdebug && m -j
Change-Id: I438cfd61e502340def5376fe373a296ab69ff86e
parent 0e059847
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -126,6 +126,14 @@ public final class AudioDeviceInfo {
       mPort = port;
    }

    /**
     * @hide
     * @return The underlying {@link AudioDevicePort} instance.
     */
    public AudioDevicePort getPort() {
        return mPort;
    }

    /**
     * @return The internal device ID.
     */