/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
H A D | ParticipantListItemData.java | 41 public ParticipantListItemData(final ParticipantData participant) { argument 42 mAvatarUri = AvatarUriUtil.createAvatarUri(participant); 43 mContactId = participant.getContactId(); 44 mLookupKey = participant.getLookupKey(); 45 mNormalizedDestination = participant.getNormalizedDestination(); 46 if (TextUtils.isEmpty(participant.getFullName())) { 47 mDisplayName = participant.getSendDestination(); 50 mDisplayName = participant.getFullName(); 51 mDetails = (participant.isUnknownSender()) ? null : participant [all...] |
H A D | ConversationParticipantsData.java | 32 * Includes both the participant records for each participant referenced in conversation 37 // A map from a participant id to a participant 68 final ParticipantData participant = mConversationParticipantsMap.valueAt(i); 69 if (!participant.isSelf()) { 70 retList.add(participant); 77 * For a 1:1 conversation return the other (not self) participant 82 final ParticipantData participant = mConversationParticipantsMap.valueAt(i); 83 if (!participant [all...] |
H A D | ConversationData.java | 365 LogUtil.w(TAG, "Creating participant loader after unbinding mConversationId = " + 560 * Gets the default self participant in the participant table (NOT the conversation's self). 561 * This is available as soon as self participant data is loaded. 580 * For a 1:1 conversation return the other (not self) participant (else null) 619 for (final ParticipantData participant : mParticipantData) { 620 if (!participant.isSelf()) { 621 if (participant.isEmail()) { 622 emails.add(participant.getSendDestination()); 624 phones.add(participant [all...] |
H A D | ConversationListItemData.java | 163 * @return the contact id of the participant if it is a 1:1 conversation, -1 for group. 481 for (final ParticipantData participant : participants) { 482 if (ContactUtil.isEnterpriseContactId(participant.getContactId())) { 531 for (final ParticipantData participant : participants) { 533 participantNames.add(participant.getDisplayName(false));
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | ConferenceParticipantConnection.java | 33 * Represents a participant in a conference call. 43 * The user entity URI For the conference participant. 48 * The endpoint URI For the conference participant. 53 * The connection which owns this participant. 60 * @param participant The conference participant to create the instance for. 64 ConferenceParticipant participant) { 68 int presentation = getParticipantPresentation(participant); 74 address = getParticipantAddress(participant.getHandle(), countryIso); 77 setCallerDisplayName(participant 62 ConferenceParticipantConnection( com.android.internal.telephony.Connection parentConnection, ConferenceParticipant participant) argument 171 getParticipantPresentation(ConferenceParticipant participant) argument [all...] |
H A D | ImsConference.java | 59 * in Telecom/InCall as a call. The conference participant information is received via the host 60 * connection via a conference event package. Conference participant connections do not represent 62 * participant, keyed by a unique endpoint {@link android.net.Uri}. 65 * connection and is responsible for managing the conference participant connections which represent 72 * are most concerned with handling destruction of a conference participant. 78 * @param connection The participant which was destroyed. 82 ConferenceParticipantConnection participant = 84 removeConferenceParticipant(participant); 134 * Handles changes to conference participant data as reported by the conference host 138 * @param participants The participant informatio 723 createConferenceParticipantConnection( TelephonyConnection parent, ConferenceParticipant participant) argument 751 removeConferenceParticipant(ConferenceParticipantConnection participant) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | ContactRecipientEntryUtils.java | 110 * Returns true if the given participant is a special send to number item. 112 public static boolean isSendToDestinationContact(final ParticipantData participant) { argument 113 return participant.getContactId() == CONTACT_ID_SENDTO_DESTINATION;
|
H A D | AvatarUriUtil.java | 45 * participant. This can be any local resource. 47 * 3) Letter Tile - A letter tile is used when a participant has a name but no profile photo. A 48 * letter tile will contain the first code point of the participant's name and a background color 49 * based on the hash of the participant's full name. Letter tiles will be in the following format. 52 * 4) Default Avatars - These are avatars are used when the participant has no profile photo or 148 public static Uri createAvatarUri(@NonNull final ParticipantData participant) { argument 149 Assert.notNull(participant); 150 final String photoUriString = participant.getProfilePhotoUri(); 152 final String name = participant.getFullName(); 153 final String destination = participant [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | ConversationItemViewModel.java | 254 String participant = ""; 262 participant = TextUtils.isEmpty(lastParticipant) ? 273 participant = TextUtils.isEmpty(firstUnread.name) ? 277 if (TextUtils.isEmpty(participant)) { 279 participant = lastParticipant; 284 if (showToHeader && !TextUtils.isEmpty(participant)) { 300 mContentDescription = context.getString(res, toHeader, participant, 345 * Removes the name and email address of the participant of this avatar. 353 * @param name the name of the participant of this avatar 354 * @param emailAddress the email address of the participant o [all...] |
H A D | SendersView.java | 399 // if the corresponding message from this participant is unread and no sender avatar 420 final ParticipantInfo participant = conversationInfo.participantInfos.get(i); 422 if (!TextUtils.isEmpty(participant.name)) { 423 // use the participant name in place of unusable email addresses 424 final String senderEmail = TextUtils.isEmpty(participant.email) ? 425 participant.name : participant.email; 426 senderAvatarModel.populate(participant.name, senderEmail);
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
H A D | GetOrCreateConversationActionTest.java | 116 for(final ParticipantData participant : conversationParticipants) { 117 assertTrue(recipients.contains(participant.getSendDestination())); 127 final ParticipantData participant = ParticipantData.getFromCursor(cursor); 128 if (participant.isSelf()) { 131 assertTrue(recipients.contains(participant.getSendDestination())); 135 assertEquals("Expect one self participant in conversations", 1, countSelf);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BugleDatabaseOperations.java | 68 // Global cache of phone numbers -> participant id mapping since this call is expensive. 146 for (final ParticipantData participant : participants) { 147 recipients.add(participant.getSendDestination()); 222 // Create the conversation with the default self participant which always maps to 369 // We want conversation and participant creation to be atomic 372 for (final ParticipantData participant : participants) { 373 Assert.isTrue(!participant.isSelf()); 374 if (participant.isEmail()) { 416 for (final ParticipantData participant : participants) { 418 addParticipantToConversation(dbWrapper, participant, conversationI 1633 addParticipantToConversation(final DatabaseWrapper dbWrapper, final ParticipantData participant, final String conversationId) argument 1735 getOrCreateParticipantInTransaction(final DatabaseWrapper dbWrapper, final ParticipantData participant) argument [all...] |
H A D | DataModelImpl.java | 148 final ParticipantData participant) { 149 return new ParticipantListItemData(participant); 209 // Trigger a participant refresh if needed, we should only need to refresh if there is 147 createParticipantListItemData( final ParticipantData participant) argument
|
H A D | DataModel.java | 102 final ParticipantData participant); 101 createParticipantListItemData( final ParticipantData participant) argument
|
H A D | MessageNotificationState.java | 191 // Self participant id. 637 final ParticipantData participant = iter.next(); 638 // Make sure we only add the self participant once 639 if (participant.isSelf()) { 647 final String firstName = participant.getFirstName();
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
H A D | MessageDetailsDialog.java | 315 for (final ParticipantData participant : participants) { 316 if (TextUtils.equals(participant.getId(), senderId)) { 320 if (participant.isSelf() && 321 (!participant.getId().equals(selfId) || !addSelf)) { 326 final String phoneNumber = participant.getNormalizedDestination();
|
H A D | ConversationFragment.java | 447 // Delay showing the message list until the participant list is loaded. 748 final ParticipantData participant = data.getOtherParticipant(); 749 final boolean addContactActionVisible = (participant != null 750 && TextUtils.isEmpty(participant.getLookupKey())); 804 final ParticipantData participant = mBinding.getData().getOtherParticipant(); 805 Assert.notNull(participant); 806 final String destination = participant.getNormalizedDestination(); 807 final Uri avatarUri = AvatarUriUtil.createAvatarUri(participant); 1096 for (final ParticipantData participant : participants) { 1099 if (participant [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
H A D | FakeDataModel.java | 198 final ParticipantData participant) { 199 return new ParticipantListItemData(participant); 197 createParticipantListItemData( final ParticipantData participant) argument
|