/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | RawContactUtil.java | 36 public static int update(ContentResolver resolver, long rawContactId, in update() argument 38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); in update() 44 Long rawContactId = insertRawContact(resolver, account); in createRawContactWithName() local 45 DataUtil.insertName(resolver, rawContactId, name); in createRawContactWithName() 46 return rawContactId; in createRawContactWithName() 51 Long rawContactId = insertRawContact(resolver, account); in createRawContactWithAutoGeneratedName() local 52 DataUtil.insertAutoGeneratedName(resolver, rawContactId); in createRawContactWithAutoGeneratedName() 53 return rawContactId; in createRawContactWithAutoGeneratedName() 67 long rawContactId, String[] projection) { in queryByRawContactId() argument 68 Uri uri = ContentUris.withAppendedId(URI, rawContactId); in queryByRawContactId() [all …]
|
D | DataUtil.java | 46 public static void insertName(ContentResolver resolver, long rawContactId, String name) { in insertName() argument 51 insertData(resolver, rawContactId, values); in insertName() 54 public static long insertPhoneNumber(ContentResolver resolver, long rawContactId, in insertPhoneNumber() argument 59 return DataUtil.insertData(resolver, rawContactId, values); in insertPhoneNumber() 62 public static long insertEmail(ContentResolver resolver, long rawContactId, String email) { in insertEmail() argument 66 return DataUtil.insertData(resolver, rawContactId, values); in insertEmail() 69 public static void insertAutoGeneratedName(ContentResolver resolver, long rawContactId) { in insertAutoGeneratedName() argument 70 insertName(resolver, rawContactId, "test raw contact " + rawContactId); in insertAutoGeneratedName() 73 public static long insertData(ContentResolver resolver, long rawContactId, in insertData() argument 77 newValues.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); in insertData()
|
D | DatabaseAsserts.java | 75 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); in assertAndCreateContactWithName() local 77 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContactWithName() 80 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContactWithName() 89 long rawContactId = RawContactUtil.createRawContactWithAutoGeneratedName(resolver, account); in assertAndCreateContact() local 91 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); in assertAndCreateContact() 94 return new ContactIdPair(contactId, rawContactId); in assertAndCreateContact() 121 public ContactIdPair(long contactId, long rawContactId) { in ContactIdPair() argument 123 this.mRawContactId = rawContactId; in ContactIdPair()
|
D | ContactsContract_DataUsageTest.java | 89 private long[] setupRawContactDataItems(long rawContactId) { in setupRawContactDataItems() argument 92 dataIds[0] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5555"); in setupRawContactDataItems() 93 dataIds[1] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5554"); in setupRawContactDataItems() 94 dataIds[2] = DataUtil.insertEmail(mResolver, rawContactId, "test@thisisfake.com"); in setupRawContactDataItems() 95 dataIds[3] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5556"); in setupRawContactDataItems()
|
D | ContactsProvider2_AccountRemovalTest.java | 279 private long assertMerged(long start, long rawContactId, long rawContactId2) { in assertMerged() argument 283 "Raw contact " + rawContactId + " and " + rawContactId2 + " are not merged."); in assertMerged() 286 contactId = checkMerged(rawContactId, rawContactId2); in assertMerged() 291 private long checkMerged(long rawContactId, long rawContactId2) { in checkMerged() argument 292 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in checkMerged()
|
D | ContactsContract_RawContactsTest.java | 292 long rawContactId) { in getContactLastUpdatedTimestampByRawContactId() argument 293 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); in getContactLastUpdatedTimestampByRawContactId()
|
D | ContactsContract_PinnedPositionsTest.java | 350 private void assertValuesForRawContact(long rawContactId, ContentValues contentValues) { in assertValuesForRawContact() argument 352 buildUpon().appendEncodedPath(String.valueOf(rawContactId)).build(), contentValues); in assertValuesForRawContact()
|
D | ContactsContract_DataTest.java | 683 private long createData(long rawContactId) { in createData() argument 689 return DataUtil.insertData(mResolver, rawContactId, values); in createData()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/ |
D | TestContactsDataManager.java | 66 public final String rawContactId; field in TestContactsDataManager.TestRawContactData 70 TestRawContactData(String rawContactId, String mimeType, String data1) { in TestRawContactData() argument 71 this.rawContactId = rawContactId; in TestRawContactData() 101 String rawContactId, String mimeType, String data1) { in getTestContactDataValues() argument 104 rawContactId, ContactsShellCommandHelper.ColumnBindings.Type.INT)); in getTestContactDataValues() 123 String rawContactId) throws DeviceNotAvailableException { in insertDataForRawContact() argument 127 rawContactId, in insertDataForRawContact() 131 return new TestRawContactData(rawContactId, TEST_CONTACT_PHONE_NUMBER_MIMETYPE, in insertDataForRawContact() 173 String rawContactId = getRawContactIdFromQueryResult(queryResult); in insertTestContactForManagedProfile() local 174 assertThat(rawContactId).isNotNull(); in insertTestContactForManagedProfile() [all …]
|