OSDN Git Service

Ignore wallpaper relaunch timeout during shutdown
authorChristopher Tate <ctate@google.com>
Tue, 11 Oct 2016 00:44:48 +0000 (17:44 -0700)
committerChristopher Tate <ctate@google.com>
Tue, 11 Oct 2016 00:50:31 +0000 (17:50 -0700)
commit762dfd156619072e8f74dafaf055b6f0bf7ab2d5
tree487121d7fb4a85dca9b1cef45284655c8f692d56
parent9fe5b1129ed624c019f4866ba068660d0da2a9da
Ignore wallpaper relaunch timeout during shutdown

Because of course during system shutdown, the wallpaper service
won't actually get relaunched.  Sometimes shutdown can take long
enough that this timeout kicks, so we need to avoid clearing the
live wallpaper state spuriously.

For simplicity we just check at "would have timed out now" time
rather than try to distinguish between the shutdown case and a
genuine crash that raced with the shutdown broadcast.

Bug 32020355

Change-Id: I9335b2c0214b4c750ef950fed157d186aa670176
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java