android.content.SyncStorageEngine
ContentProvider that tracks the sync data and overall sync
history on the device.
Summary
Public Methods
|
|
|
|
|
int |
delete(boolean callerIsTheProvider, Uri url, String where, String[] whereArgs) |
|
|
|
|
|
long |
getInitialSyncFailureTime() |
|
|
|
|
|
Cursor |
getPendingSyncsCursor(String[] projection) |
|
|
|
static |
|
SyncStorageEngine |
getSingleton() |
|
|
|
|
|
String |
getType(Uri url) |
|
|
|
static |
|
void |
init(Context context) |
|
|
|
|
|
Uri |
insert(boolean callerIsTheProvider, Uri url, ContentValues values) |
|
|
|
|
|
long |
insertStartSyncEvent(String account, String authority, long now, int source) |
|
|
|
|
|
Cursor |
query(Uri url, String[] projectionIn, String selection, String[] selectionArgs, String sort) |
|
|
|
|
|
void |
stopSyncEvent(long historyId, long elapsedTime, String resultMessage, long downstreamActivity, long upstreamActivity) |
|
|
|
|
|
int |
update(boolean callerIsTheProvider, Uri url, ContentValues initialValues, String where, String[] whereArgs) |
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Methods
public
int
delete(boolean callerIsTheProvider, Uri url, String where, String[] whereArgs)
public
long
getInitialSyncFailureTime()
If sync is failing for any of the provider/accounts then determine the time at which it
started failing and return the earliest time over all the provider/accounts. If none are
failing then return 0.
public
Cursor
getPendingSyncsCursor(String[] projection)
Returns a cursor over all the pending syncs in no particular order. This cursor is not
"live", in that if changes are made to the pending table any observers on this cursor
will not be notified.
Parameters
projection
| Return only these columns. If null then all columns are returned. |
Returns
- the cursor of pending syncs
public
static
void
init(Context context)
public
long
insertStartSyncEvent(String account, String authority, long now, int source)
public
void
stopSyncEvent(long historyId, long elapsedTime, String resultMessage, long downstreamActivity, long upstreamActivity)
Protected Methods
protected
void
doDatabaseCleanup(String[] accounts)
protected
void
setActiveSync(SyncManager.ActiveSyncContext activeSyncContext)