98edc951712823dbf5db2b7e9c203a0e98fc616b |
25-Sep-2012 |
Amith Yamasani <yamasani@google.com> |
Load resources for the correct user For apps that are only installed on secondary users, the SystemUI is unable to see them by default. Added some methods to explicitly pass the userId of the user the resources are requested for by the StatusBarIcon Bug: 7214384 Also fix binding to remote views Bug: 7192802 Change-Id: I5d6c5f624aa37fb231f3467f9764c8d99077a91d
ockPackageManager.java
|
11820f7386ce86fd89e9e6b49d9231dce6e1ed07 |
23-Sep-2012 |
Jeff Sharkey <jsharkey@android.com> |
Merge "Allow acquiring ContentProviders across users." into jb-mr1-dev
|
6d51571835737c7502a2e111ee9dc2527ebad984 |
21-Sep-2012 |
Jeff Sharkey <jsharkey@android.com> |
Allow acquiring ContentProviders across users. Otherwise services like SystemUI will always open content://-style Uris as USER_OWNER. Surfaces through createPackageContextAsUser() which points all ContentResolver operations towards a given user. Start using in RemoteViews, so that Notifications correctly resolve image Uris to the sending user. Also add user support for "content" shell tool. Bug: 7202982 Change-Id: I8cb7fb8a812e825bb0b5833799dba87055ff8699
ockContext.java
|
58d37b55bd228032355360ea3303e46a804e0516 |
18-Sep-2012 |
Svetoslav Ganov <svetoslavganov@google.com> |
Multi-user support for the accessibility layer. 1. This change converts the accessibility manager service to maintain a state per user. When the user changes the services for the user that is going away are disconnected, the local accessibility managers in the processes for this user are disabled, the state is swapped with the new user's one, and the new user state is refreshed. This change updates all calls into the system to use their user specific versions when applicable. For example, regisetring content observers, package monitors, calls into other system services, etc. There are some components that are shared across users such as UI created by the system process and the SystemUI package. Such components are managed as a global state shared across all users and are updated accordingly on a user switch. Since the SystemUI is running in a normal app process this change adds hidden APIs on the local window manager to allow the SystemUI to notify the accessibility layer that it will run accross users. Calls to AccessibiltyManager's isEnabled(), isTouchExplorationEnabled() and sendAccessibilityEvent return false or a are a nop for a background user sice he should not send accessibility events, and should not perform touch exploration. Update the internal accessibility tests due to changes in the AccessibilityManager. This change also fixes several issues that were encountered such as calling out the accessibility manager service with a lock held. Removed some incorrect debugging code from the TouchExplorer that was leading to a system crash. bug:6967373 Change-Id: I2cf32ffdee1d827a8197ae4ce717dc0ff798b259
ockPackageManager.java
|
151ec4c9f8ca34625733730a4551a23eb97cda23 |
08-Sep-2012 |
Amith Yamasani <yamasani@google.com> |
More multi-user methods in PM pm can list installed packages by user now. Bug: 6926465 Change-Id: I822311bfd6e7e2d6fb315fc484739fbf953c9bb6
ockPackageManager.java
|
20e809870d8ac1e5b848f2daf51b2272ef89bdfc |
01-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
Add registering for explicit users. New API to register as an explicit user, which allows you to also select ALL to see broadcasts for all users. New BroadcastReceiver API to find out which user the broadcast was sent to. Use this in app widget service to handle per-user package broadcasts and boot completed broadcasts correctly. Change-Id: Ibbe28993bd4aa93900c79e412026c27863019eb8
ockContext.java
|
a492c3a7b2c18426fd0cb4d017eacbc368195dc5 |
24-Aug-2012 |
Jeff Brown <jeffbrown@google.com> |
Initial draft of high-level multi-display APIs. This patch introduces the ability to create a Context that is bound to a Display. The context gets its configuration and metrics from that display and is able to provide a WindowManager that is bound to the display. To make it easier to use, we also add a new kind of Dialog called a Presentation. Presentation takes care of setting up the context as needed and watches for significant changes in the display configuration. If the display is removed, then the presentation simply dismisses itself. Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
ockContext.java
|
f203aeef993b0f4ce65c9630d06bbd50a504e89f |
30-Aug-2012 |
Amith Yamasani <yamasani@google.com> |
Enforce permissions for calls with specified userId Fix a couple of places where incorrect userIds were being passed in. Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
ockPackageManager.java
|
5ac72a29593ab9a20337a2225df52bdf4754be02 |
30-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Improve multi-user broadcasts. You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
ockContext.java
|
7767eac3232ba2fb9828766813cdb481d6a97584 |
24-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Keep track of whether an app is installed for each user. This add a new per-user state for an app, indicating whether it is installed for that user. All system apps are always installed for all users (we still use disable to "uninstall" them). Now when you call into the package manager to install an app, it will only install the app for that user unless you supply a flag saying to install for all users. Only being installed for the user is just the normal install state, but all other users have marked in their state for that app that it is not installed. When you call the package manager APIs for information about apps, uninstalled apps are treated as really being not visible (somewhat more-so than disabled apps), unless you use the GET_UNINSTALLED_PACKAGES flag. If another user calls to install an app that is already installed, just not for them, then the normal install process takes place but in addition that user's installed state is toggled on. The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED, PACKAGE_REPLACED etc broadcasts to users who don't have a package installed or not being involved in a change in the install state. There are a few things that are not quite right with this -- for example if you go through a full install (with a new apk) of an app for one user who doesn't have it already installed, you will still get the PACKAGED_REPLACED messages even though this is technically the first install for your user. I'm not sure how much of an issue this is. When you call the existing API to uninstall an app, this toggles the installed state of the app for that user to be off. Only if that is the last user user that has the app uinstalled will it actually be removed from the device. Again there is a new flag you can pass in to force the app to be uninstalled for all users. Also fixed issues with cleaning external storage of apps, which was not dealing with multiple users. We now keep track of cleaning each user for each package. Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
ockContext.java
ockPackageManager.java
|
d9ef3e5495db1c46bcfcc1a2d4386af8db6deb0c |
22-Aug-2012 |
rich cannings <richc@google.com> |
Allow verifiers to extend timeout Create a new verifier API to extend the timeout for a giving package, including the resulting action (allow or deny) upon the timeout occuring. Bug: 6901038 Change-Id: I351f7944327f863aff1d7dd1227be74652fa1511
ockPackageManager.java
|
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 |
21-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Improve multi-user app management. Introduce API to get per-user storage information, keep track of services associated with users, and various small cleanup. Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
ockPackageManager.java
|
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 |
20-Aug-2012 |
rich cannings <richc@google.com> |
Pass URLs to package verifiers This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
ockPackageManager.java
|
98365d7663cbd82979a5700faf0050220b01084d |
20-Aug-2012 |
Jeff Brown <jeffbrown@google.com> |
Refactor for multi-display support. Split WindowManagerImpl into two parts, the WindowManager interface implementation remains where it is but the global communications with the window manager are now handled by the WindowManagerGlobal class. This change greatly simplifies the challenge of having separate WindowManager instances for each Context. Removed WindowManagerImpl.getDefault(). This represents the bulk of this change. Most of the usages of this method were either to perform global functions (now handled by WindowManagerGlobal) or to obtain the default display (now handled by DisplayManager). Explicitly associate each new window with a display and make the Display object available to the View hierarchy. Add stubs for some new display manager API features. Start to split apart the concepts of display id and layer stack. since they operate at different layers of abstraction. While it's true that each logical display uniquely corresponds to a surface flinger layer stack, it is not necessarily the case that they must use the same ids. Added Display.getLayerStack() and started using it in places where it was relatively easy to do. Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
ockContext.java
|
79af1dd54c16cde063152922b42c96d72ae9eca8 |
17-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Switch public APIs to use new UserHandle class for identifying users. Gets rid of "yet another integer" confusion. Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
ockContext.java
|
756220bd1912535840388a6743830d2e59ad4964 |
15-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Add API to create new contexts with custom configurations. This allows you to, say, make a Context whose configuration is set to a different density than the actual density of the device. The main API is Context.createConfigurationContext(). There is also a new API on ContextThemeWrapper that allows you to apply an override context before its resources are retrieved, which addresses some feature requests from developers to be able to customize the context their app is running in. Change-Id: I88364986660088521e24b567e2fda22fb7042819
ockContext.java
|
258848d2ae04f447ff1c18023fa76b139fcc0862 |
11-Aug-2012 |
Amith Yamasani <yamasani@google.com> |
User Manager service to manage users and query user details Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
ockPackageManager.java
|
a56d9cecee8a34e0554770ac6253dd3a76b9199c |
08-Aug-2012 |
Rich Cannings <richc@google.com> |
Merge "Revert "Pass URLs to package verifiers"" into jb-mr1-dev
|
e1d7c711df3e3a2d2f195457882aa4ddb5626167 |
08-Aug-2012 |
Rich Cannings <richc@google.com> |
Revert "Pass URLs to package verifiers" This reverts commit 24713907fe4632d263aea82f7a35c8fb08918a09 Change-Id: Ie04ba73475b813635c4a74915c45e83250801b6b
ockPackageManager.java
|
7d19e0242faac8017033dabb872cdf1542fa184c |
08-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
More mult-user API work. - You can now use android:singleUser with receivers and providers. - New API to send ordered broadcasts as a user. - New Process.myUserHandle() API. For now I am trying out "user handle" as the name for the numbers representing users. Change-Id: I754c713ab172494bb4251bc7a37a17324a2e235e
ockContext.java
|
329465c6b2407ee086a171cac1a3581f83dbb048 |
03-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Merge "Add APIs for interacting across users." into jb-mr1-dev
|
b4163a6e12ee7100c758c6d3d062ade1f2843fce |
03-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Add APIs for interacting across users. - Expose the existing Context.sendBroadcast() as Context.sendBroadcastAsUser(). - Add new android:singleUser attribute for services. - Add new INTERACT_ACROSS_USERS_FULL permission for full system-level access to cross-user interface (allows sendBroadcastAsUser() to send to any receiver). - Add new INTERACT_ACROSS_USERS_FULL permission for more restricted cross-user interaction: this is required for android:singleUser, and allows you to use sendBroadcastAsUser() but only to send to your own receivers. Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
ockContext.java
|
24713907fe4632d263aea82f7a35c8fb08918a09 |
26-Jul-2012 |
rich cannings <richc@google.com> |
Pass URLs to package verifiers This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: If9ff6663ad7f3426b7aea2aceb1413b689788138
ockPackageManager.java
|
adba6ffbb949e3644f0effdaffee349b0b49688a |
22-Jun-2012 |
Scott Main <smain@google.com> |
am 101a120c: am 9be0105f: docs: fix several links * commit '101a120c27f68fb7d44e6221244cb9441dfc4285': docs: fix several links
|
9be0105fbc56eb1b1813bb7c5fe258a144867a43 |
22-Jun-2012 |
Scott Main <smain@google.com> |
docs: fix several links Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
ackage.html
|
b8151ecd6ef4faa5c16d0a4c3abb45ec84d1f97a |
19-Apr-2012 |
Amith Yamasani <yamasani@google.com> |
Add an icon to the user information. Store the icon in the user folder under /data/system, similar to how the wallpaper is stored. Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
ockPackageManager.java
|
6ae8d1821822296df0606c9cd1c46708cc21cb58 |
23-May-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix (mostly) issue #5109947: Race condition between retrieving a... ...content provider and updating its oom adj This introduces the concept of an "unstable" reference on a content provider. When holding such a reference (and no normal stable ref), the content provider dying will not cause the client process to be killed. This is used in ContentResolver.query(), .openAssetFileDescriptor(), and .openTypedAssetFileDescriptor() to first access the provider with an unstable reference, and if at the point of calling into the provider we find it is dead then acquiring a new stable reference and doing the operation again. Thus if the provider process dies at any point until we get the result back, our own process will not be killed and we can safely retry the operation. Arguably there is still the potential for a race -- if somehow the provider is killed way late by the OOM killer after the query or open has returned -- but this should now be *extremely* unlikely. We also continue to have the issue with the other calls, but these are much less critical, and the same model can't be used there (we wouldn't want to execute two insert operations for example). The implementation of this required some significant changes to the underlying plumbing of content providers, now keeping track of the two different reference counts, and managing them appropriately. To facilitate this, the activity manager now has a formal connection object for a client reference on a content provider, which hands to the application when opening the provider. These changes have allowed a lot of the code to be cleaned up and subtle issues closed. For example, when a process is crashing, we now have a much better idea of the state of content provider clients (olding a stable ref, unstable ref, or waiting for it to launch), so that we can correctly handle each of these. The client side code is also a fair amount cleaner, though in the future there is more than should be done. In particular, the two ProviderClientRecord and ProviderRefCount classes should be combined into one, part of which is exposed to the ContentResolver internal API as a reference on a content provider with methods for updating reference counts and such. Some day we'll do that. Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
ockContentResolver.java
|
652b6d1e591f6684cda4b93d4712920f287991b4 |
10-May-2012 |
Dianne Hackborn <hackbod@google.com> |
Add infrastructure for accessing "unstable" content providers. We have an API and some stuff that purports to this, but no real implementation yet. Change-Id: I93555440014a50fdf79fa3f65318d90fb82265b4
ockContentResolver.java
|
947f1c8db00bd3805838ff49a5f4d220df507b47 |
08-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Merge "Move CancellationSignal to android.os package." into jb-dev
|
a7771df3696954f0e279407e8894a916a7cb26cc |
08-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Move CancellationSignal to android.os package. Bug: 6427830 Change-Id: I39451bb1e1d4a8d976ed1c671234f0c8c61658dd
ockContentProvider.java
ockIContentProvider.java
|
ceb1b0bfaea56251796b08c07b963de7403d84eb |
24-Apr-2012 |
Anonymous Coward <nobody@android.com> |
Add encryption parameters to package installation Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
ockPackageManager.java
|
135936072b24b090fb63940aea41b408d855a4f3 |
23-Mar-2012 |
Amith Yamasani <yamasani@google.com> |
User management and switching Broadcast intents that get sent out when users are added/removed/switched. More work on generating user-specific information in package manager queries. APIs to update user name and query a user by id. Removed Package.mSetStopped and mSetEnabled, since they're not user specific. User removal: - Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService and AccountManager. - Shutdown processes belonging to the user. Don't show vibrate option in long-press power if there's no vibrator. Lock the screen when switching users, to force unlocking. Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
ockPackageManager.java
|
a4972e951bf2bdb7afdafee95b3ab0c15b8bacae |
14-Mar-2012 |
Dianne Hackborn <hackbod@google.com> |
Add new "options" argument to all startActivity APIs. This will be used to allow new features to be requested... such as, say, a special kind of animation. Right now there are no options defined. Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
ockContext.java
|
e639da7baa23121e35aa06d6e182558e0e755696 |
22-Feb-2012 |
Dianne Hackborn <hackbod@google.com> |
New development permissions. These are permissions that an application can request, but won't normally be granted. To have the permission granted, the user must explicitly do so through a new "adb shell pm grant" command. I put these permissions in the "development tools" permission group. Looking at the stuff there, I think all of the permissions we already had in that group should be turned to development permissions; I don't think any of them are protecting public APIs, and they are really not things normal applications should use. The support this, the protectionLevel of a permission has been modified to consist of a base protection type with additional flags. The signatureOrSystem permission has thus been converted to a signature base type with a new "system" flag; you can use "system" and/or "dangerous" flags with signature permissions as desired. The permissions UI has been updated to understand these new types of permissions and know when to display them. Along with doing that, it also now shows you which permissions are new when updating an existing application. This also starts laying the ground-work for "optional" permissions (which development permissions are a certain specialized form of). Completing that work requires some more features in the package manager to understand generic optional permissions (having a facility to not apply them when installing), along with the appropriate UI for the app and user to manage those permissions. Change-Id: I6571785c6bb5f6b291862b7a9be584885f88f3a5
ockPackageManager.java
|
67cf7d314b5b94db1a9f1c57140b6615b0ea8291 |
16-Feb-2012 |
Amith Yamasani <yamasani@google.com> |
Fix Power Control widget Some changes in AppWidgetService were interfering with widget permissions. Added some hidden methods in Context to communicate the requesting user information instead of using the calling uid. Bug: 6019296 Change-Id: I5e519fd3fbbfa5b3fcc5c297b729c671dac8e7c7
ockContext.java
|
37ce3a8af6faab675319d0803b288ab1dddc76be |
06-Feb-2012 |
Amith Yamasani <yamasani@google.com> |
Multi-user - wallpaper service - Allow each user to have their own wallpaper (live or static). - Migrate old wallpaper on upgrade. - Update SystemBackupAgent to backup/restore from primary user's new wallpaper directory. Reduce dependency on Binder.getOrigCallingUser() by passing the userId for bindService. Change-Id: I19c8c3296d3d2efa7f28f951d4b84407489e2166
ockContext.java
|
4c1241df8f8b7fd5ec3dff6c7e0f66271248e76e |
03-Feb-2012 |
Jeff Brown <jeffbrown@google.com> |
Rename CancellationSignal using preferred spelling. Bug: 5943637 Change-Id: I12a339f285f4db58e79acb5fd8ec2fc1acda5265
ockContentProvider.java
ockIContentProvider.java
|
75ea64fc54f328d37b115cfb1ded1e45c30380ed |
26-Jan-2012 |
Jeff Brown <jeffbrown@google.com> |
Implement a cancelation mechanism for queries. Added new API to enable cancelation of SQLite and content provider queries by means of a CancelationSignal object. The application creates a CancelationSignal object and passes it as an argument to the query. The cancelation signal can then be used to cancel the query while it is executing. If the cancelation signal is raised before the query is executed, then it is immediately terminated. Change-Id: If2c76e9a7e56ea5e98768b6d4f225f0a1ca61c61
ockContentProvider.java
ockIContentProvider.java
|
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 |
20-Dec-2011 |
Joe Fernandez <joefernandez@google.com> |
docs: Add developer guide cross-references, Project ACRE, round 4 Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
ockContentResolver.java
ackage.html
|
d2183654e03d589b120467f4e98da1b178ceeadb |
09-Oct-2011 |
Jeff Brown <jeffbrown@google.com> |
Fix ownership of CursorWindows across processes. Bug: 5332296 Ensure that there is always an owner for each CursorWindow and that references to each window are acquired/released appropriately at all times. Added synchronization to CursorToBulkCursorAdaptor to prevent the underlying Cursor and CursorWindow from being remotely accessed in ways that might violate invariants, resulting in leaks or other problems. Ensured that CursorToBulkCursorAdaptor promptly releases its references to the Cursor and CursorWindow when closed so they don't stick around longer than they should, even if the remote end hangs onto the IBulkCursor for some reason. CursorWindow respects Parcelable.FLAG_WRITE_RETURN_VALUE as an indication that one reference to the CursorWindow is being released. Correspondingly, CursorToBulkCursorAdaptor acquires a reference to the CursorWindow before returning it to the caller. This change also prevents races from resulting in the transfer of an invalid CursorWindow over the wire. Ensured that BulkCursorToCursorAdaptor promptly releases its reference to the IBulkCursor when closed and throws on attempts to access the cursor while closed. Modified ContentProviderNative to handle both parts of the wrapping and unwrapping of Cursors into IBulkCursors. This makes it a lot easier to ensure that the right things happen on both ends. Also, it turns out that the only caller of IContentProvider.bulkQuery was ContentProviderNative itself so there was no need to support bulkQuery on ContentProviderProxy and it was just getting in the way. Implement CloseGuard on CursorWindow. Change-Id: Ib3c8305d3cc62322f38a06698d404a2989bb6ef9
ockContentProvider.java
ockIContentProvider.java
|
05ca4c90644921df9193d92b2abdc81ef77e4a62 |
15-Sep-2011 |
Kenny Root <kroot@google.com> |
Allow non-required package verifiers * Verifiers can be specified in the AndroidManifest.xml * Those verifiers can respond to the new Intent action * PackageManager API for those verifiers: verifyPendingInstall Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
ockPackageManager.java
|
3a9b5fbb97e65019abec97f172b4cbf2100d1225 |
20-Sep-2011 |
Kenny Root <kroot@google.com> |
Unhide new PackageManager APIs for API 14 Change-Id: I83110285ccee39a4cd872a1c2af8357f541833d4
ockPackageManager.java
|
0aaa0d931716e9f57a1d84d795fab2df75092756 |
13-Sep-2011 |
Kenny Root <kroot@google.com> |
Add verifier device identity This adds a special device identifier that is usable only for device validation. The user will be presented with this number encoded in easily-transcribable Base32 in the Developer options of Settings. Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
ockPackageManager.java
|
5ab2157bf1f105b02d3e2913cd3a33f9765b74ca |
27-Jul-2011 |
Kenny Root <kroot@google.com> |
Infrastructure to support package verifier Allow a package verifier to approve or disapprove of a package being installed. Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
ockPackageManager.java
|
4b2e934928a2eb65927bd39197198c28c49efb94 |
31-Mar-2011 |
Amith Yamasani <yamasani@google.com> |
Package manager changes to store and update user information. Some API stubs for managing users and storing their details. List of users is stored in an xml file. Each user's properties are stored in a separate xml file. Some unit tests for modifying the XML files. Change-Id: If2ce2420723111bd426f6762def3c2afc19a0ae5
ockPackageManager.java
|
e8a534d8f0008e27f24016c5978ca0a5f0ecbce2 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Remove API that snuck into MockPackageManager We didn't release the get/setPackageObbPath API, but it snuck into MockPackageManager. However, it is not usable as a developer anyway. Removing it so it doesn't stay in the API forever. Cherry-pick from gingerbread Change-Id: I2083a8f398d983d53661c33270854442e34f9bc9
ockPackageManager.java
|
a1cbb94dbc9a82d4eb3a47242fe161af21803858 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Revert "Add the {get,set}PackageObbPaths calls to API" This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4. Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
ockPackageManager.java
|
805fd7ee0e5dc2939e85c84f78d9890a51982bc0 |
17-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Add API to get path to OBBs. Also hide the bitmap thumbnail stuff, we can't support it in its current form. And fix some bugs with propagating paths to native code. Yikes! Change-Id: I13ab37ddbdba5c073489cba5eab035117d3c1574
ockContext.java
|
5d40fe9c6846ba765072e50ed1254293cb9195e4 |
14-Jan-2011 |
Kenny Root <kroot@google.com> |
Add the {get,set}PackageObbPaths calls to API Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
ockPackageManager.java
|
621e17de87f18003aba2dedb719a2941020a7902 |
23-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Implement issue #3221502: New APIs to support new back stack / task navigation What this adds: - A new Intent activity flag to completely replace an existing task. - A new Intent activity flag to bring the current home task up behind a new task being started/brought to the foreground. - New versions of startActivity() that take an array of Intents to be started, allowing applications to start a task in a specific state. - A public moveTaskToFront() method on ActivityManager, with a new flag that allows the caller to have the task moved to the front with the current home task immediately behind it. Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
ockContext.java
|
880119bf43d738ca632b5d3861eb52d655c1c0fc |
19-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Implement issue #2367442: Please add API for manipulating installer package names Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
ockPackageManager.java
|
cca1f0e3476edd09cdd81b075a6b7780a2959b46 |
27-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
Allow all apps to call ContentResolver.getType(). I can't find the bug number for this, but it is needed for some things we are doing where the app building an intent may not have access to the URI in the data field. This is for HC, but doing in GB to avoid introducing integration issues. Change-Id: I0cac971854198b18775d2a73deb80f23431bfbe2
ockContentResolver.java
|
2394c164a76f6d3f8ad9f1c1517f58f72adab9d7 |
01-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
am ec438e14: am 361199b5: Add PackageManager API to get information about a provider component. Merge commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e' * commit 'ec438e1448ebc578ee5a4c4beb1e26292cdedd6e': Add PackageManager API to get information about a provider component.
|
361199b5e742c6635d4d7a03de6cf37b31cf442c |
31-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add PackageManager API to get information about a provider component. Kind-of useful when all you have is a ComponentName. Change-Id: I9a99f12daabb29e97e882e09c43ca0df70c00651
ockPackageManager.java
|
23fdaf6fb62a9b5154b2508916a21c678462c5d0 |
06-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add new ContentProvider for doing conversions to data streams. This introduces basic infrastructure that should allow content providers holding complex data to perform on-demand conversion of their data to streams of various types. It is achieved through two new content provider APIs, one to interrogate the possible stream MIME types the provider can return, and the other to request a stream of data in a particular MIME type. Because implementations of this will often need to do on-demand data conversion, there is also a utility intoduced in ContentProvider for subclasses to easily run a function to write data into a pipe that is read by the client. This feature is mostly intended for cut and paste and drag and drop, as the complex data interchange allowing the source and destination to negotiate data types and copy (possible large) data between them. However because it is fundamental facility of ContentProvider, it can be used in other places, such as for more advanced GET_CONTENT data exchanges. An example implementation of this would be in ContactsProvider, which can now provider a data stream when a client opens certain pieces of it data, to return data as flat text, a vcard, or other format. Change-Id: I58627ea4ed359aa7cf2c66274adb18306c209cb2
ockContentProvider.java
ockIContentProvider.java
|
d93f4e5b70f37feae0cbdf1f456c167a1ea37433 |
13-Jul-2010 |
Joe Malin <jmalin@google.com> |
Merge "DO NOT MERGE Doc Change: Javadoc for test case classes" into gingerbread
|
511d9ec363c5bb460e4695de56edc1b7785dc7bf |
09-Jul-2010 |
Kenny Root <kroot@google.com> |
am 0a21801f: am a5402dab: Merge "OBB API for PackageManager" into gingerbread Merge commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b' * commit '0a21801f5fae22cd5e1b3e9f1c1405c744e24c9b': OBB API for PackageManager
|
93565c4b3265c16aee4a82d7556f811776c17db8 |
19-Jun-2010 |
Kenny Root <kroot@google.com> |
OBB API for PackageManager Simple API for tracking .obb files associated with packages. Stores the path in the PackageSettings. No verification of file content is done now since the PackageManagerService can't read the SD card where these files will likely live. Change-Id: Ibeaf26ba0526b6d60f401137e58f46ee9faff39e
ockPackageManager.java
|
87e98cda1c864cb2069d387a64346702a05574c4 |
31-May-2010 |
Joe Malin <jmalin@google.com> |
DO NOT MERGE Doc Change: Javadoc for test case classes Change-Id: I21b78a84ee1345a98631dcaab937a10b4fa4344d Original change was SHA1 7d433aabb731a790fc8d06d260c826751215113f
ockContentResolver.java
|
7d433aabb731a790fc8d06d260c826751215113f |
31-May-2010 |
Joe Malin <jmalin@google.com> |
Javadoc for test case classes Change-Id: Ibfa035cfe9091a81fca8bd0a6c141ec26c2de139
ockContentResolver.java
|
74f170f9468d3cf6d7d0ef453320141a3e63571b |
02-Jun-2010 |
Vasu Nori <vnori@google.com> |
new API in Context. on openDatabase, new param DatabaseErrorHandler add new method openOrCreateDatabase in Context.java to allow callers specify a DatabaseErrorHandler object to be used when database corruption occurs. add new constructor in SQLiteOpenHelper to accept DatabaseErrorHandler as an additional param to be used when SQLiteDatabase instance is created. Change-Id: I912a0202a74510f9ca0206dd8101c4abab9102ae
ockContext.java
|
8b0dd7da360d70920a37802eb455ba41500d3b45 |
18-May-2010 |
Vasu Nori <vnori@google.com> |
add API to Cursor to get column value type Change-Id: I3ef1bcdb2eb1c45f68e829ccb6e3ecde28076591
ockCursor.java
|
e26867793b6a0c226e02f7da880b06efbcb8707e |
13-May-2010 |
Jeff Hamilton <jham@android.com> |
Remove the unused modification APIs from MockCursor. They shouldn't have been public in the first place. Change-Id: I2932e5287f838f72acdc4c0c1fd5601ffa8c3f84
ockCursor.java
|
81cd2e90ccdda498234384c8207afe2213714e60 |
22-Apr-2010 |
Adam Powell <adamp@google.com> |
Logo attribute for manifest and PackageManager methods to fetch it Change-Id: I2c5ac44a4e2af982a616b2012901d7395013b19f
ockPackageManager.java
|
d7c096845dee7616095eda0fe9e7aa08f0ba9c20 |
30-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Package manager optimizations. Addresses: Issue #2550648: PackageManagerService setComponentEnabledSetting unconditionally writes Settings xml Issue #2549084: Make PackageManager.addPermission have async version Also make the writing of settings when changing the preferred activities to use the same async mechanism, and fiddle with thread priorities in the background thread to go up to foreground priority when holding the lock to write settings and a few other places. (At some point we should really clean this up to never acquire the main lock while in the background.) Change-Id: Ib2b7632543f6fb3f92a225518579f3b2d15e1413
ockPackageManager.java
|
1877d0158b529663b8315482e7346a7bcaa96166 |
05-Mar-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Add "call" method on ContentProvider. This permits implementing interfaces which are faster than using remote Cursors. It then uses it for Settings & SettingProvider, which together account for ~50% of total ContentProvider event loop stalls across Froyo dogfooders. For fetching Settings this looks like it should reduce average Settings lookup from 10 ms to 0.4 ms on Sholes, once the SettingsProvider serves most gets from in-memory cache. Currently it brings the Sholes average down from 10ms to 2.5 ms while still using SQLite queries on each get.
ockContentProvider.java
ockIContentProvider.java
|
e70f61b1160e953e5e4d18d30a463fa9ba821779 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Retry test-runner tests move. This time change the frameworks makefile so it only includes test-runner/src in the public API.
ockApplication.java
ockContentProvider.java
ockContentResolver.java
ockContext.java
ockCursor.java
ockDialogInterface.java
ockIContentProvider.java
ockPackageManager.java
ockResources.java
ackage.html
|
c1ca8c51c616d1517b18bf24feaa9f8f1430c835 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Revert "Move framework test-runner unit tests to be closer to their source." This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
ockApplication.java
ockContentProvider.java
ockContentResolver.java
ockContext.java
ockCursor.java
ockDialogInterface.java
ockIContentProvider.java
ockPackageManager.java
ockResources.java
ackage.html
|
12093976a4842a795491cfd2b1d3b71e18503f2d |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Move framework test-runner unit tests to be closer to their source. Move the test-runner source into a separate src folder to accommodate the test move.
ockApplication.java
ockContentProvider.java
ockContentResolver.java
ockContext.java
ockCursor.java
ockDialogInterface.java
ockIContentProvider.java
ockPackageManager.java
ockResources.java
ackage.html
|