Home
last modified time | relevance | path

Searched refs:rawContact (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_RawContactsTest.java86 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriBySourceId() local
94 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriBySourceId()
98 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriBySourceId()
103 lookupContact.getId(), rawContact.load().getContactId()); in testGetLookupUriBySourceId()
107 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriByDisplayName() local
111 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriByDisplayName()
115 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriByDisplayName()
120 lookupContact.getId(), rawContact.load().getContactId()); in testGetLookupUriByDisplayName()
221 TestRawContact rawContact = mBuilder.newRawContact() in testProjection() local
225 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testProjection()
[all …]
DContactsContract_ContactsTest.java65 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testMarkAsContacted() local
66 TestContact contact = rawContact.getContact().load(); in testMarkAsContacted()
71 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
72 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
80 rawContact.load(); in testMarkAsContacted()
85 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
86 assertEquals("#" + i, 0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
100 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testLookupUri() local
101 TestContact contact = rawContact.getContact().load(); in testLookupUri()
182 final TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testContactUpdate_usageStats() local
[all …]
DContactsContract_GroupMembershipTest.java51 TestRawContact rawContact = mBuilder.newRawContact().insert(); in testAddGroupMembershipWithGroupRowId() local
53 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) in testAddGroupMembershipWithGroupRowId()
58 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); in testAddGroupMembershipWithGroupRowId()
63 TestRawContact rawContact = mBuilder.newRawContact() in testAddGroupMembershipWithGroupSourceId() local
72 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) in testAddGroupMembershipWithGroupSourceId()
77 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); in testAddGroupMembershipWithGroupSourceId()
83 TestRawContact rawContact = mBuilder.newRawContact() in testAddGroupMembershipWithUnknownGroupSourceId() local
87 TestData groupMembership = rawContact.newDataRow(GroupMembership.CONTENT_ITEM_TYPE) in testAddGroupMembershipWithUnknownGroupSourceId()
98 groupMembership.assertColumn(GroupMembership.RAW_CONTACT_ID, rawContact.getId()); in testAddGroupMembershipWithUnknownGroupSourceId()
DContactsContract_PhotoTest.java63 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testAddPhoto() local
64 TestContact contact = rawContact.getContact().load(); in testAddPhoto()
70 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) in testAddPhoto()
75 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId()); in testAddPhoto()
84 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testAddEmptyPhoto() local
85 TestContact contact = rawContact.getContact().load(); in testAddEmptyPhoto()
91 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) in testAddEmptyPhoto()
DContactsContract_DataTest.java209 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriBySourceId() local
217 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriBySourceId()
230 TestRawContact rawContact = mBuilder.newRawContact() in testDataProjection() local
235 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testDataProjection()
246 TestRawContact rawContact = mBuilder.newRawContact() in testRawContactsEntityProjection() local
251 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testRawContactsEntityProjection()
303 new long[]{rawContact.getId()} in testRawContactsEntityProjection()
308 TestRawContact rawContact = mBuilder.newRawContact() in testEntityProjection() local
313 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testEntityProjection()
316 long contactId = rawContact.load().getContactId(); in testEntityProjection()
[all …]
DContactsContract_DataUsageTest.java157 final TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testUsageUpdate() local
158 final TestContact contact = rawContact.getContact().load(); in testUsageUpdate()
168 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate()
176 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate()
187 assertEquals(1, RawContactUtil.update(mResolver, rawContact.getId(), values)); in testUsageUpdate()
190 rawContact.load(); in testUsageUpdate()
195 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testUsageUpdate()
196 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testUsageUpdate()
DContactsContract_ContactCountsTest.java117 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local
121 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData()
124 rawContact.load(); in setupTestData()
125 TestContact contact = rawContact.getContact().load(); in setupTestData()
DContactsContract_PhoneLookup.java74 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local
78 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData()
81 long dataId = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData()
85 rawContact.load(); in setupTestData()
86 TestContact contact = rawContact.getContact().load(); in setupTestData()
DContactsContract_FrequentsStrequentsTest.java424 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local
428 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData()
431 mDataIds[0] = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData()
435 rawContact.load(); in setupTestData()
436 TestContact contact = rawContact.getContact().load(); in setupTestData()
DContactsContract_SearchSnippetsTest.java329 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local
333 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData()
336 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData()
340 rawContact.load(); in setupTestData()
341 TestContact contact = rawContact.getContact().load(); in setupTestData()
DContactsContract_TestDataBuilder.java299 public NestedTestContact(TestRawContact rawContact) { in NestedTestContact() argument
300 mRawContact = rawContact; in NestedTestContact()
325 public TestData(TestRawContact rawContact, String mimeType) { in TestData() argument
326 this.mRawContact = rawContact; in TestData()