Loading flags/telecom_callaudioroutestatemachine_flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,10 @@ flag { description: "Update supported route mask when Bluetooth devices audio connected." bug: "301695370" } flag { name: "clear_communication_device_after_audio_ops_complete" namespace: "telecom" description: "Clear the requested communication device after the audio operations are completed." bug: "315865533" } src/com/android/server/telecom/CallAudioModeStateMachine.java +10 −1 Original line number Diff line number Diff line Loading @@ -280,7 +280,10 @@ public class CallAudioModeStateMachine extends StateMachine { mLocalLog.log("Enter UNFOCUSED"); if (mIsInitialized) { // Clear any communication device that was requested previously. if (mFeatureFlags.callAudioCommunicationDeviceRefactor()) { // Todo: Remove once clearCommunicationDeviceAfterAudioOpsComplete is // completely rolled out. if (mFeatureFlags.callAudioCommunicationDeviceRefactor() && !mFeatureFlags.clearCommunicationDeviceAfterAudioOpsComplete()) { mCommunicationDeviceTracker.clearCommunicationDevice(mCommunicationDeviceTracker .getCurrentLocallyRequestedCommunicationDevice()); } Loading Loading @@ -353,6 +356,12 @@ public class CallAudioModeStateMachine extends StateMachine { } else { mAudioManager.abandonAudioFocusForCall(); } // Clear requested communication device after the call ends. if (mFeatureFlags.clearCommunicationDeviceAfterAudioOpsComplete()) { mCommunicationDeviceTracker.clearCommunicationDevice( mCommunicationDeviceTracker .getCurrentLocallyRequestedCommunicationDevice()); } return HANDLED; default: // The forced focus switch commands are handled by BaseState. Loading Loading
flags/telecom_callaudioroutestatemachine_flags.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,10 @@ flag { description: "Update supported route mask when Bluetooth devices audio connected." bug: "301695370" } flag { name: "clear_communication_device_after_audio_ops_complete" namespace: "telecom" description: "Clear the requested communication device after the audio operations are completed." bug: "315865533" }
src/com/android/server/telecom/CallAudioModeStateMachine.java +10 −1 Original line number Diff line number Diff line Loading @@ -280,7 +280,10 @@ public class CallAudioModeStateMachine extends StateMachine { mLocalLog.log("Enter UNFOCUSED"); if (mIsInitialized) { // Clear any communication device that was requested previously. if (mFeatureFlags.callAudioCommunicationDeviceRefactor()) { // Todo: Remove once clearCommunicationDeviceAfterAudioOpsComplete is // completely rolled out. if (mFeatureFlags.callAudioCommunicationDeviceRefactor() && !mFeatureFlags.clearCommunicationDeviceAfterAudioOpsComplete()) { mCommunicationDeviceTracker.clearCommunicationDevice(mCommunicationDeviceTracker .getCurrentLocallyRequestedCommunicationDevice()); } Loading Loading @@ -353,6 +356,12 @@ public class CallAudioModeStateMachine extends StateMachine { } else { mAudioManager.abandonAudioFocusForCall(); } // Clear requested communication device after the call ends. if (mFeatureFlags.clearCommunicationDeviceAfterAudioOpsComplete()) { mCommunicationDeviceTracker.clearCommunicationDevice( mCommunicationDeviceTracker .getCurrentLocallyRequestedCommunicationDevice()); } return HANDLED; default: // The forced focus switch commands are handled by BaseState. Loading