Home
last modified time | relevance | path

Searched refs:contact (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_ContactsTest.java66 TestContact contact = rawContact.getContact().load(); in testMarkAsContacted() local
68 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
69 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
78 Contacts.markAsContacted(mResolver, contact.getId()); in testMarkAsContacted()
79 contact.load(); in testMarkAsContacted()
82 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
83 assertEquals("#" + i, 0, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
101 TestContact contact = rawContact.getContact().load(); in testLookupUri() local
103 Uri contactUri = contact.getUri(); in testLookupUri()
104 long contactId = contact.getId(); in testLookupUri()
[all …]
DContactsContract_PhotoTest.java64 TestContact contact = rawContact.getContact().load(); in testAddPhoto() local
66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
79 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
80 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
85 TestContact contact = rawContact.getContact().load(); in testAddEmptyPhoto() local
87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
88 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddEmptyPhoto()
[all …]
DContactsContract_DataUsageTest.java158 final TestContact contact = rawContact.getContact().load(); in testUsageUpdate() local
164 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values)); in testUsageUpdate()
172 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values)); in testUsageUpdate()
182 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values)); in testUsageUpdate()
189 contact.load(); in testUsageUpdate()
192 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testUsageUpdate()
193 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); in testUsageUpdate()
DContactsContract_StructuredPhoneticName.java86 TestContact contact = rawContact1.getContact().load(); in testPhoneticStructuredName() local
87 contact.assertColumn(Contacts.DISPLAY_NAME_SOURCE, in testPhoneticStructuredName()
129 TestContact contact = rawContact2.getContact().load(); in testPhoneticStructuredName_phoneticPriority1() local
130 contact.assertColumn(Contacts.DISPLAY_NAME, "name"); in testPhoneticStructuredName_phoneticPriority1()
166 TestContact contact = rawContact2.getContact().load(); in testPhoneticStructuredName_phoneticPriority2() local
167 contact.assertColumn(Contacts.DISPLAY_NAME, "name"); in testPhoneticStructuredName_phoneticPriority2()
DContactsContract_IsSuperPrimaryName.java107 TestContact contact = rawContact2.getContact().load(); in testInner_displayNameFromIsSuperPrimary() local
108 contact.assertColumn(Contacts.DISPLAY_NAME, expectedDisplayName); in testInner_displayNameFromIsSuperPrimary()
127 contact.load(); in testInner_displayNameFromIsSuperPrimary()
128 contact.assertColumn(Contacts.DISPLAY_NAME, otherDisplayName); in testInner_displayNameFromIsSuperPrimary()
DContactsContract_ContactCountsTest.java125 TestContact contact = rawContact.getContact().load(); in setupTestData() local
177 return new long[] {contact.getId(), contact2.getId(), contact3.getId(), contact4.getId(), in setupTestData()
DContactsContract_PhoneLookup.java86 TestContact contact = rawContact.getContact().load(); in setupTestData() local
118 new Id(contact.getId(), dataId), in setupTestData()
DContactsContract_FrequentsStrequentsTest.java436 TestContact contact = rawContact.getContact().load(); in setupTestData() local
466 return new long[] {contact.getId(), contact2.getId(), contact3.getId()}; in setupTestData()
DContactsContract_SearchSnippetsTest.java341 TestContact contact = rawContact.getContact().load(); in setupTestData() local
380 contact.getId(), contact2.getId(), contact3.getId() in setupTestData()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DEabControllerTest.java395 private RcsContactUceCapability requestAvailability(Uri contact) throws Exception { in requestAvailability() argument
403 adapter -> adapter.requestAvailability(contact, Runnable::run, in requestAvailability()
418 private RcsContactUceCapability requestCapabilities(List<Uri> contact) throws Exception { in requestCapabilities() argument
426 adapter -> adapter.requestCapabilities(contact, Runnable::run, mCallback), in requestCapabilities()
471 private String getPidfXmlData(Uri contact, in getPidfXmlData() argument
483 + "<presence entity=\"" + contact + "\"" in getPidfXmlData()
520 + "<contact>" + contact + "</contact>" in getPidfXmlData()
DRcsUceAdapterTest.java1500 Uri contact = capability.getContactUri(); in testIndividualRequestCapabilities() local
1501 if (contact1.equals(contact)) { in testIndividualRequestCapabilities()
1504 } else if (contact2.equals(contact)) { in testIndividualRequestCapabilities()
1507 } else if (contact3.equals(contact)) { in testIndividualRequestCapabilities()
1553 Uri contact = capability.getContactUri(); in testIndividualRequestCapabilities() local
1554 if (contact1.equals(contact)) { in testIndividualRequestCapabilities()
1557 } else if (contact2.equals(contact)) { in testIndividualRequestCapabilities()
1560 } else if (contact3.equals(contact)) { in testIndividualRequestCapabilities()
1619 capabilityExchangeImpl.setOptionsOperation((contact, myCapabilities, optionsCallback) -> { in testRequestCapabilitiesWithOptionsMechanism() argument
1678 capabilityExchangeImpl.setOptionsOperation((contact, myCapabilities, optionsCallback) -> { in testRequestCapabilitiesWithOptionsMechanism() argument
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DContactsTest.java173 for (ContactInfo contact : getContactInfoFromListContacts(false)) { in testRemoveAllUserContacts()
175 Contacts.CONTENT_URI.buildUpon().appendPath(contact.contactId).build(), null); in testRemoveAllUserContacts()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt35848 …field @Deprecated public static final String CONTENT_TYPE = "vnd.android.cursor.dir/contact-method…
36486 field public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/contact";
36491 field public static final String CONTENT_TYPE = "vnd.android.cursor.dir/contact";