OSDN Git Service

Fix spurious restore session timeouts
authorChristopher Tate <ctate@google.com>
Thu, 16 Oct 2014 00:49:42 +0000 (17:49 -0700)
committerChristopher Tate <ctate@android.com>
Thu, 16 Oct 2014 01:34:01 +0000 (01:34 +0000)
commit0f32717a17307ee581381d7f8527b686aacb3ac4
tree14bacccb9409dcf741f43c55e81aeeeb66175b22
parent20de619d66a594fd9e6e76a3a2cb79422aef577c
Fix spurious restore session timeouts

The restore-session idle timeout should not be ticking while we're
doing legitimate restore work.  We now explicitly stop the timeout
ticker [a delayed message on our handler thread] whenever we undertake
a valid restore operation.  The timer is already correctly resumed
when restore operations conclude.

(In practice we need to suspend the timeout tracking at exactly those
times when we're entering the wakelock-protected restore flow.  The
timeout is reestablished when the wakelock is released; this part
is already in the code.)

Bug 17990544

Change-Id: I7318020ce30fd9c35bc3a644f8c101fd3d063c8b
services/backup/java/com/android/server/backup/BackupManagerService.java