commit | ecf98fb4161f0ffa6a0060373c84cf4ac7e9f5c3 | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Mon Jul 22 17:12:41 2019 -0700 |
committer | Kweku Adams <kwekua@google.com> | Tue Jul 23 14:55:34 2019 -0700 |
tree | 33933f925f58943abb0523c5c26256a49d049594 | |
parent | 084ac5e0c8dd2b965a0e7e51322a112b467ff877 [diff] |
Delay idle alarm if there's an upcoming AlarmClock alarm. The system won't go into deep idle when there's an AlarmClock set to go off in the next hour. Knowing this, it doesn't make a lot of sense to schedule an alarm to see if we can go into idle before the AlarmClock alarm goes off. Changing to schedule the idle alarm to go off after the AlarmClock alarm. Bug: 135975445 Test: atest com.android.server.DeviceIdleControllerTest Change-Id: I98bf4131b7b4a1006e37aa42bcbc7dda7e137d1d