f4bf0ae2a7c2d9d92c5c8abdb82baa53b4c9ccda |
|
21-May-2013 |
Dianne Hackborn <hackbod@google.com> |
New ArrayMap class. This is a new kind of key/value mapping that stores its data as an array, so it doesn't need to create an extra Entry object for every mapping placed in to it. It is also optimized to reduce memory overhead in other ways, by keeping the base object small, being fairly aggressive about keeping the array data structures small, etc. There are some unit and performance tests dropped in to some random places; they will need to be put somewhere else once I decided what we are going to do with this for the next release (for example if we make it public the unit tests should go in to CTS). Switch IntentResolver to using ArrayMap instead of HashMap. Also get rid of a bunch of duplicate implementations of binarySearch, and add an optimization to the various sparse arrays where you can supply an explicit 0 capacity to prevent it from doing an initial array allocation; use this new optimization in a few places where it makes sense. Change-Id: I01ef2764680f8ae49938e2a2ed40dc01606a056b
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
293ad6c6749044d97ea2a5f3fbd5c6ad58124584 |
|
11-Mar-2013 |
Jeff Sharkey <jsharkey@android.com> |
Handle corrupt RegisteredServicesCache XML. Avoid getting stuck in infinite loop. Bug: 8360183 Change-Id: I81728dcfbc35b456c9166cf5c5175d0a376df56f
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
40e9f2922cae76ffcbc521481e5be8e80e8744ef |
|
28-Nov-2012 |
Dianne Hackborn <hackbod@google.com> |
Quiet down a lot of logging. Also fix a little problem where the USER_STARTED broadcasts were not being sent as ordered broadcasts(!). Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
8b2c3a14603d163d7564e6f60286995079687690 |
|
12-Nov-2012 |
Jeff Sharkey <jsharkey@android.com> |
Useful annotations for code documentation. Bug: 6537978 Change-Id: I806c3c09e3255f8789455f13bf37c1dde2a93f1f
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
a706e2fd0059b1bb86c487722dbc9fc0fda9c980 |
|
16-Oct-2012 |
Jeff Sharkey <jsharkey@android.com> |
Lock SyncQueue when user starting, copy RSC list. Document SyncQueue locking policy and protect in onUserStarting() and clearAllBackoffs(). Return copy of ServiceInfo list from RegisteredServicesCache instead of exposing locking externally. Bug: 7357776, 7352537 Change-Id: I6a32ca98a355b639d4207a88bde572179beae359
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
6ab72d74b86e5f4ec3c3909366fd46c225a66bd7 |
|
09-Oct-2012 |
Jeff Sharkey <jsharkey@android.com> |
Make RegisteredServicesCache multi-user aware. RegisteredServicesCache is used to track account authenticators and sync adapters, which can vary based on user. This change requires that callers now provide a userId when making cache requests. It continues persisting into a single file for now, which is keyed based on UID. It now watches for package broadcasts from all users, and scans packages on-demand. It changes cache callers to provide a relevant userId, and evicts cache entries when users are stopped. Changes SyncManager to only work with accounts from running users, only kicking off pending syncs once a user is started. Bug: 7276595, 7316150 Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
4428e17c5e05c0dad76da8f1c28ccba62a66cd91 |
|
25-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Some clean up of app install and user management. UserManagerService is now closely tied to PackageManagerService, sharing the same locks. There is no longer direct access of Installer by UserManagerService, instead the package manager is back to solely owning it. Creating a new user now correctly only installs system apps for that user. Fixed some misc bugs, where we were getting nulls when querying content providers and instrumentation in uninstalled users, incorrect locking, etc. Change-Id: Ife69b6e373d0cf7c5cfc03fc588e36b43ad5d8b0
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
40e5df95ff9468cec0624ca7fb14e51c13e4b047 |
|
01-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Merge "Make AtomicFile a public API. It's about time!" into jb-mr1-dev
|
39606a007a5b1309dd000234f2b8cf156c49fd0f |
|
01-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Make AtomicFile a public API. It's about time! Change-Id: Ib34e294747405b7ab709cb0bbb2d9a0cc80ce86a
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
26ff6626fc4ee0ae46f01ad309b366921da589fe |
|
30-Jul-2012 |
Kenny Root <kroot@google.com> |
Delay AccountManagerService initialization Since applications can have Account providers, they need to be delayed until after PackageManagerService says everything is mounted. Otherwise the accounts associated with that provider will be removed immediately when startup happens. Bug: 6820670 Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
56285a60e83138bb4b4f2d3bdec91b2f3ca11aa2 |
|
02-Dec-2010 |
Fred Quintana <fredq@google.com> |
add caching to the AccountManagerService - cache the accounts, userdata and authtokens - make the AccountManagerServiceTest work again - add a log statement for every binder call http://b/issue?id=3188457 Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
3fa51e3430e3bf902ae4f2d72dfb956103b6bd2d |
|
11-Nov-2010 |
Alon Albert <aalbert@google.com> |
Improve logging Change-Id: Ia855b1a45a3abbc1a87233462f19b330b72d30b9
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
20cb56e26e91df91bd64d4251222e0d421cdbe47 |
|
04-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix some bugs. Bug #2376231: Apps lose window focus (and back key causes ANR) if the lock screen is dismissed while the phone is in landscape mode This is another case where we weren't recomputing the focused window after changing the visibility policy. bug #2479958: Investigate source of "Resources don't contain package for resource number 0x7f0a0000" Um, okay, so it turns out there were bugs all over the place where we would load an XML resource from a another application, but not use the Resources for that application to retrieve its resources...! I think the only reason any of this stuff was working at all was because it typically only cared about retrieving the resource identifiers of the items (it would look up the values later). Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService Add some null checks.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
2269d1572e5fcfb725ea55f5764d8c3280d69f6d |
|
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Re-arrange android-common so framework no longer links with it. This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
b56ae20b22fd7283df32072a431ab6d4965f3c1b |
|
05-Feb-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Rename media resource broadcasts Add checks for fwdlocked and updated system apps add more tests remove duplicate adds
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
08675a3376819a82aa5ab344bc3e7b1635c30b05 |
|
28-Jan-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Apps on sdcard: Add new broadcasts Add new broadcasts ACTION_MEDIA_RESOURCES_AVAILABLE and ACTION_MEDIA_RESOURCES_UNAVAILABLE that get broadcast by PackageManagerService when sdcard gets mounted/unmounted by MountService so that packages on sdcard get recognized by various system services as being installed/available or removed/unavailable by the system. The broadcasts are sent before the actual package cleanup which includes mounting/unmounting the packages and we force a gc right after so that any lingering file references to resources on sdcard get released.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 |
|
21-Dec-2009 |
Tom Taylor <tomtaylor@google.com> |
Update imports to android-common Several files were moved to android-common. Update all the references to import those files from the new location.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 |
|
10-Nov-2009 |
Fred Quintana <fredq@google.com> |
Make the RegisteredSErvices Cache not allow the registered service for a type to change without first uninstalling the previous service for that type, unless the newly installed service is in the system image. Notify the listener when a service is added or removed. Make the AccountManagerService remove the accounts for an authenticator when the registered authenticator changes from one uid to another. Make the AbstractSyncableContentProvider force a sync when the database is first created.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 |
|
17-Sep-2009 |
Fred Quintana <fredq@google.com> |
- Make the AccountManagerService delete accounts that have no Authenticator, both when the package is removed and when the phone is booted. - add the ability to register with the RegisteredServicesCache to be notified when the set of Authenticators changes.
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
c42c0dd1c4e2f7a4abaac1b2c9a6344448f9db7a |
|
03-Sep-2009 |
Jeff Hamilton <jham@android.com> |
Fix the registration of the package changes broadcast receiver. Change-Id: Ib0b49153a0ec1af7c5a92753860df0f46064a7df
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
d4a1d2e14297a3387fdb5761090961e714370492 |
|
17-Jul-2009 |
Fred Quintana <fredq@google.com> |
add account manager permission checking
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
9788976b1465ce982b5ae7c741345edd0ecd9322 |
|
15-Jun-2009 |
Fred Quintana <fredq@google.com> |
add icon and label to the authenticator description
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|
718d8a2d7ff3e864a73879eb646f46c14ab74d07 |
|
30-Apr-2009 |
Fred Quintana <fredq@google.com> |
decouple SyncAdapter from ContentProvider
/frameworks/base/core/java/android/content/pm/RegisteredServicesCache.java
|