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

Skip to content
Commit dc78995b authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Add support for wired routing

This is a revert^2 of ag/25043811.

Wired routing means choosing where media plays among the
non-bluetooth routes. You can find details of the design
in go/wired-device-routing. You can find a summary of the
change here:
- Changes are guarded by the
  enable_audio_policies_device_and_bluetooth_controller
  flag in the media_solutions namespace.
- All wired and active bluetooth devices routes are
  obtained from AudioManager.
- Bluetooth route ids are obtained from BluetoothAdapter,
  regardless of whether the route corresponds to an active
  or inactive bluetooth route.
- When necessary, audio routing  strategies are used to
  route the audio away from the default audio output.

Existing tests became invalid due to changes in the
dependencies of AudioPoliciesDeviceRouteController. New
tests are being added in the following commit where we
need to need to make changes in our dependencies so as
to enable testing.

Bug: 305199571
Test: atest MediaRouter2HostSideTest CtsMediaBetterTogetherTestCases
Change-Id: Ia051829189f14ab2eb8310bee74bd17203c0b294
parent 8689962f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment