/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | JoinSuggestedContactDialogFragment.java | 29 private static final String ARG_RAW_CONTACT_IDS = "rawContactIds"; 31 public static void show(ContactEditorBaseFragment fragment, long[] rawContactIds) { argument 33 args.putLongArray(ARG_RAW_CONTACT_IDS, rawContactIds); 52 long rawContactIds[] = 54 targetFragment.doJoinSuggestedContact(rawContactIds);
|
H A D | AggregationSuggestionView.java | 150 ArrayList<Long> rawContactIds = Lists.newArrayList(); 152 rawContactIds.add(rawContact.rawContactId); 154 mListener.onJoinAction(mContactId, rawContactIds);
|
H A D | ContactEditorBaseFragment.java | 1630 final long rawContactIds[] = new long[rawContactIdList.size()]; 1631 for (int i = 0; i < rawContactIds.length; i++) { 1632 rawContactIds[i] = rawContactIdList.get(i); 1635 JoinSuggestedContactDialogFragment.show(this, rawContactIds); 1645 protected void doJoinSuggestedContact(long[] rawContactIds) { argument 1650 mState.setJoinWithRawContacts(rawContactIds);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
H A D | ContactsTableUtil.java | 70 * @param rawContactIds A set of raw contacts ids to refresh the contact for. 73 Set<Long> rawContactIds) { 74 if (rawContactIds.isEmpty()) { 78 db.execSQL(buildUpdateLastUpdateSql(rawContactIds)); 84 * @param rawContactIds The raw contact ids that contacts should be updated for. 87 private static String buildUpdateLastUpdateSql(Set<Long> rawContactIds) { argument 100 + " IN (" + TextUtils.join(",", rawContactIds) + ") " 72 updateContactLastUpdateByRawContactId(SQLiteDatabase db, Set<Long> rawContactIds) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | ContactAggregatorHelper.java | 42 // Index to rawContactIds mapping 43 final Map<Integer, Set<Long>> rawContactIds = new HashMap<>(); 49 rawContactIds.put(index, rIds); 67 final Set<Long> rIdSet = rawContactIds.get(i); 70 rawContactIds.remove(i); 80 Set<Long> ids = rawContactIds.get(Iterables.getOnlyElement(s));
|
H A D | RawContactMatcher.java | 287 ArrayList<Long> rawContactIds = null; 296 if (rawContactIds == null) { 297 rawContactIds = new ArrayList<>(); 299 rawContactIds.add(score.getRawContactId()); 303 return rawContactIds;
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactSaveService.java | 1178 long rawContactIds[] = getRawContactIdsForAggregation(contactIds); 1179 if (rawContactIds == null) { 1189 for (int i = 0; i < rawContactIds.length; i++) { 1190 for (int j = 0; j < rawContactIds.length; j++) { 1192 buildJoinContactDiff(operations, rawContactIds[i], rawContactIds[j]); 1229 long rawContactIds[] = getRawContactIdsForAggregation(contactId1, contactId2); 1230 if (rawContactIds == null) { 1238 for (int i = 0; i < rawContactIds.length; i++) { 1239 for (int j = 0; j < rawContactIds [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | SearchIndexManager.java | 289 public void updateIndexForRawContacts(Set<Long> contactIds, Set<Long> rawContactIds) { argument 292 " contacts / " + rawContactIds.size() + " raw contacts"); 302 if (!rawContactIds.isEmpty()) { 307 // in rawContactIds. For every raw contact in rawContactIds that we are updating 314 sb.append(TextUtils.join(",", rawContactIds));
|
H A D | ContactsDatabaseHelper.java | 4187 final long[] rawContactIds; 4203 rawContactIds = new long[count]; 4211 rawContactIds[i] = c.getLong(1); 4248 String.valueOf(rawContactIds[i]),
|
H A D | ContactsProvider2.java | 9765 final Set<Long> rawContactIds = new HashSet<>(); 9774 rawContactIds.add(rid); 9781 final String rids = TextUtils.join(",", rawContactIds);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
H A D | AbstractContactAggregator.java | 458 final long[] rawContactIds; 465 rawContactIds = new long[actualCount]; 471 rawContactIds[index] = c.getLong(AggregationQuery._ID); 485 aggregateContact(txContext, db, rawContactIds[i], accountIds[i], contactIds[i], 826 String rawContactIds = TextUtils.join(",", rawContactIdSet); 827 findIdPairs(db, buildExceptionMatchingSql(rawContactIds, rawContactIds), 829 findIdPairs(db, buildIdentityMatchingSql(rawContactIds, rawContactIds, 831 findIdPairs(db, buildEmailMatchingSql(rawContactIds, rawContactId 866 createContactForRawContacts(SQLiteDatabase db, TransactionContext txContext, Set<Long> rawContactIds, Long contactId) argument 909 markAggregated(SQLiteDatabase db, String rawContactIds) argument [all...] |
H A D | ContactAggregator2.java | 243 * Find out which mime-types are shared by more than one contacts for {@code rawContactIds}. 245 * {@code rawContactIds} should be a comma separated ID list. 247 private void clearSuperPrimarySetting(SQLiteDatabase db, String rawContactIds) { argument 251 Data.RAW_CONTACT_ID + " IN (" + rawContactIds + ") group by " + 282 " IN (" + rawContactIds + ")";
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
H A D | ContactsUtils.java | 336 ArrayList<Long> rawContactIds = new ArrayList<Long>(); 343 rawContactIds.add(rawContactIdCursor.getLong(0)); 351 return rawContactIds;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | RawContactDeltaList.java | 507 public void setJoinWithRawContacts(long[] rawContactIds) { argument 508 mJoinWithRawContactIds = rawContactIds;
|