Merge "Audio: Ensure input stream gets closed on the audio HAL server side" am: d405ef1c19

am: 5bc9035530

Change-Id: I127f5317523bfc028d00c72f76bb27ea90fa0b1c
This commit is contained in:
Mikhail Naganov
2019-10-15 21:45:30 -07:00
committed by android-build-merger

View File

@@ -117,6 +117,10 @@ TEST_F(AudioPrimaryHidlTest, GetMicrophonesTest) {
ASSERT_NE(0U, activeMicrophones.size());
}
stream->close();
// Workaround for b/139329877. Ensures the stream gets closed on the audio hal side.
stream.clear();
IPCThreadState::self()->flushCommands();
usleep(1000);
if (efGroup) {
EventFlag::deleteEventFlag(&efGroup);
}