/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_GroupMembershipTest.java | 51 TestRawContact rawContact = mBuilder.newRawContact().insert(); 53 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 58 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); 63 TestRawContact rawContact = mBuilder.newRawContact() 72 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 77 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); 83 TestRawContact rawContact = mBuilder.newRawContact() 87 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) 98 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId());
|
ContactsContract_PhotoTest.java | 61 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 62 TestContact contact = rawContact.getContact().load(); 68 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) 73 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId()); 82 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 83 TestContact contact = rawContact.getContact().load(); 89 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE)
|
ContactsContract_RawContactsTest.java | 57 TestRawContact rawContact = mBuilder.newRawContact() 65 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 69 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 74 lookupContact.getId(), rawContact.load().getContactId()); 78 TestRawContact rawContact = mBuilder.newRawContact() 82 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 86 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 91 lookupContact.getId(), rawContact.load().getContactId());
|
ContactsContract_DataTest.java | 68 TestRawContact rawContact = mBuilder.newRawContact() 76 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 89 TestRawContact rawContact = mBuilder.newRawContact() 93 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) 106 TestRawContact rawContact = mBuilder.newRawContact() 110 rawContact.newDataRow(CommonDataKinds.Email.CONTENT_ITEM_TYPE) 121 new long[] {rawContact.getId()}, cv); 122 rawContact.newDataRow(CommonDataKinds.StructuredPostal.CONTENT_ITEM_TYPE) 126 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 137 Data.RAW_CONTACT_ID + "=?", new String[] {String.valueOf(rawContact.getId())} [all...] |
ContactsContract_ContactsTest.java | 65 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 66 TestContact contact = rawContact.getContact().load(); 93 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 94 TestContact contact = rawContact.getContact().load();
|
ContactsContract_TestDataBuilder.java | 291 public NestedTestContact(TestRawContact rawContact) { 292 mRawContact = rawContact; 317 public TestData(TestRawContact rawContact, String mimeType) { 318 this.mRawContact = rawContact;
|
/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...] |
/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
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...] |
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...] |
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...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
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/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);
|