From 1ea7ed0278ea9b8bcfbd2e0e6ec5277c356f2a57 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Fri, 15 Sep 2017 09:28:51 -0700 Subject: Add integration tests for BackgroundDexOptService Add three tests: 1. Under normal conditions, check that dexopt upgrades test app to $(getprop pm.dexopt.bg-dexopt). 2. Under low storage conditions and package is unused, check that dexopt downgrades test app to $(getprop pm.dexopt.inactive). 3. Under low storage conditions and package is recently used, check that dexopt upgrades test app to $(getprop pm.dexopt.bg-dexopt). Test: atest -v BackgroundDexOptServiceIntegrationTests BUG: 64807719 Change-Id: Iaa50d5120ea0255b38226bda0452e7e47f1ff5d0 --- .../AndroidTest.xml | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml (limited to 'tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml') diff --git a/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml b/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml new file mode 100644 index 000000000000..9bb1e280b861 --- /dev/null +++ b/tests/BackgroundDexOptServiceIntegrationTests/AndroidTest.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-59-g8ed1b