/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactMatcher.java | 160 * contactId - MatchScore map. 170 public MatchScore(long contactId) { 171 this.mContactId = contactId; 174 public void reset(long contactId) { 175 this.mContactId = contactId; 246 private MatchScore getMatchingScore(long contactId) { 247 MatchScore matchingScore = mScores.get(contactId); 251 matchingScore.reset(contactId); 253 matchingScore = new MatchScore(contactId); 257 mScores.put(contactId, matchingScore) [all...] |
ContactAggregator.java | 438 long contactId = mContactInsert.executeInsert(); 439 setContactId(rawContactId, contactId); 440 mDbHelper.updateContactVisible(contactId); 457 long contactId = 0; 466 contactId = cursor.getLong(RawContactIdAndAccountQuery.CONTACT_ID); 473 aggregateContact(db, rawContactId, accountType, accountName, contactId); 493 public void updateAggregateData(long contactId) { 499 computeAggregateData(db, contactId, mContactUpdate); 500 mContactUpdate.bindLong(ContactReplaceSqlStatement.CONTACT_ID, contactId); 503 mDbHelper.updateContactVisible(contactId); [all...] |
ContactLookupKey.java | 38 public long contactId; 41 if (contactId > another.contactId) { 44 if (contactId < another.contactId) { 235 segment.contactId = -1;
|
GlobalSearchSupport.java | 114 long contactId; 129 public SearchSuggestion(long contactId) { 130 this.contactId = contactId; 187 list.add(contactId); 204 list.add(contactId); 280 long contactId; 282 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); 284 contactId = -1L; 289 sb.append(" AND " + ContactsColumns.CONCRETE_ID + "=" + contactId); [all...] |
ContactsProvider2.java | [all...] |
SocialProvider.java | 306 final long contactId = ContentUris.parseId(uri); 307 return db.delete(Tables.ACTIVITIES, Activities.AUTHOR_CONTACT_ID + "=" + contactId, null); 347 long contactId = ContentUris.parseId(uri); 350 qb.appendWhere(Activities.AUTHOR_CONTACT_ID + "=" + contactId);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactLookupKeyTest.java | 53 long contactId = queryContactId(rawContactId1); 54 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 59 assertStoredValue(lookupUri, Contacts._ID, contactId); 62 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), 63 Contacts._ID, contactId); 66 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), 67 Contacts._ID, contactId); 83 long contactId = queryContactId(rawContactId1); 84 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 88 assertStoredValue(lookupUri, Contacts._ID, contactId); [all...] |
GroupsTest.java | 237 final long contactId = this.queryContactId(rawContactId); 238 assertContactVisible(contactId, expected); 241 public void assertContactVisible(long contactId, boolean expected) { 244 }, Contacts._ID + "=" + contactId, null, null); 251 public ContentProviderOperation buildVisibleAssert(long contactId, boolean visible) { 253 Contacts._ID + "=" + contactId + " AND " + Contacts.IN_VISIBLE_GROUP + "=" 266 final long contactId = this.queryContactId(rawContactId); 267 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 275 oper.add(buildVisibleAssert(contactId, true)); 278 oper.add(buildVisibleAssert(contactId, true)) [all...] |
ContactsProvider2Test.java | 120 long contactId = queryContactId(rawContactId); 121 values.put(RawContacts.CONTACT_ID, contactId); 133 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 170 long contactId = queryContactId(rawContactId); 174 values.put(RawContacts.CONTACT_ID, contactId); 303 long contactId = queryContactId(rawContactId); 307 values.put(RawContacts.CONTACT_ID, contactId); 378 long contactId = queryContactId(rawContactId); 382 values.put(RawContacts.CONTACT_ID, contactId); 394 long contactId = createContact(values, "John", "Doe" [all...] |
ContactAggregatorTest.java | 115 long contactId = queryContactId(rawContactId); 116 assertTrue(contactId != 0); 118 String displayName = queryDisplayName(contactId); 756 long contactId = queryContactId(rawContactId); 758 assertNull(queryDisplayName(contactId)); 761 assertEquals("eclair@android.com", queryDisplayName(contactId)); 764 assertEquals("800-555-5555", queryDisplayName(contactId)); 769 assertEquals("Android", queryDisplayName(contactId)); 772 assertEquals("Dro", queryDisplayName(contactId)); 778 assertEquals("Eclair Android", queryDisplayName(contactId)); [all...] |
ContactsActor.java | 289 public long createName(long contactId, String name) { 292 values.put(Data.RAW_CONTACT_ID, contactId); 298 contactId), RawContacts.Data.CONTENT_DIRECTORY); 303 public long createPhone(long contactId, String phoneNumber) { 306 values.put(Data.RAW_CONTACT_ID, contactId); 314 contactId), RawContacts.Data.CONTENT_DIRECTORY); 319 public long createEmail(long contactId, String address) { 322 values.put(Data.RAW_CONTACT_ID, contactId); 329 contactId), RawContacts.Data.CONTENT_DIRECTORY); 361 public int getDataCountForContact(long contactId) { [all...] |
BaseContactsProvider2Test.java | 397 protected Cursor queryContact(long contactId) { 398 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 402 protected Cursor queryContact(long contactId, String[] projection) { 403 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), 410 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); 412 return contactId; 415 protected long queryPhotoId(long contactId) { 416 Cursor c = queryContact(contactId); 423 protected String queryDisplayName(long contactId) { 424 Cursor c = queryContact(contactId); [all...] |
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk5.java | 60 long contactId = -1; 67 contactId = cursor.getLong(0); 77 Phone.CONTACT_ID + "=" + contactId, null, Phone.IS_SUPER_PRIMARY + " DESC");
|
/frameworks/base/core/java/android/widget/ |
QuickContactBadge.java | 258 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX); 260 lookupUri = Contacts.getLookupUri(contactId, lookupKey); 272 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX); 274 lookupUri = Contacts.getLookupUri(contactId, lookupKey); 281 long contactId = cursor.getLong(CONTACT_ID_COLUMN_INDEX); 283 lookupUri = Contacts.getLookupUri(contactId, lookupKey);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
QuickContactsDemo.java | 84 final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX); 86 cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List7.java | 79 final long contactId = c.getLong(mIdColumnIndex); 83 ContactsContract.CommonDataKinds.Phone.CONTACT_ID + "=" + contactId, null,
|
/packages/apps/Contacts/src/com/android/contacts/ui/ |
ShowOrCreateActivity.java | 158 long contactId = -1; 163 contactId = cursor.getLong(CONTACT_ID_INDEX); 169 if (count == 1 && contactId != -1) { 171 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
|
EditContactActivity.java | 233 final long contactId = ContentUris.parseId(data); 234 mSelection = RawContacts.CONTACT_ID + "=" + contactId; 237 final long contactId = ContactsUtils.queryForContactId(resolver, rawContactId); 238 mSelection = RawContacts.CONTACT_ID + "=" + contactId; 612 final long contactId = ContentUris.parseId(data.getData()); 613 joinAggregate(contactId); 828 final long contactId = ContentUris.parseId(Contacts.lookupContact( 831 android.provider.Contacts.People.CONTENT_URI, contactId); [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsUtils.java | 284 long contactId = -1; 290 contactId = contactIdCursor.getLong(0); 297 return contactId; 300 public static String querySuperPrimaryPhone(ContentResolver cr, long contactId) { 304 Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); 324 public static long queryForRawContactId(ContentResolver cr, long contactId) { 330 RawContacts.CONTACT_ID + "=" + contactId, null, null); 343 public static ArrayList<Long> queryForAllRawContactIds(ContentResolver cr, long contactId) { 349 RawContacts.CONTACT_ID + "=" + contactId, null, null);
|
AttachImage.java | 136 final long contactId = ContentUris.parseId(result.getData()); 138 mContentResolver, contactId);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapVcardManager.java | 387 long contactId = 0; 394 contactId = contactCursor.getLong(CONTACTS_ID_COLUMN_INDEX); 395 if (V) Log.v(TAG, "Query startPointId = " + contactId); 408 contactId = contactCursor.getLong(CONTACTS_ID_COLUMN_INDEX); 409 if (V) Log.v(TAG, "Query startPointId = " + contactId); 420 selection = Contacts._ID + "=" + contactId;
|
/frameworks/base/core/java/android/provider/ |
ContactsContract.java | [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceContact.java | 58 * @param contactId ID in person table. 65 private VoiceContact(String name, long contactId, long primaryId, 68 mContactId = contactId;
|
/frameworks/base/core/java/com/android/internal/widget/ |
ContactHeaderWidget.java | 295 long contactId = cursor.getLong(PHONE_LOOKUP_CONTACT_ID_COLUMN_INDEX); 298 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey), 311 long contactId = cursor.getLong(EMAIL_LOOKUP_CONTACT_ID_COLUMN_INDEX); 314 bindFromContactUriInternal(Contacts.getLookupUri(contactId, lookupKey),
|
/frameworks/base/core/java/android/pim/vcard/ |
VCardComposer.java | 519 private String createOneEntryInternal(final String contactId, 533 final String[] selectionArgs = new String[] {contactId}; 565 Log.w(LOG_TAG, "Data does not exist. contactId: " + contactId);
|