Ensure IMS calls are disconnected when WPS call is forced over CS.

When a WPS call is placed on the CS domain, ensure that we hangup any
ongoing calls on the IMS domain first.

Test: Added unit test to verify ImsPhoneCallTracker is asked to disconnect
all ongoing calls when a WPS call is placed over CS.
Test: Added unit test to verify ImsPhoneCallTracker is not asked to
disconnect all ongoing calls when a WPS call is placed over IMS.
Test: Manually overrode carrier config to ensure WPS calls go over CS,
started on device IMS call to another number.  Then attempted to place a
WPS call.  Verified that the ongoing IMS call disconnects and the WPS
call is placed.
Fixes: 172695501

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1492301
Merged-In: I60382869482a78612a11b4a1672f0ba84f6068ed
Change-Id: I60382869482a78612a11b4a1672f0ba84f6068ed
(cherry picked from commit 28f1079976dea1cbc13822ec669a27b32905e486)
3 files changed