diff options
| author | 2023-02-02 06:07:21 +0000 | |
|---|---|---|
| committer | 2023-05-15 22:23:49 +0000 | |
| commit | ae02ad50698161a38821eaa88383f9dfd865fd82 (patch) | |
| tree | 9f02c60a0c8113a2f8cbaa41a9788b6ef64e98f4 /tests/DynamicCodeLoggerIntegrationTests/src | |
| parent | 9d74abd81b4f50d46f1964539fe389fdc6043820 (diff) | |
Add registry for tracking leaking surface controls
- When enabled, the registry will track active surface controls within
the process. If the number of surfaces exceeds a specific threshold,
info about the registered surfaces can be dumped to help narrow down
where they were registered/leaked. This also facilitates adding
tests of flows to ensure new surfaces are properly cleaned up.
- Only callers with the READ_FRAME_BUFFER permission can enable the
registry
- Once the max threshold is crossed, information is dumped to logcat
only once until the number of surfaces falls under the reset threshold
to ensure we don't spam the logs
Bug: 266978825
Test: atest FrameworksCoreTests:android.view.SurfaceControlRegistryTests
Change-Id: Ife73357e7db4b45d474ef3933afd3e33b8681f85
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions