Hi all -
I'm observing a strange behavior and I'm wondering if you can help me track down the sources that indicate what is happening. I am currently testing some suspend behaviors on a Lollipop device (Nexus 5). All these tests are done WITHOUT holding wake locks (on purpose)…
My first test was doing some counting on a background thread. As expected, within a few minutes of the device going into suspend mode, code execution is paused and resumes when the device is activated again. However, when I start playing a local media file through MediaPlayer, the entire audio file (30 minutes in length) runs to completion without halting when the device does to sleep. Running dumpsys power during this time indicates that no wake locks are currently active, so I don't believe mediaserver is taking it's own automatic wake lock (though it's still possible).
Any thoughts and/or source references that would indicate why audio can continue to play without the application (or apparently the system) activating a wake lock?
Cheers,
--
Dave Smith, PE
@devunwired