/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...] |
/packages/apps/Contacts/tests/src/com/android/contacts/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 | 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;
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
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.lookupKey) [all...] |
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) { 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.phoneNumber, code.offset) [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...] |
Contact.java | 40 public class Contact { 44 public static final int CONTACT_METHOD_TYPE_SELF = 3; // the "Me" or profile contact 48 private static final String TAG = "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 97 public void onUpdate(Contact updated) 557 Contact contact = internalGet(number, isMe); local [all...] |
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 [all...] |
/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; 47 public class ConversationListItem extends RelativeLayout implements Contact.UpdateListener, 143 Contact contact = mConversation.getRecipients().get(0); local 144 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 146 if (contact.existsInDatabase()) { 147 mAvatarView.assignContactUri(contact.getUri()); 149 mAvatarView.assignContactFromPhone(contact.getNumber(), true); 165 public void onUpdate(Contact updated) { 166 if (Log.isLoggable(LogTag.CONTACT, Log.DEBUG)) [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.
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
AttachPhotoActivity.java | 36 import com.android.contacts.model.Contact; 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); 148 loader.registerListener(0, new OnLoadCompleteListener<Contact>() { 151 Loader<Contact> loader, Contact contact) { [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactTileAdapter.java | 56 * Index of the first NON starred contact in the {@link Cursor} 210 * Returns position of the first NON Starred Contact 254 ContactEntry contact = new ContactEntry(); local 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 [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;
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
sed.c | 92 contact(errmsg) function 165 contact (status); 326 contact(false);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
IccProvider.java | 100 return "vnd.android.cursor.dir/sim-contact"; 399 Object[] contact = new Object[4]; local 404 contact[0] = alphaTag; 405 contact[1] = number; 415 contact[2] = emailString.toString(); 417 contact[3] = id; 418 cursor.addRow(contact);
|
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/ |
SmartDialTrieTest.java | 232 final ContactNumber contact = new ContactNumber(0, "12345678", "0", "0", 1); local 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); local 404 n.add(contact); 405 assertTrue(n.getContents().contains(contact)); 409 private boolean checkContains(SmartDialTrie trie, ContactNumber contact, CharSequence prefix) { 410 return trie.getAllWithPrefix(prefix).contains(contact); [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
ContactsAsyncHelper.java | 139 ImageView imageView, Uri contact, int placeholderImageResource) { 143 if (contact == null) { 157 args.uri = contact;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
ShortcutRepositoryTest.java | 549 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) local 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 = new SuggestionData(CONTACTS_SOURCE local 695 SuggestionData contact = makeContact("andy" + i); local [all...] |