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

Skip to content
Commit 34191ff7 authored by MingWei's avatar MingWei
Browse files

Prepare ViewStructures on UiThread

1. onProvideContentCaptureStructure should always be called from the
   UiThread to prevent concurrrent issue. Therefore,
   notifyContentCaptureEvents needs to prepare ViewStructures on the
   UiThread first before sending event out.
2. Fork MainContentCaptureSessionV2 to hold the logic of running parts
   of the operations in the background thread. And let
   ContentCaptureManager assign different implementation dependes on the
   flag. This should reduce the potential impact on the control arm.

Test: CtsContentCaptureServiceTestCases, MainContentCaptureSessionTest.
BUG: 309411951

Change-Id: I6efee6e94e2b9857b2ad93036aa28dcd5d3a263c
parent 78478fcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment