diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-04-27 17:10:36 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-05-05 15:40:53 -0700 |
commit | 231cc608d06ffc31c24bf8aa8c8275bdd2636581 (patch) | |
tree | 9b435c670f0f16751a21ae4678bfbed7d8e159b4 /preloaded-classes | |
parent | 06d96020c35dac2bf1651cb8bd4cfced911f1142 (diff) | |
download | frameworks_base-231cc608d06ffc31c24bf8aa8c8275bdd2636581.zip frameworks_base-231cc608d06ffc31c24bf8aa8c8275bdd2636581.tar.gz frameworks_base-231cc608d06ffc31c24bf8aa8c8275bdd2636581.tar.bz2 |
Rewrite SyncStorageEngine to use flat files and in-memory data structures.
The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.
There are now 4 files associated with this class, holding various pieces of its state that
should be consistent. These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time. Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.
Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database. This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it. Other changes in other projects are required to update to the
new API.
The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
Diffstat (limited to 'preloaded-classes')
-rw-r--r-- | preloaded-classes | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/preloaded-classes b/preloaded-classes index 7d719e9..0520e41 100644 --- a/preloaded-classes +++ b/preloaded-classes @@ -76,8 +76,6 @@ android.content.ContentQueryMap android.content.ContentQueryMap$1 android.content.ContentResolver android.content.ContentResolver$CursorWrapperInner -android.content.ContentServiceNative -android.content.ContentServiceProxy android.content.ContentValues android.content.Context android.content.ContextWrapper @@ -85,6 +83,8 @@ android.content.DialogInterface android.content.DialogInterface$OnCancelListener android.content.DialogInterface$OnDismissListener android.content.IContentProvider +android.content.IContentService +android.content.IContentService$Stub android.content.Intent android.content.Intent$1 android.content.IntentFilter |