Merge "Fix issue #24571425: Device does not come out of idle mode for maintenance" into mnc-dr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
56f4197148
@@ -971,8 +971,8 @@ class AlarmManagerService extends SystemService {
|
|||||||
// This is a special alarm that will put the system into idle until it goes off.
|
// 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
|
// 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
|
// to pull that earlier if there are existing alarms that have requested to
|
||||||
// bring us out of idle.
|
// bring us out of idle at an earlier time.
|
||||||
if (mNextWakeFromIdle != null) {
|
if (mNextWakeFromIdle != null && a.whenElapsed > mNextWakeFromIdle.whenElapsed) {
|
||||||
a.when = a.whenElapsed = a.maxWhenElapsed = 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.
|
// 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: ");
|
pw.print(" Idling until: ");
|
||||||
if (mPendingIdleUntil != null) {
|
if (mPendingIdleUntil != null) {
|
||||||
pw.println(mPendingIdleUntil);
|
pw.println(mPendingIdleUntil);
|
||||||
mPendingIdleUntil.dump(pw, " ", nowRTC, nowELAPSED, sdf);
|
mPendingIdleUntil.dump(pw, " ", nowRTC, nowELAPSED, sdf);
|
||||||
} else {
|
} else {
|
||||||
pw.println("null");
|
pw.println("null");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user