Optimized Content Capture workflow by caching some state at the application level.
Content Capture for an activity and/or package is only available when the Content Capture service explicitly whitelists it. As the whitelist is kept at system-server level, it's better to fetch that info when the application is started and cache it locally, so we can optimize the ContentCaptureManager APIs to return quickly when it's disabled. This CL also caches other values such as the buffer parameters. Test: atest CtsContentCaptureServiceTestCases Bug: 120494182 Bug: 121202151 Change-Id: I9d5211bca496ffa85ba9efc2a7bb32411834b787
Loading
Please register or sign in to comment