Handle timeouts while dozing

The executor might not run on time if the system started dozing since it
was scheduled. So, check for expired timeouts when we wake up and cancel
them at that time instead.

Test: manual - wait 10 mins, turn on screen, media is gone
Test: atest MediaTimeoutListenerTest
Fixes: 229908880
Change-Id: I0f100c97ce0eb1dd111bd8d393dafa9da67b024c
2 files changed