/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactMatcher.java | 167 public MatchScore(long contactId) { in MatchScore() argument 168 this.mContactId = contactId; in MatchScore() 171 public void reset(long contactId) { in reset() argument 172 this.mContactId = contactId; in reset() 243 private MatchScore getMatchingScore(long contactId) { in getMatchingScore() argument 244 MatchScore matchingScore = mScores.get(contactId); in getMatchingScore() 248 matchingScore.reset(contactId); in getMatchingScore() 250 matchingScore = new MatchScore(contactId); in getMatchingScore() 254 mScores.put(contactId, matchingScore); in getMatchingScore() 266 public void matchName(long contactId, int candidateNameType, String candidateName, in matchName() argument [all …]
|
D | ContactAggregator.java | 602 long contactId = db.insert(Tables.CONTACTS, Contacts.DISPLAY_NAME, contactValues); in insertContact() local 603 setContactId(rawContactId, contactId); in insertContact() 604 mDbHelper.updateContactVisible(contactId); in insertContact() 622 public void updateAggregateData(long contactId) { in updateAggregateData() argument 629 computeAggregateData(db, contactId, values); in updateAggregateData() 630 db.update(Tables.CONTACTS, values, Contacts._ID + "=" + contactId, null); in updateAggregateData() 632 mDbHelper.updateContactVisible(contactId); in updateAggregateData() 633 updateAggregatedPresence(contactId); in updateAggregateData() 636 private void updateAggregatedPresence(long contactId) { in updateAggregatedPresence() argument 637 mAggregatedPresenceReplace.bindLong(1, contactId); in updateAggregatedPresence() [all …]
|
D | GlobalSearchSupport.java | 124 String contactId; field in GlobalSearchSupport.SearchSuggestion 138 public SearchSuggestion(long contactId) { in SearchSuggestion() argument 139 this.contactId = String.valueOf(contactId); in SearchSuggestion() 191 list.add(contactId); in asList() 196 list.add(contactId); in asList() 197 list.add(contactId); in asList() 208 list.add(contactId); in addColumnValue() 218 list.add(contactId); in addColumnValue() 220 list.add(contactId); in addColumnValue() 246 …public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, long contactId, String[] projection) { in handleSearchShortcutRefresh() argument [all …]
|
D | ContactLookupKey.java | 34 public long contactId; field in ContactLookupKey.LookupKeySegment 37 if (contactId > another.contactId) { in compareTo() 40 if (contactId < another.contactId) { in compareTo() 180 segment.contactId = -1; in parse()
|
D | ContactsProvider2.java | 1548 long contactId = mDbHelper.getContactId(rawContactId); in updateVisibility() local 1549 if (contactId != 0) { in updateVisibility() 1550 mDbHelper.updateContactVisible(contactId); in updateVisibility() 2253 long contactId = mDbHelper.getContactId(rawContactId); in triggerAggregation() local 2255 if (contactId != 0) { in triggerAggregation() 2256 mContactAggregator.updateAggregateData(contactId); in triggerAggregation() 2262 long contactId = mDbHelper.getContactId(rawContactId); in triggerAggregation() local 2263 mContactAggregator.aggregateContact(mDb, rawContactId, contactId); in triggerAggregation() 2452 long contactId = -1; in insertStatusUpdate() local 2523 contactId = cursor.getLong(DataContactsQuery.CONTACT_ID); in insertStatusUpdate() [all …]
|
D | SocialProvider.java | 309 final long contactId = ContentUris.parseId(uri); in delete() local 310 … return db.delete(Tables.ACTIVITIES, Activities.AUTHOR_CONTACT_ID + "=" + contactId, null); in delete() 350 long contactId = ContentUris.parseId(uri); in query() local 353 qb.appendWhere(Activities.AUTHOR_CONTACT_ID + "=" + contactId); in query()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLookupKeyTest.java | 51 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingDisplayNameAndNoAccount() local 52 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 57 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() 60 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 61 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local 64 assertStoredValue(ContentUris.withAppendedId(lookupUri, contactId + 1), in testLookupKeyUsingDisplayNameAndNoAccount() 65 Contacts._ID, contactId); in testLookupKeyUsingDisplayNameAndNoAccount() local 80 long contactId = queryContactId(rawContactId1); in testLookupKeyUsingSourceIdAndNoAccount() local 81 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount() 85 assertStoredValue(lookupUri, Contacts._ID, contactId); in testLookupKeyUsingSourceIdAndNoAccount() [all …]
|
D | ContactsActor.java | 255 long contactId = createContact(isRestricted); in createContact() local 256 createName(contactId, name); in createContact() 257 return contactId; in createContact() 279 public long createName(long contactId, String name) { in createName() argument 282 values.put(Data.RAW_CONTACT_ID, contactId); in createName() 288 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createName() 293 public long createPhone(long contactId, String phoneNumber) { in createPhone() argument 296 values.put(Data.RAW_CONTACT_ID, contactId); in createPhone() 304 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createPhone() 309 public long createEmail(long contactId, String address) { in createEmail() argument [all …]
|
D | GroupsTest.java | 238 final long contactId = this.queryContactId(rawContactId); in assertRawContactVisible() local 239 assertContactVisible(contactId, expected); in assertRawContactVisible() 242 public void assertContactVisible(long contactId, boolean expected) { in assertContactVisible() argument 245 }, Contacts._ID + "=" + contactId, null, null); in assertContactVisible() 252 public ContentProviderOperation buildVisibleAssert(long contactId, boolean visible) { in buildVisibleAssert() argument 254 Contacts._ID + "=" + contactId + " AND " + Contacts.IN_VISIBLE_GROUP + "=" in buildVisibleAssert() 267 final long contactId = this.queryContactId(rawContactId); in testDelayVisibleTransaction() local 268 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDelayVisibleTransaction() 276 oper.add(buildVisibleAssert(contactId, true)); in testDelayVisibleTransaction() 279 oper.add(buildVisibleAssert(contactId, true)); in testDelayVisibleTransaction() [all …]
|
D | ContactsProvider2Test.java | 99 long contactId = queryContactId(rawContactId); in testDataInsert() local 100 values.put(RawContacts.CONTACT_ID, contactId); in testDataInsert() 112 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDataInsert() 149 long contactId = queryContactId(rawContactId); in testPhonesQuery() local 153 values.put(RawContacts.CONTACT_ID, contactId); in testPhonesQuery() 281 long contactId = queryContactId(rawContactId); in testEmailsQuery() local 285 values.put(RawContacts.CONTACT_ID, contactId); in testEmailsQuery() 354 long contactId = queryContactId(rawContactId); in testPostalsQuery() local 358 values.put(RawContacts.CONTACT_ID, contactId); in testPostalsQuery() 370 long contactId = createContact(values, "John", "Doe", in testQueryContactData() local [all …]
|
D | BaseContactsProvider2Test.java | 359 protected Cursor queryContact(long contactId) { in queryContact() argument 360 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in queryContact() 364 protected Cursor queryContact(long contactId, String[] projection) { in queryContact() argument 365 return mResolver.query(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in queryContact() 372 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId() local 374 return contactId; in queryContactId() 377 protected long queryPhotoId(long contactId) { in queryPhotoId() argument 378 Cursor c = queryContact(contactId); in queryPhotoId() 385 protected String queryDisplayName(long contactId) { in queryDisplayName() argument 386 Cursor c = queryContact(contactId); in queryDisplayName() [all …]
|
D | GlobalSearchSupportTest.java | 240 long contactId = queryContactId(rawContactId); in assertSearchSuggestion() local 250 values.put("_id", contactId); in assertSearchSuggestion() 262 values.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, contactId); in assertSearchSuggestion() 263 values.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, contactId); in assertSearchSuggestion() 270 Uri refreshUri = ContentUris.withAppendedId(shortcutsUri, contactId); in assertSearchSuggestion()
|
D | ContactAggregatorTest.java | 102 long contactId = queryContactId(rawContactId); in testAggregationCreatesNewAggregate() local 103 assertTrue(contactId != 0); in testAggregationCreatesNewAggregate() 105 String displayName = queryDisplayName(contactId); in testAggregationCreatesNewAggregate() 629 private void assertSuggestions(long contactId, long... suggestions) { in assertSuggestions() argument 632 final Uri aggregateUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in assertSuggestions() 638 private void assertSuggestions(long contactId, String filter, long... suggestions) { in assertSuggestions() argument 639 final Uri aggregateUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in assertSuggestions()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactsUtils.java | 283 long contactId = -1; in queryForContactId() local 289 contactId = contactIdCursor.getLong(0); in queryForContactId() 296 return contactId; in queryForContactId() 299 public static String querySuperPrimaryPhone(ContentResolver cr, long contactId) { in querySuperPrimaryPhone() argument 303 Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in querySuperPrimaryPhone() 323 public static long queryForRawContactId(ContentResolver cr, long contactId) { in queryForRawContactId() argument 329 RawContacts.CONTACT_ID + "=" + contactId, null, null); in queryForRawContactId() 342 public static ArrayList<Long> queryForAllRawContactIds(ContentResolver cr, long contactId) { in queryForAllRawContactIds() argument 348 RawContacts.CONTACT_ID + "=" + contactId, null, null); in queryForAllRawContactIds()
|
D | AttachImage.java | 136 final long contactId = ContentUris.parseId(result.getData()); in onActivityResult() local 138 mContentResolver, contactId); in onActivityResult()
|
D | ContactsListActivity.java | 543 long contactId = Long.valueOf(data.getLastPathSegment()); in onCreate() local 544 final Cursor cursor = queryPhoneNumbers(contactId); in onCreate() 659 private String getContactDisplayName(long contactId) { in getContactDisplayName() argument 662 ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in getContactDisplayName() 1339 long contactId = c.getLong(PHONE_CONTACT_ID_COLUMN_INDEX); in returnPickerResult() local 1341 generatePhoneNumberIcon(contactId, type, resid)); in returnPickerResult() 1362 private Bitmap generatePhoneNumberIcon(long contactId, int type, int actionResId) { in generatePhoneNumberIcon() argument 1367 Bitmap photo = loadContactPhoto(contactId, null); in generatePhoneNumberIcon() 1525 final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX); in getContactUri() local 1527 return Contacts.getLookupUri(contactId, lookupKey); in getContactUri() [all …]
|
D | ViewContactActivity.java | 385 final long contactId = ContentUris.parseId(uri); in startEntityQuery() local 392 RawContacts.CONTACT_ID + "=" + contactId, null, null); in startEntityQuery() 612 final long contactId = ContentUris.parseId(intent.getData()); in onActivityResult() local 613 joinAggregate(contactId); in onActivityResult() 636 private void joinAggregate(final long contactId) { in joinAggregate() argument 638 RawContacts.CONTACT_ID + "=" + contactId, null, null); in joinAggregate() 966 entry.contactId = rawContactId; in fromValues()
|
D | ContactEntryAdapter.java | 48 public long contactId; field in ContactEntryAdapter.Entry
|
/packages/apps/Contacts/src/com/android/contacts/ui/ |
D | ShowOrCreateActivity.java | 157 long contactId = -1; in onQueryComplete() local 162 contactId = cursor.getLong(CONTACT_ID_INDEX); in onQueryComplete() 168 if (count == 1 && contactId != -1) { in onQueryComplete() 170 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onQueryComplete()
|
D | EditContactActivity.java | 178 final long contactId = ContentUris.parseId(data); in doInBackground() local 179 selection = RawContacts.CONTACT_ID + "=" + contactId; in doInBackground() 182 final long contactId = ContactsUtils.queryForContactId(resolver, rawContactId); in doInBackground() local 183 selection = RawContacts.CONTACT_ID + "=" + contactId; in doInBackground() 520 final long contactId = ContentUris.parseId(data.getData()); in onActivityResult() local 521 joinAggregate(contactId); in onActivityResult() 732 final long contactId = ContentUris.parseId(Contacts.lookupContact( in onSaveCompleted() local 735 android.provider.Contacts.People.CONTENT_URI, contactId); in onSaveCompleted() 785 private void joinAggregate(final long contactId) { in joinAggregate() argument 792 RawContacts.CONTACT_ID + "=" + contactId in joinAggregate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 383 long contactId = 0; in composeAndSendPhonebookOneVcard() local 390 contactId = contactCursor.getLong(CONTACTS_ID_COLUMN_INDEX); in composeAndSendPhonebookOneVcard() 391 if (V) Log.v(TAG, "Query startPointId = " + contactId); in composeAndSendPhonebookOneVcard() 404 contactId = contactCursor.getLong(CONTACTS_ID_COLUMN_INDEX); in composeAndSendPhonebookOneVcard() 405 if (V) Log.v(TAG, "Query startPointId = " + contactId); in composeAndSendPhonebookOneVcard() 416 selection = Contacts._ID + "=" + contactId; in composeAndSendPhonebookOneVcard()
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | VoiceContact.java | 65 private VoiceContact(String name, long contactId, long primaryId, in VoiceContact() argument 68 mContactId = contactId; in VoiceContact()
|
/packages/apps/IM/src/com/android/im/app/ |
D | ChatSwitcher.java | 533 String contact, long contactId, int groupChat) { in makeChatIntent() argument 535 ContentUris.withAppendedId(Imps.Chats.CONTENT_URI, contactId)); in makeChatIntent() 614 long contactId = c.getLong(mContactIdColumn); in select() local 621 contact, contactId, groupChat); in select()
|
/packages/apps/IM/src/com/android/im/service/ |
D | StatusBarNotifier.java | 85 long contactId, String username, String nickname) { in notifySubscriptionRequest() argument 93 ContentUris.withAppendedId(Imps.Contacts.CONTENT_URI, contactId)); in notifySubscriptionRequest()
|
D | ChatSessionAdapter.java | 122 long contactId = listManager.queryOrInsertContact(contact); in init() local 124 mMessageURI = Imps.Messages.getContentUriByThreadId(contactId); in init() 125 mChatURI = ContentUris.withAppendedId(Imps.Chats.CONTENT_URI, contactId); in init()
|