diff options
author | 2025-02-10 06:12:08 -0800 | |
---|---|---|
committer | 2025-02-10 06:12:08 -0800 | |
commit | c1c8b4ddcffdbdbd1d1e957f82a82489d5415501 (patch) | |
tree | 2787ebbae2f7fdec1395d9cc6c0e69b6aa5b5ef5 /cmds/bootanimation/BootAnimation.cpp | |
parent | b18430333510d8d77930ff408b922c3851c32e95 (diff) |
Improve TestLooperManager check on execute()
Looper.isCurrentThread() does exactly what we need.
Checking the same condition via a side effect on
Looper.myLooper() is harder to read.
It's also less reliable, because I caught some (terrible)
tests manipulating ThreadLocals.
Bug: 379472827
Change-Id: Id67eddcb57329cb42b5b4ba6b09595ec720f6cdb
Flag: android.os.message_queue_testability
Test: android.os.cts.TestLooperManagerTest
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions