Add CTS for Intent.ACTION_CLOSE_SYSTEM_DIALOGS

Since feature is still disabled, we enable the feature on the tests to
verify behavior. Here we're testing the behavior for regular apps
pre/post SDK level S, for shell (which has the permission) and for
tests instrumented by the shell.

I also created a shared build module between the test and the app to
share the service interface used to communicate between the two. This
module can be reused for future similar situations.

Bug: 159105552
Test: atest CtsAppTestCases:android.app.cts.CloseSystemDialogsTest
Change-Id: I811ea9351ec417d3891c6fc4a4dcbec8724c8043
10 files changed