summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2019-01-29 18:16:23 -0800
committerFelipe Leme <felipeal@google.com>2019-02-04 18:28:15 -0800
commit01297698a13a36779b897905281e9e9b22aa995a (patch)
treec2977f5f7369abef3a24e7c93e1d465773ddfdec /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent20a2484e580ad3e312fe2fd84ce2a0662af78484 (diff)
Refactored how initial content capture events are sent.
The overall workflow of Content Capture is: - send initial structure - send deltas afterwards Initially, the initial structure was being reported one view at time, which was causing janking. This CL changes it so while that while the initial structure is being laid out, the content captures are held. Then after it's finished, it traverses the structure and sends the initial events. This change also allowed use to optimize the performance by caching the following state: - View.isImportantForContentCapture() - View.getContentCaptureSession() - Context.getContentCaptureManager() Besides the performance improvements, this approach also has the following advantanges: - It sends the VIEW_APPEARED events for the parent views before the events for the children. - It send events to notify when the view structure layout is ready. Bug: 123307965 Test: atest CtsContentCaptureServiceTestCases Test: m update-api Change-Id: I6db7cc11c6edf65cbffe42187fda82c84c3665ff
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions