/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_GroupMembershipTest.java | 51 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()
|
D | ContactsContract_PhotoTest.java | 61 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testAddPhoto() local 62 TestContact contact = rawContact.getContact().load(); in testAddPhoto() 68 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) in testAddPhoto() 73 photoData.assertColumn(Photo.RAW_CONTACT_ID, rawContact.getId()); in testAddPhoto() 82 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testAddEmptyPhoto() local 83 TestContact contact = rawContact.getContact().load(); in testAddEmptyPhoto() 89 TestData photoData = rawContact.newDataRow(Photo.CONTENT_ITEM_TYPE) in testAddEmptyPhoto()
|
D | ContactsContract_RawContactsTest.java | 91 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriBySourceId() local 99 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriBySourceId() 103 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriBySourceId() 108 lookupContact.getId(), rawContact.load().getContactId()); in testGetLookupUriBySourceId() 112 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriByDisplayName() local 116 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriByDisplayName() 120 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriByDisplayName() 125 lookupContact.getId(), rawContact.load().getContactId()); in testGetLookupUriByDisplayName() 226 TestRawContact rawContact = mBuilder.newRawContact() in testProjection() local 230 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in testProjection() [all …]
|
D | ContactsContract_DataTest.java | 210 TestRawContact rawContact = mBuilder.newRawContact() in testGetLookupUriBySourceId() local 218 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testGetLookupUriBySourceId() 231 TestRawContact rawContact = mBuilder.newRawContact() in testDataProjection() local 236 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testDataProjection() 247 TestRawContact rawContact = mBuilder.newRawContact() in testRawContactsEntityProjection() local 252 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testRawContactsEntityProjection() 302 new long[]{rawContact.getId()} in testRawContactsEntityProjection() 307 TestRawContact rawContact = mBuilder.newRawContact() in testEntityProjection() local 312 TestData data = rawContact.newDataRow(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) in testEntityProjection() 315 long contactId = rawContact.load().getContactId(); in testEntityProjection() [all …]
|
D | ContactsContract_ContactsTest.java | 66 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); in testMarkAsContacted() local 67 TestContact contact = rawContact.getContact().load(); in testMarkAsContacted() 94 TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 95 TestContact contact = rawContact.getContact().load(); 172 final TestRawContact rawContact = mBuilder.newRawContact().insert().load(); 173 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) 177 final TestContact contact = rawContact.getContact().load();
|
D | ContactsContract_PhoneLookup.java | 64 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local 68 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData() 71 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData() 75 rawContact.load(); in setupTestData() 76 TestContact contact = rawContact.getContact().load(); in setupTestData()
|
D | ContactsContract_ContactCountsTest.java | 117 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()
|
D | ContactsContract_SearchSnippetsTest.java | 217 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local 221 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData() 224 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData() 228 rawContact.load(); in setupTestData() 229 TestContact contact = rawContact.getContact().load(); in setupTestData()
|
D | ContactsContract_FrequentsStrequentsTest.java | 436 TestRawContact rawContact = mBuilder.newRawContact() in setupTestData() local 440 rawContact.newDataRow(StructuredName.CONTENT_ITEM_TYPE) in setupTestData() 443 mDataIds[0] = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) in setupTestData() 447 rawContact.load(); in setupTestData() 448 TestContact contact = rawContact.getContact().load(); in setupTestData()
|
D | ContactsContract_TestDataBuilder.java | 291 public NestedTestContact(TestRawContact rawContact) { in NestedTestContact() argument 292 mRawContact = rawContact; in NestedTestContact() 317 public TestData(TestRawContact rawContact, String mimeType) { in TestData() argument 318 this.mRawContact = rawContact; in TestData()
|