/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
RawContactUtil.java | 36 public static int update(ContentResolver resolver, long rawContactId, 38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); 44 Long rawContactId = insertRawContact(resolver, account); 45 DataUtil.insertName(resolver, rawContactId, name); 46 return rawContactId; 51 Long rawContactId = insertRawContact(resolver, account); 52 DataUtil.insertAutoGeneratedName(resolver, rawContactId); 53 return rawContactId; 65 long rawContactId, String[] projection) { 66 Uri uri = ContentUris.withAppendedId(URI, rawContactId); [all...] |
DataUtil.java | 46 public static void insertName(ContentResolver resolver, long rawContactId, String name) { 51 insertData(resolver, rawContactId, values); 54 public static long insertPhoneNumber(ContentResolver resolver, long rawContactId, 59 return DataUtil.insertData(resolver, rawContactId, values); 62 public static long insertEmail(ContentResolver resolver, long rawContactId, String email) { 66 return DataUtil.insertData(resolver, rawContactId, values); 69 public static void insertAutoGeneratedName(ContentResolver resolver, long rawContactId) { 70 insertName(resolver, rawContactId, "test raw contact " + rawContactId); 73 public static long insertData(ContentResolver resolver, long rawContactId, [all...] |
DatabaseAsserts.java | 75 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); 77 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 80 return new ContactIdPair(contactId, rawContactId); 89 long rawContactId = RawContactUtil.createRawContactWithAutoGeneratedName(resolver, account); 91 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 94 return new ContactIdPair(contactId, rawContactId); 121 public ContactIdPair(long contactId, long rawContactId) { 123 this.mRawContactId = rawContactId;
|
ContactsContract_DataUsageTest.java | 89 private long[] setupRawContactDataItems(long rawContactId) { 92 dataIds[0] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5555"); 93 dataIds[1] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5554"); 94 dataIds[2] = DataUtil.insertEmail(mResolver, rawContactId, "test@thisisfake.com"); 95 dataIds[3] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5556");
|
ContactsProvider2_AccountRemovalTest.java | 152 private long assertMerged(long start, long rawContactId, long rawContactId2) { 156 "Raw contact " + rawContactId + " and " + rawContactId2 + " are not merged."); 159 contactId = checkMerged(rawContactId, rawContactId2); 164 private long checkMerged(long rawContactId, long rawContactId2) { 165 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId);
|
ContactsContract_RawContactsTest.java | 124 long rawContactid = RawContactUtil.insertRawContact(mResolver, 127 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); 129 RawContactUtil.delete(mResolver, rawContactid, false); 135 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid, 145 long rawContactid = RawContactUtil.insertRawContact(mResolver, 147 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); 149 RawContactUtil.delete(mResolver, rawContactid, true); 151 assertFalse(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); 213 long rawContactId) { 214 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId); [all...] |
ContactsContract_PinnedPositionsTest.java | 345 * rawContactId contain the exact same name-value pairs in the given ContentValues. 347 * @param rawContactId Id of a valid contact in the contacts database 350 private void assertValuesForRawContact(long rawContactId, ContentValues contentValues) { 352 buildUpon().appendEncodedPath(String.valueOf(rawContactId)).build(), contentValues);
|
ContactsContract_DataTest.java | 683 private long createData(long rawContactId) { 689 return DataUtil.insertData(mResolver, rawContactId, values); [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 130 final long rawContactId; 133 rawContactId = rawContact.getRawContactId(); 137 rawContactId = lookupRawContact(resolver, serverContactId); 140 if (rawContactId != 0) { 143 true, true, true, rawContactId, batchOperation); 145 deleteContact(context, rawContactId, batchOperation); 186 final long rawContactId = c.getLong(DirtyQuery.COLUMN_RAW_CONTACT_ID); 197 Log.i(TAG, "Dirty Contact: " + Long.toString(rawContactId)); 202 RawContact rawContact = RawContact.createDeletedContact(rawContactId, 206 RawContact rawContact = getRawContact(context, rawContactId); [all...] |
ContactOperations.java | 82 * @param rawContactId the unique Id of the existing rawContact 86 public static ContactOperations updateExistingContact(Context context, long rawContactId, 88 return new ContactOperations(context, rawContactId, isSyncOperation, batchOperation); 113 public ContactOperations(Context context, long rawContactId, boolean isSyncOperation, 117 mRawContactId = rawContactId;
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
RawContact.java | 181 long rawContactId, long syncState, boolean dirty) { 194 mRawContactId = rawContactId; 216 final int rawContactId = !contact.isNull("c") ? contact.getInt("c") : -1; 229 serverContactId, rawContactId, syncState, false); 241 String email, String status, boolean deleted, long rawContactId, 244 homePhone, email, status, null, deleted, serverContactId, rawContactId, 255 public static RawContact createDeletedContact(long rawContactId, long serverContactId) 258 null, null, null, true, serverContactId, rawContactId, -1, true);
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
PresenceContact.java | 47 public PresenceContact(String name, String number, String formattedNumber, String rawContactId, 52 mRawContactId = rawContactId;
|
EABService.java | 473 Long rawContactId = Long.valueOf(cursor.getLong(cursor.getColumnIndex( 479 logger.debug("dataId : " + dataId + " rawContactId :" + rawContactId + 482 verifyInsertOrUpdateAction(dataId, contactId, rawContactId, phoneNumber, 485 uniqueRawContactIds.add(rawContactId); 486 } else if (!uniqueRawContactIds.contains(rawContactId)) { 487 uniqueRawContactIds.add(rawContactId); 490 logger.debug("uniqueRawContactIds already contains rawContactId : " + 491 rawContactId); 518 Long rawContactId, String phoneNumber, String displayName) [all...] |
EABDbUtil.java | 114 // contactId, rawContactId and dataId. 124 String rawContactId = pCur.getString(pCur.getColumnIndex( 132 + rawContactId + dataId; 138 formattedNumber, rawContactId, contactId, dataId)); 140 " Number:" + contactNumber + " RawContactID: " + rawContactId + 193 String phoneNumber, String formattedNumber, String rawContactId, String contactId, 201 .withValue(EABContract.EABColumns.RAW_CONTACT_ID, rawContactId) 300 ArrayList<ContentProviderOperation> ops, String rawContactId, String dataId) { 304 String eabWhereClause = EABContract.EABColumns.RAW_CONTACT_ID + " ='" + rawContactId [all...] |
EABProvider.java | 502 long rawContactId = cursor.getLong(cursor.getColumnIndex( 509 " rawContactId :" + rawContactId + " phoneNumber :" + phoneNumber +
|