HomeSort by relevance Sort by last modified time
    Searched refs:rawContactId (Results 1 - 25 of 29) sorted by null

1 2

  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
NameLookupBuilder.java 83 protected abstract void insertNameLookup(long rawContactId, long dataId, int lookupType,
100 public void insertNameLookup(long rawContactId, long dataId, String name, int fullNameStyle) {
112 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true);
127 insertCollationKey(rawContactId, dataId, MAX_NAME_TOKENS);
139 insertNameVariants(rawContactId, dataId, 0, tokenCount, !tooManyTokens, true);
140 insertNicknamePermutations(rawContactId, dataId, 0, tokenCount);
141 insertNameShorthandLookup(rawContactId, dataId, name, fullNameStyle);
142 insertLocaleBasedSpecificLookup(rawContactId, dataId, name, fullNameStyle);
145 private void insertLocaleBasedSpecificLookup(long rawContactId, long dataId, String name,
148 insertKoreanNameConsonantsLookup(rawContactId, dataId, name)
    [all...]
ContactAggregator.java 179 long rawContactId;
190 rawContactId = -1;
366 for (long rawContactId : mRawContactsMarkedForAggregation.keySet()) {
371 selectionArgs[index++] = String.valueOf(rawContactId);
413 public void markNewForAggregation(long rawContactId, int aggregationMode) {
414 mRawContactsMarkedForAggregation.put(rawContactId, aggregationMode);
417 public void markForAggregation(long rawContactId, int aggregationMode, boolean force) {
418 if (!force && mRawContactsMarkedForAggregation.containsKey(rawContactId)) {
422 aggregationMode = mRawContactsMarkedForAggregation.get(rawContactId);
425 mMarkForAggregation.bindLong(1, rawContactId);
    [all...]
ContactLookupKey.java 36 public String rawContactId;
64 String accountName, long rawContactId, String sourceId, String displayName) {
75 lookupKey.append('r').append(rawContactId).append('-').append(
113 String rawContactId = null;
215 rawContactId = string.substring(start, dash);
233 segment.rawContactId = rawContactId;
ContactsProvider2.java     [all...]
LegacyApiSupport.java     [all...]
ContactsDatabaseHelper.java     [all...]
  /packages/apps/Contacts/src/com/android/contacts/model/
EntitySet.java 93 final Long rawContactId = remoteEntity.getValues().getId();
96 final EntityDelta localEntity = local.getByRawContactId(rawContactId);
117 final long rawContactId = this.findRawContactId();
142 if (rawContactId != -1) {
145 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId);
233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID);
234 if (rawContactId != null && rawContactId >= 0) {
235 return rawContactId;
255 public EntityDelta getByRawContactId(Long rawContactId) {
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
CallerInfoIntegrationTest.java 45 long rawContactId = ContentUris.parseId(rawContactUri);
47 insertStructuredName(rawContactId, "Hot", "Tamale");
48 insertPhoneNumber(rawContactId, "800-466-4411");
ContactsProvider2Test.java 105 long rawContactId = ContentUris.parseId(rowUri);
108 assertSelection(RawContacts.CONTENT_URI, values, RawContacts._ID, rawContactId);
113 long rawContactId = createRawContactWithName("John", "Doe");
116 putDataValues(values, rawContactId);
120 long contactId = queryContactId(rawContactId);
127 Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId);
163 long rawContactId = ContentUris.parseId(rawContactUri);
165 insertStructuredName(rawContactId, "Meghan", "Knox");
166 Uri uri = insertPhoneNumber(rawContactId, "18004664411");
170 long contactId = queryContactId(rawContactId);
    [all...]
BaseContactsProvider2Test.java 156 long rawContactId = createRawContact(account);
157 insertStructuredName(rawContactId, firstName, lastName);
158 return rawContactId;
205 protected Uri insertStructuredName(long rawContactId, String givenName, String familyName) {
221 return insertStructuredName(rawContactId, values);
224 protected Uri insertStructuredName(long rawContactId, ContentValues values) {
225 values.put(Data.RAW_CONTACT_ID, rawContactId);
231 protected Uri insertOrganization(long rawContactId, ContentValues values) {
232 return insertOrganization(rawContactId, values, false);
235 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary)
    [all...]
RestrictionExceptionsTest.java 244 final long rawContactId = entity.getEntityValues().getAsLong(RawContacts._ID);
245 assertTrue(rawContactId == greyContact);
255 final long rawContactId = entity.getEntityValues().getAsLong(RawContacts._ID);
256 assertTrue(rawContactId != greyContact);
300 final long rawContactId = mGrey.createRawContactWithStatus(true,
302 final long aggId = mGrey.getContactForRawContact(rawContactId);
309 final long rawContactId = mGrey.createRawContactWithStatus(true,
311 final long aggId = mGrey.getContactForRawContact(rawContactId);
318 final long rawContactId = mRed.createRawContactWithStatus(false,
320 final long aggId = mRed.getContactForRawContact(rawContactId);
    [all...]
GroupsTest.java 236 public void assertRawContactVisible(long rawContactId, boolean expected) {
237 final long contactId = this.queryContactId(rawContactId);
265 final long rawContactId = this.createRawContact(sTestAccount);
266 final long contactId = this.queryContactId(rawContactId);
269 this.insertGroupMembership(rawContactId, groupId);
288 final long rawContactId = this.createRawContact();
291 assertRawContactVisible(rawContactId, true);
319 final long rawContactId = this.createRawContact(sTestAccount);
327 assertRawContactVisible(rawContactId, false);
336 assertRawContactVisible(rawContactId, true)
    [all...]
ContactsActor.java 265 long rawContactId = createRawContact(isRestricted);
266 createName(rawContactId, name);
267 return rawContactId;
283 final long rawContactId = createRawContact(isRestricted, name);
284 final long dataId = createEmail(rawContactId, address);
286 return rawContactId;
347 public long getContactForRawContact(long rawContactId) {
349 Uri contactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId);
372 public int getDataCountForRawContact(long rawContactId) {
375 rawContactId), Contacts.Data.CONTENT_DIRECTORY)
    [all...]
ContactAggregatorTest.java 108 long rawContactId = createRawContact();
110 Uri resultUri = insertStructuredName(rawContactId, "Johna", "Smitha");
115 long contactId = queryContactId(rawContactId);
755 long rawContactId = createRawContact();
756 long contactId = queryContactId(rawContactId);
760 insertEmail(rawContactId, "eclair@android.com");
763 insertPhoneNumber(rawContactId, "800-555-5555");
768 insertOrganization(rawContactId, values);
771 insertNickname(rawContactId, "Dro");
777 insertStructuredName(rawContactId, values)
    [all...]
NameLookupBuilderTest.java 70 protected void insertNameLookup(long rawContactId, long dataId, int lookupType,
GlobalSearchSupportTest.java 45 long rawContactId = createRawContact(account);
46 insertStructuredName(rawContactId, "Deer", "Dough");
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactManager.java 60 long rawContactId = 0;
68 rawContactId = lookupRawContact(resolver, userId);
69 if (rawContactId != 0) {
73 rawContactId, batchOperation);
76 deleteContact(context, rawContactId, batchOperation);
165 * @param rawContactId the unique Id for this rawContact in contacts
170 long rawContactId, BatchOperation batchOperation) {
179 new String[] {String.valueOf(rawContactId)}, null);
181 ContactOperations.updateExistingContact(context, rawContactId,
244 * @param rawContactId the unique Id for this rawContact in contact
    [all...]
ContactOperations.java 69 * @param rawContactId the unique Id of the existing rawContact
73 long rawContactId, BatchOperation batchOperation) {
74 return new ContactOperations(context, rawContactId, batchOperation);
97 public ContactOperations(Context context, long rawContactId,
101 mRawContactId = rawContactId;
  /packages/apps/Contacts/src/com/android/contacts/
SplitAggregateView.java 82 void onContactSelected(long rawContactId);
101 mListener.onContactSelected(list.get(position).rawContactId);
117 final long rawContactId;
124 public RawContactInfo(long rawContactId) {
125 this.rawContactId = rawContactId;
162 long rawContactId = cursor.getLong(SplitQuery.RAW_CONTACT_ID);
163 RawContactInfo info = rawContactInfos.get(rawContactId);
165 info = new RawContactInfo(rawContactId);
166 rawContactInfos.put(rawContactId, info)
    [all...]
ViewContactActivity.java 206 final long rawContactId = ContentUris.parseId(data);
208 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
729 long rawContactId = c.getLong(0);
730 setAggregationException(rawContactId, AggregationExceptions.TYPE_KEEP_TOGETHER);
744 protected void setAggregationException(long rawContactId, int exceptionType) {
747 if (aRawContactId != rawContactId) {
749 values.put(AggregationExceptions.RAW_CONTACT_ID2, rawContactId);
    [all...]
AttachImage.java 158 for (Long rawContactId : mRawContactIds) {
164 rawContactId);
ContactsUtils.java 282 public static long queryForContactId(ContentResolver cr, long rawContactId) {
288 RawContacts._ID + "=" + rawContactId, null, null);
326 long rawContactId = -1;
333 rawContactId = rawContactIdCursor.getLong(0);
340 return rawContactId;
  /packages/apps/Contacts/src/com/android/contacts/ui/
QuickContactActivity.java 72 final long rawContactId = ContentUris.parseId(lookupUri);
74 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId));
EditContactActivity.java 236 final long rawContactId = ContentUris.parseId(data);
237 final long contactId = ContactsUtils.queryForContactId(resolver, rawContactId);
241 final long rawContactId = ContentUris.parseId(data);
242 mSelection = Data.RAW_CONTACT_ID + "=" + rawContactId;
431 final long rawContactId = values.getAsLong(RawContacts._ID);
442 photoEditor.setEditorListener(new PhotoListener(rawContactId, source.readOnly,
462 public PhotoListener(long rawContactId, boolean readOnly, PhotoEditorView editor) {
463 mRawContactId = rawContactId;
715 final long rawContactId = getRawContactId(state, diff, results);
716 if (rawContactId != -1)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/
EntitySetTests.java 100 static EntityDelta getUpdate(long rawContactId) {
101 final Entity before = EntityDeltaTests.getEntity(rawContactId,
123 static EntityDelta buildBeforeEntity(long rawContactId, long version,
128 contact.put(RawContacts._ID, rawContactId);
169 static void insertPhone(EntitySet set, long rawContactId, ContentValues values) {
170 final EntityDelta match = set.getByRawContactId(rawContactId);
174 static ValuesDelta getPhone(EntitySet set, long rawContactId, long dataId) {
175 final EntityDelta match = set.getByRawContactId(rawContactId);
251 static ContentProviderOperation buildUpdateAggregationKeepTogether(long rawContactId) {
253 values.put(AggregationExceptions.RAW_CONTACT_ID1, rawContactId);
    [all...]

Completed in 851 milliseconds

1 2