audio policy: use call screen mode

Enable playback over Call Tx path also when audio mode is CALL_SCREEN.
Was previously only possilbe when IN_CALL or IN_COMMUNICATION.

Also generalize use of isStateInCall() method instead of
a mix of isStateInCall() and is_state_in_call().

Bug: 140384450
Test: manual call screen test
Change-Id: Ifda4ee2f26a30ed8dbe43b172d86b18d906029cf
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.h b/services/audiopolicy/managerdefault/AudioPolicyManager.h
index bd4662a..500b636 100644
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.h
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.h
@@ -478,6 +478,8 @@
         virtual bool isInCall();
         // true if given state represents a device in a telephony or VoIP call
         virtual bool isStateInCall(int state);
+        // true if playback to call TX or capture from call RX is possible
+        bool isCallAudioAccessible();
 
         // when a device is connected, checks if an open output can be routed
         // to this device. If none is open, tries to open one of the available outputs.