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

Skip to content
Commit 6875f99a authored by Yuri Lin's avatar Yuri Lin
Browse files

Estimate vibration effect size using available parcel data

While we want to avoid reading in vibration effects that are too large (which can cause the XML serialization to fail), serializing directly in the constructor to check the length causes too much heap churn. This change uses the remaining data available in the parcel to estimate the size of the vibration effect, after moving it to the end of the parcel.

Flag: android.app.notif_channel_estimate_effect_size
Bug: 391908451
Test: heapdump, NotificationChannelTest
Change-Id: Ic58addd01721c8a0f358deb8629302a3d57e7673
parent ef74fc97
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