Loading
Using an efficient circular buffer as a logging structure.
ArrayDequeue maintains an internal variable-size array that can grow unnecessarily when adding elements. This could lead to performance issues and crashes such as the ones reported in the bugs below. We can avoid this overhead by implementing a minimal ring buffer to log MSDL events. Test: Unit tests Flag: com.android.systemui.msdl_feedback Bug: 421673110 Bug: 422056230 Change-Id: I54625ff7f1b2ebc4f78bc6329bd1a9790759d0e2