commit | 4209a84b7115238753c2201937350b1e321a0bad | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Jun 12 11:01:07 2019 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Jun 12 11:37:15 2019 -0600 |
tree | f71fe826639482ef8e943bad76e6f5ed9c3a3442 | |
parent | 101493ff3bdcc1e65b4943e4fb41feee5ae7ab79 [diff] |
Wait until any background events are processed. Some MediaProvider events (such as thumbnail invalidation) are handled on a background thread. To reduce flaky tests, wait until all background events have been processed, which is more robust than sleep. Bug: 134879702 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: If9f9b3b5adebeacb93a3b8fa2aba6dd7d98b083b