diff options
| author | 2024-06-05 16:20:01 -0700 | |
|---|---|---|
| committer | 2024-06-10 23:55:04 +0000 | |
| commit | 436e7d8bc035b11a6627cd82df3856c5f15371ab (patch) | |
| tree | 2b7929186972dc6560d6605315b3ea63150d2655 /libs/androidfw/StringPool.cpp | |
| parent | fcf135270ee8580d531d2a9f7a1a5779afcc1a2e (diff) | |
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions