summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-09-07 19:25:16 -0700
committerAmith Yamasani <yamasani@google.com>2012-09-08 19:14:00 -0700
commit151ec4c9f8ca34625733730a4551a23eb97cda23 (patch)
tree9a0ab8bed19904dce51ae3d23f5ff72c0581b7e2 /test-runner
parent4aacf93d40b4be82aa35bf164d6fd6536c8b2a50 (diff)
downloadframeworks_base-151ec4c9f8ca34625733730a4551a23eb97cda23.zip
frameworks_base-151ec4c9f8ca34625733730a4551a23eb97cda23.tar.gz
frameworks_base-151ec4c9f8ca34625733730a4551a23eb97cda23.tar.bz2
More multi-user methods in PM
pm can list installed packages by user now. Bug: 6926465 Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockPackageManager.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java
index 19eb8d2..cd7ee76 100644
--- a/test-runner/src/android/test/mock/MockPackageManager.java
+++ b/test-runner/src/android/test/mock/MockPackageManager.java
@@ -140,6 +140,12 @@ public class MockPackageManager extends PackageManager {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public List<PackageInfo> getInstalledPackages(int flags, int userId) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public int checkPermission(String permName, String pkgName) {
throw new UnsupportedOperationException();
@@ -215,6 +221,13 @@ public class MockPackageManager extends PackageManager {
throw new UnsupportedOperationException();
}
+ /** @hide */
+ @Override
+ public List<ResolveInfo> queryIntentActivitiesForUser(Intent intent,
+ int flags, int userId) {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public List<ResolveInfo> queryIntentActivityOptions(ComponentName caller,
Intent[] specifics, Intent intent, int flags) {