summaryrefslogtreecommitdiff
path: root/tests/permission/src
diff options
context:
space:
mode:
author Alexey Kuzmin <alexeykuzmin@google.com> 2018-06-20 17:48:43 +0100
committer Alexey Kuzmin <alexeykuzmin@google.com> 2018-07-27 20:32:53 +0100
commite1f06b88e8a5c01a405bf00af4ef5e9e8046161a (patch)
treea7950a535c1e7a14fb136e5dbe16aaa88440604f /tests/permission/src
parentf94dcd98180b83af193cd6a2602676a06f2978e9 (diff)
Add an optional reason field to vibrator service
Test: Run vibration test, see reason written to log and trace. Bug: 109654229 Change-Id: I13db6968c125e7c2b2483a14faad5b6ea9b4cda6
Diffstat (limited to 'tests/permission/src')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java b/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java
index 2757296f588f..388c7d03dff2 100644
--- a/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java
+++ b/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java
@@ -52,7 +52,7 @@ public class VibratorServicePermissionTest extends TestCase {
final VibrationEffect effect =
VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE);
mVibratorService.vibrate(Process.myUid(), null, effect, AudioManager.STREAM_ALARM,
- new Binder());
+ "testVibrate", new Binder());
fail("vibrate did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected