Merge "Wait until any background events are processed." into stage-aosp-master...
Merge "Wait until any background events are processed." into stage-aosp-master am: 05893253 am: 8cf1cab8
am: 120715a5
Change-Id: I1a0a379061ba3e2d79d1f0600a400167ae8c74eb