mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Some commands are run asynchronously and subsequent commands need to wait until the previous one finished. This can be supported by returning a Future for each command and using the existing command execution logic to wait for each Future to complete. As some MediaSessionStub code is now executed delayed to when it was originally created, we also need to check if the session is not released before triggering any actions or sending result codes. Issue: androidx/media#85 PiperOrigin-RevId: 462101136 (cherry picked from commit 7cb7636ed954f0737aaac2f9cf556715a2ee9b37)
Session test common module
Provides common components for use by session tests.