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

1 2

  /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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
GlobalSearchSupportTest.java 51 // If the contact is not in the "my contacts" group, nothing should be found
58 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local
60 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1(
65 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local
67 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1(
72 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local
74 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1(
79 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local
81 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedIcon2(
87 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google" local
94 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( local
101 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local
108 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local
156 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester
301 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder
    [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 9 import com.android.mms.data.Contact.UpdateListener;
13 public class ContactList extends ArrayList<Contact> {
20 list.add(Contact.get(number, canBlock));
32 Contact contact = Contact.get(number, canBlock); local
34 contact.setNumber(number);
36 list.add(contact);
44 * create the contact if it doesn't exist, and would inject the recipient id into the contact
50 Contact contact = Contact.get(entry.number, canBlock); local
    [all...]
RecipientIdCache.java 134 for (Contact contact : contacts) {
135 if (contact.isNumberModified()) {
136 contact.setIsNumberModified(false);
138 // if the contact's number wasn't modified, don't bother.
142 recipientId = contact.getRecipientId();
147 String number1 = contact.getNumber();
156 // with the new number in the contact.
Contact.java 36 public class Contact {
37 private static final String TAG = "Contact";
45 // log("contact changed, invalidate cache");
79 public void onUpdate(Contact updated);
83 * Make a basic contact object with a phone number.
85 private Contact(String number) {
128 public static Contact get(String number, boolean canBlock) {
138 // stale so the next time we're asked for a particular contact, we'll return that
139 // stale contact and at the same time, fire off an asyncUpdateContact to update
140 // that contact's info in the background. UI elements using the contact typicall
416 Contact contact = get(number); local
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
IccProvider.java 256 ArrayList<String> contact; local
258 contact = new ArrayList<String>();
259 contact.add("Ron Stevens/H");
260 contact.add("512-555-5038");
261 results.add(contact);
263 contact = new ArrayList<String>();
264 contact.add("Ron Stevens/M");
265 contact.add("512-555-8305");
266 results.add(contact);
268 contact = new ArrayList<String>()
595 ArrayList<String> contact = new ArrayList<String>(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
ProgressShower.java 39 public ShowProgressRunnable(VCardEntry contact) {
40 mContact = contact;
  /packages/apps/Mms/src/com/android/mms/ui/
ConversationListItem.java 23 import com.android.mms.data.Contact;
52 public class ConversationListItem extends RelativeLayout implements Contact.UpdateListener {
159 Contact contact = ch.getContacts().get(0); local
160 avatarDrawable = contact.getAvatar(mContext, sDefaultContactImage);
162 if (contact.existsInDatabase()) {
163 mAvatarView.assignContactUri(contact.getUri());
165 mAvatarView.assignContactFromPhone(contact.getNumber(), true);
184 public void onUpdate(Contact updated) {
227 Contact.addListener(this)
    [all...]
RecipientsEditor.java 21 import com.android.mms.data.Contact;
131 Contact contact = Contact.get(number, false); local
132 contact.setNumber(number);
133 list.add(contact);
197 public static CharSequence contactToToken(Contact c) {
214 for (Contact c : list) {
267 Contact c = Contact.get(number, false)
    [all...]
SearchActivity.java 51 import com.android.mms.data.Contact;
52 import com.android.mms.data.Contact.UpdateListener;
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)
    [all...]
ConversationList.java 22 import com.android.mms.data.Contact;
234 // we invalidate the contact cache here because we want to get updated presence
235 // and any contact changes. We don't invalidate the cache by observing presence and contact
242 Contact.invalidateCache();
415 Contact contact = conv.getRecipients().get(0); local
416 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getUri());
ComposeMessageActivity.java 123 import com.android.mms.data.Contact;
158 MessageStatusListener, Contact.UpdateListener {
265 private Intent mAddContactIntent; // Intent used to add a new contact
625 Contact c = ((RecipientContextMenuInfo) menuInfo).recipient;
642 private final Contact mRecipient;
644 RecipientsMenuClickListener(Contact recipient) {
670 private boolean canAddToContacts(Contact contact) {
673 final String name = contact.getName();
674 if (!TextUtils.isEmpty(contact.getNumber()))
2579 Contact contact = Contact.get(address, false); local
    [all...]
MessageListItem.java 245 // Since we load the contact info in the background, on the first screenfull of
246 // messages, it's likely we haven't loaded the contact URI info yet. In that case,
361 private CharSequence formatMessage(MessageItem msgItem, String contact, String body,
368 new CharSequence[] { contact }));
  /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/QuickSearchBox/tests/src/com/android/quicksearchbox/
ShortcutRepositoryTest.java 508 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) local
512 reportClick("joe", contact);
513 reportClick("joe", contact);
514 assertShortcuts("app and contact should be there.", "", contact, app);
518 assertShortcuts("contact with same shortcut id should still be there.",
519 "joe", contact);
520 assertShortcuts("contact with same shortcut id should still be there.",
521 "", contact);
525 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE local
654 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...]
MessageChannel.java 365 ContactHeader contact = (ContactHeader) sipResponse.getContactHeaders().getFirst(); local
366 peerport = ((AddressImpl) contact.getAddress()).getPort();
  /packages/apps/VoiceDialer/src/com/android/voicedialer/
CommandRecognizerEngine.java 55 * "call" a particular contact
67 * <li>A contact list may be read from a file.
122 // fetch the contact list
196 for (VoiceContact contact : contacts) {
198 String name = scrubName(contact.mName);
202 sb.append(contact.mContactId).append(' ');
203 sb.append(contact.mPrimaryId).append(' ');
204 sb.append(contact.mHomeId).append(' ');
205 sb.append(contact.mMobileId).append(' ');
206 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...]
  /packages/apps/Contacts/tests/src/com/android/contacts/
EntitySetTests.java 125 // Build an existing contact read from database
126 final ContentValues contact = new ContentValues(); local
127 contact.put(RawContacts.VERSION, version);
128 contact.put(RawContacts._ID, rawContactId);
129 final Entity before = new Entity(contact);
137 // Build an existing contact read from database
138 final ContentValues contact = new ContentValues(); local
139 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT);
140 final EntityDelta after = new EntityDelta(ValuesDelta.fromAfter(contact));
479 // 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...]
EntityModifierTests.java 161 final ContentValues contact = new ContentValues(); local
163 contact.put(RawContacts._ID, existingId);
165 contact.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
166 contact.put(RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE);
168 final Entity before = new Entity(contact);
361 // Trim empty rows and try again, expecting delete of overall contact
391 // Trim empty rows and try again, expecting delete of overall contact
508 // Try creating a contact without any child entries
535 // Try creating a contact with single empty entry
676 // Now run trim, which should turn into deleting the whole contact
    [all...]
  /frameworks/base/core/java/android/provider/
ContactsContract.java 53 * ContactsContract defines an extensible database of contact-related
54 * information. Contact information is stored in a three-tier data model:
80 * {@link Groups}, which contains information about raw contact groups
81 * such as Gmail contact groups. The
308 * preferences for, or interactions with, the contact.
318 * The number of times a contact has been contacted
324 * The last time a contact was contacted.
330 * Is the contact starred?
336 * URI for a custom ringtone associated with the contact. If null or missing,
343 * Whether the contact should always be sent to voicemail. If missing
1820 android.content.Entity contact = new android.content.Entity(cv); local
    [all...]

Completed in 1158 milliseconds

1 2