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

Skip to content
Commit 436e7d8b authored by Xiang Wang's avatar Xiang Wang
Browse files

Use the latest temperature read as base for headroom calculation

It was unexpectedly using the oldest temperature which can be 30s old
and not accurately reflect the current device's temperature

The unit test used to add new temperatures to the front of ring
buffer, which was inconsistent with the implementation which add
to the back instead, which is now fixed

Bug: 343809405
Bug: 346425206
Test: atest ThermalManagerServiceTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e23c5ede71d096aa85fd16033efa1716020c1b24)
Merged-In: I706933e7f4bbd1b9abd6591255a605d7643ad7ee
Change-Id: I706933e7f4bbd1b9abd6591255a605d7643ad7ee
parent fcf13527
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment