d/android: Reduce CPU usage
1. "ALooper_pollAll" sets the timeout to "max_wait_milliseconds".
2. Destroy the event queue when the thread exits.
3. Handle sensor sleep situation.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2260>
authored by