Home | History | Annotate | Download | only in contacts

Lines Matching defs:Contacts

17 package com.android.contacts;
19 import com.android.contacts.TextHighlightingAnimation.TextWithHighlighting;
20 import com.android.contacts.model.ContactsSource;
21 import com.android.contacts.model.Sources;
22 import com.android.contacts.ui.ContactsPreferences;
23 import com.android.contacts.ui.ContactsPreferencesActivity;
24 import com.android.contacts.ui.ContactsPreferencesActivity.Prefs;
25 import com.android.contacts.util.AccountSelectionUtil;
26 import com.android.contacts.util.Constants;
69 import android.provider.Contacts.ContactMethods;
70 import android.provider.Contacts.People;
71 import android.provider.Contacts.PeopleColumns;
72 import android.provider.Contacts.Phones;
74 import android.provider.ContactsContract.Contacts;
86 import android.provider.ContactsContract.Contacts.AggregationSuggestions;
131 * Displays a list of contacts. Usually is embedded into the ContactsActivity.
178 "com.android.contacts.action.JOIN_AGGREGATE";
186 "com.android.contacts.action.AGGREGATE_ID";
195 "com.android.contacts.action.AGGREGATE_NAME";
200 buildSectionIndexerUri(Contacts.CONTENT_URI);
218 /** Mask to show the total number of contacts at the top */
227 /** Show all starred contacts */
229 /** Show frequently contacted contacts */
233 /** Show all contacts and pick them when clicking */
236 /** Show all contacts as well as the option to create a new one */
245 /** Show all contacts and pick them when clicking, and allow creating a new contact */
287 private static final String ACTION_SEARCH_INTERNAL = "com.android.contacts.INTERNAL_SEARCH";
293 Contacts._ID, // 0
294 Contacts.DISPLAY_NAME_PRIMARY, // 1
295 Contacts.DISPLAY_NAME_ALTERNATIVE, // 2
296 Contacts.SORT_KEY_PRIMARY, // 3
297 Contacts.STARRED, // 4
298 Contacts.TIMES_CONTACTED, // 5
299 Contacts.CONTACT_PRESENCE, // 6
300 Contacts.PHOTO_ID, // 7
301 Contacts.LOOKUP_KEY, // 8
302 Contacts.PHONETIC_NAME, // 9
303 Contacts.HAS_PHONE_NUMBER, // 10
306 Contacts._ID, // 0
307 Contacts.DISPLAY_NAME_PRIMARY, // 1
308 Contacts.DISPLAY_NAME_ALTERNATIVE, // 2
309 Contacts.SORT_KEY_PRIMARY, // 3
310 Contacts.STARRED, // 4
311 Contacts.TIMES_CONTACTED, // 5
312 Contacts.CONTACT_PRESENCE, // 6
313 Contacts.PHOTO_ID, // 7
314 Contacts.LOOKUP_KEY, // 8
315 Contacts.PHONETIC_NAME, // 9
320 Contacts._ID, // 0
321 Contacts.DISPLAY_NAME_PRIMARY, // 1
322 Contacts.DISPLAY_NAME_ALTERNATIVE, // 2
323 Contacts.SORT_KEY_PRIMARY, // 3
324 Contacts.STARRED, // 4
325 Contacts.TIMES_CONTACTED, // 5
326 Contacts.CONTACT_PRESENCE, // 6
327 Contacts.PHOTO_ID, // 7
328 Contacts.LOOKUP_KEY, // 8
329 Contacts.PHONETIC_NAME, // 9
330 Contacts.HAS_PHONE_NUMBER, // 10
459 private static final String CLAUSE_ONLY_VISIBLE = Contacts.IN_VISIBLE_GROUP + "=1";
460 private static final String CLAUSE_ONLY_PHONES = Contacts.HAS_PHONE_NUMBER + "=1";
464 * "Show all contacts" or actually show all contacts
480 Contacts.LOOKUP_KEY
485 sContactsIdMatcher.addURI(ContactsContract.AUTHORITY, "contacts/#", CONTACTS_ID);
509 * Redraws all visible items of the list corresponding to contacts
634 if (Contacts.CONTENT_TYPE.equals(type)) {
669 if (Contacts.CONTENT_ITEM_TYPE.equals(type)) {
781 Intent newIntent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
904 ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId),
905 new String[] {Contacts.DISPLAY_NAME}, null, null, null);
1006 mGroupUri = Uri.withAppendedPath(Contacts.CONTENT_GROUP_URI, group);
1075 * Obtains the contacts provider status and configures the UI accordingly.
1230 // If Contacts was invoked by another Activity simply as a way of
1261 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
1412 * or bulk export task across all contacts.
1488 final Cursor cursor = getContentResolver().query(Contacts.CONTENT_URI,
1505 Contacts.CONTENT_MULTI_VCARD_URI,
1509 intent.setType(Contacts.CONTENT_VCARD_TYPE);
1568 // If Contacts was invoked by another Activity simply as a way of
1588 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, id);
1638 values.put(Contacts.STARRED, cursor.getInt(SUMMARY_STARRED_COLUMN_INDEX) == 0 ? 1 : 0);
1744 * Prompt the user before deleting the given {@link Contacts} entry.
1826 intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
1841 Intent newContact = new Intent(Intents.Insert.ACTION, Contacts.CONTENT_URI);
1886 * generated through {@link Contacts#getLookupUri(long, String)}.
2101 return Contacts.CONTENT_URI;
2111 return Contacts.CONTENT_STREQUENT_URI;
2158 * Build the {@link Contacts#CONTENT_LOOKUP_URI} for the given
2182 return Contacts.getLookupUri(contactId, lookupKey);
2275 if (Contacts.CONTENT_ITEM_TYPE.equals(getContentResolver().getType(selectedUri))) {
2277 contactUri = Contacts.lookupContact(getContentResolver(), selectedUri);
2285 contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
2296 Uri photoUri = Uri.withAppendedPath(contactUri, Contacts.Photo.CONTENT_DIRECTORY);
2336 baseUri = Uri.withAppendedPath(Contacts.CONTENT_FILTER_URI, Uri.encode(filter));
2338 baseUri = Contacts.CONTENT_URI;
2362 Builder builder = Contacts.CONTENT_URI.buildUpon();
2374 return Contacts.SORT_KEY_PRIMARY;
2376 return Contacts.SORT_KEY_ALTERNATIVE;
2455 projection, Contacts.STARRED + "=1", null,
2462 Contacts.TIMES_CONTACTED + " > 0", null,
2463 Contacts.TIMES_CONTACTED + " DESC, "
2484 ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL, null,
2527 Contacts.STARRED + "=1", null,
2533 Contacts.TIMES_CONTACTED + " > 0", null,
2534 Contacts.TIMES_CONTACTED + " DESC, "
2541 uri = Uri.withAppendedPath(Contacts.CONTENT_STREQUENT_FILTER_URI,
2544 uri = Contacts.CONTENT_STREQUENT_URI;
2571 Contacts._ID + " != " + mQueryAggregateId + " AND " + CLAUSE_ONLY_VISIBLE,
2686 Uri baseUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId);
2687 Uri dataUri = Uri.withAppendedPath(baseUri, Contacts.Data.CONTENT_DIRECTORY);
2747 // another query for the complete list of contacts
2762 Contacts._ID + " != " + activity.mQueryAggregateId
2938 // handle the total contacts item
3150 quickContact.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
3434 // and "All contacts" headers.
3446 * Gets the actual count of contacts and excludes all the headers.
3461 // and "All contacts" separators.
3467 // We are in the lower partition (All contacts). Adjusting for the size