I have found this discussion occasionally: android/ndk#2020.
Check https://developer.android.com/ndk/reference/group/looper#alooper_pollall:
[Deprecated. ] Calls to ALooper_pollAll should be replaced with ALooper_pollOnce. If you call ALooper_pollOnce in a loop, you must treat all return values as if they also indicate ALOOPER_POLL_WAKE.