From 151ec4c9f8ca34625733730a4551a23eb97cda23 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 7 Sep 2012 19:25:16 -0700 Subject: More multi-user methods in PM pm can list installed packages by user now. Bug: 6926465 Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6 --- test-runner/src/android/test/mock/MockPackageManager.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test-runner') 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 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 queryIntentActivitiesForUser(Intent intent, + int flags, int userId) { + throw new UnsupportedOperationException(); + } + @Override public List queryIntentActivityOptions(ComponentName caller, Intent[] specifics, Intent intent, int flags) { -- cgit v1.1