diff --git a/services/core/java/com/android/server/display/TEST_MAPPING b/services/core/java/com/android/server/display/TEST_MAPPING index c4a566fd7b62d..5e4e27069fb1e 100644 --- a/services/core/java/com/android/server/display/TEST_MAPPING +++ b/services/core/java/com/android/server/display/TEST_MAPPING @@ -1,15 +1,7 @@ { "presubmit": [ { - "name": "FrameworksMockingServicesTests", - "options": [ - {"include-filter": "com.android.server.display"}, - {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, - {"exclude-annotation": "androidx.test.filters.FlakyTest"} - ] - }, - { - "name": "FrameworksServicesTests", + "name": "DisplayServiceTests", "options": [ {"include-filter": "com.android.server.display"}, {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, @@ -31,5 +23,14 @@ } ] } + ], + "postsubmit": [ + { + "name": "DisplayServiceTests", + "options": [ + {"include-filter": "com.android.server.display"}, + {"exclude-annotation": "org.junit.Ignore"} + ] + } ] -} \ No newline at end of file +} diff --git a/services/tests/displayservicetests/TEST_MAPPING b/services/tests/displayservicetests/TEST_MAPPING index d8655194ab0f1..477860d3a1c5e 100644 --- a/services/tests/displayservicetests/TEST_MAPPING +++ b/services/tests/displayservicetests/TEST_MAPPING @@ -1,13 +1,7 @@ { - "presubmit": [ + "imports": [ { - "name": "DisplayServiceTests", - "options": [ - {"include-filter": "com.android.server.display"}, - {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, - {"exclude-annotation": "androidx.test.filters.FlakyTest"}, - {"exclude-annotation": "org.junit.Ignore"} - ] + "path": "frameworks/base/services/core/java/com/android/server/display" } ] }