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

1 2

  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_ContactsTest.java 56 TestContact contact = rawContact.getContact().load(); local
57 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED);
59 Contacts.markAsContacted(mContentResolver, contact.getId());
60 contact.load(); // Reload
62 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED);
66 Contacts.markAsContacted(mContentResolver, contact.getId());
67 contact.load();
69 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED);
85 TestContact contact = rawContact.getContact().load();
87 Uri contactUri = contact.getUri()
    [all...]
ContactsContract_PhotoTest.java 58 TestContact contact = rawContact.getContact().load(); local
60 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri()));
61 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true));
62 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false));
72 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri()));
73 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true));
74 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false));
79 TestContact contact = rawContact.getContact().load(); local
81 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri()));
82 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...]
  /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...]
MessageListItem.java 66 import com.android.mms.data.Contact;
238 Contact contact = isSelf ? Contact.getMe(false) : Contact.get(addr, false); local
239 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage);
244 if (contact.existsInDatabase()) {
245 mAvatar.assignContactUri(contact.getUri());
247 mAvatar.assignContactFromPhone(contact.getNumber(), true);
381 private CharSequence formatMessage(MessageItem msgItem, String contact, String body
    [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...]
ConversationList.java 26 import com.android.mms.data.Contact;
262 // we invalidate the contact cache here because we want to get updated presence
263 // and any contact changes. We don't invalidate the cache by observing presence and contact
270 Contact.invalidateCache();
479 Contact contact = conv.getRecipients().get(0); local
480 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getUri());
706 Contact.init(ConversationList.this);
    [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/
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...]
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...]
EntityModifierTests.java 174 final ContentValues contact = new ContentValues(); local
176 contact.put(RawContacts._ID, existingId);
178 contact.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
179 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE);
181 final Entity before = new Entity(contact);
374 // Trim empty rows and try again, expecting delete of overall contact
404 // Trim empty rows and try again, expecting delete of overall contact
521 // Try creating a contact without any child entries
548 // Try creating a contact with single empty entry
689 // 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
162 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester
328 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 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...]
  /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/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/Mms/src/com/android/mms/transaction/
MessagingNotification.java 25 import com.android.mms.data.Contact;
305 Contact contact = Contact.get(address, false); local
306 if (contact.getSendToVoicemail()) {
380 Contact contact = Contact.get(address, false); local
381 if (contact.getSendToVoicemail()) {
482 // normally be the contact who sent the message) to a generic one tha
    [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 891 ContactHeader contact = (ContactHeader) response.getHeader(ContactHeader.NAME); local
    [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...]

Completed in 895 milliseconds

1 2