History log of /frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d1ad408736f28229c3f625de6873e3862adf6bf 14-Oct-2017 Karthik Ravi Shankar <karthikrs@google.com> Add crash recovery logic to HardwarePropertiesManagerService

The HardwarePropertiesManagerService-JNI communicates with the thermal
HAL to expose temperature and other thermal data to Java services. When
Thermal HAL died, there was no recovery mechanism in place. This change
adds that recovery mechanism.

Bug: 67769672
Test:
1) Rebooted the device multiple times and checked that VrCore is able
to get the thermal information correctly.
2) Enter and exit VR mode multiple times killing thermalHal by design
and ensure that we're getting thermal temperatures correctly.

10-16 10:05:19.605 1099 1600 E HardwarePropertiesManagerService-JNI:
ThermalHAL just died
...
10-16 10:05:29.761 3459 3459 D ThermalWarningManager: THERMAL:
ThermalInfo: [current temp=33.0, VR throttling temp (soft exit)=52.0, VR
hard exit temp=54.0, VR warning temp=51.0, last throttling warning wall
time=n/a, last soft 'exit VR' flow wall time=n/a, last hard 'exit VR'
flow wall time=n/a]

Change-Id: I55d8eae31526e1bd1a232afea5bd02cb0afca142
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
5c091dc9449b583e18656a8850a61f557dfcc945 20-Jul-2017 Steven Moreland <smoreland@google.com> Merge "frameworks/base: use proper nativehelper headers"
am: 826eafd958

Change-Id: I36f10ff4d963284a313f1cc5b368f82549a4adb2
2279b2534272282a5b5152723235da397e49195c 19-Jul-2017 Steven Moreland <smoreland@google.com> frameworks/base: use proper nativehelper headers

libnativehelper exports headers under nativehelper. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: modules using frameworks/base find headers
Bug: 63762847
Change-Id: I0f9f231acdebe460f279135462f43d3e32eff64d
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
8b44df35f1e159f27445e009c02e4084af70772f 20-Mar-2017 Steven Moreland <smoreland@google.com> Remove unused using statement.

Test: pass
Bug: 36099713
Change-Id: I07b90f9592fdd6b9c58ee52dc4f49f5e8b9f3459
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
51c3b50c566b3b681d3d7a93716bd5fdb0751b25 20-Jan-2017 Chris Phoenix <cphoenix@google.com> thermal HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934

Change-Id: Id35c5eac388dada951b2f3708554a84337a500c9
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
8d5bb111268b28b7836e8b9a4249932d91c6244f 16-Jan-2017 Polina Bondarenko <pbond@google.com> Added NAN temperature value handling to HardwarePropertiesManager.

Consider NAN temperature value as undefined temperature.

Bug: 34107726
Test: cts

Change-Id: I933fe3a1c1eb88960cee2eb32cbc56a88d9da9e4
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
d002a8b07becc7ce1b0978b837bd61f29f8c4d18 04-Jan-2017 Steven Moreland <smoreland@google.com> Return<*> getStatus().isOk() -> isOk()

Bug: 31348667
Test: compiles
Change-Id: I7b99a655aefab8c5129b35799e3897a31166be91
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
94d598d301a0e75fd8bb3f49c1b3092229aa2ac9 21-Dec-2016 Todd Poynor <toddpoynor@google.com> HardwarePropertiesManagerService: Fixup log message typo

Trivial typo fixup for IThermal HAL interface load failure.

Test: visual
Change-Id: I10eb01b656a95c5e007d57ff40c16b472e9f53a9
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
71cb0c5b6acc7477d9bb9d969ea0f0f648aec116 11-Oct-2016 Polina Bondarenko <pbond@google.com> thermal: add usage of IThermal.

HardwarePropertiesManagerService native impl uses IThermal instead of
thermal_module.

Bug:32022261
Test: CTS
Change-Id: I85e5c5bedb1cb6762207ccfa3e3a7dd4c00ee30a
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
946ef6417b0b9ba18d509843146e5a1a28ed1049 25-Mar-2016 Ruben Brunk <rubenbrunk@google.com> Include VR throttling limit in hardware properties.

Bug: 27549685
Change-Id: I0e7f06c772c6547bb3357218c1ebf295cbd1dbd2
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
eb84552ef0135c1069f67a12f2e9985d4191880f 01-Mar-2016 Polina Bondarenko <pbond@google.com> Added skin temperature, thresholds to HardwarePropertiesManager

Bug: 27425887
Change-Id: I13f69ae37906b71d93edbf6bea6daf809d97cfd5
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
cb8ca18a46373cd91d83ae41b7369ba4cb2da441 01-Mar-2016 Polina Bondarenko <pbond@google.com> Renamed hardware_properties to thermal HAL.

Fixed HardwarePropertiesManagerService native function according
to changes on thermal HAL.

Bug: 27424857
Change-Id: I4f508833071f631d68031c1c9a6aa8df6cbf5d2a
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp
f8754ac2127f8adf40bd4731f39b16340acdb2f7 12-Feb-2016 Polina Bondarenko <pbond@google.com> Added hardwareproperties SystemService

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
/frameworks/base/services/core/jni/com_android_server_HardwarePropertiesManagerService.cpp