It would be nice to have Java background thread where potentially heavy work could be offloaded from the main thread.
In absence of such thread components either start their own threads (e.g. SafetyNetHandlerThread in //clank), just do things on the main thread (e.g. ActivityManager.getMyMemoryState() call in MemoryPressureMonitor) or simply use AsyncTasks (not good, very bad).
At least we need something with a Looper, but we also can think of a task-scheduler like API.
Comment 1 by boliu@chromium.org
, Mar 26 2018