summaryrefslogtreecommitdiff
path: root/core/java/android/os/HardwarePropertiesManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Atom: TemperatureReportedTej Singh2018-02-261-0/+2
| | | | | | | | Makes the temperature reported atom pulled, and adds CPU, GPU, and SKIN temperatures. Pulls information from the thermal hal. Test: CTS test on cl in this topic Change-Id: I0a8e2d1135bdd77e1cc510f24ff5214ce9e14ead
* Add more IntDef prefixes for auto-documenting.Jeff Sharkey2017-12-131-6/+10
| | | | | | | Test: builds, boots Bug: 70177949 Exempt-From-Owner-Approval: annotation-only changes Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
* Annotate @SystemApi with required permissions.Jeff Sharkey2017-06-051-0/+2
| | | | | | | | | | | | | | | | | Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
* Remove PO support from HardwarePropertiesManagerPolina Bondarenko2017-01-091-6/+6
| | | | | | | | | Removed broken profile owner support from HardwarePropertiesManager and documentation. Bug: 32945942 Test: compile Change-Id: Ie5a26a4c94c35f6d894eff57c996552406ddd723
* thermal: add usage of IThermal.Polina Bondarenko2016-11-071-3/+1
| | | | | | | | | HardwarePropertiesManagerService native impl uses IThermal instead of thermal_module. Bug:32022261 Test: CTS Change-Id: I85e5c5bedb1cb6762207ccfa3e3a7dd4c00ee30a
* Import android.hardware.thermal@1.0 constants into HardwarePropertiesManager.Andreas Huber2016-10-251-4/+6
| | | | | | Bug: 32200867 Test: make Change-Id: I4e63e7c5431b33011b7c334077a5bd0c7edcf3a2
* Merge "Include VR throttling limit in hardware properties." into nyc-devRuben Brunk2016-03-311-2/+11
|\
| * Include VR throttling limit in hardware properties.Ruben Brunk2016-03-251-2/+11
| | | | | | | | | | Bug: 27549685 Change-Id: I0e7f06c772c6547bb3357218c1ebf295cbd1dbd2
* | Allow current VrListenerService to read thermal info.Ruben Brunk2016-03-231-3/+6
|/ | | | | | Bug: 27549685 Bug: 22855417 Change-Id: I2d0cb85b54767876bcbf503b5f198bd7f4065680
* Added skin temperature, thresholds to HardwarePropertiesManagerPolina Bondarenko2016-03-191-16/+60
| | | | | Bug: 27425887 Change-Id: I13f69ae37906b71d93edbf6bea6daf809d97cfd5
* When system server goes down, crash apps more.Jeff Sharkey2016-03-011-6/+3
| | | | | | | | | | | | | Apps making calls into the system server may end up persisting internal state or making security decisions based on the perceived success or failure of a call, or the default values returned. The reality is that if the system process just died, init will be along shortly to kill all running apps, so we should have no problem rethrowing the RemoteException as a RuntimeException. Bug: 27364859 Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
* Removed IAE from HardwarePropertiesManager.Polina Bondarenko2016-02-261-2/+2
| | | | | | | | If unknown temperature type is passed to getDeviceTemperatures, returns empty array. Bug: 27365463 Change-Id: I223b5e4e0642aee7b32e44fea84e8dc465b7e90b
* Added hardwareproperties SystemServicePolina Bondarenko2016-02-191-13/+35
| | | | | | | | | | Add HardwarePropertiesManagerService which call native methods to get CPU, GPU, battery temperatures, CPU usage info, fan speeds. Restrict hardware properties retrieval only for device and profile owners. Bug: 26945055 Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
* HardwarePropertiesManager: Add API for hardware properties retrievalPolina Bondarenko2016-01-221-0/+102
Add serive "hardwareproperties" and methods getDeviceTemperatures, getCpuUsages and getFanSpeeds to retrieve hardware properties: device temperatures (CPU, GPU and battery), CPU usages and fan speeds. This is a public API. Bug: 22407109 Change-Id: If7efcbba7b160256d41704b60d93a7218dcc79d7