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

Commit d02939ed authored by Matt Buckley's avatar Matt Buckley
Browse files

Cap the maximum message queue size for reportActualWorkDuration

Currently, the queue size is only cleared when it gets sent, so if a
client calls the API fast enough it can overwhelm the duration buffer
before a batch is sent. This patch caps the maximum buffer size to
prevent this.

Bug: 406377213
Test: atest PerformanceHintNativeTestCases
Flag: EXEMPT BUGFIX
Change-Id: I288299636682644d118250339330be161262398f
parent 25faa39d
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