/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupportTest.java | 56 // 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 D | ContactLoaderTest.java | 41 * 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 D | RawContactTest.java | 40 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 D | SmartDialLoaderTask.java | 107 // Sort matches in order of ascending contact affinity (lower is better) 114 for (ContactNumber contact : allMatches) { 115 final ContactMatch contactMatch = new ContactMatch(contact.lookupKey, contact.id); 116 // Don't add multiple contact numbers from the same contact into suggestions if 123 final boolean matches = mNameMatcher.matches(contact.displayName); 126 contact.displayName, 127 Contacts.getLookupUri(contact.id, contact [all...] |
H A D | SmartDialTrie.java | 143 * Adds the display name and phone number of a contact into the prefix trie. 145 * @param contact Desired contact to add 147 public void put(ContactNumber contact) { argument 150 final ParseInfo info = parseToIndexes(contact.displayName, FIRST_TOKENS_FOR_INITIALS, 152 putForPrefix(contact, mRoot, info, 0, true); 155 if (!TextUtils.isEmpty(contact.phoneNumber)) { 157 final CountryCodeWithOffset code = getOffsetWithoutCountryCode(contact.phoneNumber); 159 putNumber(contact, contact 306 putNumber(ContactNumber contact, String phoneNumber, int offSet) argument 335 putForPrefix(ContactNumber contact, Node root, ParseInfo info, int start, boolean isFullName) argument 439 add(ContactNumber contact) argument [all...] |
/packages/apps/Mms/src/com/android/mms/data/ |
H A D | ContactList.java | 33 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 D | Contact.java | 44 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' 902 fillPhoneTypeContact(final Contact contact, final Cursor cursor) argument 927 fillSelfContact(final Contact contact, final Cursor cursor) argument 1140 remove(Contact contact) argument [all...] |
H A D | RecipientIdCache.java | 141 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 D | RecipientListActivity.java | 135 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 D | ConversationListItem.java | 143 Contact contact = mConversation.getRecipients().get(0); 144 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 146 if (contact.existsInDatabase()) { 147 mAvatarView.assignContactUri(contact.getUri()); 149 mAvatarView.assignContactFromPhone(contact.getNumber(), true); 167 Log.v(TAG, "onUpdate: " + this + " contact: " + updated); 242 // Unregister contact update callbacks.
|
H A D | RecipientsEditor.java | 170 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 D | SearchActivity.java | 54 * 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 D | MessageListItem.java | 284 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); 285 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 290 if (contact.existsInDatabase()) { 291 mAvatar.assignContactUri(contact.getUri()); 293 mAvatar.assignContactFromPhone(contact.getNumber(), true);
|
/packages/apps/Dialer/src/com/android/dialer/contact/ |
H A D | ContactUpdateService.java | 17 package com.android.dialer.contact; 26 * Service for updating primary number on a contact.
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | AttachPhotoActivity.java | 49 * to contacts. It will first present a contact picker and then run the 119 // A contact was picked. Launch the cropper to get face detection, the right size, etc. 135 public void onContactLoaded(Contact contact) { 136 saveContact(contact); 151 Loader<Contact> loader, Contact contact) { 158 listener.onContactLoaded(contact); 165 public void onContactLoaded(Contact contact); argument 169 * If prerequisites have been met, attach the photo to a raw-contact and save. 172 * - contact has been loaded 174 private void saveContact(Contact contact) { argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ContactTileAdapter.java | 56 * 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( 266 contact.phoneLabel = (String) Phone.getTypeLabel(mResources, phoneNumberType, 268 contact.phoneNumber = cursor.getString(mPhoneNumberIndex); 277 contact.presenceIcon = icon; 283 // If there is no status message from the contact, bu [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/ |
H A D | SmartDialTrieTest.java | 232 final ContactNumber contact = new ContactNumber(0, "12345678", "0", "0", 1); 234 trie.put(contact); 236 assertTrue(checkContains(trie, contact, "12345678")); 251 // all phone numbers belonging to the contact should correspond to it 266 // all phone numbers belonging to the contact should correspond to it 402 final ContactNumber contact = new ContactNumber(0, "James", "510-527-2357", "0", 1); 404 n.add(contact); 405 assertTrue(n.getContents().contains(contact)); 409 private boolean checkContains(SmartDialTrie trie, ContactNumber contact, CharSequence prefix) { argument 410 return trie.getAllWithPrefix(prefix).contains(contact); [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | ContactsAsyncHelper.java | 139 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/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | ShortcutRepositoryTest.java | 549 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) 553 reportClick("joe", contact); 554 reportClick("joe", contact); 555 assertShortcuts("app and contact should be there.", "", contact, app); 559 assertShortcuts("contact with same shortcut id should still be there.", 560 "joe", contact); 561 assertShortcuts("contact with same shortcut id should still be there.", 562 "", contact); 566 final SuggestionData contact [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
H A D | RawContactDeltaTests.java | 69 // 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 D | RawContactDeltaListTests.java | 123 // 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 D | CommandRecognizerEngine.java | 53 * "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 D | MessagingNotification.java | 376 * @param sender contact of the sender 582 Contact contact = Contact.get(address, false); 583 if (contact.getSendToVoicemail()) { 633 contact, 688 Contact contact = Contact.get(address, false); 689 String name = contact.getNameAndNumber(); 714 Contact contact = Contact.get(address, false); 715 if (contact.getSendToVoicemail()) { 734 contact, WorkingMessage.TEXT); 755 Contact contact, 746 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 D | ContactsListFragment.java | 50 public void onContactSelected(Uri contact); argument
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | ContactLoader.java | 111 * 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. 349 Log.e(TAG, "Error loading the contact: " + mLookupUri, e); 369 // Create the loaded contact starting with the header data. 370 Contact contact = loadContactHeaderData(cursor, contactUri); 383 // First time to see this raw contact id, so create a new entity, and 402 contact.setRawContacts(rawContactsBuilder.build()); 403 contact.setStatuses(statusesBuilder.build()); 405 return contact; 477 // Remove the ones that already have a raw contact i [all...] |