From b4163a6e12ee7100c758c6d3d062ade1f2843fce Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 2 Aug 2012 18:31:26 -0700 Subject: Add APIs for interacting across users. - Expose the existing Context.sendBroadcast() as Context.sendBroadcastAsUser(). - Add new android:singleUser attribute for services. - Add new INTERACT_ACROSS_USERS_FULL permission for full system-level access to cross-user interface (allows sendBroadcastAsUser() to send to any receiver). - Add new INTERACT_ACROSS_USERS_FULL permission for more restricted cross-user interaction: this is required for android:singleUser, and allows you to use sendBroadcastAsUser() but only to send to your own receivers. Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9 --- test-runner/src/android/test/mock/MockContext.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test-runner') diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java index bf583e1..92c6676 100644 --- a/test-runner/src/android/test/mock/MockContext.java +++ b/test-runner/src/android/test/mock/MockContext.java @@ -284,9 +284,8 @@ public class MockContext extends Context { throw new UnsupportedOperationException(); } - /** @hide */ @Override - public void sendBroadcast(Intent intent, int userId) { + public void sendBroadcastToUser(Intent intent, int userId) { throw new UnsupportedOperationException(); } -- cgit v1.1