Lais Andrade fc7fd1e06d 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
2021-02-22 01:08:39 +00:00

27 lines
738 B
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
android_test {
name: "FrameworkPermissionTests",
// Include all test java files.
srcs: ["src/**/*.java"],
libs: [
"android.test.runner",
"android.test.base",
"telephony-common",
],
static_libs: [
"androidx.test.runner",
"junit",
"platform-test-annotations",
],
platform_apis: true,
test_suites: ["device-tests"],
}