diff options
author | Robert Horvath <robhor@google.com> | 2021-06-24 14:44:49 +0200 |
---|---|---|
committer | Robert Horvath <robhor@google.com> | 2021-06-24 14:49:39 +0200 |
commit | 822394b0658a84a55c2534428b6625eb3208704b (patch) | |
tree | a48963fb5a5e035fd770945659ed1652fc8b8210 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 5d422575615906df780b647f8d65418f519d8114 (diff) |
Dismiss Inattentive Sleep Warning when inattentive sleep is disabled
Make sure that if attentive_timeout is set < 0,
maybeHideInattentiveSleepWarningLocked is still called to dismiss the
warning.
Bug: 191822171
Test: Show warning:
adb shell settings put secure attentive_timeout 30000
Disable inattentive sleep:
adb shell settings put secure attentive_timeout -1
Verify warning is dismissed
Test: atest PowerManagerServiceTest#testInattentiveSleep_hideWarningIfInattentiveSleepIsDisabled
Test: atest --rerun-until-failure 20 InattentiveSleepTests#testInattentiveSleep_noWarningShownIfInattentiveSleepDisabled
Change-Id: I9e5f956924bba9f29ae6cac94b087bd73ed0bac0
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions