summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Xiang Wang <xwxw@google.com> 2024-06-03 13:19:18 -0700
committer Xiang Wang <xwxw@google.com> 2024-06-05 18:26:57 +0000
commitd83dcae24ca94b61e0705c0d2b422e466d2c14f1 (patch)
treee3af73a1f4beb474ccfef18052b17caf294ade32 /api/api.go
parent6f67bf715a8cfea8ced1c86030d2128b5f7b0f0a (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 (i.e. getThermalheadroom(0) could return device status from 30s ago) The unit test used to add new temperatures to the front of ring buffer instead, which was inconsistent with the implementation which add to the back and thus didn't catch the issue, it's now all fixed. Bug: 343809405 Test: atest ThermalManagerServiceTest Change-Id: I913572d04f9ca7d9106babe2017e686cf30f29ec
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions