OSDN Git Service

Correct sequencing of widget vs boot-complete broadcasts
authorChristopher Tate <ctate@google.com>
Sat, 8 Jun 2019 00:55:43 +0000 (17:55 -0700)
committerChristopher Tate <ctate@google.com>
Sat, 8 Jun 2019 00:55:43 +0000 (17:55 -0700)
commit74e5b7dea45c76a7acc87c4282ffa7ee6e1cb431
tree8b93aeba5980419192dcc066fd5ab40a06c70060
parentf49c18e1a9bab01c7c6e1101cd8aa1390b401786
Correct sequencing of widget vs boot-complete broadcasts

Past fixes to lock-management issues inadvertently altered the intended
sequencing of the widget-lifecyle and boot-completed broadcasts.  It's
correct now, with the order guaranteed by thread-of-issuance affinity.

Along the way, add the one missing bit of state reporting to the
plaintext broadcast queue dumpsys infrastructure.

Fixes: 131409711
Test: manual - boot and unlock device when widgets are being hosted by
      the home app, and observe the timings & broadcast history.

Change-Id: Iaee75d4f9f85565eab95976633460fc0abd0fa16
services/core/java/com/android/server/am/BroadcastDispatcher.java
services/core/java/com/android/server/am/UserController.java