/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | ContactLoaderTest.java | 55 private static final long CONTACT_ID = 1; field in ContactLoaderTest 115 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithContactIdUri() 119 CONTACT_ID); in testLoadContactWithContactIdUri() 123 queries.fetchAllData(entityUri, CONTACT_ID, RAW_CONTACT_ID, DATA_ID, LOOKUP_KEY); in testLoadContactWithContactIdUri() 127 assertEquals(CONTACT_ID, contact.getId()); in testLoadContactWithContactIdUri() 143 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithOldStyleUri() 146 CONTACT_ID); in testLoadContactWithOldStyleUri() 150 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, CONTACT_ID, LOOKUP_KEY); in testLoadContactWithOldStyleUri() 151 queries.fetchAllData(entityUri, CONTACT_ID, RAW_CONTACT_ID, DATA_ID, LOOKUP_KEY); in testLoadContactWithOldStyleUri() 155 assertEquals(CONTACT_ID, contact.getId()); in testLoadContactWithOldStyleUri() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 126 " WHERE " + RawContacts.CONTACT_ID + "=?" + in aggregateContact() 228 mContactUpdate.bindLong(ContactReplaceSqlStatement.CONTACT_ID, contactId); in aggregateContact() 260 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=?1)) AS a" + in clearSuperPrimarySetting() 289 " WHERE " + RawContacts.CONTACT_ID + "=?1)" + in clearSuperPrimarySetting() 530 "raw_contacts1." + RawContacts.CONTACT_ID, 532 "raw_contacts2." + RawContacts.CONTACT_ID, 647 mSb.append(RawContacts.CONTACT_ID).append(" IN ("); in pickBestMatchBasedOnSecondaryData() 699 + " AND " + RawContacts.CONTACT_ID + " IN " + Tables.DEFAULT_DIRECTORY; 702 RawContacts.CONTACT_ID 705 int CONTACT_ID = 0; field [all …]
|
D | ContactAggregator2.java | 400 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=? AND " + in canBeReused() 559 mSelectionArgs2, RawContacts.CONTACT_ID, null, null); in updateMatchScoresBasedOnIdentityMatch() 566 final long contactId = c.getLong(IdentityLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnIdentityMatch() 590 long contactId = c.getLong(NameLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnNameMatches() 620 long contactId = c.getLong(EmailLookupQuery.CONTACT_ID); in updateMatchScoresBasedOnEmailMatches() 648 long contactId = c.getLong(NameLookupMatchQueryWithParameter.CONTACT_ID); in updateMatchScoresBasedOnNameMatches() 691 long contactId = c.getLong(PhoneLookupQuery.CONTACT_ID); in updateMatchScoresBasedOnPhoneMatches() 719 + RawContacts.CONTACT_ID + " IN " + Tables.DEFAULT_DIRECTORY; in lookupApproximateNameMatches() 733 RawContacts.CONTACT_ID, 740 int CONTACT_ID = 1; field [all …]
|
D | AbstractContactAggregator.java | 114 " WHERE " + RawContacts.CONTACT_ID + "=?" + 287 + AggregatedPresenceColumns.CONTACT_ID + ", " in AbstractContactAggregator() 290 + " SELECT " + PresenceColumns.CONTACT_ID + "," in AbstractContactAggregator() 301 + " WHERE " + PresenceColumns.CONTACT_ID in AbstractContactAggregator() 303 + " AND " + PresenceColumns.CONTACT_ID in AbstractContactAggregator() 310 " WHERE " + RawContacts.CONTACT_ID + "=?" in AbstractContactAggregator() 315 " WHERE " + AggregatedPresenceColumns.CONTACT_ID + "=?"); in AbstractContactAggregator() 341 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " in AbstractContactAggregator() 347 + " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " in AbstractContactAggregator() 350 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID in AbstractContactAggregator() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/database/ |
D | DialerDatabaseHelper.java | 125 + SmartDialDbColumns.CONTACT_ID in setupTables() 159 + PrefixColumns.CONTACT_ID in setupTables() 399 Selection.column(SmartDialDbColumns.CONTACT_ID).is("=", deleteContactId); in removeDeletedContacts() 406 Selection.column(PrefixColumns.CONTACT_ID).is("=", deleteContactId); in removeDeletedContacts() 442 PrefixColumns.CONTACT_ID in removePotentiallyCorruptedContacts() 445 + SmartDialDbColumns.CONTACT_ID in removePotentiallyCorruptedContacts() 481 db.delete(Tables.SMARTDIAL_TABLE, SmartDialDbColumns.CONTACT_ID + "=" + contactId, null); in removeUpdatedContacts() 482 db.delete(Tables.PREFIX_TABLE, PrefixColumns.CONTACT_ID + "=" + contactId, null); in removeUpdatedContacts() 511 + SmartDialDbColumns.CONTACT_ID in insertUpdatedContactsAndNumberPrefix() 542 + PrefixColumns.CONTACT_ID in insertUpdatedContactsAndNumberPrefix() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListAdapter.java | 94 public static final int CONTACT_ID = 0; field in ContactListAdapter.ContactQuery 114 super(context, ContactQuery.CONTACT_ID); in ContactListAdapter() 170 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); in getContactUri() 186 return cursor == null ? -1 : cursor.getLong(ContactQuery.CONTACT_ID); in getContactId() 192 final long contactId = cursor.getLong(ContactQuery.CONTACT_ID); in isEnterpriseContact() 216 && getSelectedContactId() == cursor.getLong(ContactQuery.CONTACT_ID); in isSelectedContact() 278 bindViewId(view, cursor, ContactQuery.CONTACT_ID); in bindNameAndViewId() 326 long contactId = cursor.getLong(ContactQuery.CONTACT_ID); in getSelectedContactPosition() 382 favorites.add(cursor.getInt(ContactQuery.CONTACT_ID)); in changeCursor() 385 || favorites.contains(cursor.getInt(ContactQuery.CONTACT_ID))) { in changeCursor() [all …]
|
D | MultiSelectPhoneNumbersListAdapter.java | 43 Phone.CONTACT_ID, // 4 55 Phone.CONTACT_ID, // 4 66 public static final int CONTACT_ID = 4; field in MultiSelectPhoneNumbersListAdapter.PhoneQuery 104 loader.setSelection(ContactsContract.Data.CONTACT_ID in configureLoader() 150 final long currentContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView() 152 final long previousContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView()
|
D | MultiSelectEmailAddressesListAdapter.java | 43 Email.CONTACT_ID, // 4 55 Email.CONTACT_ID, // 4 66 public static final int CONTACT_ID = 4; field in MultiSelectEmailAddressesListAdapter.EmailQuery 104 loader.setSelection(ContactsContract.Data.CONTACT_ID in configureLoader() 150 final long currentContactId = cursor.getLong(EmailQuery.CONTACT_ID); in bindView() 152 final long previousContactId = cursor.getLong(EmailQuery.CONTACT_ID); in bindView()
|
D | PhoneNumberListAdapter.java | 104 Phone.CONTACT_ID, // 4 126 Phone.CONTACT_ID, // 4 147 public static final int CONTACT_ID = 4; field in PhoneNumberListAdapter.PhoneQuery 398 final long contactId = cursor.getLong(PhoneQuery.CONTACT_ID); in getResultCount() 422 final long currentContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView() 424 final long previousContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView() 431 final long nextContactId = cursor.getLong(PhoneQuery.CONTACT_ID); in bindView() 449 PhoneQuery.PHOTO_URI, PhoneQuery.CONTACT_ID, in bindView()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | ContactsTableUtil.java | 97 + " SELECT " + ContactsContract.RawContacts.CONTACT_ID in buildUpdateLastUpdateSql() 124 final String sql = "select " + ContactsContract.RawContacts.CONTACT_ID + ", count(1)" in deleteContactIfSingleton() 126 + " where " + ContactsContract.RawContacts.CONTACT_ID + " =" in deleteContactIfSingleton() 127 + " (select " + ContactsContract.RawContacts.CONTACT_ID in deleteContactIfSingleton() 130 + " group by " + ContactsContract.RawContacts.CONTACT_ID; in deleteContactIfSingleton()
|
D | DeletedContactsTableUtil.java | 39 ContactsContract.DeletedContacts.CONTACT_ID + " INTEGER PRIMARY KEY," + in create() 58 values.put(ContactsContract.DeletedContacts.CONTACT_ID, contactId); in insertDeletedContact()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupMembersAdapter.java | 41 Data.CONTACT_ID, 51 Data.CONTACT_ID, 60 public static final int CONTACT_ID = 0; field in GroupMembersAdapter.GroupMembersQuery 74 super(context, GroupMembersQuery.CONTACT_ID); in GroupMembersAdapter() 87 final long contactId = cursor.getLong(GroupMembersQuery.CONTACT_ID); in getContactUri() 95 return cursor.getLong(GroupMembersQuery.CONTACT_ID); in getContactId()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
D | Projections.java | 34 public static final int CONTACT_ID = 9; field in Projections 55 Phone.CONTACT_ID, // 9 75 Data.CONTACT_ID, // 9 94 Data.CONTACT_ID, // 9
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 68 Phone.CONTACT_ID, // 0 168 new String[] {Phone.CONTACT_ID}, in getContactsSize() 171 Phone.CONTACT_ID); in getContactsSize() 301 String orderBy = Phone.CONTACT_ID; in getPhonebookNameList() 396 Phone.CONTACT_ID); in getSelectedPhonebookNameList() 408 int idColumn = contactCursor.getColumnIndex(Data.CONTACT_ID); in getSelectedPhonebookNameList() 501 mResolver, uri, projection, null, null, Phone.CONTACT_ID); in getContactNamesByNumber() 696 Cursor contactIdCursor = new MatrixCursor(new String[] {Phone.CONTACT_ID}); in composeAndSendPhonebookVcards() 712 Phone.CONTACT_ID); in composeAndSendPhonebookVcards() 768 Cursor contactIdCursor = new MatrixCursor(new String[] {Phone.CONTACT_ID}); in composeAndSendPhonebookOneVcard() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | PhoneLookupSdkCompat.java | 22 public static final String CONTACT_ID = ContactsContract.PhoneLookup.CONTACT_ID; field in PhoneLookupSdkCompat
|
/packages/apps/Dialer/java/com/android/dialer/smartdial/ |
D | SmartDialCursorLoader.java | 101 row[PhoneQuery.CONTACT_ID] = contact.id; in loadInBackground() 194 Phone.CONTACT_ID, // 4 208 Phone.CONTACT_ID, // 4 219 public static final int CONTACT_ID = 4; field in SmartDialCursorLoader.PhoneQuery
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | SearchIndexManager.java | 63 Data.CONTACT_ID, 303 sb.append(RawContacts.CONTACT_ID + " IN ("); in updateIndexForRawContacts() 316 sb.append(RawContacts.CONTACT_ID + " IN " + in updateIndexForRawContacts() 317 "(SELECT " + RawContacts.CONTACT_ID + " FROM " + Tables.RAW_CONTACTS + in updateIndexForRawContacts() 332 RawContacts.CONTACT_ID + in updateIndexForRawContacts() 348 mSb.append(Data.CONTACT_ID + ", "); in buildAndInsertIndex() 403 mValues.put(SearchIndexColumns.CONTACT_ID, contactId); in insertIndexRow()
|
D | ContactsDatabaseHelper.java | 380 + RawContacts.CONTACT_ID; 417 " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + 418 " GROUP BY " + RawContacts.CONTACT_ID; 511 Tables.RAW_CONTACTS + "." + RawContacts.CONTACT_ID; 640 String CONTACT_ID = "presence_contact_id"; field 644 String CONTACT_ID = "presence_contact_id"; field 645 String CONCRETE_CONTACT_ID = Tables.AGGREGATED_PRESENCE + "." + CONTACT_ID; 736 public static final String CONTACT_ID = "contact_id"; field 1153 PresenceColumns.CONTACT_ID + " INTEGER REFERENCES contacts(_id)," + in createPresenceTables() 1164 + Tables.PRESENCE + " (" + PresenceColumns.CONTACT_ID + ");"); in createPresenceTables() [all …]
|
D | ContactsProvider2.java | 532 public static final int CONTACT_ID = 5; field 558 + "(SELECT " + RawContacts.CONTACT_ID 592 " WHERE " + RawContacts.CONTACT_ID + " = ?1 AND " + Contacts.PINNED + " <= " + 609 + Data.CONTACT_ID + ", " 818 .add(Phone.CONTACT_ID) 832 .add(RawContacts.CONTACT_ID) 861 .add(RawContacts.CONTACT_ID) 874 .add(Contacts.Entity.CONTACT_ID) 903 .add(Data.CONTACT_ID) 923 .add(RawContacts.CONTACT_ID) [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapapi/ |
D | BluetoothMapContractTest.java | 34 private static final String CONTACT_ID = "test_contact_id"; field in BluetoothMapContractTest 160 + CONTACT_ID; in testBuildConvoContactsUriWithId() 164 TEST_AUTHORITY, ACCOUNT_ID, CONTACT_ID); in testBuildConvoContactsUriWithId()
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
D | Cp2Contact.java | 97 .setPhoneId(cursor.getLong(Projections.CONTACT_ID)) in fromCursor() 106 .setContactId(cursor.getInt(Projections.CONTACT_ID)) in fromCursor() 124 row[Projections.CONTACT_ID] = contactId(); in toCursorRow()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtilsTest.java | 19 import static android.provider.ContactsContract.Data.CONTACT_ID; 192 MatrixCursor cursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize() 219 MatrixCursor cursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize() 275 MatrixCursor dataCursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in updateSecondaryVersionCounter_whenContactsAreAdded() 306 MatrixCursor dataCursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in updateSecondaryVersionCounter_whenContactsAreDeleted() 338 MatrixCursor dataCursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in updateSecondaryVersionCounter_whenContactsAreUpdated()
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/ |
D | SpeedDialUiItem.java | 52 public static final int CONTACT_ID = 1; field in SpeedDialUiItem 64 Phone.CONTACT_ID, 77 Phone.CONTACT_ID, 118 .setContactId(cursor.getLong(CONTACT_ID)) in fromCursor()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AggregationSuggestionEngine.java | 275 + " AND " + Data.CONTACT_ID + " IN ("; 278 Data.CONTACT_ID, 290 public static final int CONTACT_ID = 0; field in AggregationSuggestionEngine.DataQuery 330 DataQuery.COLUMNS, sb.toString(), null, Data.CONTACT_ID); in loadAggregationSuggestions() 390 suggestion.contactId = mDataCursor.getLong(DataQuery.CONTACT_ID); in getSuggestions()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactTileLoaderFactory.java | 33 public final static int CONTACT_ID = 0; field in ContactTileLoaderFactory 81 Phone.CONTACT_ID, //.......................................10
|