diff options
author | Mihai Preda <preda@google.com> | 2009-05-13 10:13:48 +0200 |
---|---|---|
committer | Mihai Preda <preda@google.com> | 2009-05-15 12:32:07 +0200 |
commit | eae850cefe7e149f396c9e8ca1f34ec02b20a3f0 (patch) | |
tree | a4e19d75aeef5529a0a8084d513638890afac2cd /test-runner/android | |
parent | 75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec (diff) | |
download | frameworks_base-eae850cefe7e149f396c9e8ca1f34ec02b20a3f0.zip frameworks_base-eae850cefe7e149f396c9e8ca1f34ec02b20a3f0.tar.gz frameworks_base-eae850cefe7e149f396c9e8ca1f34ec02b20a3f0.tar.bz2 |
Allow intent resolution to be constrained by package name.
Diffstat (limited to 'test-runner/android')
-rw-r--r-- | test-runner/android/test/mock/MockPackageManager.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test-runner/android/test/mock/MockPackageManager.java b/test-runner/android/test/mock/MockPackageManager.java index bf1629f..73ae3b9 100644 --- a/test-runner/android/test/mock/MockPackageManager.java +++ b/test-runner/android/test/mock/MockPackageManager.java @@ -57,11 +57,15 @@ public class MockPackageManager extends PackageManager { } @Override - public Intent getLaunchIntentForPackage(String packageName) - throws NameNotFoundException { + public Intent getLaunchIntentForPackage(String packageName) { throw new UnsupportedOperationException(); } - + + @Override + public ResolveInfo resolveActivity(Intent intent, int flags, String packageName) { + throw new UnsupportedOperationException(); + } + @Override public int[] getPackageGids(String packageName) throws NameNotFoundException { throw new UnsupportedOperationException(); |