History log of /frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a6f7b25c3d160be02cb7384f154a1f77a8faaffa 10-Apr-2017 Salvador Martinez <dehboxturtle@google.com> Added dialog to notify user of thermal shutdown

tldr; Have the phone check when it reboots if it last shut
down due to heat. If so, we should show the user an
notification and dialog giving them more details.

- Added hidden api to allow apps to query system_server
for the reason the phone last rebooted
- Added notification that is shown when the phone is
booted if the last shutdown was due to excessive
heat.
- Added dialog to provide more details about the
shutdown if the notification is tapped.
- Added tests to verify that file is read and
as expected.
- Updated code for high temperature warning that
is shown while the phone is running to avoid
mixups in the future.

Test: FrameworksServiceTests
Bug: 30994946
Change-Id: Ic25f42539911c89ba7f1834e206f7931d65c2865
/frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java
92681e8cfbbae58b00a80bb1e60f5444cf53fbdd 28-Feb-2017 jackqdyulei <jackqdyulei@google.com> Hook up screen brightness knob to DisplayPowerController.

This knob is designed to effectively tune the battery saver.

Bug: 34693888
Test: FrameworksServicesTests
Change-Id: I9fd7896f59fabd9baf649cdb12f01b1baaf4c34b
/frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java