/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 58 TestContact contact = rawContact.getContact().load(); local 59 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 61 Contacts.markAsContacted(mContentResolver, contact.getId()); 62 contact.load(); // Reload 64 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 68 Contacts.markAsContacted(mContentResolver, contact.getId()); 69 contact.load(); 71 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED);
|
/packages/apps/IM/src/com/android/im/imps/ |
ImpsUserAddress.java | 20 import com.android.im.engine.Contact; 64 Contact contact = list.getContact(this); local 65 if(contact != null) { 66 return contact; 70 return new Contact(this, this.getUser());
|
ImpsContactListManager.java | 25 import com.android.im.engine.Contact; 49 ArrayList<Contact> mSubscriptionRequests; 69 public Contact createTemporaryContact(String address){ 71 return new Contact(impsAddr, impsAddr.getScreenName()); 133 // FIXME: ignore the PEP contact lists for now 223 public void approveSubscriptionRequest(String contact) { 224 handleSubscriptionRequest(contact, true); 228 public void declineSubscriptionRequest(String contact) { 229 handleSubscriptionRequest(contact, false); 232 private void handleSubscriptionRequest(final String contact, final boolean accept) 558 Contact contact = getContact(userId); local 591 Contact contact = list.getContact(userId); local 873 Contact contact; local [all...] |
/packages/apps/IM/src/com/android/im/service/ |
ContactListAdapter.java | 25 import com.android.im.engine.Contact; 69 Contact contact = mAdaptee.getContact(address); local 70 if (contact == null) { 75 mAdaptee.removeContact(contact);
|
ChatSessionManagerAdapter.java | 36 import com.android.im.engine.Contact; 69 Contact contact = listManager.getContactByAddress(contactAddress); local 70 if(contact == null) { 72 contact = listManager.createTemporaryContact(contactAddress); 76 "Invalid contact address:" + contactAddress)); 80 ChatSession session = mSessionManager.createChatSession(contact);
|
ChatSessionAdapter.java | 25 import com.android.im.engine.Contact; 101 init((Contact)participant); 113 for (Contact c : group.getMembers()) { 118 private void init(Contact contact) { 122 long contactId = listManager.queryOrInsertContact(contact); 128 mContactStatusMap.put(contact.getName(), contact.getPresence().getStatus()); 145 Contact self = mConnection.getLoginUser(); 147 List<Contact> members = group.getMembers() 335 String contact = incoming ? oldParticipant.getName() : null; local [all...] |
/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...] |
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 619 Contact c = ((RecipientContextMenuInfo) menuInfo).recipient; 636 private final Contact mRecipient; 638 RecipientsMenuClickListener(Contact recipient) { 664 private boolean canAddToContacts(Contact contact) { 667 final String name = contact.getName(); 668 if (!TextUtils.isEmpty(contact.getNumber())) 2557 Contact contact = Contact.get(address, false); local [all...] |
/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...] |
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...] |
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...] |
/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...] |
/packages/apps/IM/src/com/android/im/app/ |
MessageView.java | 63 public void bindIncomingMessage(String contact, String body, Date date, 65 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling); 71 String contact = mResources.getString(R.string.me); local 72 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling); 77 public void bindPresenceMessage(String contact, int type, boolean isGroupChat, 79 CharSequence message = formatPresenceUpdates(contact, type, isGroupChat, scrolling); 89 private CharSequence formatMessage(String contact, String body, 99 SpannableStringBuilder buf = new SpannableStringBuilder(contact); 131 private CharSequence formatPresenceUpdates(String contact, int type, 137 : R.string.contact_online, contact); [all...] |
NewChatActivity.java | 174 //XXX HACK: Yahoo! doesn't allow to block a friend. We can only block a temporary contact. 344 String contact = mChatView.getUserName(); local 346 mChatSwitcher.rotateChat(delta, contact, accountId, providerId); 388 void showInvitationHasSent(String contact) { 390 getString(R.string.invitation_sent_prompt, contact),
|
ChatSwitcher.java | 93 public boolean switchTo(String contact, long account, Intent intent); 533 String contact, long contactId, int groupChat) { 537 i.putExtra("from", contact); 615 String contact = c.getString(mUsernameColumn); local 621 contact, contactId, groupChat); 623 if (mSwitcherCallback == null || !mSwitcherCallback.switchTo(contact, accountId, intent)) { 662 private int findCurrent(Cursor c, String contact, long accountId, long providerId) { 671 if (!c.getString(mUsernameColumn).equals(contact)) { 680 private void rotateChat(Cursor c, int direction, String contact, long accountId, long providerId) { 686 int position = findCurrent(c, contact, accountId, providerId) 709 rotateChat(mSwitcherAdapter.getCursor(), direction, contact, accountId, providerId); local [all...] |
ChatView.java | 82 import com.android.im.engine.Contact; 232 public void onContactJoined(IChatSession ses, Contact contact) { 237 public void onContactLeft(IChatSession ses, Contact contact) { 259 public void onContactChange(int type, IContactList list, Contact contact){ 263 String listName, Contact contact) { 266 public void onContactsPresenceUpdate(Contact[] contacts) 1462 String contact = isGroupChat() ? cursor.getString(mNicknameColumn) : mNickName; local [all...] |
/packages/apps/IM/src/com/android/im/engine/ |
ContactList.java | 30 private HashMap<String, Contact> mContactsCache; 33 Collection<Contact> contacts, ContactListManager manager) { 39 mContactsCache = new HashMap<String, Contact>(); 41 for (Contact c : contacts) { 73 * Add a contact to the list. The contact is specified by its address 77 * the address string specifies the contact. 83 * if the contact is not allowed to be added 94 "Contact has been blocked"); 99 "Contact already exists in the list") 176 mContactsCache.put(mManager.normalizeAddress(contact.getAddress().getFullName()), contact); local [all...] |
/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...] |
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/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
ShortcutRepositoryTest.java | 497 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE) local 501 reportClick("joe", contact); 502 reportClick("joe", contact); 503 assertShortcuts("app and contact should be there.", "", contact, app); 507 assertShortcuts("contact with same shortcut id should still be there.", 508 "joe", contact); 509 assertShortcuts("contact with same shortcut id should still be there.", 510 "", contact); 514 final SuggestionData contact = new SuggestionData(CONTACTS_SOURCE local 654 SuggestionData contact = makeContact("andy" + i); local [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 1812 android.content.Entity contact = new android.content.Entity(cv); local [all...] |
/packages/apps/IM/src/com/android/im/provider/ |
ImpsProvider.java | 177 " LEFT OUTER JOIN avatars ON (contacts.username = avatars.contact" + 181 "blockedList LEFT OUTER JOIN avatars ON (blockedList.username = avatars.contact" + 218 // contact id query projection 224 // contact id query selection for "seed presence" operation 231 // contact id query selection args 1 234 // contact id query selection for getContactId() 238 // contact id query selection args 2 280 "contact TEXT," + 285 "UNIQUE (account_id, contact)" + 376 // add an otr_etag column to contact etag tabl 2020 String contact = null; local 2569 String contact = null; local 2992 String contact = null; local [all...] |