Searched defs:contact (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
H A Dbackground.js29 var contact = {
38 contact['emails'].push(email['address']);
42 if (!contact['name']) {
43 contact['name'] = contact['emails'][0] || "<Unknown>";
45 contacts.push(contact);
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DContactParser.java38 * A parser for The SIP contact header.
45 public ContactParser(String contact) { argument
46 super(contact);
59 Contact contact = new Contact();
64 contact.setWildCardFlag(true);
66 super.parse(contact);
69 super.parse(contact);
71 retval.add(contact);
/external/chromium_org/chrome/browser/chromeos/contacts/
H A Dcontact_map.cc7 #include "chrome/browser/chromeos/contacts/contact.pb.h"
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;
50 map_it->second = contact;
52 contacts_[contact->contact_id()] = contact;
H A Dgdata_contacts_service_unittest.cc12 #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);
62 contact
43 InitContact(const std::string& contact_id, const std::string& rfc_3339_update_time, bool deleted, const std::string& full_name, const std::string& given_name, const std::string& additional_name, const std::string& family_name, const std::string& name_prefix, const std::string& name_suffix, contacts::Contact* contact) argument
307 contacts::Contact* contact = new contacts::Contact; local
311 contacts::test::SetPhoto(gfx::Size(kPhotoSize, kPhotoSize), contact); local
[all...]
H A Dcontact_database.cc13 #include "chrome/browser/chromeos/contacts/contact.pb.h"
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) {
262 LOG(WARNING) << "Skipping contact with reserved ID "
263 << contact.contact_id();
266 updates.Put(leveldb::Slice(contact.contact_id()),
267 leveldb::Slice(contact.SerializeAsString()));
269 keys_to_delete.erase(contact
[all...]
H A Dcontact_test_util.cc73 std::string ContactToString(const Contact& contact) { argument
75 contact.contact_id() + "," +
76 base::Int64ToString(contact.update_time()) + "," +
77 base::IntToString(contact.deleted()) + "," +
78 contact.full_name() + "," +
79 contact.given_name() + "," +
80 contact.additional_name() + "," +
81 contact.family_name() + "," +
82 contact.name_prefix() + "," +
83 contact
163 InitContact(const std::string& contact_id, const std::string& name_suffix, bool deleted, Contact* contact) argument
180 AddEmailAddress(const std::string& address, Contact_AddressType_Relation relation, const std::string& label, bool primary, Contact* contact) argument
193 AddPhoneNumber(const std::string& number, Contact_AddressType_Relation relation, const std::string& label, bool primary, Contact* contact) argument
206 AddPostalAddress(const std::string& address, Contact_AddressType_Relation relation, const std::string& label, bool primary, Contact* contact) argument
219 AddInstantMessagingAddress( const std::string& address, Contact_InstantMessagingAddress_Protocol protocol, Contact_AddressType_Relation relation, const std::string& label, bool primary, Contact* contact) argument
236 SetPhoto(const gfx::Size& size, Contact* contact) argument
[all...]
H A Dgoogle_contact_store.cc13 #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 "
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
282 VLOG(1) << "Last contact update time is "
293 VLOG(1) << "Got " << updated_contacts->size() << " contact(
302 Contact* contact = (*updated_contacts)[i]; local
[all...]
H A Dgdata_contacts_service.cc23 #include "chrome/browser/chromeos/contacts/contact.pb.h"
54 // download a photo for a single contact.
61 // Top-level field in a contact groups feed containing the list of entries.
81 "http://schemas.google.com/contact/2008#contact";
83 // Field in the contacts feed containing a list of contact entries.
86 // Field in group and contact entries containing the item's ID.
89 // Top-level fields in contact entries.
200 // Maps the protocol from a dictionary representing a contact's IM address to a
226 // Gets the photo URL from a contact'
258 FillContactFromDictionary(const base::DictionaryValue& dict, contacts::Contact* contact) argument
733 contacts::Contact* contact = contacts_needing_photo_downloads_.back(); local
753 HandlePhotoData(contacts::Contact* contact, google_apis::GDataErrorCode error, scoped_ptr<std::string> download_data) argument
[all...]
/external/chromium_org/chrome/browser/extensions/api/rtc_private/
H A Drtc_private_api.cc15 #include "chrome/browser/chromeos/contacts/contact.pb.h"
38 const char kMimeTypeJson[] = "application/vnd.chromium.contact";
60 // Creates JSON payload string for contact web intent data.
61 void GetContactIntentData(const Contact& contact, argument
64 dict->SetString(kNameIntentField, contact.full_name());
68 for (int i = 0; i < contact.phone_numbers_size(); i++) {
69 const Contact_PhoneNumber& phone_number = contact.phone_numbers(i);
79 for (int i = 0; i < contact.email_addresses_size(); i++) {
80 const Contact_EmailAddress& email_address = contact.email_addresses(i);
92 Profile* profile, LaunchAction action, const Contact* contact) {
91 DispatchLaunchEvent( Profile* profile, LaunchAction action, const Contact* contact) argument
[all...]
H A Drtc_private_apitest.cc5 #include "chrome/browser/chromeos/contacts/contact.pb.h"
23 // Test contact data.
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();
53 contact->mutable_phone_numbers()->Add();
56 contact->mutable_phone_numbers()->Add();
58 return contact;
71 scoped_ptr<contacts::Contact> contact(CreateTestContac
[all...]
/external/chromium_org/chrome/browser/autocomplete/
H A Dcontact_provider_chromeos.cc16 #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()));
177 AutocompleteMatch::SanitizeString(UTF8ToUTF16(contact
192 AddContactIfMatched( const AutocompleteInput& input, const std::vector<string16>& input_words, const ContactData& contact) argument
226 CreateAutocompleteMatch( const AutocompleteInput& input, const ContactData& contact) argument
[all...]
H A Dcontact_provider_chromeos_unittest.cc20 #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
94 const contacts::Contact* contact = contact_manager_->GetContactById( local
96 DCHECK(contact) << "Unabl
35 InitContact(const std::string& contact_id, const std::string& full_name, const std::string& given_name, const std::string& family_name, contacts::Contact* contact) argument
249 contacts::Contact* contact = new contacts::Contact; local
[all...]
/external/chromium_org/third_party/libjingle/source/talk/xmpp/
H A Drostermodule_unittest.cc146 WriteContact(std::ostream& os, const XmppRosterContact* contact) { argument
147 if (contact == NULL) {
153 WriteString(os, contact->jid().Str());
155 WriteString(os, contact->name());
157 WriteSubscriptionState(os, contact->subscription_state());
159 for(size_t i=0; i < contact->GetGroupCount(); ++i) {
161 WriteString(os, contact->GetGroup(i));
163 os<<"]]"<<contact->raw_xml()->Str();
204 //! A contact has changed
205 //! This indicates that the data for a contact ma
[all...]
H A Drostermoduleimpl.cc730 bool operator() (XmppRosterContactImpl *& contact) { argument
731 return contact->jid() == jid_;
753 const XmppRosterContact* contact) {
754 if (!contact)
757 Jid jid = contact->jid();
765 const XmlElement* contact_xml = contact->raw_xml();
916 XmppRosterContact* contact = *pos; local
918 delete contact;
954 bool operator() (XmppPresenceImpl *& contact) { argument
955 return contact
752 RequestRosterChange( const XmppRosterContact* contact) argument
1051 XmppRosterContact* contact = *pos; local
1067 XmppRosterContactImpl* contact = new XmppRosterContactImpl(); local
[all...]
/external/nist-sip/java/gov/nist/javax/sip/stack/
H A DSIPDialog.java806 * Add a route list extacted from the contact list of the incoming message.
808 * @param contactList -- contact list extracted from the incoming message.
812 void setRemoteTarget(ContactHeader contact) { argument
813 this.remoteTarget = contact.getAddress();
1353 // put the contact header from the incoming request into
1935 * The default contact header is obtained from the provider. The application can override
2851 Contact contact = (Contact) contactList.getFirst();
2852 this.setRemoteTarget(contact);
3096 * Get the contact header that the owner of this dialog assigned. Subsequent Requests are
3097 * considered to belong to the dialog if the dialog identifier matches and the contact heade
[all...]

Completed in 1167 milliseconds