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

Skip to content
Commit 8aba9d66 authored by Scott Randolph's avatar Scott Randolph
Browse files

Earpiece availability from audio config (vs hard coded)

Teach the call routing state machine to respect the available hardware
devices instead of hard coding based on target platform when deciding if
an earpiece is avaiable. Updates the tests which relied on hard coded
values to work with the new calling convention.

Note that serval approaches to mocking the AudioManager were tried that
would have allowed removal of the extra constructor parameter updated in
this CL and used only for testability.  All were thwarted by private
final classes.

Test results:  Ran 17 tests for TelecomUnitTests. 17 passed, 0 failed

Bug: 65614292
Test: bit TelecomUnitTests:CallAudioRouteStateMachineTest
Change-Id: Icdb9a03cefd3e4d399fe8cd878c61524e1000d95
parent c8ac9865
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment