/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | SelfParticipantsData.java | 39 private final ArrayMap<String, ParticipantData> mSelfParticipantMap; 42 mSelfParticipantMap = new ArrayMap<String, ParticipantData>(); in SelfParticipantsData() 49 final ParticipantData newParticipant = ParticipantData.getFromCursor(cursor); in bind() 59 public List<ParticipantData> getSelfParticipants(final boolean activeOnly) { in getSelfParticipants() 60 List<ParticipantData> list = new ArrayList<ParticipantData>(); in getSelfParticipants() 61 for (final ParticipantData self : mSelfParticipantMap.values()) { in getSelfParticipants() 70 int slotId1 = ((ParticipantData) o1).getSlotId(); in getSelfParticipants() 71 int slotId2 = ((ParticipantData) o2).getSlotId(); in getSelfParticipants() 81 ParticipantData getSelfParticipantById(final String selfId) { in getSelfParticipantById() 92 final ParticipantData self = getSelfParticipantById(selfId); in isDefaultSelf() [all …]
|
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 | ParticipantData.java | 45 public class ParticipantData implements Parcelable { class 126 private ParticipantData() { in ParticipantData() method in ParticipantData 129 public static ParticipantData getFromCursor(final Cursor cursor) { in getFromCursor() 130 final ParticipantData pd = new ParticipantData(); in getFromCursor() 152 public static ParticipantData getFromId(final DatabaseWrapper dbWrapper, in getFromId() 162 return ParticipantData.getFromCursor(cursor); in getFromId() 173 public static ParticipantData getFromRecipientEntry(final RecipientEntry recipientEntry) { in getFromRecipientEntry() 174 final ParticipantData pd = new ParticipantData(); in getFromRecipientEntry() 206 private static ParticipantData getFromRawPhone(final String phoneNumber) { in getFromRawPhone() 208 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 | 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()
|
/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 …]
|
D | DatabaseHelper.java | 30 import com.android.messaging.datamodel.data.ParticipantData; 182 + ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED + "), " 449 + ParticipantData.OTHER_THAN_SELF_SUB_ID + ")," 451 + ParticipantData.INVALID_SLOT_ID + ")," 459 + ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED + "), " 811 db.execSQL(getCreateSelfParticipantSql(ParticipantData.DEFAULT_SELF_SUB_ID)); in createDatabase()
|
/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() 133 final ParticipantData self = getSelf(db, conversationId, message); in executeAction() 196 private ParticipantData getSelf( in getSelf() 198 ParticipantData self; in getSelf() 203 KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in getSelf() 204 if (requestedSubId != ParticipantData.DEFAULT_SELF_SUB_ID) { in getSelf() 226 final ParticipantData unboundSelf = BugleDatabaseOperations.getExistingParticipant( in getSelf() 228 if (unboundSelf.getSubId() == ParticipantData.DEFAULT_SELF_SUB_ID in getSelf() [all …]
|
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 | 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 | ReceiveSmsMessageAction.java | 35 import com.android.messaging.datamodel.data.ParticipantData; 65 subId = ParticipantData.DEFAULT_SELF_SUB_ID; in executeAction() 71 address = ParticipantData.getUnknownSenderDestination(); in executeAction() 74 final ParticipantData rawSender = ParticipantData.getFromRawPhoneBySimLocale( in executeAction() 128 final ParticipantData self = ParticipantData.getSelfParticipant(subId); in executeAction() 152 final ParticipantData sender = ParticipantData.getFromId(db, participantId); in executeAction()
|
D | ProcessDownloadedMmsAction.java | 40 import com.android.messaging.datamodel.data.ParticipantData; 119 extras.getInt(DownloadMmsAction.EXTRA_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID)); in processMessageDownloaded() 213 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in doBackgroundWork() 346 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in processBackgroundResponse() 365 final ParticipantData sender = ParticipantData.getFromId( in processBackgroundResponse() 419 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in processResult() 444 final ParticipantData self = ParticipantData.getSelfParticipant(mms.getSubId()); in processResult() 453 from = ParticipantData.getUnknownSenderDestination(); in processResult() 455 final ParticipantData sender = ParticipantData.getFromRawPhoneBySimLocale(from, in processResult()
|
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 | ProcessPendingMessagesAction.java | 34 import com.android.messaging.datamodel.data.ParticipantData; 80 .getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in scheduleProcessPendingMessagesAction() 222 final String selfId = ParticipantData.getParticipantId(db, subId); in getHavePendingMessages() 254 .getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in queueActions() 258 final String selfId = ParticipantData.getParticipantId(db, subId); in queueActions() 299 final int subId = actionParameters.getInt(KEY_SUB_ID, ParticipantData.DEFAULT_SELF_SUB_ID); in executeAction() 368 final ParticipantData messageSelf = BugleDatabaseOperations in findNextMessageToSend() 371 final ParticipantData defaultSelf = BugleDatabaseOperations in findNextMessageToSend()
|
/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/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() 109 final ArrayList<ParticipantData> conversationParticipants = in testGetOrCreateConversation() 114 for(final ParticipantData participant : conversationParticipants) { in testGetOrCreateConversation() 121 ParticipantData.ParticipantsQuery.PROJECTION, null, null, null); in testGetOrCreateConversation() 125 final ParticipantData participant = ParticipantData.getFromCursor(cursor); in testGetOrCreateConversation()
|
D | ReadWriteDraftMessageActionTest.java | 42 import com.android.messaging.datamodel.data.ParticipantData; 102 ParticipantData.getSelfParticipant(ParticipantData.DEFAULT_SELF_SUB_ID)); in getOrCreateSelfId() 110 final ArrayList<ParticipantData> participants = in getOrCreateConversation() 111 new ArrayList<ParticipantData>(); in getOrCreateConversation() 112 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(participantNumber)); in getOrCreateConversation() 186 final ArrayList<ParticipantData> participants = in testReadDraftForNewConversation() 187 new ArrayList<ParticipantData>(); in testReadDraftForNewConversation() 188 participants.add(ParticipantData.getFromRawPhoneBySystemLocale(Long.toString(phoneNumber))); in testReadDraftForNewConversation()
|
/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/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; 152 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED, in testIncrementalRefreshNotResolvedSingleMatch() 166 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_RESOLVED, in testIncrementalRefreshNotResolvedMultiMatch() 207 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testIncrementalRefreshNotFound() 221 addParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testFullRefreshNotFound() 281 verifyParticipant("650-123-1233", ParticipantData.PARTICIPANT_CONTACT_ID_NOT_FOUND, in testFullRefreshResolvedBeforeButNotFoundNow()
|
/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; 255 public ArrayList<ParticipantData> getRecipientParticipantDataForConversationCreation() { in getRecipientParticipantDataForConversationCreation() 258 final ArrayList<ParticipantData> contacts = in getRecipientParticipantDataForConversationCreation() 259 new ArrayList<ParticipantData>(recips.length); in getRecipientParticipantDataForConversationCreation() 264 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; 104 new MmsConfig(ParticipantData.DEFAULT_SELF_SUB_ID, new Bundle()); 166 final Bundle values = loader.get(ParticipantData.DEFAULT_SELF_SUB_ID); in load() 167 addMmsConfig(new MmsConfig(ParticipantData.DEFAULT_SELF_SUB_ID, values)); in load() 173 (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()
|