summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2016-12-14 15:39:20 -0800
committerAndrew Sapperstein <asapperstein@google.com>2017-01-04 16:53:44 -0800
commit67e97053c5efea9396be420e5b5015cd808ab417 (patch)
treee6acf8943c7e44504f2b7c9a9fb1f88b449d1a5b /rs/java/android/renderscript/ProgramStore.java
parent2258e5fdb98d9625db43441bb15c92b858594e0a (diff)
Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user that their phone has reached a certain temperature and has throttled itself in order to cool down. The logic is controlled by a configuration resource: R.bool.config_showTemperatureWarning. If false, no action is taken. When true, PowerUI checks every 30 seconds if the current temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN. If any one of the temperatures returned is greater, a notification is shown. Clicking on the notification will show a dialog explaining more details about what the device is doing in response to the high temperature. The notification will disappear once the temperature drops below the throttling temperature. In order to check the temperature in SystemUI, HardwarePropertiesManager has been updated to also allow any calls made by callers holding the signature-level DEVICE_POWER permission. Test: runtest systemui Bug: 30995038 Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356 (cherry picked from commit b7caf1d06d5e4ef21cadcc6a68d4b4c4552fb7bc)
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions