Add missing permission tests for VibratorManagerService

Add a regression test to cover the SecurityException that caused the
linked bug. The test fails without the fix cl merged.

Also add all missing permission tests for the VibratorManagerService
API, and adds this test to presubmit.

Bug: 180324695
Test: VibratorManagerServicePermissionTest
Change-Id: I71238fcb4d5204aa7861ed4855579750f391102a
This commit is contained in:
Lais Andrade
2021-02-16 16:11:41 +00:00
parent 8a6a2bce6c
commit fc7fd1e06d
4 changed files with 130 additions and 44 deletions

View File

@@ -38,6 +38,20 @@
}
]
},
{
"name": "FrameworkPermissionTests",
"options": [
{
"include-annotation": "android.platform.test.annotations.Presubmit"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
},
{
"exclude-annotation": "org.junit.Ignore"
}
]
},
{
"name": "FrameworksServicesTests",
"options": [