commit | ad1bf17965146e114738ea8348c2695ae5d9ecd6 | [log] [tgz] |
---|---|---|
author | yuanjiahsu <yuanjiahsu@google.com> | Wed Mar 23 02:11:11 2022 +0800 |
committer | Yuanjia Hsu <yuanjiahsu@google.com> | Wed Mar 30 04:10:17 2022 +0000 |
tree | 4856c9e9b98dfa402a23615adebb8429e823580d | |
parent | 329edd60262afe45beaa948a99d20662e22b141e [diff] |
Don't register playback/recording change if caller doesn't care it When calling VirtualDeviceManager#createVirtualAudioDevice(), if the caller pass null AudioConfigurationChangeCallback parameter, it means the caller doesn't care the audio playback/recording change in virtual display, and we should not register it with AudioManager for optimization. Bug: 218528439 Test: atest CtsVirtualDevicesTestCases Change-Id: I00120f2506f593100ef8c523a4f6addffe46597b