Build 1.0_r1(from source)

android.content
Class SyncResult

java.lang.Object
  extended by android.content.SyncResult
All Implemented Interfaces:
Parcelable

public final class SyncResult
extends Object
implements Parcelable

This class is used to store information about the result of a sync


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
static SyncResult ALREADY_IN_PROGRESS
           
static Parcelable.Creator<SyncResult> CREATOR
           
 boolean databaseError
           
 boolean fullSyncRequested
           
 boolean moreRecordsToGet
           
 boolean partialSyncUnavailable
           
 SyncStats stats
           
 boolean syncAlreadyInProgress
           
 boolean tooManyDeletions
           
 boolean tooManyRetries
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
SyncResult()
           
 
Method Summary
 void clear()
           
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 boolean hasError()
           
 boolean hasHardError()
           
 boolean hasSoftError()
           
 boolean madeSomeProgress()
           
 String toDebugString()
          Generates a debugging string indicating the status.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 void writeToParcel(Parcel parcel, int flags)
          Flatten this object in to a Parcel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

syncAlreadyInProgress

public final boolean syncAlreadyInProgress

tooManyDeletions

public boolean tooManyDeletions

tooManyRetries

public boolean tooManyRetries

databaseError

public boolean databaseError

fullSyncRequested

public boolean fullSyncRequested

partialSyncUnavailable

public boolean partialSyncUnavailable

moreRecordsToGet

public boolean moreRecordsToGet

stats

public final SyncStats stats

ALREADY_IN_PROGRESS

public static final SyncResult ALREADY_IN_PROGRESS

CREATOR

public static final Parcelable.Creator<SyncResult> CREATOR
Constructor Detail

SyncResult

public SyncResult()
Method Detail

hasHardError

public boolean hasHardError()

hasSoftError

public boolean hasSoftError()

hasError

public boolean hasError()

madeSomeProgress

public boolean madeSomeProgress()

clear

public void clear()

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Parameters:
parcel - The Parcel in which the object should be written.
flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

toDebugString

public String toDebugString()
Generates a debugging string indicating the status. The string consist of a sequence of code letter followed by the count. Code letters are f - fullSyncRequested, r - partialSyncUnavailable, X - hardError, e - numParseExceptions, c - numConflictDetectedExceptions, a - numAuthExceptions, D - tooManyDeletions, R - tooManyRetries, b - databaseError, x - softError, l - syncAlreadyInProgress, I - numIoExceptions

Returns:
debugging string.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature