From c3cda8b18f506abd114a810b3e256b19b7e4059d Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Fri, 10 Mar 2023 19:41:38 +0000 Subject: [PATCH] Add presubmit tests to gate ActivityManager and OomAdjuster changes. OomAdjuster.java determines process state/capability, active/idle and other things about the process. Add more tests to presubmit to gate OomAdjuster changes. Bug: 272781597 Test: NA. Change-Id: If2a8c01433c4bc618609ec66fa087554bff3e1bd --- .../java/com/android/server/am/TEST_MAPPING | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/services/core/java/com/android/server/am/TEST_MAPPING b/services/core/java/com/android/server/am/TEST_MAPPING index d4bcd9e9c66e7..97d48796596b8 100644 --- a/services/core/java/com/android/server/am/TEST_MAPPING +++ b/services/core/java/com/android/server/am/TEST_MAPPING @@ -3,9 +3,11 @@ { "name": "CtsAppTestCases", "options": [ - { - "include-filter": "android.app.cts.TaskDescriptionTest" - }, + { "include-filter": "android.app.cts.TaskDescriptionTest" }, + { "include-filter": "android.app.cts.ActivityManagerTest" }, + { "include-filter": "android.app.cts.ActivityManagerProcessStateTest" }, + { "include-filter": "android.app.cts.ServiceTest" }, + { "include-filter": "android.app.cts.ActivityManagerFgsBgStartTest" }, { "include-annotation": "android.platform.test.annotations.Presubmit" }, @@ -14,7 +16,8 @@ }, { "exclude-annotation": "androidx.test.filters.FlakyTest" - } + }, + { "exclude-annotation": "org.junit.Ignore" } ] }, { @@ -148,6 +151,16 @@ "include-filter": "android.appsecurity.cts.AppDataIsolationTests" } ] + }, + { + "name": "CtsAppTestCases", + "options": [ + { "include-filter": "android.app.cts.TaskDescriptionTest" }, + { "include-filter": "android.app.cts.ActivityManagerTest" }, + { "include-filter": "android.app.cts.ActivityManagerProcessStateTest" }, + { "include-filter": "android.app.cts.ServiceTest" }, + { "include-filter": "android.app.cts.ActivityManagerFgsBgStartTest" } + ] } ] }