HomeSort by relevance Sort by last modified time
    Searched refs:contact (Results 1 - 25 of 87) sorted by null

1 2 3 4

  /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...]
rtc_private_api.h 10 class Contact;
18 // Contact launch intent action.
28 // event. Optional |contact| information is passed as event payload if launch
29 // event is related to a particilar contact.
32 const contacts::Contact* contact);
rtc_private_api.cc 15 #include "chrome/browser/chromeos/contacts/contact.pb.h"
27 using contacts::Contact;
38 const char kMimeTypeJson[] = "application/vnd.chromium.contact";
60 // Creates JSON payload string for contact web intent data.
61 void GetContactIntentData(const Contact& contact,
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++)
    [all...]
  /external/chromium_org/chrome/browser/chromeos/contacts/
contact_test_util.cc 73 std::string ContactToString(const Contact& contact) {
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() + ","
    [all...]
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...]
contact_test_util.h 11 #include "chrome/browser/chromeos/contacts/contact.pb.h"
16 typedef std::vector<const Contact*> ContactPointers;
21 // Returns a string containing the information stored in |contact|. The same
24 std::string ContactToString(const Contact& contact);
29 std::string ContactsToString(const ScopedVector<Contact>& contacts);
32 // const Contact* arguments.
40 ScopedVector<Contact>* dest);
41 void CopyContacts(const ScopedVector<Contact>& source,
42 ScopedVector<Contact>* dest)
    [all...]
gdata_contacts_service.cc 23 #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's dictionary (within the "entry" list)
733 contacts::Contact* contact = contacts_needing_photo_downloads_.back(); local
    [all...]
contact_database_unittest.cc 17 #include "chrome/browser/chromeos/contacts/contact.pb.h"
98 void LoadContacts(scoped_ptr<ScopedVector<Contact> >* contacts_out,
124 scoped_ptr<ScopedVector<Contact> > contacts,
145 scoped_ptr<ScopedVector<Contact> > loaded_contacts_;
152 // Save a contact to the database and check that we get the same data back
155 scoped_ptr<Contact> contact(new Contact);
156 InitContact(kContactId, "1", false, contact.get());
158 "email_label_1", true, contact.get())
    [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...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
RawContact.java 205 public static RawContact valueOf(JSONObject contact) {
208 final String userName = !contact.isNull("u") ? contact.getString("u") : null;
209 final int serverContactId = !contact.isNull("i") ? contact.getInt("i") : -1;
210 // If we didn't get either a username or serverId for the contact, then
213 throw new JSONException("JSON contact missing required 'u' or 'i' fields");
216 final int rawContactId = !contact.isNull("c") ? contact.getInt("c") : -1;
217 final String firstName = !contact.isNull("f") ? contact.getString("f") : null
    [all...]
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/
web_services.py 131 it returns user's contact info in JSON format.
139 logging.info('*** Starting contact sync ***')
149 # the newly added contact.
159 logging.info('Returning ' + str(len(updated_contacts)) + ' contact records')
184 contacts = datastore.Contact.all()
190 for contact in contacts:
191 if (contact.updated > high_water_date):
192 high_water_date = contact.updated
198 for contact in contacts:
200 # contact (for example, it's a contact just uploaded from the client
    [all...]
dashboard.py 18 Defines Django forms for inserting/updating/viewing contact data
66 """Represents django form for entering contact info."""
69 model = datastore.Contact
74 Processes requests to add a new contact. GET presents an empty
75 contact form for the user to fill in. POST saves the new contact
80 self.send_form('Add Contact', '/add_contact', -1, None, ContactForm())
91 self.send_form('Add Contact', '/add_contact', -1, None, data)
96 Process requests to edit a contact's information. GET presents a form
97 with the current contact information filled in. POST saves new informatio
    [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...]
  /cts/tests/tests/provider/src/android/provider/cts/
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...]
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...]
  /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...]
contact_provider_chromeos.h 30 // contact's ID is stored.
58 // Adds an AutocompleteMatch object for |contact| to |matches_| if |contact|
63 const ContactData& contact);
67 const ContactData& contact);
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
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...]
RawContactTest.java 42 final RawContact contact = new RawContact(values); local
43 contact.addDataItemValues(dataItem);
45 return contact;
57 final RawContact contact = new RawContact(values); local
58 contact.addDataItemValues(dataItem);
60 return contact;
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
contacts.js 7 for (var i = 0, contact; contact = contacts[i]; i++) {
12 pName.innerText = contact['name'];
15 for (var j = 0, email; email = contact['emails'][j]; j++) {
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/Dialer/src/com/android/dialer/dialpad/
SmartDialCursorLoader.java 91 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;
  /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/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...]

Completed in 1094 milliseconds

1 2 3 4