/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
BaseContactsProvider2Test.java | 234 protected Uri insertOrganization(long rawContactId, ContentValues values) { 235 return insertOrganization(rawContactId, values, false, false); 238 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) { 239 return insertOrganization(rawContactId, values, primary, false); 242 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary, 244 values.put(Data.RAW_CONTACT_ID, rawContactId); 258 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber) { 259 return insertPhoneNumber(rawContactId, phoneNumber, false); 262 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) { 263 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, Phone.TYPE_HOME) [all...] |
ContactsProvider2Test.java | [all...] |
GroupsTest.java | 231 public void assertRawContactVisible(long rawContactId, boolean expected) { 232 final long contactId = this.queryContactId(rawContactId); 259 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); 260 final long contactId = this.queryContactId(rawContactId); 263 this.insertGroupMembership(rawContactId, groupId); 282 final long rawContactId = RawContactUtil.createRawContact(this.mResolver); 285 assertRawContactVisible(rawContactId, true); 313 final long rawContactId = RawContactUtil.createRawContact(this.mResolver, sTestAccount); 321 assertRawContactVisible(rawContactId, false); 330 assertRawContactVisible(rawContactId, true) [all...] |
ContactsActor.java | 514 long rawContactId = createRawContact(); 515 createName(rawContactId, name); 516 return rawContactId; 529 final long rawContactId = createRawContact(name); 530 final long dataId = createEmail(rawContactId, address); 532 return rawContactId; 593 public long getContactForRawContact(long rawContactId) { 595 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 618 public int getDataCountForRawContact(long rawContactId) { 621 rawContactId), Contacts.Data.CONTENT_DIRECTORY) [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;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForStructuredName.java | 47 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 51 long dataId = super.insert(db, txContext, rawContactId, values); 55 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 59 fixRawContactDisplayName(db, txContext, rawContactId); 60 triggerAggregation(txContext, rawContactId); 68 final long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 83 mNameLookupBuilder.insertNameLookup(rawContactId, dataId, name, 88 fixRawContactDisplayName(db, txContext, rawContactId); 89 triggerAggregation(txContext, rawContactId); 96 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID) [all...] |
DataRowHandlerForCommonDataKind.java | 44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 47 return super.insert(db, txContext, rawContactId, values);
|
LegacyApiSupport.java | [all...] |
DataRowHandlerForStructuredPostal.java | 55 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 58 return super.insert(db, txContext, rawContactId, values);
|
ContactsProvider2.java | [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
RawContactDeltaList.java | 106 final Long rawContactId = remoteEntity.getValues().getId(); 109 final RawContactDelta localEntity = local.getByRawContactId(rawContactId); 133 final long rawContactId = this.findRawContactId(); 160 if (rawContactId != -1) { 161 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId); 176 if (rawContactId != -1) { 179 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); 288 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); 289 if (rawContactId != null && rawContactId >= 0) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DatabaseAsserts.java | 73 long rawContactId = RawContactUtil.createRawContactWithName(resolver, account, name); 75 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 78 return new ContactIdPair(contactId, rawContactId); 87 long rawContactId = RawContactUtil.createRawContactWithAutoGeneratedName(resolver, account); 89 long contactId = RawContactUtil.queryContactIdByRawContactId(resolver, rawContactId); 92 return new ContactIdPair(contactId, rawContactId); 119 public ContactIdPair(long contactId, long rawContactId) { 121 this.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);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_DataUsageTest.java | 84 private long[] setupRawContactDataItems(long rawContactId) { 87 dataIds[0] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5555"); 88 dataIds[1] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5554"); 89 dataIds[2] = DataUtil.insertEmail(mResolver, rawContactId, "test@thisisfake.com"); 90 dataIds[3] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5556");
|
ContactsContract_StreamItemPhotosTest.java | 40 long rawContactId = ContactsContract_StreamItemsTest.insertRawContact(mResolver); 42 rawContactId);
|
ContactsProvider2_AccountRemovalTest.java | 160 private long assertMerged(long start, long rawContactId, long rawContactId2) { 164 "Raw contact " + rawContactId + " and " + rawContactId2 + " are not merged."); 167 contactId = checkMerged(rawContactId, rawContactId2); 172 private long checkMerged(long rawContactId, long rawContactId2) { 173 long contactId = RawContactUtil.queryContactIdByRawContactId(mResolver, rawContactId);
|
/packages/apps/Contacts/src/com/android/contacts/ |
SplitAggregateView.java | 81 void onContactSelected(long rawContactId); 100 mListener.onContactSelected(list.get(position).rawContactId); 116 final long rawContactId; 124 public RawContactInfo(long rawContactId) { 125 this.rawContactId = rawContactId; 165 long rawContactId = cursor.getLong(SplitQuery.RAW_CONTACT_ID); 166 RawContactInfo info = rawContactInfos.get(rawContactId); 168 info = new RawContactInfo(rawContactId); 169 rawContactInfos.put(rawContactId, info) [all...] |
ContactSaveService.java | 291 * @param rawContactId identifies a writable raw-contact whose photo is to be updated. 296 Class<? extends Activity> callbackActivity, String callbackAction, long rawContactId, 299 bundle.putParcelable(String.valueOf(rawContactId), updatedPhotoPath); 371 final long rawContactId = getRawContactId(state, diff, results); 372 if (rawContactId == -1) { 396 rawContactId); 423 Long rawContactId = state.getRawContactId(i); 424 if (rawContactId != null && rawContactId != -1) { 428 sb.append(rawContactId); [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 217 long rawContactId = cursor.getLong(RAW_CONTACT_ID_COLUMN_INDEX); 225 SuggestedMember member = new SuggestedMember(rawContactId, displayName, 229 suggestionsMap.put(rawContactId, member); 256 for (Long rawContactId : suggestionsMap.keySet()) { 257 selectionArgs.add(String.valueOf(rawContactId)); 272 long rawContactId = memberDataCursor.getLong(RAW_CONTACT_ID_COLUMN_INDEX); 273 SuggestedMember member = suggestionsMap.get(rawContactId); 333 public SuggestedMember(long rawContactId, String displayName, long contactId) { 334 mRawContactId = rawContactId;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionEngine.java | 58 public long rawContactId; 65 return "ID: " + rawContactId + " account: " + accountType + "/" + accountName 395 long rawContactId = mDataCursor.getLong(DataQuery.RAW_CONTACT_ID); 396 if (!containsRawContact(suggestion, rawContactId)) { 398 rawContact.rawContactId = rawContactId; 437 public boolean containsRawContact(Suggestion suggestion, long rawContactId) { 441 if (suggestion.rawContacts.get(i).rawContactId == rawContactId) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
ContactsTableUtil.java | 121 public static void deleteContactIfSingleton(SQLiteDatabase db, long rawContactId) { 131 final Cursor cursor = db.rawQuery(sql, new String[]{rawContactId + ""});
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 365 final long rawContactId = findArbitraryRawContactOfContact(contactId); 366 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 374 final long rawContactId = findArbitraryRawContactOfContact(contactId); 375 final Uri uri = ContentUris.withAppendedId(legacyContentUri, rawContactId); 440 final long rawContactId = findArbitraryRawContactOfContact(contactId); 441 final Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); 449 final long rawContactId = findArbitraryRawContactOfContact(contactId); 450 final Uri uri = ContentUris.withAppendedId(legacyContentUri, rawContactId); 474 final long rawContactId = findArbitraryRawContactOfContact(contactId); 475 final Uri uri = ContentUris.withAppendedId(legacyContentUri, rawContactId); [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaListTests.java | 101 static RawContactDelta getUpdate(Context context, long rawContactId) { 102 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId, 122 static RawContactDelta buildBeforeEntity(Context context, long rawContactId, long version, 127 contact.put(RawContacts._ID, rawContactId); 168 static void insertPhone(RawContactDeltaList set, long rawContactId, ContentValues values) { 169 final RawContactDelta match = set.getByRawContactId(rawContactId); 173 static ValuesDelta getPhone(RawContactDeltaList set, long rawContactId, long dataId) { 174 final RawContactDelta match = set.getByRawContactId(rawContactId); 250 static ContentProviderOperation buildUpdateAggregationKeepTogether(long rawContactId) { 252 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 273 public static long queryForContactId(ContentResolver cr, long rawContactId) { 279 RawContacts._ID + "=" + rawContactId, null, null); 317 long rawContactId = -1; 324 rawContactId = rawContactIdCursor.getLong(0); 331 return rawContactId;
|