summaryrefslogtreecommitdiff
path: root/core/java/android/os/Temperature.java
Commit message (Collapse)AuthorAgeFilesLines
* Add @Nullable annotation to the parameter of Object.equals() methods.Roman Kalukiewicz2020-10-151-1/+2
| | | | | | | | | | | | | | | | | | Those annotations could be inferred by some tools (like Kotlin), but the https://checkerframework.org/ doesn't check inherited annotations complaining about all equals() invocations that get nullable argument. The change was generated by running find . -name \*.java | xargs sed -i 's/public boolean equals(Object /public boolean equals(@Nullable Object /' in the frameworks/base directory and by automatically adding and formatting required imports if needed. No manual edits. Bug: 170883422 Test: Annotation change only. Should have not impact. Exempt-From-Owner-Approval: Mechanical change not specific to any component. Change-Id: I5eedb571c9d78862115dfdc5dae1cf2a35343580
* Add cooling device into thermal serviceWei Wang2019-04-051-38/+54
| | | | | | | | | | This is for statsd to log new metrics, as statsd has moved to use thermal service in framework instead of connecting to HAL directly. Bug: 119688911 Test: Build and dumpsys thermalservice Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java Change-Id: Ib334c448c3615bf9d1cb0f1b6c2dd8a83d44f371
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Add more shutdown actions and a new NPU sensor typeWei Wang2018-12-101-1/+3
| | | | | | | | Also limit internal API with android.Manifest.permission.DEVICE_POWER Bug: 116541003 Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java Change-Id: I45be565d5c9eb39d6ff1d8b38d6830de2a33045d
* Thermal: change WARNING level to EMERGENCYWei Wang2018-12-041-2/+2
| | | | | | Bug: 119613338 Test: atest services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java Change-Id: I3bde79a3598ef58072c8d9c2202a0eec6a968776
* Thermal: Add set-status command to turn thermal statusWei Wang2018-12-041-1/+1
| | | | | | | | | Bug: 111086696 Bug: 119413961 Test: adb shell cmd thermalservice set-status 3 Test: adb shell cmd thermalservice reset Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java Change-Id: Ide114d1aadad67cbbbae645b56c6c082aceade21
* Add thermal status API for app and unit testWei Wang2018-11-201-8/+13
| | | | | | | | | | Test: Manually on Thermal HAL 2.0 device Test: Manually on Thermal HAL 1.1 device Test: Manually on no Thermal HAL emulator Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java Bug: 111086696 Bug: 119413961 Change-Id: I6723406123d12339e82e9e87eec14b7f9a301897
* Add thermal service into system_serverWei Wang2018-11-071-24/+113
| | | | | | | | | | | | | | | | This system service will listen to ThermalHAL for throttling events and take actions accordingly, e.g. shutdown device and/or sending notification to registered listeners to IThermalSerivce. Bug: 79443945 Bug: 118510237 Bug: 111086696 Bug: 116541003 Test: Boot and test callback on ThermalHAL 1.1 Test: Boot and test callback on ThermalHAL 2.0 Test: Kill ThermalHAL process Test: Change device threshold to trigger shutdown Change-Id: I1f4066c9f1cf9ab46c1738a0a4435802512e4339
* thermalservice: future-proofing fixup to Temperature constructorTodd Poynor2017-08-161-2/+2
| | | | | | | | | | Change the default constructor to leverage the constructor with params specified, to avoid future code duplication if more logic is added to constructors in the future. Test: manual: marlin with temporary java thermal event listener Bug: 30982366 Change-Id: I0be55fe2561f606ddf1bcebb98ae7e1120ff8d2d
* thermalservice: Add ThermalService java interfacesTodd Poynor2017-07-281-0/+101
Binder service ThermalService broadcasts thermal events to registered listeners. Test: manual: marlin with modified thermal-engine.conf and temporary java thermal event listener Bug: 30982366 Change-Id: I11f7fd18feff3b9af0eecc3fd3a13d54c0b97ff0