summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2015-04-29 00:42:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-29 00:42:43 +0000
commit46fc110104f3017f23abb397ca817db2be39f1a2 (patch)
tree0a827e6f4fec5a524c00d1733da0c7de24f62097 /core
parentd6db7eacc983e22eb88fc7b465f290670127569a (diff)
parent9f7e39fc9d278642a29df48daf44dceff11acd17 (diff)
downloadframeworks_base-46fc110104f3017f23abb397ca817db2be39f1a2.zip
frameworks_base-46fc110104f3017f23abb397ca817db2be39f1a2.tar.gz
frameworks_base-46fc110104f3017f23abb397ca817db2be39f1a2.tar.bz2
Merge "Use Default Browser App for IntentResolution when needed" into mnc-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/pm/PackageManager.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index e1c271d..f01ca09 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -209,7 +209,14 @@ public abstract class PackageManager {
* matching. This is a synonym for including the CATEGORY_DEFAULT in your
* supplied Intent.
*/
- public static final int MATCH_DEFAULT_ONLY = 0x00010000;
+ public static final int MATCH_DEFAULT_ONLY = 0x00010000;
+
+ /**
+ * Querying flag: if set and if the platform is doing any filtering of the results, then
+ * the filtering will not happen. This is a synonym for saying that all results should
+ * be returned.
+ */
+ public static final int MATCH_ALL = 0x00020000;
/**
* Flag for {@link addCrossProfileIntentFilter}: if this flag is set:
@@ -2637,6 +2644,8 @@ public abstract class PackageManager {
* {@link #MATCH_DEFAULT_ONLY}, to limit the resolution to only
* those activities that support the {@link android.content.Intent#CATEGORY_DEFAULT}.
*
+ * You can also set {@link #MATCH_ALL} for preventing the filtering of the results.
+ *
* @return A List&lt;ResolveInfo&gt; containing one entry for each matching
* Activity. These are ordered from best to worst match -- that
* is, the first item in the list is what is returned by
@@ -2658,6 +2667,8 @@ public abstract class PackageManager {
* {@link #MATCH_DEFAULT_ONLY}, to limit the resolution to only
* those activities that support the {@link android.content.Intent#CATEGORY_DEFAULT}.
*
+ * You can also set {@link #MATCH_ALL} for preventing the filtering of the results.
+ *
* @return A List&lt;ResolveInfo&gt; containing one entry for each matching
* Activity. These are ordered from best to worst match -- that
* is, the first item in the list is what is returned by