summaryrefslogtreecommitdiffstats
path: root/tests/permission
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-03-19 18:42:31 -0400
committerJohn Spurlock <jspurlock@google.com>2014-03-19 18:42:31 -0400
commit2fcce9612d32df06c8dcd3c522411f4f49ad8138 (patch)
tree95e8b6c41557810a0999317b73529c73201eb1cb /tests/permission
parent5b39f63c2489c16e2409c7e6bac7cced7a23c049 (diff)
downloadframeworks_base-2fcce9612d32df06c8dcd3c522411f4f49ad8138.zip
frameworks_base-2fcce9612d32df06c8dcd3c522411f4f49ad8138.tar.gz
frameworks_base-2fcce9612d32df06c8dcd3c522411f4f49ad8138.tar.bz2
Fix broken tests to fix build
Change-Id: I6bb9d178a9f1b09c1b247ec9cbdd57507295c4bf
Diffstat (limited to 'tests/permission')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java7
1 files changed, 5 insertions, 2 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 90b6abc..b12ed94 100644
--- a/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java
+++ b/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java
@@ -18,6 +18,7 @@ package com.android.framework.permission.tests;
import junit.framework.TestCase;
+import android.media.AudioManager;
import android.os.Binder;
import android.os.IVibratorService;
import android.os.Process;
@@ -47,7 +48,8 @@ public class VibratorServicePermissionTest extends TestCase {
*/
public void testVibrate() throws RemoteException {
try {
- mVibratorService.vibrate(Process.myUid(), null, 2000, new Binder());
+ mVibratorService.vibrate(Process.myUid(), null, 2000, AudioManager.STREAM_ALARM,
+ new Binder());
fail("vibrate did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
@@ -63,7 +65,8 @@ public class VibratorServicePermissionTest extends TestCase {
*/
public void testVibratePattern() throws RemoteException {
try {
- mVibratorService.vibratePattern(Process.myUid(), null, new long[] {0}, 0, new Binder());
+ mVibratorService.vibratePattern(Process.myUid(), null, new long[] {0}, 0,
+ AudioManager.STREAM_ALARM, new Binder());
fail("vibratePattern did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected