/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | ContactLoaderTest.java | 50 private static final long CONTACT_ID = 1; field in ContactLoaderTest 110 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithContactIdUri() 114 CONTACT_ID); in testLoadContactWithContactIdUri() 118 queries.fetchAllData(entityUri, CONTACT_ID, RAW_CONTACT_ID, DATA_ID, LOOKUP_KEY); in testLoadContactWithContactIdUri() 122 assertEquals(CONTACT_ID, contact.getId()); in testLoadContactWithContactIdUri() 138 final Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, CONTACT_ID); in testLoadContactWithOldStyleUri() 141 CONTACT_ID); in testLoadContactWithOldStyleUri() 145 queries.fetchContactIdAndLookupFromRawContactUri(rawContactUri, CONTACT_ID, LOOKUP_KEY); in testLoadContactWithOldStyleUri() 146 queries.fetchAllData(entityUri, CONTACT_ID, RAW_CONTACT_ID, DATA_ID, LOOKUP_KEY); in testLoadContactWithOldStyleUri() 150 assertEquals(CONTACT_ID, contact.getId()); in testLoadContactWithOldStyleUri() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 128 " WHERE " + RawContacts.CONTACT_ID + "=?" + in aggregateContact() 230 mContactUpdate.bindLong(ContactReplaceSqlStatement.CONTACT_ID, contactId); in aggregateContact() 262 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=?1)) AS a" + in clearSuperPrimarySetting() 291 " WHERE " + RawContacts.CONTACT_ID + "=?1)" + in clearSuperPrimarySetting() 532 "raw_contacts1." + RawContacts.CONTACT_ID, 534 "raw_contacts2." + RawContacts.CONTACT_ID, 649 mSb.append(RawContacts.CONTACT_ID).append(" IN ("); in pickBestMatchBasedOnSecondaryData() 701 + " AND " + RawContacts.CONTACT_ID + " IN " + Tables.DEFAULT_DIRECTORY; 704 RawContacts.CONTACT_ID 707 int CONTACT_ID = 0; field [all …]
|
D | AbstractContactAggregator.java | 115 " WHERE " + RawContacts.CONTACT_ID + "=?" + 290 + AggregatedPresenceColumns.CONTACT_ID + ", " in AbstractContactAggregator() 293 + " SELECT " + PresenceColumns.CONTACT_ID + "," in AbstractContactAggregator() 304 + " WHERE " + PresenceColumns.CONTACT_ID in AbstractContactAggregator() 306 + " AND " + PresenceColumns.CONTACT_ID in AbstractContactAggregator() 313 " WHERE " + RawContacts.CONTACT_ID + "=?" in AbstractContactAggregator() 318 " WHERE " + AggregatedPresenceColumns.CONTACT_ID + "=?"); in AbstractContactAggregator() 344 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " in AbstractContactAggregator() 350 + " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + " AND " in AbstractContactAggregator() 353 + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID in AbstractContactAggregator() [all …]
|
D | ContactAggregator2.java | 402 Tables.RAW_CONTACTS + " WHERE " + RawContacts.CONTACT_ID + "=? AND " + in canBeReused() 561 mSelectionArgs2, RawContacts.CONTACT_ID, null, null); in updateMatchScoresBasedOnIdentityMatch() 568 final long contactId = c.getLong(IdentityLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnIdentityMatch() 592 long contactId = c.getLong(NameLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnNameMatches() 622 long contactId = c.getLong(EmailLookupQuery.CONTACT_ID); in updateMatchScoresBasedOnEmailMatches() 650 long contactId = c.getLong(NameLookupMatchQueryWithParameter.CONTACT_ID); in updateMatchScoresBasedOnNameMatches() 679 long contactId = c.getLong(PhoneLookupQuery.CONTACT_ID); in updateMatchScoresBasedOnPhoneMatches() 707 + RawContacts.CONTACT_ID + " IN " + Tables.DEFAULT_DIRECTORY; in lookupApproximateNameMatches() 721 RawContacts.CONTACT_ID, 728 int CONTACT_ID = 1; field [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/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()
|
D | GroupMembersFragment.java | 124 final String contactId = getString(GroupMembersQuery.CONTACT_ID); in FilterCursorWrapper() 314 ContactsContract.Data.CONTACT_ID, 321 ContactsContract.Data.CONTACT_ID, 327 public static final int CONTACT_ID = 0; field in GroupMembersFragment.Query 375 + " AND " + ContactsContract.Data.CONTACT_ID + " IN (" + sIds + ")"; in sendToGroup() 390 final String contactId = cursor.getString(Query.CONTACT_ID); in sendToGroup()
|
/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelper.java | 385 + SettingsColumns.CONCRETE_ACCOUNT_TYPE + "," + RawContacts.CONTACT_ID; 416 " WHERE " + RawContacts.CONTACT_ID + "=" + ContactsColumns.CONCRETE_ID + 417 " GROUP BY " + RawContacts.CONTACT_ID; 499 Tables.RAW_CONTACTS + "." + RawContacts.CONTACT_ID; 636 String CONTACT_ID = "presence_contact_id"; field 640 String CONTACT_ID = "presence_contact_id"; field 641 String CONCRETE_CONTACT_ID = Tables.AGGREGATED_PRESENCE + "." + CONTACT_ID; 726 public static final String CONTACT_ID = "contact_id"; field 1156 PresenceColumns.CONTACT_ID + " INTEGER REFERENCES contacts(_id)," + in createPresenceTables() 1167 + Tables.PRESENCE + " (" + PresenceColumns.CONTACT_ID + ");"); in createPresenceTables() [all …]
|
D | SearchIndexManager.java | 62 Data.CONTACT_ID, 302 sb.append(RawContacts.CONTACT_ID + " IN ("); in updateIndexForRawContacts() 315 sb.append(RawContacts.CONTACT_ID + " IN " + in updateIndexForRawContacts() 316 "(SELECT " + RawContacts.CONTACT_ID + " FROM " + Tables.RAW_CONTACTS + in updateIndexForRawContacts() 330 SearchIndexColumns.CONTACT_ID + " IN (SELECT " + in updateIndexForRawContacts() 331 RawContacts.CONTACT_ID + in updateIndexForRawContacts() 347 mSb.append(Data.CONTACT_ID + ", "); in buildAndInsertIndex() 402 mValues.put(SearchIndexColumns.CONTACT_ID, contactId); in insertIndexRow()
|
D | ContactsProvider2.java | 492 public static final int CONTACT_ID = 5; field 518 + "(SELECT " + RawContacts.CONTACT_ID 569 " WHERE " + RawContacts.CONTACT_ID + " = ?1 AND " + Contacts.PINNED + " <= " + 586 + Data.CONTACT_ID + ", " 795 .add(Phone.CONTACT_ID) 809 .add(RawContacts.CONTACT_ID) 838 .add(RawContacts.CONTACT_ID) 851 .add(Contacts.Entity.CONTACT_ID) 880 .add(Data.CONTACT_ID) 900 .add(RawContacts.CONTACT_ID) [all …]
|
/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/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManager.java | 84 Phone.CONTACT_ID, // 0 172 contactCursor = mResolver.query(myUri, new String[]{Phone.CONTACT_ID}, null, null, in getContactsSize() 173 Phone.CONTACT_ID); in getContactsSize() 269 String orderBy = Phone.CONTACT_ID; in getPhonebookNameList() 333 Phone.CONTACT_ID); in getSelectedPhonebookNameList() 415 contactCursor = mResolver.query(uri, projection, null, null, Phone.CONTACT_ID); in getContactNamesByNumber() 563 Phone.CONTACT_ID in composeAndSendPhonebookVcards() 567 Phone.CONTACT_ID); in composeAndSendPhonebookVcards() 601 Phone.CONTACT_ID in composeAndSendPhonebookOneVcard() 604 String orderBy = Phone.CONTACT_ID; in composeAndSendPhonebookOneVcard() [all …]
|
/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/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/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/ |
D | EnterprisePolicyGuardTest.java | 48 private static final int CONTACT_ID = 10; field in EnterprisePolicyGuardTest 55 Uri.parse("content://com.android.contacts/contacts/" + CONTACT_ID + "/photo"); 57 .parse("content://com.android.contacts/contacts/" + CONTACT_ID + "/display_photo"); 80 Uri.parse("content://com.android.contacts/contacts/" + CONTACT_ID);
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | CallerInfo.java | 49 PhoneLookup.CONTACT_ID, 413 columnName = RawContacts.CONTACT_ID; in getColumnIndexForPersonId() 419 columnName = Data.CONTACT_ID; in getColumnIndexForPersonId() 425 columnName = PhoneLookup.CONTACT_ID; in getColumnIndexForPersonId()
|
/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
|