commit | 213049e66f5a1c6d88fba82d7fda415c2776a9ea | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Wed Nov 06 17:23:17 2019 -0500 |
committer | Fabian Kozynski <kozynski@google.com> | Wed Nov 06 18:08:00 2019 -0500 |
tree | 1f9d792badfbaa52a5177257043974b9b0294ce3 | |
parent | 98e9bbdb06d340d966f177173748c87ec93b3e11 [diff] |
Ensure that maps are only accessed in BG thread If the maps are accessed from main thread (as well as bg thread), they could be in an inconsistent state. In particular they could have nulls for non-nullable types. This CL asserts that createFilter is only called in BG thread. It also makes sure that only non-nulls are passed to IntentFilter#addAction. Test: atest UserBroadcastDispatcherTest Fixes: 144039089 Change-Id: I58e66bc9a861c70c830fcbd4476d6dfc991c4ad0