/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...] |
MessageListItem.java | 62 import com.android.mms.data.Contact; 280 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); local 281 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage); 286 if (contact.existsInDatabase()) { 287 mAvatar.assignContactUri(contact.getUri()); 289 mAvatar.assignContactFromPhone(contact.getNumber(), true); [all...] |
RecipientsEditor.java | 46 import com.android.mms.data.Contact; 170 Contact contact = Contact.get(number, blocking); local 171 contact.setNumber(number); 172 list.add(contact); 236 public static CharSequence contactToToken(Contact c) { 253 // user types (or chooses from the dropdown) a new contact Mms has never 254 // seen before, the contact gets the correct trailing comma. But when the 255 // contact gets added to the mms's contacts table, contacts sends out a [all...] |
ConversationList.java | 72 import com.android.mms.data.Contact; 266 // we invalidate the contact cache here because we want to get updated presence 267 // and any contact changes. We don't invalidate the cache by observing presence and contact 274 Contact.invalidateCache(); 529 Contact contact = conv.getRecipients().get(0); local 530 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getUri()); [all...] |
ComposeMessageActivity.java | 128 import com.android.mms.data.Contact; 169 MessageStatusListener, Contact.UpdateListener { 304 private Intent mAddContactIntent; // Intent used to add a new contact 620 // it here. However, if we're opening up the quick contact window while typing, don't 1027 Contact contact = Contact.get(phoneNumber, false); local 2910 Contact contact = Contact.get(address, false); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 57 TestContact contact = rawContact.getContact().load(); local 58 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 60 Contacts.markAsContacted(mContentResolver, contact.getId()); 61 contact.load(); // Reload 63 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 67 Contacts.markAsContacted(mContentResolver, contact.getId()); 68 contact.load(); 70 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 86 TestContact contact = rawContact.getContact().load(); 88 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/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...] |
/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(context, contact); 260 // Update parent contact values 270 // Assert three operations: update Contact, insert Data row, enforce version 342 // Assert two operations: delete Contact and enforce version 367 // Assert two operations: delete Contact and enforce version 395 // Assert two operations: delete Contact and enforce versio [all...] |
RawContactDeltaListTests.java | 124 // Build an existing contact read from database 125 final ContentValues contact = new ContentValues(); local 126 contact.put(RawContacts.VERSION, version); 127 contact.put(RawContacts._ID, rawContactId); 128 final RawContact before = new RawContact(context, contact); 136 // Build an existing contact read from database 137 final ContentValues contact = new ContentValues(); local 138 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT); 139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); 478 // Add new contact locally, should remain inser [all...] |
RawContactModifierTests.java | 176 final ContentValues contact = new ContentValues(); local 178 contact.put(RawContacts._ID, existingId); 180 contact.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); 181 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE); 183 final RawContact before = new RawContact(mContext, contact); 376 // Trim empty rows and try again, expecting delete of overall contact 407 // Trim empty rows and try again, expecting delete of overall contact 525 // Try creating a contact without any child entries 552 // Try creating a contact with single empty entry 693 // Now run trim, which should turn into deleting the whole contact [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 125 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester 292 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;
|
DialogFilter.java | 33 import gov.nist.javax.sip.header.Contact; 297 * Check if we got this request on the contact address of the dialog If not the dialog 298 * does not belong to this request. We check this condition if a contact address has been 302 Contact contact = dialog.getMyContactHeader(); local 303 if (contact != null) { 304 SipUri contactUri = (SipUri) (contact.getAddress().getURI()); 316 // Check if the dialog contact is the same as the provider on [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...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 31 import com.android.contacts.model.Contact; 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()) 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...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
MessageChannel.java | 365 ContactHeader contact = (ContactHeader) sipResponse.getContactHeaders().getFirst(); local 366 peerport = ((AddressImpl) contact.getAddress()).getPort();
|
SIPClientTransaction.java | 33 import gov.nist.javax.sip.header.Contact; 1151 Contact contact = (Contact) lastResponse.getContactHeaders().getFirst(); local 1172 Contact contact = null; local [all...] |
/frameworks/opt/telephony/src/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 | 59 * Index of the first NON starred contact in the {@link Cursor} 213 * Returns position of the first NON Starred Contact 258 ContactEntry contact = new ContactEntry(); local 260 contact.name = (name != null) ? name : mResources.getString(R.string.missing_name); 261 contact.status = cursor.getString(mStatusIndex); 262 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); 263 contact.lookupKey = ContentUris.withAppendedId( 270 contact.phoneLabel = (String) Phone.getTypeLabel(mResources, phoneNumberType, 272 contact.phoneNumber = cursor.getString(mPhoneNumberIndex); 281 contact.presenceIcon = icon [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/base/voip/java/com/android/server/sip/ |
SipSessionGroup.java | 900 ContactHeader contact = (ContactHeader) response.getHeader(ContactHeader.NAME); local [all...] |