Home
last modified time | relevance | path

Searched refs:rawContactid (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_RawContactsTest.java135 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_setsDeleteFlag() local
138 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_setsDeleteFlag()
140 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag()
146 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid, in testRawContactDelete_setsDeleteFlag()
161 long rawContactid = RawContactUtil.insertRawContact(mResolver, account); in testRawContactDelete_localDeleteRemovesRecord() local
162 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_localDeleteRemovesRecord()
165 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_localDeleteRemovesRecord()
167 assertFalse(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_localDeleteRemovesRecord()
173 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_removesRecord() local
175 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_removesRecord()
[all …]
DRawContactUtil.java94 public static long queryContactIdByRawContactId(ContentResolver resolver, long rawContactid) { in queryContactIdByRawContactId() argument
98 String[] result = RawContactUtil.queryByRawContactId(resolver, rawContactid, in queryContactIdByRawContactId()
106 public static boolean rawContactExistsById(ContentResolver resolver, long rawContactid) { in rawContactExistsById() argument
107 long contactId = queryContactIdByRawContactId(resolver, rawContactid); in rawContactExistsById()