Home
last modified time | relevance | path

Searched refs:contact (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/IM/src/com/android/im/engine/
DContactListManager.java193 public boolean containsContact(Contact contact) { in containsContact() argument
195 if (list.containsContact(contact)) { in containsContact()
330 public void blockContactAsync(Contact contact) throws ImException { in blockContactAsync() argument
331 blockContactAsync(contact.getAddress().getFullName()); in blockContactAsync()
355 public void unblockContactAsync(Contact contact) throws ImException { in unblockContactAsync() argument
356 unblockContactAsync(contact.getAddress().getFullName()); in unblockContactAsync()
387 protected void removeContactFromListAsync(Contact contact, ContactList list) in removeContactFromListAsync() argument
391 if (mDeletePending.contains(contact)) { in removeContactFromListAsync()
395 doRemoveContactFromListAsync(contact, list); in removeContactFromListAsync()
417 public boolean isBlocked(Contact contact) throws ImException { in isBlocked() argument
[all …]
DChatGroup.java87 public synchronized void addMemberAsync(Contact contact) { in addMemberAsync() argument
88 mManager.addGroupMemberAsync(this, contact); in addMemberAsync()
97 public synchronized void removeMemberAsync(Contact contact) { in removeMemberAsync() argument
98 mManager.removeGroupMemberAsync(this, contact); in removeMemberAsync()
106 void notifyMemberJoined(Contact contact) { in notifyMemberJoined() argument
107 mMembers.add(contact); in notifyMemberJoined()
109 listener.onMemberJoined(this, contact); in notifyMemberJoined()
118 void notifyMemberLeft(Contact contact) { in notifyMemberLeft() argument
119 if(mMembers.remove(contact)) { in notifyMemberLeft()
121 listener.onMemberLeft(this, contact); in notifyMemberLeft()
DContactList.java135 public void removeContact(Contact contact) throws ImException { in removeContact() argument
136 if(contact == null) { in removeContact()
140 if(containsContact(contact)) { in removeContact()
141 mManager.removeContactFromListAsync(contact, this); in removeContact()
175 protected void insertToCache(Contact contact) { in insertToCache() argument
176 mContactsCache.put(mManager.normalizeAddress(contact.getAddress().getFullName()), contact); in insertToCache() local
179 protected void removeFromCache(Contact contact) { in removeFromCache() argument
180 mContactsCache.remove(mManager.normalizeAddress(contact.getAddress().getFullName())); in removeFromCache()
DChatGroupManager.java101 protected abstract void addGroupMemberAsync(ChatGroup group, Contact contact); in addGroupMemberAsync() argument
112 protected abstract void removeGroupMemberAsync(ChatGroup group, Contact contact); in removeGroupMemberAsync() argument
209 for (Contact contact : joined) { in notifyGroupChanged()
210 notifyMemberJoined(group, contact); in notifyGroupChanged()
214 for (Contact contact : left) { in notifyGroupChanged()
215 notifyMemberLeft(group, contact); in notifyGroupChanged()
276 protected void notifyMemberJoined(ChatGroup group, Contact contact) { in notifyMemberJoined() argument
277 group.notifyMemberJoined(contact); in notifyMemberJoined()
286 protected void notifyMemberLeft(ChatGroup group, Contact contact) { in notifyMemberLeft() argument
287 group.notifyMemberLeft(contact); in notifyMemberLeft()
DSubscriptionRequestListener.java37 void onSubscriptionApproved(String contact); in onSubscriptionApproved() argument
44 void onSubscriptionDeclined(String contact); in onSubscriptionDeclined() argument
52 void onApproveSubScriptionError(String contact, ImErrorInfo error); in onApproveSubScriptionError() argument
59 void onDeclineSubScriptionError(String contact, ImErrorInfo error); in onDeclineSubScriptionError() argument
DGroupMemberListener.java26 public void onMemberJoined(ChatGroup group, Contact contact); in onMemberJoined() argument
33 public void onMemberLeft(ChatGroup group, Contact contact); in onMemberLeft() argument
DContactListListener.java76 public void onContactChange(int type, ContactList list, Contact contact); in onContactChange() argument
133 String listName, Contact contact); in onContactError() argument
/packages/apps/IM/src/com/android/im/app/
DMessageView.java63 public void bindIncomingMessage(String contact, String body, Date date, in bindIncomingMessage() argument
65 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling); in bindIncomingMessage()
71 String contact = mResources.getString(R.string.me); in bindOutgoingMessage() local
72 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling); in bindOutgoingMessage()
77 public void bindPresenceMessage(String contact, int type, boolean isGroupChat, in bindPresenceMessage() argument
79 CharSequence message = formatPresenceUpdates(contact, type, isGroupChat, scrolling); in bindPresenceMessage()
89 private CharSequence formatMessage(String contact, String body, in formatMessage() argument
99 SpannableStringBuilder buf = new SpannableStringBuilder(contact); in formatMessage()
131 private CharSequence formatPresenceUpdates(String contact, int type, in formatPresenceUpdates() argument
137 : R.string.contact_online, contact); in formatPresenceUpdates()
[all …]
DChatSwitcher.java93 public boolean switchTo(String contact, long account, Intent intent); in switchTo() argument
533 String contact, long contactId, int groupChat) { in makeChatIntent() argument
537 i.putExtra("from", contact); in makeChatIntent()
615 String contact = c.getString(mUsernameColumn); in select() local
621 contact, contactId, groupChat); in select()
623 if (mSwitcherCallback == null || !mSwitcherCallback.switchTo(contact, accountId, intent)) { in select()
662 private int findCurrent(Cursor c, String contact, long accountId, long providerId) { in findCurrent() argument
671 if (!c.getString(mUsernameColumn).equals(contact)) { in findCurrent()
680 …private void rotateChat(Cursor c, int direction, String contact, long accountId, long providerId) { in rotateChat() argument
686 int position = findCurrent(c, contact, accountId, providerId); in rotateChat()
[all …]
DNewChatActivity.java344 String contact = mChatView.getUserName(); in switchChat() local
346 mChatSwitcher.rotateChat(delta, contact, accountId, providerId); in switchChat()
388 void showInvitationHasSent(String contact) { in showInvitationHasSent() argument
390 getString(R.string.invitation_sent_prompt, contact), in showInvitationHasSent()
/packages/apps/IM/src/com/android/im/imps/
DImpsContactListManager.java222 public void approveSubscriptionRequest(String contact) { in approveSubscriptionRequest() argument
223 handleSubscriptionRequest(contact, true); in approveSubscriptionRequest()
227 public void declineSubscriptionRequest(String contact) { in declineSubscriptionRequest() argument
228 handleSubscriptionRequest(contact, false); in declineSubscriptionRequest()
231 private void handleSubscriptionRequest(final String contact, final boolean accept) { in handleSubscriptionRequest() argument
234 request.addElement(ImpsTags.UserID, contact); in handleSubscriptionRequest()
242 listener.onApproveSubScriptionError(contact, error); in handleSubscriptionRequest()
244 listener.onDeclineSubScriptionError(contact, error); in handleSubscriptionRequest()
254 listener.onSubscriptionApproved(contact); in handleSubscriptionRequest()
256 listener.onSubscriptionDeclined(contact); in handleSubscriptionRequest()
[all …]
DImpsChatGroupManager.java49 protected void addGroupMemberAsync(final ChatGroup group, final Contact contact){ in addGroupMemberAsync() argument
50 Primitive request = buildAddGroupMemberRequest(group, contact); in addGroupMemberAsync()
60 notifyMemberJoined(group, contact); in addGroupMemberAsync()
116 public void inviteUserAsync(final ChatGroup group, Contact contact) { in inviteUserAsync() argument
117 Primitive request = buildInviteUserRequest(group, contact); in inviteUserAsync()
209 protected void removeGroupMemberAsync(final ChatGroup group, final Contact contact) { in removeGroupMemberAsync() argument
210 Primitive request = buildRemoveGroupMemberRequest(group, contact); in removeGroupMemberAsync()
220 notifyMemberLeft(group, contact); in removeGroupMemberAsync()
307 private Primitive buildAddGroupMemberRequest(final ChatGroup group, final Contact contact) { in buildAddGroupMemberRequest() argument
314 user.addChild(ImpsTags.UserID, contact.getAddress().getFullName()); in buildAddGroupMemberRequest()
[all …]
DImpsUserAddress.java64 Contact contact = list.getContact(this); in getEntity() local
65 if(contact != null) { in getEntity()
66 return contact; in getEntity()
/packages/apps/IM/src/com/android/im/service/
DContactListManagerAdapter.java405 StoredContactChange(int type, ContactList list, Contact contact) { in StoredContactChange() argument
408 mContact = contact; in StoredContactChange()
437 final Contact contact) { in onContactChange() argument
455 mDelayedContactChanges.add(new StoredContactChange(type, list, contact)); in onContactChange()
462 String contactAddress = contact.getAddress().getFullName(); in onContactChange()
466 insertContactContent(contact, listId); in onContactChange()
469 R.string.add_contact_success, contact.getName()); in onContactChange()
476 mDelayedContactChanges.add(new StoredContactChange(type, list, contact)); in onContactChange()
482 deleteContactFromDataBase(contact, list); in onContactChange()
489 mDelayedContactChanges.add(new StoredContactChange(type, list, contact)); in onContactChange()
[all …]
DChatSessionAdapter.java119 private void init(Contact contact) { in init() argument
123 long contactId = listManager.queryOrInsertContact(contact); in init()
127 String address = contact.getAddress().getFullName(); in init()
132 mContactStatusMap.put(contact.getName(), contact.getPresence().getStatus()); in init()
198 public void inviteContact(String contact) { in inviteContact() argument
204 Contact invitee = listManager.getContactByAddress(contact); in inviteContact()
207 "Cannot find contact with address: " + contact); in inviteContact()
340 String contact = incoming ? oldParticipant.getName() : null; in copyHistoryMessages() local
342 insertMessageInDb(contact, msg.getBody(), time, in copyHistoryMessages()
414 void insertPresenceUpdatesMsg(String contact, Presence presence) { in insertPresenceUpdatesMsg() argument
[all …]
DContactListAdapter.java69 Contact contact = mAdaptee.getContact(address); in removeContact() local
70 if (contact == null) { in removeContact()
75 mAdaptee.removeContact(contact); in removeContact()
DChatSessionManagerAdapter.java69 Contact contact = listManager.getContactByAddress(contactAddress); in createChatSession() local
70 if(contact == null) { in createChatSession()
72 contact = listManager.createTemporaryContact(contactAddress); in createChatSession()
80 ChatSession session = mSessionManager.createChatSession(contact); in createChatSession()
/packages/apps/IM/src/com/android/im/app/adapter/
DContactListListenerAdapter.java40 Contact contact) { in onContactChange() argument
43 + contact + ")"); in onContactChange()
60 String listName, Contact contact) { in onContactError() argument
63 + listName + ", " + contact + ")"); in onContactError()
65 mHandler.showContactError(errorType, error, listName, contact); in onContactError()
DChatListenerAdapter.java33 public void onContactJoined(IChatSession ses, Contact contact) { in onContactJoined() argument
35 Log.d(TAG, "onContactJoined(" + ses + ", " + contact + ")"); in onContactJoined()
39 public void onContactLeft(IChatSession ses, Contact contact) { in onContactLeft() argument
41 Log.d(TAG, "onContactLeft(" + ses + ", " + contact + ")"); in onContactLeft()
/packages/apps/IM/src/com/android/im/
DISubscriptionListener.aidl38 void onSubscriptionApproved(String contact); in onSubscriptionApproved() argument
45 void onSubscriptionDeclined(String contact); in onSubscriptionDeclined() argument
DIContactListListener.aidl35 void onContactChange(int type, IContactList list, in Contact contact); in onContactChange() argument
56 void onContactError(int errorType, in ImErrorInfo error, String listName, in Contact contact); in onContactError() argument
DIChatListener.aidl44 void onContactJoined(IChatSession ses, in Contact contact); in onContactJoined() argument
49 void onContactLeft(IChatSession ses, in Contact contact); in onContactLeft() argument
DIChatSession.aidl66 void inviteContact(String contact); in inviteContact() argument
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DRecognizerEngine.java287 for (VoiceContact contact : contacts) { in addNameEntriesToGrammar()
289 String name = scrubName(contact.mName); in addNameEntriesToGrammar()
293 sb.append(contact.mPersonId).append(' '); in addNameEntriesToGrammar()
294 sb.append(contact.mPrimaryId).append(' '); in addNameEntriesToGrammar()
295 sb.append(contact.mHomeId).append(' '); in addNameEntriesToGrammar()
296 sb.append(contact.mMobileId).append(' '); in addNameEntriesToGrammar()
297 sb.append(contact.mWorkId).append(' '); in addNameEntriesToGrammar()
298 sb.append(contact.mOtherId); in addNameEntriesToGrammar()
/packages/apps/GlobalSearch/tests/src/com/android/globalsearch/
DShortcutRepositoryTest.java461 final SuggestionData contact = new SuggestionData.Builder(CONTACTS_COMPONENT) in testInvalidateShortcut_sameIdDifferentSources() local
466 mRepo.reportStats(new SessionStats("joe", contact), NOW); in testInvalidateShortcut_sameIdDifferentSources()
472 mRepo.getShortcutsForQuery("joe", NOW), contact); in testInvalidateShortcut_sameIdDifferentSources()
476 final SuggestionData contact = new SuggestionData.Builder(CONTACTS_COMPONENT) in testNeverMakeShortcut() local
481 mRepo.reportStats(new SessionStats("unshortcuttable", contact), NOW); in testNeverMakeShortcut()

12