Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a95a78f9 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: add test APIs for audio focus and ducking

Note: all new test methods end with "ForTest" so there is
 no ambiguity about the purpose of those methods.

Add test methods to protect focus-based tests from external
 audio focus uses (e.g. NotificationManager playing a
 notification on the DUT during a test).

Add test methods to read ducking-related timing values, and
 the list of ducked UIDs.
Add more debug messages (disabled by default).

Bug: 286495078
Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioFocusTest#testDuckedUidsAfterMediaSpeech
Test: atest CtsMediaAudioTestCases:android.media.audio.cts.AudioFocusTest#testDuckedUidsAfterMediaMusic
Change-Id: Ie2fc243eecdc21f3b0718f6392e7345d3fb0ae07
parent 5e73e7e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment