commit | 5489ccda38607a61ca5fe9965fd71d931f797773 | [log] [tgz] |
---|---|---|
author | Andriy Kozachuk <kozachuk@google.com> | Mon May 15 13:49:28 2023 +0000 |
committer | Andriy Kozachuk <kozachuk@google.com> | Mon May 15 13:49:28 2023 +0000 |
tree | 9ce5135cd2135e7352124436b2186470daededf4 | |
parent | 746c8ce85dd634070a7067679ee8c651e46f7f48 [diff] |
Make "Recycle" Android Lint rule blocking for ExtServices "Recycle" Android Lint rule checks the code for unclosed Cursor objects, as well as other unclosed resources. Cursors which are not closed as soon as they are not used anymore may lead to Android performance issues: * if Cursor was created by querying ContentProvider, then it will hold an active binding to the process that hosts ContentProvider, which will prevent this process from being cached or unloaded * each Cursor can hold an up to 2 MB CursorWindow memory buffer Changing "Recycle" rule severity to "error" will block the code with unclosed Cursors from being submitted. Bug: 266775648 Test: m ExtServices Test: m lint-check Merged-In: Ibf8e167e8f526e0e9cb31b6538c43759d170405f Change-Id: I8e07f387864060438337bea7427672c5ed4ac32e
ExtServices is an updatable Mainline module that contains the logic used by Android framework components such as storage cache, autofill, textclassifier, package watchdog, notifications and notification ranking that run continually. For the new features or bug fixes of these platform defined services above or a new added platform service, it will provide more flexibility and benefits by updating ExtServices in a more frequent cycle than a platform release cycle.
Before you start to develop on ExtServices, please read go/smart-os-extservices to get the guideline.