CallAudioWatchdog cleanups.
1. Always log audio sessions in the dumpsys; we were doing this only for calls which weren't Telecom calls, however it is nicer to see them both in one place from an audio perspective. 2. If all media resources end for a call, don't immediately remove it if has a Telecom call ID associated. One voip app started and stopped media entirely during the scope of a single telecom call; this ensures we don't count that as two separate calls. Granted, a non-telecom call could get double-counted for the same reason, however during manual testing of a number of voip apps this was not seen in any other app. 3. When a call is removed from Telecom, don't remove it from the CAW unless all audio resources are cleaned up. We'll cleanup the session once all audio resources are freed. Flag: com.android.server.telecom.flags.enable_call_audio_watchdog Test: Run full CTS suite with flag on Test: Comprehensive manual testing with voip apps. Bug: 384570270 Change-Id: Ib684e81335b4b29644ed41af5350396ac6808b94
Loading
Please register or sign in to comment