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

Skip to content
Commit bd8329da authored by Richard Chang's avatar Richard Chang
Browse files

ThermalManagerService: validate input for getThermalHeadroom API

The getThermalHeadroom API only allows 0-60 seconds as the input
value. Return Float.NaN and print warning logs when users input
out-of-range values.

Add testcase testGetThermalHeadroomInputRange.

Bug: 235192825
Test: atest ThermalManagerServiceTest
Change-Id: I5d22672545961ff148be89620eecd9d03fbbdd29
parent bcdc0217
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