/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | ConversationParticipantsData.java | 36 public class ConversationParticipantsData implements Iterable<ParticipantData> { 38 private final SimpleArrayMap<String, ParticipantData> mConversationParticipantsMap; 42 mConversationParticipantsMap = new SimpleArrayMap<String, ParticipantData>(); in ConversationParticipantsData() 50 final ParticipantData newParticipant = ParticipantData.getFromCursor(cursor); in bind() 60 ParticipantData getParticipantById(final String participantId) { in getParticipantById() 64 ArrayList<ParticipantData> getParticipantListExcludingSelf() { in getParticipantListExcludingSelf() 65 final ArrayList<ParticipantData> retList = in getParticipantListExcludingSelf() 66 new ArrayList<ParticipantData>(mConversationParticipantsMap.size()); in getParticipantListExcludingSelf() 68 final ParticipantData participant = mConversationParticipantsMap.valueAt(i); in getParticipantListExcludingSelf() 79 public ParticipantData getOtherParticipant() { in getOtherParticipant() [all …]
|
D | SelfParticipantsData.java | 37 private final ArrayMap<String, ParticipantData> mSelfParticipantMap; 40 mSelfParticipantMap = new ArrayMap<String, ParticipantData>(); in SelfParticipantsData() 47 final ParticipantData newParticipant = ParticipantData.getFromCursor(cursor); in bind() 57 public List<ParticipantData> getSelfParticipants(final boolean activeOnly) { in getSelfParticipants() 58 List<ParticipantData> list = new ArrayList<ParticipantData>(); in getSelfParticipants() 59 for (final ParticipantData self : mSelfParticipantMap.values()) { in getSelfParticipants() 70 ParticipantData getSelfParticipantById(final String selfId) { in getSelfParticipantById() 81 final ParticipantData self = getSelfParticipantById(selfId); in isDefaultSelf() 82 return self == null ? false : self.getSubId() == ParticipantData.DEFAULT_SELF_SUB_ID; in isDefaultSelf() 87 for (final ParticipantData self : mSelfParticipantMap.values()) { in getSelfParticipantsCountExcludingDefault() [all …]
|
D | ParticipantData.java | 43 public class ParticipantData implements Parcelable { class 120 private ParticipantData() { in ParticipantData() method in ParticipantData 123 public static ParticipantData getFromCursor(final Cursor cursor) { in getFromCursor() 124 final ParticipantData pd = new ParticipantData(); in getFromCursor() 146 public static ParticipantData getFromId(final DatabaseWrapper dbWrapper, in getFromId() 156 return ParticipantData.getFromCursor(cursor); in getFromId() 167 public static ParticipantData getFromRecipientEntry(final RecipientEntry recipientEntry) { in getFromRecipientEntry() 168 final ParticipantData pd = new ParticipantData(); in getFromRecipientEntry() 200 private static ParticipantData getFromRawPhone(final String phoneNumber) { in getFromRawPhone() 202 final ParticipantData pd = new ParticipantData(); in getFromRawPhone() [all …]
|
D | SettingsData.java | 89 final ParticipantData self) { in fromSelfParticipant() 140 ParticipantData.ParticipantsQuery.PROJECTION, in onCreateLoader() 142 new String[] { String.valueOf(ParticipantData.OTHER_THAN_SELF_SUB_ID) }, in onCreateLoader() 195 final List<ParticipantData> selfs = mSelfParticipantsData.getSelfParticipants(true); in getSettingsItems() 204 for (ParticipantData self : selfs) { in getSettingsItems() 219 ParticipantData.DEFAULT_SELF_SUB_ID)); in getSettingsItems()
|
D | ConversationData.java | 363 ParticipantData.ParticipantsQuery.PROJECTION, null, null, null); in onCreateLoader() 413 ParticipantData.ParticipantsQuery.PROJECTION, in onCreateLoader() 415 new String[] { String.valueOf(ParticipantData.OTHER_THAN_SELF_SUB_ID) }, in onCreateLoader() 563 public ParticipantData getDefaultSelfParticipant() { in getDefaultSelfParticipant() 567 public List<ParticipantData> getSelfParticipants(final boolean activeOnly) { in getSelfParticipants() 575 public ParticipantData getSelfParticipantById(final String selfId) { in getSelfParticipantById() 582 public ParticipantData getOtherParticipant() { in getOtherParticipant() 602 if (systemDefaultSubId != ParticipantData.DEFAULT_SELF_SUB_ID && in sendMessage() 619 for (final ParticipantData participant : mParticipantData) { in sendMessage() 700 final ParticipantData participant = this.getOtherParticipant(); in getParticipantPhoneNumber()
|
D | PeopleOptionsItemData.java | 59 private ParticipantData mOtherParticipant; 73 final Cursor cursor, final ParticipantData otherParticipant, final int settingType) { in bind() 152 public ParticipantData getOtherParticipant() { in getOtherParticipant()
|
D | SubscriptionListData.java | 66 final ParticipantData selfParticipantData, final Context context) { in fromSelfParticipantData() 93 public void bind(final List<ParticipantData> subs) { in bind() 96 for (final ParticipantData sub : subs) { in bind()
|
D | ContactPickerData.java | 79 ParticipantData.ParticipantsQuery.PROJECTION, null, null, null); in onCreateLoader() 184 return (participantCount > MmsConfig.get(ParticipantData.DEFAULT_SELF_SUB_ID) in isTooManyParticipants() 191 return (participantCount < MmsConfig.get(ParticipantData.DEFAULT_SELF_SUB_ID) in getCanAddMoreParticipants()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 40 import com.android.messaging.datamodel.data.ParticipantData; 78 static ArrayList<ParticipantData> getConversationParticipantsFromRecipients( in getConversationParticipantsFromRecipients() 81 final ArrayList<ParticipantData> participants = new in getConversationParticipantsFromRecipients() 82 ArrayList<ParticipantData>(); in getConversationParticipantsFromRecipients() 86 participants.add(ParticipantData.getFromRawPhoneBySimLocale(recipient, refSubId)); in getConversationParticipantsFromRecipients() 97 public static void sanitizeConversationParticipants(final List<ParticipantData> participants) { in sanitizeConversationParticipants() 117 for (final ParticipantData p : participants) { in sanitizeConversationParticipants() 141 final List<ParticipantData> participants) { in getRecipientsFromConversationParticipants() 146 for (final ParticipantData participant : participants) { in getRecipientsFromConversationParticipants() 171 final ArrayList<ParticipantData> participants = in getOrCreateConversationFromThreadId() [all …]
|
D | ParticipantRefresh.java | 33 import com.android.messaging.datamodel.data.ParticipantData; 34 import com.android.messaging.datamodel.data.ParticipantData.ParticipantsQuery; 252 String.valueOf(ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED) }; in refreshParticipants() 269 final ParticipantData participantData = in refreshParticipants() 270 ParticipantData.getFromCursor(cursor); in refreshParticipants() 310 + ParticipantData.OTHER_THAN_SELF_SUB_ID 384 activeSubscriptionIdToRecordMap.put(ParticipantData.DEFAULT_SELF_SUB_ID, in refreshSelfParticipantList() 400 ParticipantData.INVALID_SLOT_ID, Color.TRANSPARENT, "''", in refreshSelfParticipantList() 417 final ParticipantData participantData) { in refreshParticipant() 441 final ParticipantData participantData) { in refreshFromSelfProfile() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 35 import com.android.messaging.datamodel.data.ParticipantData; 68 Assert.isFalse(subId == ParticipantData.DEFAULT_SELF_SUB_ID); in insertNewMessage() 94 this(message, ParticipantData.DEFAULT_SELF_SUB_ID); in InsertNewMessageAction() 134 final ParticipantData self = getSelf(db, conversationId, message); in executeAction() 195 private ParticipantData getSelf( in getSelf() 197 ParticipantData self; in getSelf() 202 KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in getSelf() 203 if (requestedSubId != ParticipantData.DEFAULT_SELF_SUB_ID) { in getSelf() 225 final ParticipantData unboundSelf = BugleDatabaseOperations.getExistingParticipant( in getSelf() 227 if (unboundSelf.getSubId() == ParticipantData.DEFAULT_SELF_SUB_ID in getSelf() [all …]
|
D | ReceiveMmsMessageAction.java | 33 import com.android.messaging.datamodel.data.ParticipantData; 63 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in executeAction() 69 final ParticipantData self = BugleDatabaseOperations.getOrCreateSelf(db, subId); in executeAction() 85 from = ParticipantData.getUnknownSenderDestination(); in executeAction() 87 final ParticipantData rawSender = ParticipantData.getFromRawPhoneBySimLocale( in executeAction() 123 final ParticipantData sender = ParticipantData .getFromId( in executeAction() 163 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in doBackgroundWork()
|
D | SyncMessageBatch.java | 34 import com.android.messaging.datamodel.data.ParticipantData; 139 sms.mAddress = ParticipantData.getUnknownSenderDestination(); in storeSms() 158 final ParticipantData self = ParticipantData.getSelfParticipant(sms.getSubId()); in storeSms() 161 final ParticipantData sender = isOutgoing ? in storeSms() 163 ParticipantData.getFromRawPhoneBySimLocale(otherPhoneNumber, sms.getSubId()); in storeSms() 252 final ParticipantData self = ParticipantData.getSelfParticipant(mms.getSubId()); in storeMms() 255 final ParticipantData sender = isOutgoing ? in storeMms() 256 self : ParticipantData.getFromRawPhoneBySimLocale(senderId, mms.getSubId()); in storeMms() 318 ParticipantData foundSelfParticipant = in rethrowSQLiteConstraintExceptionWithDetails() 320 ParticipantData foundSenderParticipant = in rethrowSQLiteConstraintExceptionWithDetails()
|
D | ReceiveSmsMessageAction.java | 35 import com.android.messaging.datamodel.data.ParticipantData; 64 subId = ParticipantData.DEFAULT_SELF_SUB_ID; in executeAction() 70 address = ParticipantData.getUnknownSenderDestination(); in executeAction() 73 final ParticipantData rawSender = ParticipantData.getFromRawPhoneBySimLocale( in executeAction() 127 final ParticipantData self = ParticipantData.getSelfParticipant(subId); in executeAction() 151 final ParticipantData sender = ParticipantData.getFromId(db, participantId); in executeAction()
|
D | GetOrCreateConversationAction.java | 29 import com.android.messaging.datamodel.data.ParticipantData; 55 final ArrayList<ParticipantData> participants, final Object data, in getOrCreateConversation() 68 final ArrayList<ParticipantData> participants = new ArrayList<>(); in getOrCreateConversation() 72 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(recipient)); in getOrCreateConversation() 82 private GetOrCreateConversationAction(final ArrayList<ParticipantData> participants, in GetOrCreateConversationAction() 96 final ArrayList<ParticipantData> participants = in executeAction()
|
D | ProcessDownloadedMmsAction.java | 40 import com.android.messaging.datamodel.data.ParticipantData; 118 extras.getInt(DownloadMmsAction.EXTRA_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID)); in processMessageDownloaded() 211 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in doBackgroundWork() 341 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in processBackgroundResponse() 358 final ParticipantData sender = ParticipantData.getFromId( in processBackgroundResponse() 408 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in processResult() 433 final ParticipantData self = ParticipantData.getSelfParticipant(mms.getSubId()); in processResult() 442 from = ParticipantData.getUnknownSenderDestination(); in processResult() 444 final ParticipantData sender = ParticipantData.getFromRawPhoneBySimLocale(from, in processResult()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | GetOrCreateConversationActionTest.java | 37 import com.android.messaging.datamodel.data.ParticipantData; 58 final ArrayList<ParticipantData> participants = new in testGetOrCreateConversation() 59 ArrayList<ParticipantData>(); in testGetOrCreateConversation() 63 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(recipient)); in testGetOrCreateConversation() 111 final ArrayList<ParticipantData> conversationParticipants = in testGetOrCreateConversation() 116 for(final ParticipantData participant : conversationParticipants) { in testGetOrCreateConversation() 123 ParticipantData.ParticipantsQuery.PROJECTION, null, null, null); in testGetOrCreateConversation() 127 final ParticipantData participant = ParticipantData.getFromCursor(cursor); in testGetOrCreateConversation()
|
D | ReadWriteDraftMessageActionTest.java | 43 import com.android.messaging.datamodel.data.ParticipantData; 103 ParticipantData.getSelfParticipant(ParticipantData.DEFAULT_SELF_SUB_ID)); in getOrCreateSelfId() 111 final ArrayList<ParticipantData> participants = in getOrCreateConversation() 112 new ArrayList<ParticipantData>(); in getOrCreateConversation() 113 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(participantNumber)); in getOrCreateConversation() 187 final ArrayList<ParticipantData> participants = in testReadDraftForNewConversation() 188 new ArrayList<ParticipantData>(); in testReadDraftForNewConversation() 189 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(Long.toString(phoneNumber))); in testReadDraftForNewConversation()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | PhoneUtils.java | 39 import com.android.messaging.datamodel.data.ParticipantData; 263 super(ParticipantData.DEFAULT_SELF_SUB_ID); in PhoneUtilsPreLMR1() 321 ParticipantData.DEFAULT_SELF_SUB_ID); in getSelfRawNumber() 331 Assert.equals(ParticipantData.DEFAULT_SELF_SUB_ID, subId); in getEffectiveSubId() 332 return ParticipantData.DEFAULT_SELF_SUB_ID; in getEffectiveSubId() 343 return ParticipantData.DEFAULT_SELF_SUB_ID; in getDefaultSmsSubscriptionId() 360 return ParticipantData.DEFAULT_SELF_SUB_ID; in getEffectiveIncomingSubIdFromSystem() 366 return ParticipantData.DEFAULT_SELF_SUB_ID; in getSubIdFromTelephony() 533 if (subId == ParticipantData.DEFAULT_SELF_SUB_ID) { in getEffectiveSubId() 555 return ParticipantData.DEFAULT_SELF_SUB_ID; in getDefaultSmsSubscriptionId() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | ParticipantRefreshTest.java | 31 import com.android.messaging.datamodel.data.ParticipantData; 32 import com.android.messaging.datamodel.data.ParticipantData.ParticipantsQuery; 147 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED, in testIncrementalRefreshNotResolvedSingleMatch() 161 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED, in testIncrementalRefreshNotResolvedMultiMatch() 202 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testIncrementalRefreshNotFound() 209 verifyParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testIncrementalRefreshNotFound() 217 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testFullRefreshNotFound() 277 verifyParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testFullRefreshResolvedBeforeButNotFoundNow()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
D | PeopleAndOptionsFragment.java | 42 import com.android.messaging.datamodel.data.ParticipantData; 125 final List<ParticipantData> participants) { in onParticipantsListLoaded() 128 final ParticipantData otherParticipant = participants.size() == 1 ? in onParticipantsListLoaded() 189 private ParticipantData mOtherParticipantData; 200 public void setOtherParticipant(final ParticipantData participantData) { in setOtherParticipant() 248 private class PeopleListAdapter extends ArrayAdapter<ParticipantData> { 250 super(context, R.layout.people_list_item_view, new ArrayList<ParticipantData>()); in PeopleListAdapter() 253 public void updateParticipants(final List<ParticipantData> newList) { in updateParticipants() 262 final ParticipantData item = getItem(position); in getView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | MessageDetailsDialog.java | 32 import com.android.messaging.datamodel.data.ParticipantData; 54 final ConversationParticipantsData participants, final ParticipantData self) { in show() 75 final ConversationParticipantsData participants, final ParticipantData self) { in getMessageDetails() 103 final ConversationParticipantsData participants, final ParticipantData self) { in getSmsMessageDetails() 156 final ConversationParticipantsData participants, final ParticipantData self) { in getMmsMessageDetails() 315 for (final ParticipantData participant : participants) { in getRecipientParticipantString() 358 final ParticipantData self, final StringBuilder outString) { in appendSimInfo()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientAutoCompleteView.java | 36 import com.android.messaging.datamodel.data.ParticipantData; 247 public ArrayList<ParticipantData> getRecipientParticipantDataForConversationCreation() { in getRecipientParticipantDataForConversationCreation() 250 final ArrayList<ParticipantData> contacts = in getRecipientParticipantDataForConversationCreation() 251 new ArrayList<ParticipantData>(recips.length); in getRecipientParticipantDataForConversationCreation() 256 contacts.add(ParticipantData.getFromRecipientEntry(recipient.getEntry())); in getRecipientParticipantDataForConversationCreation()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsConfig.java | 24 import com.android.messaging.datamodel.data.ParticipantData; 102 new MmsConfig(ParticipantData.DEFAULT_SELF_SUB_ID, new Bundle()); 164 final Bundle values = loader.get(ParticipantData.DEFAULT_SELF_SUB_ID); in load() 165 addMmsConfig(new MmsConfig(ParticipantData.DEFAULT_SELF_SUB_ID, values)); in load() 171 (mmsConfig.mSubId == ParticipantData.DEFAULT_SELF_SUB_ID)); in addMmsConfig()
|
/packages/apps/Messaging/src/com/android/messaging/ |
D | FactoryImpl.java | 28 import com.android.messaging.datamodel.data.ParticipantData; 201 if (subId == ParticipantData.DEFAULT_SELF_SUB_ID) { in getPhoneUtils() 206 subId = ParticipantData.DEFAULT_SELF_SUB_ID; in getPhoneUtils() 215 Assert.isTrue(subId == ParticipantData.DEFAULT_SELF_SUB_ID); in getPhoneUtils()
|