Fixes test fail cause by unexpected events

In special case, there are some events, such as
{@link #TYPE_WINDOW_BOUNDS_CHANGED} and
{@link #TYPE_VIEW_INSETS_CHANGED}, will be accidentally
generated by the system. Because these events were not
expected in the test, remove them if needed.

Bug: 201610149
Fixes: 201322949
Fixes: 200998013
Fixes: 199785379
Fixes: 201006339
Fixes: 199785591
Fixes: 201028291
Test: atest CtsContentCaptureServiceTestCases
Change-Id: Ieaabc52157c8b2bba1c7d7646508b430888c1f02
Merged-In: Ieaabc52157c8b2bba1c7d7646508b430888c1f02
(cherry picked from commit a67114b441419951ebfe3ba3d214dceaff989423)
3 files changed