Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 81a9a1ba authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Use a dedicated thread for IMMS.MyPackageMonitor

This is a follow up CL to my previous CL [1], which moved resource I/O
out of ImfLock to reduce the risk of ANRs.

Once thing that is still concerning is that

  MyPackageMonitor#onFinishPackageChangesInternal()

still gets called on a worker thread that is shared across multiple
operations in InputMethodManagerService, e.g.

 * HandwritingModeController as a UI event handler
 * event callbacks for ContentObserver
 * event forwarding used by ZeroJankProxy

Blocking above operations with resource I/O is also something we would
like to avoid. Thus this CL introduces a new worker thread dedicated
for MyPackageMonitor.

There should be no observable semantic change.

 [1]: I263cd49dd4d64b64136acc3dad469f83a862ce97
      db19711e

Bug: 340221861
Test: presubmit
Change-Id: Icc84fe9d0d3b5842b4d5ee51b12b0d3cd10a1d24
parent 9a1fb8f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment