summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Kai Li <klikli@google.com> 2025-01-12 18:46:12 -0800
committer Kai Li <klikli@google.com> 2025-01-15 14:41:17 +0800
commit538e5354a2a958b0941483f00f40d1405ea68ab2 (patch)
treea69ad6ac409f876fc91ab1daf6bef8129dc69e21 /libs/androidfw/AttributeResolution.cpp
parenta6e8e0103318946361b46da2bcd324a0a6b80443 (diff)
Post creating the `android.bg` thread during app start up time for CCAPI use cases.
- `MainContentCaptureSession.start` is called from `Activity#onPostCreate`. For performance reasons, only create a task in `onPostCreate` and really perform the start when finishing rendering the first frame in `ViewRootImpl`. - The content capture thread `android.bg` is now created and initialized in the binder thread, instead of the UI thread. - Only the app in the CCAPI allowlist will create this `android.bg` thread. Collected trace file: https://ui.perfetto.dev/#!/?s=fc6d9f4a502ab65e68633a9b0b70a220e0d42f6c Bug: 376468525 Change-Id: I0575a309b5e36e043103ceff71aa93c51a75b4c8 Test: atest CtsContentCaptureServiceTestCases Flag: android.view.contentcapture.flags.post_create_android_bg_thread
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions