Test display event delivery to cached processes.
Verify that a cached process does not receive display notifications.
This CL is a port of the CTS test DisplayEventTest into the unit-test
infrastructure. A follow-on CL will add tests to verify that a frozen
process does not receive display notfications. The new tests must use
platform APIs to interact with the freezer, but platform APIs are not
permitted in CTS tests.
In addition to the atest:
* verified that this test runs in the DisplayServicesTests group.
* verified that altering the DisplayManagerService UidListener code
will trigger failures in this test.
* verified that altering the DisplayManagerService isUidCached code
will trigger failures in this test.
Flag: EXEMPT test-only
Test: atest
* DisplayServicesTests
Bug: 326315985
Change-Id: Iaa7516a31a9d30e0601e8ce510f7ed89f82bbc91
diff --git a/services/tests/servicestests/AndroidTest.xml b/services/tests/servicestests/AndroidTest.xml
index b56af87..5298251 100644
--- a/services/tests/servicestests/AndroidTest.xml
+++ b/services/tests/servicestests/AndroidTest.xml
@@ -35,6 +35,7 @@
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
<option name="cleanup-apks" value="true" />
<option name="install-arg" value="-t" />
+ <option name="test-file-name" value="DisplayManagerTestApp.apk" />
<option name="test-file-name" value="FrameworksServicesTests.apk" />
<option name="test-file-name" value="SuspendTestApp.apk" />
<option name="test-file-name" value="SimpleServiceTestApp1.apk" />