/external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/ |
background.js | 29 var contact = { 38 contact['emails'].push(email['address']); 42 if (!contact['name']) { 43 contact['name'] = contact['emails'][0] || "<Unknown>"; 45 contacts.push(contact);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
RecipientListActivity.java | 41 import com.android.mms.data.Contact; 113 private static class RecipientListAdapter extends ArrayAdapter<Contact> { 135 final Contact contact = getItem(position); local 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) [all...] |
ConversationListItem.java | 39 import com.android.mms.data.Contact; 46 public class ConversationListItem extends RelativeLayout implements Contact.UpdateListener, 142 Contact contact = mConversation.getRecipients().get(0); local 143 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 145 if (contact.existsInDatabase()) { 146 mAvatarView.assignContactUri(contact.getUri()); 148 mAvatarView.assignContactFromPhone(contact.getNumber(), true); 164 public void onUpdate(Contact updated) { 165 if (Log.isLoggable(LogTag.CONTACT, Log.DEBUG)) [all...] |
MessageListItem.java | 62 import com.android.mms.data.Contact; 283 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); local 284 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 289 if (contact.existsInDatabase()) { 290 mAvatar.assignContactUri(contact.getUri()); 292 mAvatar.assignContactFromPhone(contact.getNumber(), true); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 66 TestContact contact = rawContact.getContact().load(); local 67 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 69 Contacts.markAsContacted(mResolver, contact.getId()); 70 contact.load(); // Reload 72 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 76 Contacts.markAsContacted(mResolver, contact.getId()); 77 contact.load(); 79 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 94 TestContact contact = rawContact.getContact().load(); 96 Uri contactUri = contact.getUri() [all...] |
ContactsContract_PhotoTest.java | 62 TestContact contact = rawContact.getContact().load(); local 64 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 65 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); 66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); 76 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 77 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); 78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); 83 TestContact contact = rawContact.getContact().load(); local 85 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 86 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)) [all...] |
/external/chromium_org/chrome/browser/chromeos/contacts/ |
contact_map.cc | 7 #include "chrome/browser/chromeos/contacts/contact.pb.h" 15 const Contact* ContactMap::Find(const std::string& contact_id) const { 33 void ContactMap::Merge(scoped_ptr<ScopedVector<Contact> > updated_contacts, 35 for (ScopedVector<Contact>::iterator it = updated_contacts->begin(); 37 Contact* contact = *it; local 38 Map::iterator map_it = contacts_.find(contact->contact_id()); 40 if (contact->deleted() && policy == DROP_DELETED_CONTACTS) { 41 // Also delete the previous version of the contact, if any. 46 delete contact; [all...] |
gdata_contacts_service_unittest.cc | 12 #include "chrome/browser/chromeos/contacts/contact.pb.h" 36 // Filename of JSON feed containing contact groups. 42 // Initializes |contact| using the passed-in values. 52 contacts::Contact* contact) { 53 DCHECK(contact); 54 contact->set_contact_id(contact_id); 59 contact->set_update_time(update_time.ToInternalValue()); 60 contact->set_deleted(deleted); 61 contact->set_full_name(full_name) 307 contacts::Contact* contact = new contacts::Contact; local 311 contacts::test::SetPhoto(gfx::Size(kPhotoSize, kPhotoSize), contact); local [all...] |
contact_database.cc | 13 #include "chrome/browser/chromeos/contacts/contact.pb.h" 115 scoped_ptr<ScopedVector<Contact> > contacts(new ScopedVector<Contact>); 119 ScopedVector<Contact>* contacts_ptr = contacts.get(); 165 scoped_ptr<ScopedVector<Contact> > contacts, 226 VLOG(1) << "Saving " << contacts_to_save->size() << " contact(s) to database " 255 // crash, maybe add a dummy "write completed" contact that's removed in the 260 const contacts::Contact& contact = **it; local 261 if (contact.contact_id() == kUpdateMetadataKey) [all...] |
google_contact_store.cc | 13 #include "chrome/browser/chromeos/contacts/contact.pb.h" 31 // Name of the directory within the profile directory where the contact database 42 // contact (groups?) will only be returned for 30 days after deletion when the 140 VLOG(1) << "Initializing contact database \"" << db_path.value() << "\" for " 157 const Contact* GoogleContactStore::GetContactById( 205 VLOG(1) << "Deferring contact update due to offline state"; 220 // don't want to re-download the same most-recently-updated contact each 221 // time, but what happens if within the same millisecond, contact A is 222 // updated, we do a sync, and then contact B is updated? I'm probably being 266 scoped_ptr<ScopedVector<Contact> > updated_contacts) 302 Contact* contact = (*updated_contacts)[i]; local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
ContactParser.java | 28 import gov.nist.javax.sip.header.Contact; 38 * A parser for The SIP contact header. 45 public ContactParser(String contact) { 46 super(contact); 56 headerName(TokenTypes.CONTACT); 59 Contact contact = new Contact(); local 64 contact.setWildCardFlag(true); 66 super.parse(contact); [all...] |
/external/chromium_org/chrome/browser/extensions/api/rtc_private/ |
rtc_private_apitest.cc | 5 #include "chrome/browser/chromeos/contacts/contact.pb.h" 23 // Test contact data. 24 const char kContactFullName[] = "Test Contact"; 42 static contacts::Contact* CreateTestContact() { 43 contacts::Contact* contact = new contacts::Contact(); local 44 contact->set_full_name(kContactFullName); 46 contact->mutable_email_addresses()->Add(); 49 contact->mutable_email_addresses()->Add() [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
UsbHid.java | 53 0x09, 0x55, // USAGE (Contact Count Maximum) 59 0x09, 0x54, // USAGE (Contact Count) 77 0x09, 0x51, // USAGE (Contact Identifier) 100 public void generateReport(ByteBuffer buffer, Contact[] contacts, int contactCount) { 103 // Contact Count 107 final Contact contact = contacts[i]; local 108 // Tip Switch, In Range, Contact Identifier 109 buffer.put((byte)((contact.id << 2) | 0x03)); 111 buffer.put((byte)contact.x).put((byte)(contact.x >> 8)) [all...] |
/packages/apps/Dialer/src/com/android/dialer/contact/ |
ContactUpdateService.java | 17 package com.android.dialer.contact; 26 * Service for updating primary number on a contact.
|
/external/chromium_org/chrome/browser/autocomplete/ |
contact_provider_chromeos.cc | 16 #include "chrome/browser/chromeos/contacts/contact.pb.h" 27 // Base match relevance assigned to a contact with an affinity of 0.0. 30 // Maximum boost to relevance for a contact with an affinity of 1.0. 34 // matching text in |classifications| (which corresponds to the contact's full 66 // Cached information about a contact. 95 // Unique ID used to look up additional contact information. 98 // Affinity between the user and this contact, in the range [0.0, 1.0]. 173 const contacts::Contact& contact = **it; local 175 AutocompleteMatch::SanitizeString(UTF8ToUTF16(contact.full_name())) [all...] |
contact_provider_chromeos_unittest.cc | 20 #include "chrome/browser/chromeos/contacts/contact.pb.h" 34 // Initializes |contact| with the passed-in data. 39 contacts::Contact* contact) { 40 contact->set_contact_id(contact_id); 41 contact->set_full_name(full_name); 42 contact->set_given_name(given_name); 43 contact->set_family_name(family_name); 80 // Returns the contact ID in |match|'s additional info, or an empty string if 88 // Returns pointers to all of the Contact objects referenced i 94 const contacts::Contact* contact = contact_manager_->GetContactById( local 249 contacts::Contact* contact = new contacts::Contact; local [all...] |
/ndk/sources/host-tools/sed-4.2.1/sed/ |
sed.c | 92 contact(errmsg) function 165 contact (status); 326 contact(false);
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
RawContactDeltaTests.java | 69 // Build an existing contact read from database 70 final ContentValues contact = new ContentValues(); local 71 contact.put(RawContacts.VERSION, 43); 72 contact.put(RawContacts._ID, contactId); 80 final RawContact before = new RawContact(contact); 217 // Update parent contact values 227 // Assert three operations: update Contact, insert Data row, enforce version 299 // Assert two operations: delete Contact and enforce version 324 // Assert two operations: delete Contact and enforce version 352 // Assert two operations: delete Contact and enforce versio [all...] |
RawContactDeltaListTests.java | 123 // Build an existing contact read from database 124 final ContentValues contact = new ContentValues(); local 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(); local 137 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT); 138 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); 477 // Add new contact locally, should remain inser [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
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( local 72 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 79 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 85 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 87 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 92 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( local 94 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2 99 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 106 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 115 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 127 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester 294 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder [all...] |
/external/nist-sip/java/gov/nist/javax/sip/ |
ListeningPointImpl.java | 42 import gov.nist.javax.sip.header.Contact; 233 Contact contact = new Contact(); local 236 contact.setAddress(address); 238 return contact;
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
RawContactTest.java | 40 final RawContact contact = new RawContact(values); local 41 contact.addDataItemValues(dataItem); 43 return contact; 55 final RawContact contact = new RawContact(values); local 56 contact.addDataItemValues(dataItem); 58 return contact;
|
ContactLoaderTest.java | 41 * Runs ContactLoader tests for the the contact-detail and editor view. 78 private Contact assertLoadContact(Uri uri) { 84 Contact result = assertLoadContact(null); 89 Contact result = assertLoadContact(Uri.EMPTY); 94 Contact result = assertLoadContact(Uri.parse("content://wtf")); 115 Contact contact = assertLoadContact(baseUri); local 117 assertEquals(contactId, contact.getId()); 118 assertEquals(rawContactId, contact.getNameRawContactId()); 119 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource()) 147 Contact contact = assertLoadContact(legacyUri); local 178 Contact contact = assertLoadContact(rawContactUri); local 207 Contact contact = assertLoadContact(lookupNoIdUri); local 236 Contact contact = assertLoadContact(lookupUri); local 275 Contact contact = assertLoadContact(lookupWithWrongIdUri); local [all...] |
/packages/apps/Mms/src/com/android/mms/data/ |
ContactList.java | 14 public class ContactList extends ArrayList<Contact> { 21 list.add(Contact.get(number, canBlock)); 33 Contact contact = Contact.get(number, canBlock); local 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) local 76 Contact contact = Contact.get(entry.number, canBlock); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
ContactLoader.java | 73 * Loads a single Contact and all it constituent RawContacts. 75 public class ContactLoader extends AsyncTaskLoader<Contact> { 82 private static Contact sCachedResult = null; 90 private Contact mContact; 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. 304 public Contact loadInBackground() { 309 final Contact cachedResult = sCachedResult; 312 final Contact result; 318 result = new Contact(mRequestedUri, cachedResult) 367 final Contact contact = new Contact( local 464 Contact contact = loadContactHeaderData(cursor, contactUri); local [all...] |