commit | 61677938c47ad753bdfebf05be2e94e0b46f0bbc | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Mon Jan 13 13:47:31 2020 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Mon Jan 13 13:47:31 2020 -0800 |
tree | aee12fa44f27100ae9a9a693051ee8e61e505604 | |
parent | a4d4f94e21757148153711a2defe21bd45dc3337 [diff] |
AudioPolicy: catch exceptions on unregister Make the synchronous AudioManager.unregisterAudioPolicy() method compatible with situations where the owner of the policy has already stopped / flushed the tracks or recorders associated with the policy by catching the IllegalStateException that could be thrown. Test: atest AudioServiceHostTest#testGetDevicesForAttributes Change-Id: Ic0ae0732b775a10135f6cbdd31d5e3409e550942