/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
RawContactTest.java | 24 import com.android.contacts.common.model.RawContact; 29 * Unit test for {@link RawContact}. 33 private RawContact buildRawContact() { 42 final RawContact contact = new RawContact(values); 48 private RawContact buildRawContact2() { 57 final RawContact contact = new RawContact(values); 64 final RawContact one = buildRawContact(); 65 final RawContact two = buildRawContact2() [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
RawContact.java | 40 * RawContact represents a single raw contact in the raw contacts database. 42 * items, and also contains a collection of DataItem objects. A RawContact contains the information 45 * This allows RawContact objects to be thought of as a class with raw contact 50 final public class RawContact implements Parcelable { 123 public static RawContact createFrom(Entity entity) { 127 RawContact rawContact = new RawContact(values); 129 rawContact.addNamedDataItemValues(subValue.uri, subValue.values); 131 return rawContact; [all...] |
Contact.java | 40 * about a contact can come from multiple data sources, which are each represented by a RawContact 41 * object. Thus, a Contact is associated with a collection of RawContact objects. 75 private ImmutableList<RawContact> mRawContacts; 352 public ImmutableList<RawContact> getRawContacts() { 386 for (RawContact rawContact : getRawContacts()) { 387 AccountType accountType = rawContact.getAccountType(context); 389 return rawContact.getId(); 426 RawContact rawContact = mRawContacts.get(0) [all...] |
ContactLoader.java | 403 final RawContact rawContact = new RawContact(values); 416 processOneRecord(rawContact, item, mimetype); 419 processOneRecord(rawContact, obj, mimetype); 423 contact.setRawContacts(new ImmutableList.Builder<RawContact>() 424 .add(rawContact) 429 private void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) 445 rawContact.addDataItemValues(itemValues) [all...] |
RawContactDeltaList.java | 74 * RawContact objects. 87 final RawContact before = nextObject instanceof Entity 88 ? RawContact.createFrom((Entity) nextObject) 89 : (RawContact) nextObject;
|
RawContactDelta.java | 43 * Contains a {@link RawContact} and records any modifications separately so the 44 * original {@link RawContact} can be swapped out with a newer version and the 48 * empty {@link RawContact}, which then becomes an insert {@link RawContacts} case. 50 * When applying modifications over an {@link RawContact}, we try finding the 52 * rows are missing from the new {@link RawContact}, we know the original data must 86 * Build an {@link RawContactDelta} using the given {@link RawContact} as a 89 public static RawContactDelta fromBefore(RawContact before) {
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
RawContact.java | 27 * Represents a low-level contacts RawContact - or at least 28 * the fields of the RawContact that we care about. 30 final public class RawContact { 33 private static final String TAG = "RawContact"; 136 * Convert the RawContact object into a JSON string. From the 172 Log.i(TAG, "Error converting RawContact to JSONObject" + ex.toString()); 178 public RawContact(String name, String fullName, String firstName, String lastName, 200 * Creates and returns an instance of the RawContact from the provided JSON data. 203 * @return user The new instance of Sample RawContact created from the JSON data. 205 public static RawContact valueOf(JSONObject contact) [all...] |
NetworkUtilities.java | 160 public static List<RawContact> syncContacts( 161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) 165 for (RawContact rawContact : dirtyContacts) { 166 jsonContacts.add(rawContact.toJSONObject()); 174 final ArrayList<RawContact> serverDirtyList = new ArrayList<RawContact>(); 202 RawContact rawContact = RawContact.valueOf(serverContacts.getJSONObject(i)) [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaTests.java | 35 import com.android.contacts.common.model.RawContact; 68 public static RawContact getRawContact(Context context, long contactId, long phoneId) { 80 final RawContact before = new RawContact(contact); 89 * "before" {@link RawContact}. 92 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); 102 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); 120 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); 134 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); 166 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID) [all...] |
RawContactDeltaListTests.java | 38 import com.android.contacts.common.model.RawContact; 102 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId, 128 final RawContact before = new RawContact(contact);
|
RawContactModifierTests.java | 42 import com.android.contacts.common.model.RawContact; 170 * Build an {@link RawContact} with the requested set of phone numbers. 180 final RawContact before = new RawContact(contact); [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionView.java | 29 import com.android.contacts.editor.AggregationSuggestionEngine.RawContact; 63 private List<RawContact> mRawContacts = Lists.newArrayList(); 119 for (RawContact rawContact : mRawContacts) { 120 String accountType = rawContact.accountType; 121 String dataSet = rawContact.dataSet; 144 for (RawContact rawContact : mRawContacts) { 145 rawContactIds.add(rawContact.rawContactId);
|
AggregationSuggestionEngine.java | 57 public static final class RawContact { 79 public List<RawContact> rawContacts; 398 RawContact rawContact = new RawContact(); 399 rawContact.rawContactId = rawContactId; 400 rawContact.accountName = mDataCursor.getString(DataQuery.ACCOUNT_NAME); 401 rawContact.accountType = mDataCursor.getString(DataQuery.ACCOUNT_TYPE); 402 rawContact.dataSet = mDataCursor.getString(DataQuery.DATA_SET); 403 suggestion.rawContacts.add(rawContact); [all...] |
ContactEditorFragment.java | 83 import com.android.contacts.common.model.RawContact; 260 private ImmutableList<RawContact> mRawContacts; 499 mRawContacts = ImmutableList.copyOf(savedState.<RawContact>getParcelableArrayList( 522 RawContact rawContact = mRawContacts.get(0); 523 String type = rawContact.getAccountTypeString(); 524 String dataSet = rawContact.getDataSet(); 525 AccountType accountType = rawContact.getAccountType(mContext); 529 String name = rawContact.getAccountName(); 530 long rawContactId = rawContact.getId() [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 20 import com.example.android.samplesync.client.RawContact; 115 List<RawContact> rawContacts, long groupId, long lastSyncMarker) { 120 final List<RawContact> newUsers = new ArrayList<RawContact>(); 123 for (final RawContact rawContact : rawContacts) { 130 if (rawContact.getSyncState() > currentSyncMarker) { 131 currentSyncMarker = rawContact.getSyncState(); 141 if (rawContact.getRawContactId() > 0) { 142 rawContactId = rawContact.getRawContactId() [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
SyncAdapter.java | 20 import com.example.android.samplesync.client.RawContact; 83 List<RawContact> dirtyContacts; 84 List<RawContact> updatedContacts;
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailDisplayUtils.java | 46 import com.android.contacts.common.model.RawContact; 152 for (RawContact rawContact : contactData.getRawContacts()) { 154 rawContact.getDataItems(), OrganizationDataItem.class)) {
|
ContactDetailFragment.java | 97 import com.android.contacts.common.model.RawContact; 535 for (RawContact rawContact: mContactData.getRawContacts()) { 536 final long rawContactId = rawContact.getId(); 537 final AccountType accountType = rawContact.getAccountType(mContext); 538 for (DataItem dataItem : rawContact.getDataItems()) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ConfirmAddDetailActivity.java | 68 import com.android.contacts.common.model.RawContact; 641 final RawContact rawContact = new RawContact(); 642 rawContact.setAccount(editableAccount); 645 rawContact.getValues())); [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
QuickContactActivity.java | 68 import com.android.contacts.common.model.RawContact; 433 for (RawContact rawContact : data.getRawContacts()) { 434 for (DataItem dataItem : rawContact.getDataItems()) { 436 final AccountType accountType = rawContact.getAccountType(this);
|