From 0788595e0c9bc5e8c1907c63db595010006ef5b4 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Mon, 6 Apr 2015 19:41:28 -0700 Subject: Add IntentFilter auto verification - part 3 - add private API PackageManager.getAllIntentFilters(String) for getting all IntentFilters from a given package - update IntentFilterVerificationInfo to use an ArrayList for domains instead of a String[] - if you make an App a default domain handler then make the others as non default - create an IntentVerificationInfo even if the App IntentFilters do not need to be verified. This would be done only if the App has some domain URLs defined and would allow to make it the default handler for a domain - a few code optimizations here and there Change-Id: I4535372a0bb1a2c8e662e1485be8ca700003e9b3 --- test-runner/src/android/test/mock/MockPackageManager.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test-runner/src') diff --git a/test-runner/src/android/test/mock/MockPackageManager.java b/test-runner/src/android/test/mock/MockPackageManager.java index c8b6846..79510d0 100644 --- a/test-runner/src/android/test/mock/MockPackageManager.java +++ b/test-runner/src/android/test/mock/MockPackageManager.java @@ -759,6 +759,11 @@ public class MockPackageManager extends PackageManager { throw new UnsupportedOperationException(); } + @Override + public List getAllIntentFilters(String packageName) { + throw new UnsupportedOperationException(); + } + /** * @hide */ -- cgit v1.1