Make more system dialogs could receive CLOSE_SYSTEM_DIALOGS

Currently, we only dismiss AppErroDialog when received
CLOSE_SYSTEM_DIALOGS boradcast. This CL will dismiss all other error
dialogs such as anr dialog to prevent our test cases injecting input
events on such dialog.

- Ignore AppWaitingForDebuggerDialog and FactoryErrorDialog

Bug: 175797415
Test: Show ANR dialog, atest WindowInputTests
Change-Id: I7eac4bbb4a325d50005636a18c211b6e16dd0773
6 files changed