summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-08-07 19:12:33 -0700
committerDianne Hackborn <hackbod@google.com>2012-08-07 19:19:22 -0700
commit7d19e0242faac8017033dabb872cdf1542fa184c (patch)
treeab12d3c6597bc42bc7c0dca10ded546192c5c249 /test-runner
parent03ad783c5078c7bd487e47bb2a2af67dfbe89f1a (diff)
downloadframeworks_base-7d19e0242faac8017033dabb872cdf1542fa184c.zip
frameworks_base-7d19e0242faac8017033dabb872cdf1542fa184c.tar.gz
frameworks_base-7d19e0242faac8017033dabb872cdf1542fa184c.tar.bz2
More mult-user API work.
- You can now use android:singleUser with receivers and providers. - New API to send ordered broadcasts as a user. - New Process.myUserHandle() API. For now I am trying out "user handle" as the name for the numbers representing users. Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java
index 92c6676..9acffa3 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -285,11 +285,6 @@ public class MockContext extends Context {
}
@Override
- public void sendBroadcastToUser(Intent intent, int userId) {
- throw new UnsupportedOperationException();
- }
-
- @Override
public void sendBroadcast(Intent intent, String receiverPermission) {
throw new UnsupportedOperationException();
}
@@ -308,6 +303,18 @@ public class MockContext extends Context {
}
@Override
+ public void sendBroadcastToUser(Intent intent, int userId) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public void sendOrderedBroadcastToUser(Intent intent, int userId,
+ BroadcastReceiver resultReceiver, Handler scheduler,
+ int initialCode, String initialData, Bundle initialExtras) {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public void sendStickyBroadcast(Intent intent) {
throw new UnsupportedOperationException();
}