Loading tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibrate() throws RemoteException { try { mVibratorService.vibrate(2000, new Binder()); mVibratorService.vibrate(null, 2000, new Binder()); fail("vibrate did not throw SecurityException as expected"); } catch (SecurityException e) { // expected Loading @@ -62,7 +62,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibratePattern() throws RemoteException { try { mVibratorService.vibratePattern(new long[] {0}, 0, new Binder()); mVibratorService.vibratePattern(null, new long[] {0}, 0, new Binder()); fail("vibratePattern did not throw SecurityException as expected"); } catch (SecurityException e) { // expected Loading Loading
tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibrate() throws RemoteException { try { mVibratorService.vibrate(2000, new Binder()); mVibratorService.vibrate(null, 2000, new Binder()); fail("vibrate did not throw SecurityException as expected"); } catch (SecurityException e) { // expected Loading @@ -62,7 +62,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibratePattern() throws RemoteException { try { mVibratorService.vibratePattern(new long[] {0}, 0, new Binder()); mVibratorService.vibratePattern(null, new long[] {0}, 0, new Binder()); fail("vibratePattern did not throw SecurityException as expected"); } catch (SecurityException e) { // expected Loading