summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-08-16 16:42:52 -0700
committerDianne Hackborn <hackbod@google.com>2012-08-17 10:36:08 -0700
commit79af1dd54c16cde063152922b42c96d72ae9eca8 (patch)
tree142abf0037d20841712e88d65febcbbd92dd5561 /test-runner
parentf1b995f9d049cb5c7225b3b17f09369237a83ca2 (diff)
downloadframeworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.zip
frameworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.tar.gz
frameworks_base-79af1dd54c16cde063152922b42c96d72ae9eca8.tar.bz2
Switch public APIs to use new UserHandle class for identifying users.
Gets rid of "yet another integer" confusion. Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java
index 36f2c14..02d0b45 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -38,6 +38,7 @@ import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
+import android.os.UserHandle;
import java.io.File;
import java.io.FileInputStream;
@@ -304,12 +305,12 @@ public class MockContext extends Context {
}
@Override
- public void sendBroadcastToUser(Intent intent, int userId) {
+ public void sendBroadcastAsUser(Intent intent, UserHandle user) {
throw new UnsupportedOperationException();
}
@Override
- public void sendOrderedBroadcastToUser(Intent intent, int userId,
+ public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
BroadcastReceiver resultReceiver, Handler scheduler,
int initialCode, String initialData, Bundle initialExtras) {
throw new UnsupportedOperationException();