572f1a318596a37e632b4352052d053e7710d2f3
The current implementation of IdleableHandlerThread is based on the assumption that MessageQueue#isIdle will return true iff the message loop has finished processing its messages. Unfortunately, this is incorrect: isIdle returns true iff are no more messages waiting in the queue; thus, it will also return true while it is processing the last message before going idle. Instead of using idle handlers, take the simpler approach of posting a runnable to the message loop and waiting for it to be processed. Test: see other CLs in this patch series Bug: 31479480 Change-Id: Iae75781f067b762c8653a488a5e4d5ee0c789e01
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%