Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40b813b1 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Using a fixed-size ring buffer for direction estimation.

An ArrayDequeue has an internal variable-size array that can grow
unnecessarily when poping and adding elements to it. This CL makes sure
that we use a much simpler ring buffer to hold translations and estimate
directions.

Test: MagneticRowManagerImplTest
Test: presubmit
Test: manual. Verified notifications dismiss in the correct direction when flinging before and after detaching
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 422250180
Change-Id: Ia7ca7d9a78edd6b8d1d79b32a9a79bcf8460087e
parent 83e70fac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment