diff options
| author | Jason Monk <jmonk@google.com> | 2015-05-22 14:50:21 -0400 |
|---|---|---|
| committer | Jason Monk <jmonk@google.com> | 2015-05-26 10:26:18 -0400 |
| commit | 9cfa0cc51e135d9f156086028a6c99b34de50147 (patch) | |
| tree | a3ab6a1d9425986a95ebcd4b3e7424bca7e84907 /core/java | |
| parent | 82babcd83a568f9e938bf8b6b3b86b65e8b30e1f (diff) | |
| download | frameworks_base-9cfa0cc51e135d9f156086028a6c99b34de50147.zip frameworks_base-9cfa0cc51e135d9f156086028a6c99b34de50147.tar.gz frameworks_base-9cfa0cc51e135d9f156086028a6c99b34de50147.tar.bz2 | |
Add constants for permissions granted status api
Bug: 21078474
Change-Id: I6b0bcf0c11258ae263eb08366c14f9298798afdb
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/Intent.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 43678cc..62a1617 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1560,6 +1560,42 @@ public class Intent implements Parcelable, Cloneable { public static final String EXTRA_PACKAGE_NAME = "android.intent.extra.PACKAGE_NAME"; /** + * Broadcast action that requests current permission granted information. It will respond + * to the request by sending a broadcast with action defined by + * {@link #EXTRA_GET_PERMISSIONS_RESPONSE_INTENT}. The response will contain + * {@link #EXTRA_GET_PERMISSIONS_COUNT_RESULT} with contents described below or a null upon + * failure. + * + * <p>If {@link #EXTRA_PACKAGE_NAME} is included then the number of permissions granted and the + * number of permissions requested by that package will be calculated and included as the first + * and second elements respectively of an int[] in the response as + * {@link #EXTRA_GET_PERMISSIONS_COUNT_RESULT}. + * + * <p>If {@link #EXTRA_PACKAGE_NAME} is not included then the number of apps granted any runtime + * permissions and the total number of apps requesting runtime permissions will be the first + * and second elements respectively of an int[] in the response as + * {@link #EXTRA_GET_PERMISSIONS_COUNT_RESULT}. + * + * @hide + */ + public static final String ACTION_GET_PERMISSIONS_COUNT + = "android.intent.action.GET_PERMISSIONS_COUNT"; + + /** + * Extra included in response to {@link #ACTION_GET_PERMISSIONS_COUNT}. + * @hide + */ + public static final String EXTRA_GET_PERMISSIONS_COUNT_RESULT + = "android.intent.extra.GET_PERMISSIONS_COUNT_RESULT"; + + /** + * Required extra to be sent with {@link #ACTION_GET_PERMISSIONS_COUNT} broadcast. + * @hide + */ + public static final String EXTRA_GET_PERMISSIONS_RESPONSE_INTENT + = "android.intent.extra.GET_PERMISSIONS_RESONSE_INTENT"; + + /** * Activity action: Launch UI to manage which apps have a given permission. * <p> * Input: {@link #EXTRA_PERMISSION_NAME} specifies the permission access |
