diff --git a/core/java/android/os/TEST_MAPPING b/core/java/android/os/TEST_MAPPING index 954ee3c99346e..dae9b5ea6a437 100644 --- a/core/java/android/os/TEST_MAPPING +++ b/core/java/android/os/TEST_MAPPING @@ -26,6 +26,19 @@ {"exclude-annotation": "org.junit.Ignore"} ] }, + { + "file_patterns": [ + "[^/]*(Vibrator|Vibration)[^/]*\\.java", + "vibrator/.*" + ], + "name": "CtsVibratorTestCases", + "options": [ + {"exclude-annotation": "android.platform.test.annotations.LargeTest"}, + {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, + {"exclude-annotation": "androidx.test.filters.FlakyTest"}, + {"exclude-annotation": "org.junit.Ignore"} + ] + }, { "file_patterns": ["Bugreport[^/]*\\.java"], "name": "BugreportManagerTestCases", diff --git a/services/core/java/com/android/server/vibrator/TEST_MAPPING b/services/core/java/com/android/server/vibrator/TEST_MAPPING index f0a7e470f8fda..92b327d9abff7 100644 --- a/services/core/java/com/android/server/vibrator/TEST_MAPPING +++ b/services/core/java/com/android/server/vibrator/TEST_MAPPING @@ -1,21 +1,10 @@ { - "presubmit": [ + "imports": [ { - "name": "FrameworksVibratorServicesTests", - "options": [ - {"exclude-annotation": "android.platform.test.annotations.LargeTest"}, - {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, - {"exclude-annotation": "androidx.test.filters.FlakyTest"}, - {"exclude-annotation": "org.junit.Ignore"} - ] - } - ], - "postsubmit": [ + "path": "frameworks/base/services/tests/vibrator" + }, { - "name": "FrameworksVibratorServicesTests", - "options": [ - {"exclude-annotation": "org.junit.Ignore"} - ] + "path": "cts/tests/vibrator" } ] } diff --git a/services/core/jni/TEST_MAPPING b/services/core/jni/TEST_MAPPING new file mode 100644 index 0000000000000..ea44d06b9fc35 --- /dev/null +++ b/services/core/jni/TEST_MAPPING @@ -0,0 +1,16 @@ +{ + "presubmit": [ + { + "file_patterns": [ + "[^/]*(vibrator)[^/]*\\.[^/]*" + ], + "name": "CtsVibratorTestCases", + "options": [ + {"exclude-annotation": "android.platform.test.annotations.LargeTest"}, + {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, + {"exclude-annotation": "androidx.test.filters.FlakyTest"}, + {"exclude-annotation": "org.junit.Ignore"} + ] + } + ] +} diff --git a/services/tests/vibrator/TEST_MAPPING b/services/tests/vibrator/TEST_MAPPING index 22b72fa4ff9ee..f0a7e470f8fda 100644 --- a/services/tests/vibrator/TEST_MAPPING +++ b/services/tests/vibrator/TEST_MAPPING @@ -1,7 +1,21 @@ { - "imports": [ + "presubmit": [ { - "path": "frameworks/base/services/core/java/com/android/server/vibrator" + "name": "FrameworksVibratorServicesTests", + "options": [ + {"exclude-annotation": "android.platform.test.annotations.LargeTest"}, + {"exclude-annotation": "android.platform.test.annotations.FlakyTest"}, + {"exclude-annotation": "androidx.test.filters.FlakyTest"}, + {"exclude-annotation": "org.junit.Ignore"} + ] + } + ], + "postsubmit": [ + { + "name": "FrameworksVibratorServicesTests", + "options": [ + {"exclude-annotation": "org.junit.Ignore"} + ] } ] }