+273
−0
+173
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
- 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