From e1f06b88e8a5c01a405bf00af4ef5e9e8046161a Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Wed, 20 Jun 2018 17:48:43 +0100 Subject: Add an optional reason field to vibrator service Test: Run vibration test, see reason written to log and trace. Bug: 109654229 Change-Id: I13db6968c125e7c2b2483a14faad5b6ea9b4cda6 --- .../framework/permission/tests/VibratorServicePermissionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/permission/src') 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 -- cgit v1.2.3-59-g8ed1b