AudioManager: relax exceptions for setCommunicationDevice

Do not throw an IllegalArgumentException exception in
setCommunicationDevice() if the selected device is not
connected any more but return false instead; This race
condition cannot be avoided programmatically.

Bug: 264837721
Test: manual regression tests for call routing

Change-Id: I6ba0c81b89a5871a210a115885836693e4972fcb
2 files changed