diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-10-15 23:11:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-10-15 23:11:12 +0000 |
commit | 56f41971483647e954179301ae40180063d0eba8 (patch) | |
tree | 9d2a1063660c78249fcc075b90163455a361a051 /services | |
parent | 6a032a3aba3741ce55679b97c2f048b523d465de (diff) | |
parent | f383129b0914809e9a1a011f48c945f97ccce333 (diff) | |
download | frameworks_base-56f41971483647e954179301ae40180063d0eba8.zip frameworks_base-56f41971483647e954179301ae40180063d0eba8.tar.gz frameworks_base-56f41971483647e954179301ae40180063d0eba8.tar.bz2 |
Merge "Fix issue #24571425: Device does not come out of idle mode for maintenance" into mnc-dr-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/AlarmManagerService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/AlarmManagerService.java b/services/core/java/com/android/server/AlarmManagerService.java index e3d5d38..a2929bd 100644 --- a/services/core/java/com/android/server/AlarmManagerService.java +++ b/services/core/java/com/android/server/AlarmManagerService.java @@ -971,8 +971,8 @@ class AlarmManagerService extends SystemService { // This is a special alarm that will put the system into idle until it goes off. // The caller has given the time they want this to happen at, however we need // to pull that earlier if there are existing alarms that have requested to - // bring us out of idle. - if (mNextWakeFromIdle != null) { + // bring us out of idle at an earlier time. + if (mNextWakeFromIdle != null && a.whenElapsed > mNextWakeFromIdle.whenElapsed) { a.when = a.whenElapsed = a.maxWhenElapsed = mNextWakeFromIdle.whenElapsed; } // Add fuzz to make the alarm go off some time before the actual desired time. @@ -1256,7 +1256,7 @@ class AlarmManagerService extends SystemService { pw.print(" Idling until: "); if (mPendingIdleUntil != null) { pw.println(mPendingIdleUntil); - mPendingIdleUntil.dump(pw, " ", nowRTC, nowELAPSED, sdf); + mPendingIdleUntil.dump(pw, " ", nowRTC, nowELAPSED, sdf); } else { pw.println("null"); } |