summaryrefslogtreecommitdiffstats
path: root/services/restrictions
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-15/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Rename getLocalApprovalIntent to createLocalApprovalIntentAmith Yamasani2014-09-051-1/+1
| | | | | | | Based on API review. Bug: 17389920 Change-Id: I84674f25a84d317f017473b6f4ac19c849079323
* Remove system_server classes from the boot image.Narayan Kamath2014-08-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | We set the system_server classpath in the environment (like we do with BOOTCLASSPATH). After the zygote forks the system_server, we dexopt the classpath (if needed) and then launch the system server with the correct PathClassLoader. This needed several small / medium refactorings : - The logic for connecting to installd is now in a separate class and belongs in the system_server. - SystemService / SystemServiceManager have now moved to classes.jar. They are only used from there, and since they use Class.forName, we want them to be loaded by the system_server classloader, and not the bootclassloader. - BootReceiver now moves to frameworks.jar, because it is used by ActivityThread and friends. bug: 16555230 Change-Id: Ic84f0b2baf611eeedff6d123cb7191bb0259e600
* API Review: Improvements to RestrictionsManager APIAmith Yamasani2014-07-221-2/+38
| | | | | | | | | Use an activity intent for local approval instead of a type. Use PeristableBundle instead of Bundle. Pass requestId as an explicit argument in cases where it's required. Bug: 16400892 Change-Id: Id882033f17c39aa9cd63a7eeb73bb7b51f98cf5b
* Revert some new APIs for restrictions providerAmith Yamasani2014-07-151-131/+5
| | | | | | | | Simplify back to being a broadcast receiver and add an extra to indicate that a new request is desired vs. returning a pending response from before. Change-Id: Iafd16ed98293a2cc09006d2cce097fc3d590bbe2
* Improvements to Restrictions APIAmith Yamasani2014-07-131-18/+153
| | | | | | | | | | | | | | | Convert restrictions provider to a service instead of a receiver. Add a way to get pending responses from restrictions provider. Add AbstractRestrictionsProvider. Add a callback API for responses. Removed some constants in RestrictionsManager. Added new constants for errors and error codes. Much improved javadocs. Bug: 16176009 Change-Id: I838a50fabc80b94b632294b3a55cd5d8092acf55
* Restrictions ManagerAmith Yamasani2014-05-312-0/+181
Mechanism to register a provider for requesting an administrator to respond to permission requests. Request format and response format constants. Description of manifest template for static restrictions. Int type introduced in RestrictionEntry. Needs more javadoc and better description of manifest templates, including specifying the XML attributes. Change-Id: I5a654d364e98379fc60f73db2e06bf9a8310263d