/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 | 54 // Remove the new contact from all groups 61 // If the contact is not in the "my contacts" group, nothing should be found 68 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 70 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 75 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 77 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 83 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 85 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 90 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( local 92 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2 97 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 104 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 113 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 162 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester 328 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactLoaderTest.java | 40 * Runs ContactLoader tests for the the contact-detail and editor view. 114 ContactLoader.Result contact = assertLoadContact(baseUri); local 116 assertEquals(contactId, contact.getId()); 117 assertEquals(rawContactId, contact.getNameRawContactId()); 118 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource()); 119 assertEquals(lookupKey, contact.getLookupKey()); 120 assertEquals(lookupUri, contact.getLookupUri()); 121 assertEquals(1, contact.getEntities().size()); 122 assertEquals(1, contact.getStatuses().size()); 146 ContactLoader.Result contact = assertLoadContact(legacyUri) local 177 ContactLoader.Result contact = assertLoadContact(rawContactUri); local 206 ContactLoader.Result contact = assertLoadContact(lookupNoIdUri); local 235 ContactLoader.Result contact = assertLoadContact(lookupUri); local 274 ContactLoader.Result contact = assertLoadContact(lookupWithWrongIdUri); local [all...] |
EntityDeltaListTests.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 Entity before = new Entity(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 EntityDelta after = new EntityDelta(ValuesDelta.fromAfter(contact)); 477 // Add new contact locally, should remain inser [all...] |
EntityDeltaTests.java | 68 // Build an existing contact read from database 69 final ContentValues contact = new ContentValues(); local 70 contact.put(RawContacts.VERSION, 43); 71 contact.put(RawContacts._ID, contactId); 79 final Entity before = new Entity(contact); 259 // Update parent contact values 269 // Assert three operations: update Contact, insert Data row, enforce version 341 // Assert two operations: delete Contact and enforce version 366 // Assert two operations: delete Contact and enforce version 394 // Assert two operations: delete Contact and enforce versio [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 65 TestContact contact = rawContact.getContact().load(); local 66 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 68 Contacts.markAsContacted(mContentResolver, contact.getId()); 69 contact.load(); // Reload 71 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 75 Contacts.markAsContacted(mContentResolver, contact.getId()); 76 contact.load(); 78 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED);
|
/packages/apps/Mms/src/com/android/mms/data/ |
ContactList.java | 11 import com.android.mms.data.Contact.UpdateListener; 15 public class ContactList extends ArrayList<Contact> { 22 list.add(Contact.get(number, canBlock)); 34 Contact contact = Contact.get(number, canBlock); local 36 contact.setNumber(number); 38 list.add(contact); 47 * for the numbers don't belong to any contact. 57 Contact contact = Contact.get(uri.getSchemeSpecificPart(), true) local 77 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"; 57 // log("contact changed, invalidate cache"); 76 // Contact, -1 is invalid. e.g. contact method id is 20 when 77 // current contact has phone content://.../phones/20. 94 private boolean mIsMe; // true if this contact is me! 95 private boolean mSendToVoicemail; // true if this contact should not put up notification 98 public void onUpdate(Contact updated) 550 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/ |
ConversationListItem.java | 21 import com.android.mms.data.Contact; 46 public class ConversationListItem extends RelativeLayout implements Contact.UpdateListener { 141 Contact contact = mConversation.getRecipients().get(0); local 142 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 144 if (contact.existsInDatabase()) { 145 mAvatarView.assignContactUri(contact.getUri()); 147 mAvatarView.assignContactFromPhone(contact.getNumber(), true); 163 public void onUpdate(Contact updated) { 212 Contact.addListener(this) [all...] |
RecipientsEditor.java | 21 import com.android.mms.data.Contact; 130 Contact contact = Contact.get(number, blocking); local 131 contact.setNumber(number); 132 list.add(contact); 196 public static CharSequence contactToToken(Contact c) { 215 // user types (or chooses from the dropdown) a new contact Mms has never 216 // seen before, the contact gets the correct trailing comma. But when the 217 // contact gets added to the mms's contacts table, contacts sends out a [all...] |
SearchActivity.java | 52 import com.android.mms.data.Contact; 57 * matches. The item contains the contact (or phone number) as the "title" and a 67 // Track which TextView's show which Contact objects so that we can update 68 // appropriately when the Contact gets fully loaded. 69 private HashMap<Contact, TextView> mContactMap = new HashMap<Contact, TextView>(); 192 Contact.UpdateListener mContactListener = new Contact.UpdateListener() { 193 public void onUpdate(Contact updated) { 204 Contact.removeListener(mContactListener) [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/base/telephony/java/com/android/internal/telephony/ |
IccProvider.java | 100 return "vnd.android.cursor.dir/sim-contact"; 404 Object[] contact = new Object[4]; local 409 contact[0] = alphaTag; 410 contact[1] = number; 420 contact[2] = emailString.toString(); 422 contact[3] = id; 423 cursor.addRow(contact);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactTileAdapter.java | 60 * Index of the first NON starred contact in the {@link Cursor} 194 * Returns position of the first NON Starred Contact 239 ContactEntry contact = new ContactEntry(); local 241 contact.name = (name != null) ? name : mResources.getString(R.string.missing_name); 242 contact.status = cursor.getString(mStatusIndex); 243 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); 244 contact.lookupKey = ContentUris.withAppendedId( 251 contact.phoneLabel = (String) Phone.getTypeLabel(mResources, phoneNumberType, 253 contact.phoneNumber = cursor.getString(mPhoneNumberIndex); 262 contact.presenceIcon = icon [all...] |
/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...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
SIPClientTransaction.java | 33 import gov.nist.javax.sip.header.Contact; 1151 Contact contact = (Contact) lastResponse.getContactHeaders().getFirst(); local 1172 Contact contact = null; local [all...] |
/ndk/sources/host-tools/make-3.81/ |
makefile.com | 10 $! In case of problems with the install you might contact me at
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
CommandRecognizerEngine.java | 53 * "call" a particular contact 65 * <li>A contact list may be read from a file. 120 // fetch the contact list 194 for (VoiceContact contact : contacts) { 196 String name = scrubName(contact.mName); 200 sb.append(contact.mContactId).append(' '); 201 sb.append(contact.mPrimaryId).append(' '); 202 sb.append(contact.mHomeId).append(' '); 203 sb.append(contact.mMobileId).append(' '); 204 sb.append(contact.mWorkId).append(' ') [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
HeaderFactoryImpl.java | 300 Contact contact = new Contact(); local 301 contact.setAddress(address); 303 return contact; 320 Contact contact = new Contact(); local 321 contact.setWildCardFlag(true); 322 contact.setExpires(0) [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
RecipientEditTextView.java | 411 private Bitmap createSelectedChip(RecipientEntry contact, TextPaint paint, Layout layout) { 419 CharSequence ellipsizedText = ellipsizeText(createChipDisplayText(contact), paint, 453 private Bitmap createUnselectedChip(RecipientEntry contact, TextPaint paint, Layout layout) { 461 CharSequence ellipsizedText = ellipsizeText(createChipDisplayText(contact), paint, 472 Drawable background = getChipBackground(contact); 478 if (contact.getContactId() != RecipientEntry.INVALID_CONTACT) { 479 byte[] photoBytes = contact.getPhotoBytes(); 480 // There may not be a photo yet if anything but the first contact address 482 if (photoBytes == null && contact.getPhotoThumbnailUri() != null) { 484 ((BaseRecipientAdapter) getAdapter()).fetchPhoto(contact, contac [all...] |