summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-08-02 18:31:26 -0700
committerDianne Hackborn <hackbod@google.com>2012-08-02 19:07:57 -0700
commitb4163a6e12ee7100c758c6d3d062ade1f2843fce (patch)
tree2948e83dec184906f2c44ee332431f219b78359d /test-runner
parentb1758cf8cd007bfffb3d8adceca25f3b0c82bd77 (diff)
downloadframeworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.zip
frameworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.tar.gz
frameworks_base-b4163a6e12ee7100c758c6d3d062ade1f2843fce.tar.bz2
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
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java3
1 files changed, 1 insertions, 2 deletions
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();
}