summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/content/ContentService.java
AgeCommit message (Collapse)Author
2013-12-19Move some system services to separate directoriesAmith Yamasani
Refactored the directory structure so that services can be optionally excluded. This is step 1. Will be followed by another change that makes it possible to remove services from the build. Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
2013-11-13SyncManager now returns copy on getCurrentSyncs()Matthew Williams
Bug:11559103 Added a new getCurrentSyncsCopy() that is public. The other version is needed for internal SSE calls. Change-Id: I0287f039a6f75abf04b65b85cb30f78353aeef4f
2013-10-11Fix infinite boot-loop bug in SM.Matthew Williams
Bug:11064918 If the ContentResolver sync API is used with the empty ("") string as a provider, the ContentService will throw an RTE. This cl addresses all the entry points of the API that could allow this, as well as adds an ifEmpty check at the point of failure. Also removed RTE throws from public functions(no point in crashing the phone). Change-Id: I57427d12a6cafb3e6d7a32ca0c10b05315b20580
2013-10-01Fix issue #11005453: [SUW] G+ profile creation for new user brokenDianne Hackborn
The main problem here was a mistake when turning a single process structure to a multi-package-process structure with a common process. When we cloned the original process state, if there were any services already created for the process for that package, they would be left with their process pointer still referencing the original now common process instead of the package-specific process, allowing the active counts to get bad. Now we switch any of those processes over to the new package-specific process. There was also another smaller issue with how ServiceRecord is associated with a ServiceState -- we could be waiting for an old ServiceRecord to be destroyed while at the same time creating a new ServiceRecord for that same service class. These would share the same ServiceState, so when the old record finally finished destroying itself it would trample over whatever the new service is doing. This is fixed by changing the model to instead of using an "active" reference count, we have an object identifying the current owner of the ServiceState. Then when the old ServiceRecord is cleaning up, we know if it is still the owner at that point. Also some other small things along the way -- new Log.wtfStack() method that is convenient, new suite of Slog.wtf methods, fixed some services to use Slog.wtf when catching exceptions being returned to the caller so that we actually know about them. Change-Id: I75674ce38050b6423fd3c6f43d1be172b470741f
2013-08-30DO NOT MERGE. Remove service component for KLP.Matthew Williams
1) As discussed, lack of internal clients -> remove SyncService component from KLP. This CL reverts that addition. 2) Also includes javadoc cleanup of existing API. 3) Fix naming of allowMetered() -> disallowMetered() in API 4) Removed one-off sync in the future, as it doesn't make sense for sync adapters. Change-Id: I1b17094e6edafb2955cdfb99f39b44274fbe86f9
2013-07-24AnonymousSyncService & SyncRequest.Matthew Williams
Changes to the way bundles are parcelled broke SM, this update writes out the bundle as xml. This circumvents the need for parcel, and makes it easier to debug whats happening. Change-Id: I6cd5d3a2eb80bfa5b3ae0c7f2d2ff91a65daaa34
2013-04-10am b6812eab: am f900647a: Merge "Don\'t sync from adapters that haven\'t ↵Amith Yamasani
opted in to restricted accounts" into jb-mr2-dev * commit 'b6812eabd45790bcc745feab9456392d9d868664': Don't sync from adapters that haven't opted in to restricted accounts
2013-04-10Don't sync from adapters that haven't opted in to restricted accountsAmith Yamasani
SyncManager should not allow syncing of data from apps that haven't opted in to viewing restricted accounts in limited users. Override getIsSyncable() to check if the sync adapter has the manifest entry to enable restricted accounts of that account type. Return the default isSyncable state if the adapter has opted in, otherwise return 0 for false. Bug: 8566533 Change-Id: I3777f1e4fdb8debe1724ab083272e2d9bd2e63f2
2013-04-04Phase 1 of refactoring SystemServer.Dan Morrill
SystemServer is currently a monolithic class that brings up key system services. This change is the first phase of refactoring it to be more configurable. Specifically, it adds a set of on/off switches used to control startup of individual services. Future plans include finer grained controls and a more explicit and consistent startup sequence for these services. Change-Id: I7299f5ce7d7b74a34eb56dffb788366fbc058532
2013-03-27Sync APIs use seconds instead of ms.Jeff Sharkey
Bug: 7668972 Change-Id: I7b253fe17d9539695adc474a69546645586b5f1a
2013-03-21Round up periodic syncs with short frequencies.Jeff Sharkey
Bug: 7668972 Change-Id: I476ded1418a203621913098cf5d33a4e5dc533ee
2012-12-11Move lingering services to services.jar.Jeff Sharkey
This helps reduce the pressure on framework.jar, and makes it clear that it should only be used by the system_server. Bug: 7333397 Change-Id: I0858904239535380fbf30562b793e277d8c3f054