Loading audio/core/all-versions/vts/functional/4.0/AudioPrimaryHidlHalTest.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -117,6 +117,10 @@ TEST_F(AudioPrimaryHidlTest, GetMicrophonesTest) { ASSERT_NE(0U, activeMicrophones.size()); ASSERT_NE(0U, activeMicrophones.size()); } } stream->close(); 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) { if (efGroup) { EventFlag::deleteEventFlag(&efGroup); EventFlag::deleteEventFlag(&efGroup); } } Loading Loading
audio/core/all-versions/vts/functional/4.0/AudioPrimaryHidlHalTest.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -117,6 +117,10 @@ TEST_F(AudioPrimaryHidlTest, GetMicrophonesTest) { ASSERT_NE(0U, activeMicrophones.size()); ASSERT_NE(0U, activeMicrophones.size()); } } stream->close(); 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) { if (efGroup) { EventFlag::deleteEventFlag(&efGroup); EventFlag::deleteEventFlag(&efGroup); } } Loading