diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-02-01 16:05:25 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2013-02-01 16:15:53 -0800 |
commit | 0c5b66fc9f29f2bcd1cfaa976cd0755bca340ec7 (patch) | |
tree | dffeeafd4a31a546ad15260b4ec2780c39a9f15a /tests/permission | |
parent | 1782468c8867292995cf4199afa6e8e7ae118bef (diff) | |
download | frameworks_base-0c5b66fc9f29f2bcd1cfaa976cd0755bca340ec7.zip frameworks_base-0c5b66fc9f29f2bcd1cfaa976cd0755bca340ec7.tar.gz frameworks_base-0c5b66fc9f29f2bcd1cfaa976cd0755bca340ec7.tar.bz2 |
Fix build.
Change-Id: I9a1ef2370e20b70b15f6f59229802825127174ff
Diffstat (limited to 'tests/permission')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java | 5 |
1 files changed, 3 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 2416828..90b6abc 100644 --- a/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java +++ b/tests/permission/src/com/android/framework/permission/tests/VibratorServicePermissionTest.java @@ -20,6 +20,7 @@ import junit.framework.TestCase; import android.os.Binder; import android.os.IVibratorService; +import android.os.Process; import android.os.RemoteException; import android.os.ServiceManager; import android.test.suitebuilder.annotation.SmallTest; @@ -46,7 +47,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibrate() throws RemoteException { try { - mVibratorService.vibrate(null, 2000, new Binder()); + mVibratorService.vibrate(Process.myUid(), null, 2000, new Binder()); fail("vibrate did not throw SecurityException as expected"); } catch (SecurityException e) { // expected @@ -62,7 +63,7 @@ public class VibratorServicePermissionTest extends TestCase { */ public void testVibratePattern() throws RemoteException { try { - mVibratorService.vibratePattern(null, new long[] {0}, 0, new Binder()); + mVibratorService.vibratePattern(Process.myUid(), null, new long[] {0}, 0, new Binder()); fail("vibratePattern did not throw SecurityException as expected"); } catch (SecurityException e) { // expected |