Searched refs:contact (Results 1 - 25 of 30) sorted by relevance

12

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DGlobalSearchSupportTest.java56 // Remove the new contact from all groups
63 // If the contact is not in the "my contacts" group, nothing should be found
70 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo(
72 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1(
77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo(
79 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2(
85 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google")
87 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2(
92 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname(
94 new SuggestionTesterBuilder(contact)
127 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester
294 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder
306 SuggestionTesterBuilder(GoldenContact contact) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DContactLoaderTest.java41 * Runs ContactLoader tests for the the contact-detail and editor view.
115 Contact contact = assertLoadContact(baseUri);
117 assertEquals(contactId, contact.getId());
118 assertEquals(rawContactId, contact.getNameRawContactId());
119 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource());
120 assertEquals(lookupKey, contact.getLookupKey());
121 assertEquals(lookupUri, contact.getLookupUri());
122 assertEquals(1, contact.getRawContacts().size());
123 assertEquals(1, contact.getStatuses().size());
147 Contact contact
[all...]
H A DRawContactTest.java40 final RawContact contact = new RawContact(values);
41 contact.addDataItemValues(dataItem);
43 return contact;
55 final RawContact contact = new RawContact(values);
56 contact.addDataItemValues(dataItem);
58 return contact;
/packages/apps/Dialer/src/com/android/dialer/dialpad/
H A DSmartDialCursorLoader.java91 for (ContactNumber contact : allMatches) {
92 row[PhoneQuery.PHONE_ID] = contact.dataId;
93 row[PhoneQuery.PHONE_NUMBER] = contact.phoneNumber;
94 row[PhoneQuery.CONTACT_ID] = contact.id;
95 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey;
96 row[PhoneQuery.PHOTO_ID] = contact.photoId;
97 row[PhoneQuery.DISPLAY_NAME] = contact.displayName;
/packages/apps/Mms/src/com/android/mms/data/
H A DContactList.java33 Contact contact = Contact.get(number, canBlock);
35 contact.setNumber(number);
37 list.add(contact);
46 * for the numbers don't belong to any contact.
56 Contact contact = Contact.get(uri.getSchemeSpecificPart(), true);
57 list.add(contact);
70 * create the contact if it doesn't exist, and would inject the recipient id into the contact.
76 Contact contact = Contact.get(entry.number, canBlock);
77 contact
[all...]
H A DContact.java44 public static final int CONTACT_METHOD_TYPE_SELF = 3; // the "Me" or profile contact
56 // log("contact changed, invalidate cache");
75 // Contact, -1 is invalid. e.g. contact method id is 20 when
76 // current contact has phone content://.../phones/20.
93 private boolean mIsMe; // true if this contact is me!
94 private boolean mSendToVoicemail; // true if this contact should not put up notification
104 * Make a basic contact object with a phone number.
182 // stale so the next time we're asked for a particular contact, we'll return that
183 // stale contact and at the same time, fire off an asyncUpdateContact to update
184 // that contact'
911 fillPhoneTypeContact(final Contact contact, final Cursor cursor) argument
936 fillSelfContact(final Contact contact, final Cursor cursor) argument
1149 remove(Contact contact) argument
[all...]
H A DRecipientIdCache.java141 for (Contact contact : contacts) {
142 if (contact.isNumberModified()) {
143 contact.setIsNumberModified(false);
145 // if the contact's number wasn't modified, don't bother.
149 recipientId = contact.getRecipientId();
154 String number1 = contact.getNumber();
160 Log.d(TAG, "[RecipientIdCache] updateNumbers: contact=" + contact +
162 Log.d(TAG, " contact.getNumber=" + number1 +
167 // with the new number in the contact
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DRecipientListActivity.java135 final Contact contact = getItem(position);
136 final String name = contact.getName();
137 final String number = contact.getNumber();
147 if (contact.existsInDatabase()) {
148 badge.assignContactUri(contact.getUri());
150 badge.assignContactFromPhone(contact.getNumber(), true);
152 final Drawable avatarDrawable = contact.getAvatar(getContext(), mDefaultContactImage);
H A DConversationListItem.java142 Contact contact = mConversation.getRecipients().get(0);
143 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage);
145 if (contact.existsInDatabase()) {
146 mAvatarView.assignContactUri(contact.getUri());
148 mAvatarView.assignContactFromPhone(contact.getNumber(), true);
166 Log.v(TAG, "onUpdate: " + this + " contact: " + updated);
240 // Unregister contact update callbacks.
H A DRecipientsEditor.java170 Contact contact = Contact.get(number, blocking);
171 contact.setNumber(number);
172 list.add(contact);
253 // user types (or chooses from the dropdown) a new contact Mms has never
254 // seen before, the contact gets the correct trailing comma. But when the
255 // contact gets added to the mms's contacts table, contacts sends out an
353 // - add an auto-complete contact
354 // - add another auto-complete contact
355 // - delete that second contact and keep deleting into the first
H A DSearchActivity.java54 * matches. The item contains the contact (or phone number) as the "title" and a
319 Contact contact = address != null ? Contact.get(address, false) : null;
321 String titleString = contact != null ? contact.getNameAndNumber() : "";
H A DMessageListItem.java283 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false);
284 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage);
289 if (contact.existsInDatabase()) {
290 mAvatar.assignContactUri(contact.getUri());
292 mAvatar.assignContactFromPhone(contact.getNumber(), true);
H A DComposeMessageActivity.java305 private Intent mAddContactIntent; // Intent used to add a new contact
625 // it here. However, if we're opening up the quick contact window while typing, don't
871 private boolean canAddToContacts(Contact contact) { argument
874 final String name = contact.getName();
875 if (!TextUtils.isEmpty(contact.getNumber())) {
876 char c = contact.getNumber().charAt(0);
889 contact.isMe())) {
1032 Contact contact = Contact.get(phoneNumber, false);
1033 if (contact.existsInDatabase()) {
1034 return contact
[all...]
H A DConversationList.java395 // we invalidate the contact cache here because we want to get updated presence
396 // and any contact changes. We don't invalidate the cache by observing presence and contact
674 Contact contact = conv.getRecipients().get(0);
675 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getUri());
952 // the same contact. That's ok if we remove it. We'll recreate that contact
957 for (Contact contact : recipients) {
958 contact.removeFromCache();
/packages/apps/Dialer/src/com/android/dialer/contact/
H A DContactUpdateService.java17 package com.android.dialer.contact;
26 * Service for updating primary number on a contact.
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DAttachPhotoActivity.java51 * to contacts. It will first present a contact picker and then run the
126 // A contact was picked. Launch the cropper to get face detection, the right size, etc.
168 public void onContactLoaded(Contact contact) {
169 saveContact(contact);
184 Loader<Contact> loader, Contact contact) {
191 listener.onContactLoaded(contact);
198 public void onContactLoaded(Contact contact); argument
202 * If prerequisites have been met, attach the photo to a raw-contact and save.
205 * - contact has been loaded
207 private void saveContact(Contact contact) { argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactTileAdapter.java56 * Index of the first NON starred contact in the {@link Cursor}
254 ContactEntry contact = new ContactEntry();
256 contact.name = (name != null) ? name : mResources.getString(R.string.missing_name);
257 contact.status = cursor.getString(mStatusIndex);
258 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null);
259 contact.lookupKey = ContentUris.withAppendedId(
261 contact.isFavorite = cursor.getInt(mStarredIndex) > 0;
267 contact.phoneLabel = (String) Phone.getTypeLabel(mResources, phoneNumberType,
269 contact.phoneNumber = cursor.getString(mPhoneNumberIndex);
278 contact
[all...]
/packages/apps/Dialer/src/com/android/dialer/list/
H A DPhoneFavoritesTileAdapter.java80 /** Position of the temporarily removed contact in the cache. */
82 /** New position of the temporarily removed contact in the cache. */
84 /** New position of the temporarily entered contact in the cache. */
86 /** Position of the contact pending removal. */
122 * The soft limit on how many contact tiles to show.
293 final ContactEntry contact = new ContactEntry();
295 contact.id = id;
296 contact.name = (!TextUtils.isEmpty(name)) ? name :
298 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null);
299 contact
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DContactsAsyncHelper.java139 ImageView imageView, Uri contact, int placeholderImageResource) {
143 if (contact == null) {
157 args.uri = contact;
138 updateImageViewWithContactPhotoAsync(Context context, ImageView imageView, Uri contact, int placeholderImageResource) argument
/packages/apps/Contacts/src/com/android/contacts/model/
H A DContactLoader.java111 * Projection used for the query that loads all data for the entire contact (except for
261 * Projection used for the query that loads all data for the entire contact.
350 Log.e(TAG, "Error loading the contact: " + mLookupUri, e);
367 final Contact contact = new Contact(
386 contact.setStatuses(new ImmutableMap.Builder<Long, DataStatus>().build());
392 contact.setDirectoryMetaData(directoryName, null, accountName, accountType,
396 contact.setDirectoryMetaData(directoryName, null, null, null,
423 contact.setRawContacts(new ImmutableList.Builder<RawContact>()
426 return contact;
463 // Create the loaded contact startin
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRawContactDeltaTests.java69 // Build an existing contact read from database
70 final ContentValues contact = new ContentValues();
71 contact.put(RawContacts.VERSION, 43);
72 contact.put(RawContacts._ID, contactId);
80 final RawContact before = new RawContact(contact);
217 // Update parent contact values
H A DRawContactDeltaListTests.java123 // Build an existing contact read from database
124 final ContentValues contact = new ContentValues();
125 contact.put(RawContacts.VERSION, version);
126 contact.put(RawContacts._ID, rawContactId);
127 final RawContact before = new RawContact(contact);
135 // Build an existing contact read from database
136 final ContentValues contact = new ContentValues();
137 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT);
138 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact));
477 // Add new contact locall
[all...]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
H A DCommandRecognizerEngine.java53 * "call" a particular contact
65 * <li>A contact list may be read from a file.
120 // fetch the contact list
199 for (VoiceContact contact : contacts) {
201 String name = scrubName(contact.mName);
206 sb.append(contact.mContactId).append(' ');
207 sb.append(contact.mPrimaryId).append(' ');
208 sb.append(contact.mHomeId).append(' ');
209 sb.append(contact.mMobileId).append(' ');
210 sb.append(contact
[all...]
/packages/apps/Mms/src/com/android/mms/transaction/
H A DMessagingNotification.java379 * @param sender contact of the sender
585 Contact contact = Contact.get(address, false);
586 if (contact.getSendToVoicemail()) {
636 contact,
691 Contact contact = Contact.get(address, false);
692 String name = contact.getNameAndNumber();
717 Contact contact = Contact.get(address, false);
718 if (contact.getSendToVoicemail()) {
737 contact, WorkingMessage.TEXT);
758 Contact contact,
749 getNewMessageNotificationInfo( Context context, boolean isSms, String address, String message, String subject, long threadId, long timeMillis, Bitmap attachmentBitmap, Contact contact, int attachmentType) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactsListFragment.java50 public void onContactSelected(Uri contact); argument

Completed in 940 milliseconds

12