am b3d02465: am 9a3eacbe: Merge "Revert "Always re-establish kernel alarms when considering new alarm set"" into cw-d-mr1-dev
* commit 'b3d02465f859dbe62b14c787c7de966abd6c7381': Revert "Always re-establish kernel alarms when considering new alarm set"
This commit is contained in:
@@ -1611,8 +1611,7 @@ class AlarmManagerService extends SystemService {
|
|||||||
if (mAlarmBatches.size() > 0) {
|
if (mAlarmBatches.size() > 0) {
|
||||||
final Batch firstWakeup = findFirstWakeupBatchLocked();
|
final Batch firstWakeup = findFirstWakeupBatchLocked();
|
||||||
final Batch firstBatch = mAlarmBatches.get(0);
|
final Batch firstBatch = mAlarmBatches.get(0);
|
||||||
// always update the kernel alarms, as a backstop against missed wakeups
|
if (firstWakeup != null && mNextWakeup != firstWakeup.start) {
|
||||||
if (firstWakeup != null) {
|
|
||||||
mNextWakeup = firstWakeup.start;
|
mNextWakeup = firstWakeup.start;
|
||||||
setLocked(ELAPSED_REALTIME_WAKEUP, firstWakeup.start);
|
setLocked(ELAPSED_REALTIME_WAKEUP, firstWakeup.start);
|
||||||
}
|
}
|
||||||
@@ -1625,8 +1624,7 @@ class AlarmManagerService extends SystemService {
|
|||||||
nextNonWakeup = mNextNonWakeupDeliveryTime;
|
nextNonWakeup = mNextNonWakeupDeliveryTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// always update the kernel alarm, as a backstop against missed wakeups
|
if (nextNonWakeup != 0 && mNextNonWakeup != nextNonWakeup) {
|
||||||
if (nextNonWakeup != 0) {
|
|
||||||
mNextNonWakeup = nextNonWakeup;
|
mNextNonWakeup = nextNonWakeup;
|
||||||
setLocked(ELAPSED_REALTIME, nextNonWakeup);
|
setLocked(ELAPSED_REALTIME, nextNonWakeup);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user