Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DGlobalSearchSupportTest.java68 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( in testSearchSuggestionsByNameWithPhoto() local
70 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( in testSearchSuggestionsByNameWithPhoto()
75 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( in testSearchSuggestionsByEmailWithPhoto() local
77 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( in testSearchSuggestionsByEmailWithPhoto()
83 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") in testSearchSuggestionsByName() local
85 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( in testSearchSuggestionsByName()
90 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( in testSearchByNickname() local
92 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2( in testSearchByNickname()
97 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") in testSearchByCompany() local
99 new SuggestionTesterBuilder(contact).query("G").expectedText1("Deer Dough").expectedText2( in testSearchByCompany()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java115 Contact contact = assertLoadContact(baseUri); in testLoadContactWithContactIdUri() local
117 assertEquals(contactId, contact.getId()); in testLoadContactWithContactIdUri()
118 assertEquals(rawContactId, contact.getNameRawContactId()); in testLoadContactWithContactIdUri()
119 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource()); in testLoadContactWithContactIdUri()
120 assertEquals(lookupKey, contact.getLookupKey()); in testLoadContactWithContactIdUri()
121 assertEquals(lookupUri, contact.getLookupUri()); in testLoadContactWithContactIdUri()
122 assertEquals(1, contact.getRawContacts().size()); in testLoadContactWithContactIdUri()
123 assertEquals(1, contact.getStatuses().size()); in testLoadContactWithContactIdUri()
147 Contact contact = assertLoadContact(legacyUri); in testLoadContactWithOldStyleUri() local
149 assertEquals(contactId, contact.getId()); in testLoadContactWithOldStyleUri()
[all …]
/packages/apps/Mms/src/com/android/mms/data/
DContact.java557 Contact contact = internalGet(number, isMe); in get() local
560 synchronized (contact) { in get()
563 while (canBlock && contact.mQueryPending) { in get()
565 contact.wait(); in get()
573 if (contact.mIsStale && !contact.mQueryPending) { in get()
574 contact.mIsStale = false; in get()
577 log("async update for " + contact.toString() + " canBlock: " + canBlock + in get()
578 " isStale: " + contact.mIsStale); in get()
581 final Contact c = contact; in get()
593 contact.mQueryPending = true; in get()
[all …]
DContactList.java33 Contact contact = Contact.get(number, canBlock); in getByNumbers() local
35 contact.setNumber(number); in getByNumbers()
37 list.add(contact); in getByNumbers()
56 Contact contact = Contact.get(uri.getSchemeSpecificPart(), true); in blockingGetByUris() local
57 list.add(contact); in blockingGetByUris()
76 Contact contact = Contact.get(entry.number, canBlock); in getByIds() local
77 contact.setRecipientId(entry.id); in getByIds()
78 list.add(contact); in getByIds()
DRecipientIdCache.java141 for (Contact contact : contacts) { in updateNumbers()
142 if (contact.isNumberModified()) { in updateNumbers()
143 contact.setIsNumberModified(false); in updateNumbers()
149 recipientId = contact.getRecipientId(); in updateNumbers()
154 String number1 = contact.getNumber(); in updateNumbers()
160 Log.d(TAG, "[RecipientIdCache] updateNumbers: contact=" + contact + in updateNumbers()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientListActivity.java135 final Contact contact = getItem(position); in getView() local
136 final String name = contact.getName(); in getView()
137 final String number = contact.getNumber(); in getView()
147 if (contact.existsInDatabase()) { in getView()
148 badge.assignContactUri(contact.getUri()); in getView()
150 badge.assignContactFromPhone(contact.getNumber(), true); in getView()
152 final Drawable avatarDrawable = contact.getAvatar(getContext(), mDefaultContactImage); in getView()
DConversationListItem.java143 Contact contact = mConversation.getRecipients().get(0); in updateAvatarView() local
144 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); in updateAvatarView()
146 if (contact.existsInDatabase()) { in updateAvatarView()
147 mAvatarView.assignContactUri(contact.getUri()); in updateAvatarView()
149 mAvatarView.assignContactFromPhone(contact.getNumber(), true); in updateAvatarView()
DRecipientsEditor.java170 Contact contact = Contact.get(number, blocking); in constructContactsFromInput() local
171 contact.setNumber(number); in constructContactsFromInput()
172 list.add(contact); in constructContactsFromInput()
DSearchActivity.java319 Contact contact = address != null ? Contact.get(address, false) : null; in onCreate()
321 String titleString = contact != null ? contact.getNameAndNumber() : ""; in onCreate()
DMessageListItem.java280 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); in updateAvatarView() local
281 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); in updateAvatarView()
286 if (contact.existsInDatabase()) { in updateAvatarView()
287 mAvatar.assignContactUri(contact.getUri()); in updateAvatarView()
289 mAvatar.assignContactFromPhone(contact.getNumber(), true); in updateAvatarView()
DComposeMessageActivity.java866 private boolean canAddToContacts(Contact contact) { in canAddToContacts() argument
869 final String name = contact.getName(); in canAddToContacts()
870 if (!TextUtils.isEmpty(contact.getNumber())) { in canAddToContacts()
871 char c = contact.getNumber().charAt(0); in canAddToContacts()
884 contact.isMe())) { in canAddToContacts()
1027 Contact contact = Contact.get(phoneNumber, false); in getContactUriForPhoneNumber() local
1028 if (contact.existsInDatabase()) { in getContactUriForPhoneNumber()
1029 return contact.getUri(); in getContactUriForPhoneNumber()
2910 Contact contact = Contact.get(address, false); in onActivityResult() local
2911 if (contact != null) { in onActivityResult()
[all …]
DConversationList.java565 Contact contact = conv.getRecipients().get(0); in onContextItemSelected() local
566 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getUri()); in onContextItemSelected()
848 for (Contact contact : recipients) { in onDeleteComplete()
849 contact.removeFromCache(); in onDeleteComplete()
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java134 public void onContactLoaded(Contact contact) { in onActivityResult()
135 saveContact(contact); in onActivityResult()
150 Loader<Contact> loader, Contact contact) { in loadContact()
157 listener.onContactLoaded(contact); in loadContact()
164 public void onContactLoaded(Contact contact); in onContactLoaded() argument
173 private void saveContact(Contact contact) { in saveContact() argument
176 RawContactDeltaList deltaList = contact.createRawContactDeltaList(); in saveContact()
212 contact.isUserProfile(), in saveContact()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactTileAdapter.java258 ContactEntry contact = new ContactEntry(); in createContactEntryFromCursor() local
260 contact.name = (name != null) ? name : mResources.getString(R.string.missing_name); in createContactEntryFromCursor()
261 contact.status = cursor.getString(mStatusIndex); in createContactEntryFromCursor()
262 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in createContactEntryFromCursor()
263 contact.lookupKey = ContentUris.withAppendedId( in createContactEntryFromCursor()
270 contact.phoneLabel = (String) Phone.getTypeLabel(mResources, phoneNumberType, in createContactEntryFromCursor()
272 contact.phoneNumber = cursor.getString(mPhoneNumberIndex); in createContactEntryFromCursor()
281 contact.presenceIcon = icon; in createContactEntryFromCursor()
292 contact.status = statusMessage; in createContactEntryFromCursor()
295 return contact; in createContactEntryFromCursor()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DShortcutRepositoryTest.java549 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) in testInvalidateShortcut_sameIdDifferentSources() local
553 reportClick("joe", contact); in testInvalidateShortcut_sameIdDifferentSources()
554 reportClick("joe", contact); in testInvalidateShortcut_sameIdDifferentSources()
555 assertShortcuts("app and contact should be there.", "", contact, app); in testInvalidateShortcut_sameIdDifferentSources()
560 "joe", contact); in testInvalidateShortcut_sameIdDifferentSources()
562 "", contact); in testInvalidateShortcut_sameIdDifferentSources()
566 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) in testNeverMakeShortcut() local
570 reportClick("unshortcuttable", contact); in testNeverMakeShortcut()
695 SuggestionData contact = makeContact("andy" + i); in testAppUpgradePromotesLowerRanked() local
698 reportClick("and", contact, NOW); in testAppUpgradePromotesLowerRanked()
[all …]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DCommandRecognizerEngine.java199 for (VoiceContact contact : contacts) { in addNameEntriesToGrammar()
201 String name = scrubName(contact.mName); in addNameEntriesToGrammar()
206 sb.append(contact.mContactId).append(' '); in addNameEntriesToGrammar()
207 sb.append(contact.mPrimaryId).append(' '); in addNameEntriesToGrammar()
208 sb.append(contact.mHomeId).append(' '); in addNameEntriesToGrammar()
209 sb.append(contact.mMobileId).append(' '); in addNameEntriesToGrammar()
210 sb.append(contact.mWorkId).append(' '); in addNameEntriesToGrammar()
211 sb.append(contact.mOtherId).append(' '); in addNameEntriesToGrammar()
212 sb.append(contact.mFallbackId); in addNameEntriesToGrammar()
/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java139 ImageView imageView, Uri contact, int placeholderImageResource) { in updateImageViewWithContactPhotoAsync() argument
143 if (contact == null) { in updateImageViewWithContactPhotoAsync()
157 args.uri = contact; in updateImageViewWithContactPhotoAsync()
/packages/apps/Contacts/tests/src/com/android/contacts/
DRawContactDeltaListTests.java125 final ContentValues contact = new ContentValues(); in buildBeforeEntity() local
126 contact.put(RawContacts.VERSION, version); in buildBeforeEntity()
127 contact.put(RawContacts._ID, rawContactId); in buildBeforeEntity()
128 final RawContact before = new RawContact(context, contact); in buildBeforeEntity()
137 final ContentValues contact = new ContentValues(); in buildAfterEntity() local
138 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT); in buildAfterEntity()
139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity()
DRawContactDeltaTests.java70 final ContentValues contact = new ContentValues(); in getRawContact() local
71 contact.put(RawContacts.VERSION, 43); in getRawContact()
72 contact.put(RawContacts._ID, contactId); in getRawContact()
80 final RawContact before = new RawContact(context, contact); in getRawContact()
DRawContactModifierTests.java176 final ContentValues contact = new ContentValues(); in getRawContact() local
178 contact.put(RawContacts._ID, existingId); in getRawContact()
180 contact.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); in getRawContact()
181 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE); in getRawContact()
183 final RawContact before = new RawContact(mContext, contact); in getRawContact()
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java574 Contact contact = Contact.get(address, false); in addMmsNotificationInfos() local
575 if (contact.getSendToVoicemail()) { in addMmsNotificationInfos()
625 contact, in addMmsNotificationInfos()
680 Contact contact = Contact.get(address, false); in getSmsNewDeliveryInfo() local
681 String name = contact.getNameAndNumber(); in getSmsNewDeliveryInfo()
706 Contact contact = Contact.get(address, false); in addSmsNotificationInfos() local
707 if (contact.getSendToVoicemail()) { in addSmsNotificationInfos()
726 contact, WorkingMessage.TEXT); in addSmsNotificationInfos()
747 Contact contact, in getNewMessageNotificationInfo() argument
763 senderInfoName, attachmentBitmap, contact, attachmentType, threadId); in getNewMessageNotificationInfo()
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactsListFragment.java50 public void onContactSelected(Uri contact); in onContactSelected() argument
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java369 Contact contact = loadContactHeaderData(cursor, contactUri); in loadContactEntity() local
401 contact.setRawContacts(rawContactsBuilder.build()); in loadContactEntity()
402 contact.setStatuses(statusesBuilder.build()); in loadContactEntity()
404 return contact; in loadContactEntity()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactLoader.java38 public void onContactLoaded(ContactData contact); in onContactLoaded() argument
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java502 private void bindEditorsForExistingContact(Contact contact) { in bindEditorsForExistingContact() argument
505 mState = contact.createRawContactDeltaList(); in bindEditorsForExistingContact()
510 mIsUserProfile = contact.isUserProfile(); in bindEditorsForExistingContact()