commit | f0308c71934bb134076bf6446cf037eb1d60c14b | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Mon Nov 27 16:58:39 2023 +0100 |
committer | Eric Laurent <elaurent@google.com> | Tue Dec 05 15:48:19 2023 +0100 |
tree | b252a2be8bab14befbfc711edbe0b07b7560b40c | |
parent | 8bc28f86428afdf68ffbd56557aa15bfc0c39bc6 [diff] |
AudioService: make setCommunicationDevice asynchronous Make setCommunicationDevice return immediately after basic checks but before the new requested path is actually applied. Add a synchronization mutex between setCommunicationDevice and getCommunicationDevice to keep the getter result consistent. Bug: 308879516 Test: AudioCommunicationDeviceTest Test: AudioManagerTest Change-Id: I14cef3fffab4ccdbc2b1ed5cfefc9ce87a91af71