/** * Returns the account type of the raw contact. */ public String getAccountTypeString() { return getValues().getAsString(RawContacts.ACCOUNT_TYPE); }
/** * Returns the account name of the raw contact. */ public String getAccountName() { return getValues().getAsString(RawContacts.ACCOUNT_NAME); }
/** * Returns the id of the raw contact. */ public Long getId() { return getValues().getAsLong(RawContacts._ID); }
/** * Returns the data set of the raw contact. */ public String getDataSet() { return getValues().getAsString(RawContacts.DATA_SET); }
public String getSync3() { return getValues().getAsString(RawContacts.SYNC3); }
public boolean isStarred() { return getValues().getAsBoolean(Contacts.STARRED); }
public String getSync4() { return getValues().getAsString(RawContacts.SYNC4); }
public long getContactId() { return getValues().getAsLong(Contacts.Entity.CONTACT_ID); }
public boolean isDirty() { return getValues().getAsBoolean(RawContacts.DIRTY); }
public String getSync1() { return getValues().getAsString(RawContacts.SYNC1); }
public String getSourceId() { return getValues().getAsString(RawContacts.SOURCE_ID); }
public String getSync2() { return getValues().getAsString(RawContacts.SYNC2); }
public boolean isDeleted() { return getValues().getAsBoolean(RawContacts.DELETED); }
final ContentValues values = getValues(); if (accountName == null) { if (accountType == null && dataSet == null) {
/** * Build an {@link RawContactDelta} using the given {@link RawContact} as a * starting point; the "before" snapshot. */ public static RawContactDelta fromBefore(RawContact before) { final RawContactDelta rawContactDelta = new RawContactDelta(); rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues()); rawContactDelta.mValues.setIdColumn(RawContacts._ID); for (final ContentValues values : before.getContentValues()) { rawContactDelta.addEntry(ValuesDelta.fromBefore(values)); } return rawContactDelta; }