|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.provider.Sync.History
public static class Sync.History
Provides constants and utility methods to access and use the history table.
| Field Summary | |
|---|---|
static Uri |
CONTENT_URI
The content url for this table. |
static int |
ERROR_AUTHENTICATION
|
static int |
ERROR_CONFLICT
|
static int |
ERROR_IO
|
static int |
ERROR_PARSE
|
static int |
ERROR_SYNC_ALREADY_IN_PROGRESS
|
static int |
ERROR_TOO_MANY_DELETIONS
|
static int |
ERROR_TOO_MANY_RETRIES
|
static int |
EVENT_START
Enum value for a sync start event. |
static int |
EVENT_STOP
Enum value for a sync stop event. |
static String[] |
EVENTS
String names for the sync event types. |
static String |
MESG_CANCELED
|
static String |
MESG_SUCCESS
|
static int |
SOURCE_LOCAL
Enum value for a local-initiated sync. |
static int |
SOURCE_POLL
Enum value for a poll-based sync (e.g., upon connection to network) |
static int |
SOURCE_SERVER
Enum value for a server-initiated sync. |
static int |
SOURCE_USER
Enum value for a user-initiated sync. |
static String[] |
SOURCES
String names for the sync source types. |
| Fields inherited from interface android.provider.BaseColumns |
|---|
_COUNT, _ID |
| Fields inherited from interface android.provider.Sync.StatsColumns |
|---|
ACCOUNT, AUTHORITY |
| Fields inherited from interface android.provider.Sync.HistoryColumns |
|---|
DOWNSTREAM_ACTIVITY, ELAPSED_TIME, EVENT, EVENT_TIME, MESG, SOURCE, STATS_ID, UPSTREAM_ACTIVITY |
| Method Summary | |
|---|---|
static boolean |
hasNewerSyncFinished(ContentResolver contentResolver,
String account,
String authority,
long when)
|
static String |
mesgToString(String mesg)
|
static Cursor |
query(ContentResolver contentResolver)
returns a cursor that queries the sync history in descending event time order |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Uri CONTENT_URI
public static final int EVENT_START
public static final int EVENT_STOP
public static final String[] EVENTS
public static final int SOURCE_SERVER
public static final int SOURCE_LOCAL
public static final int SOURCE_POLL
public static final int SOURCE_USER
public static final String[] SOURCES
public static final int ERROR_SYNC_ALREADY_IN_PROGRESS
public static final int ERROR_AUTHENTICATION
public static final int ERROR_IO
public static final int ERROR_PARSE
public static final int ERROR_CONFLICT
public static final int ERROR_TOO_MANY_DELETIONS
public static final int ERROR_TOO_MANY_RETRIES
public static final String MESG_SUCCESS
public static final String MESG_CANCELED
| Method Detail |
|---|
public static String mesgToString(String mesg)
public static Cursor query(ContentResolver contentResolver)
contentResolver - the ContentResolver to use for the query
public static boolean hasNewerSyncFinished(ContentResolver contentResolver,
String account,
String authority,
long when)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||