Home
last modified time | relevance | path

Searched refs:messages (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java400 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1a() local
401 assertEquals(1, messages.length); in testCatchClosed1a()
402 assertEquals(getSingleMessageUID(1), messages[0].getUid()); in testCatchClosed1a()
444 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1b() local
487 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed1c() local
524 Message[] messages = mFolder.getMessages(1, 1, null); in testCatchClosed2() local
525 assertEquals(1, messages.length); in testCatchClosed2()
526 assertEquals(getSingleMessageUID(1), messages[0].getUid()); in testCatchClosed2()
537 mFolder.fetch(messages, fp, null); in testCatchClosed2()
538 assertEquals(PER_MESSAGE_SIZE, messages[0].getSize()); in testCatchClosed2()
[all …]
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java181 final android.telephony.SmsMessage[] messages = getMessagesFromIntent(intent); in deliverSmsIntent() local
184 if (messages == null || messages.length < 1) { in deliverSmsIntent()
193 deliverSmsMessages(context, subId, errorCode, messages); in deliverSmsIntent()
196 DebugUtils.dumpSms(messages[0].getTimestampMillis(), messages, format); in deliverSmsIntent()
201 final int errorCode, final android.telephony.SmsMessage[] messages) { in deliverSmsMessages() argument
203 MmsUtils.parseReceivedSmsMessage(context, messages, errorCode); in deliverSmsMessages()
208 final long receivedTimestampMs = MmsUtils.getMessageDate(messages[0], nowInMillis); in deliverSmsMessages()
219 if (messages[0].getMessageClass() == android.telephony.SmsMessage.MessageClass.CLASS_0 || in deliverSmsMessages()
337 final android.telephony.SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(intent); in getMessagesFromIntent() local
340 if (messages == null || messages.length < 1) { in getMessagesFromIntent()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/voicemail/
DVoicemailStatusHelperImplTest.java176 List<StatusMessage> messages = getStatusMessages(); in testMessageOrdering() local
177 assertEquals(2, messages.size()); in testMessageOrdering()
178 assertEquals(TEST_PACKAGES[0], messages.get(1).sourcePackage); in testMessageOrdering()
179 assertEquals(TEST_PACKAGES[1], messages.get(0).sourcePackage); in testMessageOrdering()
184 messages = getStatusMessages(); in testMessageOrdering()
185 assertEquals(2, messages.size()); in testMessageOrdering()
186 assertEquals(TEST_PACKAGES[0], messages.get(0).sourcePackage); in testMessageOrdering()
187 assertEquals(TEST_PACKAGES[1], messages.get(1).sourcePackage); in testMessageOrdering()
194 List<StatusMessage> messages = getStatusMessages(); in checkExpectedMessage() local
195 assertEquals(1, messages.size()); in checkExpectedMessage()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/example/messagereader/
Dmessagereader.cpp66 void ParseMessages(const char* json, MessageMap& messages) { in ParseMessages() argument
71 messages.swap(handler.messages_); // Only change it if success. in ParseMessages()
81 MessageMap messages; in main() local
85 ParseMessages(json1, messages); in main()
87 for (MessageMap::const_iterator itr = messages.begin(); itr != messages.end(); ++itr) in main()
93 ParseMessages(json2, messages); in main()
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java171 List<String> messages = sms.divideMessage(messageOut); in sendSmsMessageInternal() local
176 for (String message : messages) { in sendSmsMessageInternal()
181 return messages; in sendSmsMessageInternal()
212 List<String> messages = sendSmsMessageInternal(message); in sendMessageTest() local
213 Log.i(TAG, "sendMessageTest -- message broken into " + messages.size() + "parts"); in sendMessageTest()
215 boolean receivedSms = waitForSms(messages.size()); in sendMessageTest()
220 assertEquals(messages.size(), mReceivedMessages.size()); in sendMessageTest()
222 for (String messageFrag : messages) { in sendMessageTest()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsSender.java215 final ArrayList<String> messages = smsManager.divideMessage(message); in sendMessage() local
216 if (messages == null || messages.size() < 1) { in sendMessage()
220 final SendResult pendingResult = new SendResult(messages.size()); in sendMessage()
224 context, subId, dest, messages, serviceCenter, requireDeliveryReport, messageUri); in sendMessage()
255 final ArrayList<String> messages, final String serviceCenter, in sendInternal() argument
259 final int messageCount = messages.size(); in sendInternal()
294 messages.get(i), in sendInternal()
300 dest, serviceCenter, messages, sentIntents, deliveryIntents); in sendInternal()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sms/
DOmtpMessageReceiver.java72 SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); in onReceive() local
74 if (messages == null) { in onReceive()
81 for (int i = 0; i < messages.length; i++) { in onReceive()
82 if (messages[i].mWrappedSmsMessage != null) { in onReceive()
83 messageBody.append(messages[i].getMessageBody()); in onReceive()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java264 public void copyMessages(Message[] messages, Folder folder, in copyMessages() argument
270 ImapStore.joinMessageUids(messages), in copyMessages()
275 for (Message m : messages) { in copyMessages()
323 for (Message m : messages) { in copyMessages()
595 final ArrayList<Message> messages = new ArrayList<Message>(uids.length); in getMessagesInternal() local
599 messages.add(message); in getMessagesInternal()
604 return messages.toArray(Message.EMPTY_ARRAY); in getMessagesInternal()
608 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch() argument
611 fetchInternal(messages, fp, listener); in fetch()
621 public void fetchInternal(Message[] messages, FetchProfile fp, in fetchInternal() argument
[all …]
DPop3Store.java361 ArrayList<Message> messages = new ArrayList<Message>(); in getMessages() local
362 for (int msgNum = end; msgNum > 0 && (messages.size() < limit); msgNum--) { in getMessages()
365 messages.add(message); in getMessages()
368 return messages.toArray(new Pop3Message[messages.size()]); in getMessages()
541 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch() argument
647 public void setFlags(Message[] messages, Flag[] flags, boolean value) in setFlags() argument
656 for (Message message : messages) { in setFlags()
/packages/services/Telephony/src/com/android/phone/common/mail/store/
DImapFolder.java249 final ArrayList<Message> messages = new ArrayList<Message>(uids.length); in getMessagesInternal() local
253 messages.add(message); in getMessagesInternal()
255 return messages.toArray(Message.EMPTY_ARRAY); in getMessagesInternal()
258 public void fetch(Message[] messages, FetchProfile fp, in fetch() argument
261 fetchInternal(messages, fp, listener); in fetch()
268 public void fetchInternal(Message[] messages, FetchProfile fp, in fetchInternal() argument
270 if (messages.length == 0) { in fetchInternal()
275 for (Message m : messages) { in fetchInternal()
327 ImapConstants.UID_FETCH + " %s (%s)", ImapStore.joinMessageUids(messages), in fetchInternal()
677 public void setFlags(Message[] messages, String[] flags, boolean value) in setFlags() argument
[all …]
DImapStore.java88 static String joinMessageUids(Message[] messages) { in joinMessageUids() argument
91 for (Message m : messages) { in joinMessageUids()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java239 public static void dumpSms(final long id, final android.telephony.SmsMessage[] messages,
253 dos.writeInt(messages.length);
254 for (final android.telephony.SmsMessage message : messages) {
274 SmsMessage[] messages = null;
296 messages = messagesTemp;
313 return messages;
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
DImapHelper.java192 Message[] messages; in fetchAllVoicemails() local
201 messages = mFolder.getMessages(null); in fetchAllVoicemails()
203 for (Message message : messages) { in fetchAllVoicemails()
572 Message[] messages = new Message[voicemails.size()]; in convertToImapMessages() local
574 messages[i] = new MimeMessage(); in convertToImapMessages()
575 messages[i].setUid(voicemails.get(i).getSourceData()); in convertToImapMessages()
577 return messages; in convertToImapMessages()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushProtocol.java51 public NdefPushProtocol(byte[] actions, NdefMessage[] messages) { in NdefPushProtocol() argument
52 if (actions.length != messages.length || actions.length == 0) { in NdefPushProtocol()
62 System.arraycopy(messages, 0, mMessages, 0, numMessages); in NdefPushProtocol()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java775 String messages[] = data.split("\r\nEND:MSG\r\n"); in parseBody() local
777 for(int i = 0; i < messages.length; i++) { in parseBody()
778 messages[i] = messages[i].replaceFirst("^BEGIN:MSG\r\n", ""); in parseBody()
779 messages[i] = messages[i].replaceAll("\r\n([/]*)/END\\:MSG", "\r\n$1END:MSG"); in parseBody()
780 messages[i] = messages[i].trim(); in parseBody()
781 parseMsgPart(messages[i]); in parseBody()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java319 ArrayList<SmsMessage> messages; in getSingleMessageFromIcc() local
324 messages = smsManager.getAllMessagesFromIcc(); in getSingleMessageFromIcc()
328 if (messages == null) { in getSingleMessageFromIcc()
331 final SmsMessage message = messages.get(messageIndex); in getSingleMessageFromIcc()
346 ArrayList<SmsMessage> messages; in getAllMessagesFromIcc() local
351 messages = smsManager.getAllMessagesFromIcc(); in getAllMessagesFromIcc()
356 final int count = messages.size(); in getAllMessagesFromIcc()
359 SmsMessage message = messages.get(i); in getAllMessagesFromIcc()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugSmsMmsFromDumpFileDialogFragment.java132 final SmsMessage[] messages = DebugUtils.retreiveSmsFromDumpFile(dumpFileName); in receiveFromDumpFile() local
133 if (messages != null) { in receiveFromDumpFile()
135 0, messages); in receiveFromDumpFile() local
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMockFolder.java64 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) { in fetch() argument
117 public void setFlags(Message[] messages, Flag[] flags, boolean value) { in setFlags() argument
/packages/apps/Dialer/src/com/android/dialer/voicemail/
DVoicemailStatusHelperImpl.java157 List<MessageStatusWithPriority> messages = in getStatusMessages() local
163 messages.add(message); in getStatusMessages()
167 return reorderMessages(messages); in getStatusMessages()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFolder.java158 public abstract void setFlags(Message[] messages, Flag[] flags, boolean value) in setFlags() argument
163 public abstract void fetch(Message[] messages, FetchProfile fp, in fetch() argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageNotificationState.java674 final List<CharSequence> messages = Lists.newArrayList(); in buildConversationPageForWearable() local
745 messages.add(message); in buildConversationPageForWearable()
757 if (!hasSeenMessagesBeforeNotification && messages.size() <= maxMessagesInNotification) { in buildConversationPageForWearable()
766 if (messages.size() > MAX_MESSAGES_IN_WEARABLE_PAGE) { in buildConversationPageForWearable()
767 messages.remove(messages.size() - 1); in buildConversationPageForWearable()
772 for (int i = messages.size() - 1; i >= 0; --i) { in buildConversationPageForWearable()
773 bigText.append(messages.get(i)); in buildConversationPageForWearable()
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java255 Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox) in loadUnsyncedMessages() argument
260 remoteFolder.fetch(messages.toArray(new Message[messages.size()]), fp, null); in loadUnsyncedMessages()
262 for (Message message : messages) { in loadUnsyncedMessages()
1127 Message[] messages = new Message[] { remoteMessage }; in processPendingDataChange() local
1129 remoteFolder.setFlags(messages, FLAG_LIST_SEEN, newMessage.mFlagRead); in processPendingDataChange()
1132 remoteFolder.setFlags(messages, FLAG_LIST_FLAGGED, newMessage.mFlagFavorite); in processPendingDataChange()
1135 remoteFolder.setFlags(messages, FLAG_LIST_ANSWERED, in processPendingDataChange()
1146 remoteFolder.copyMessages(messages, toFolder, new MessageUpdateCallbacks() { in processPendingDataChange()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dsax.md345 void ParseMessages(const char* json, MessageMap& messages) {
350 messages.swap(handler.messages_); // Only change it if success.
360 MessageMap messages;
364 ParseMessages(json1, messages);
366 for (MessageMap::const_iterator itr = messages.begin(); itr != messages.end(); ++itr)
372 ParseMessages(json2, messages);
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DOmtpVvmSyncService.java447 private Map<String, Voicemail> buildMap(List<Voicemail> messages) { in buildMap() argument
449 for (Voicemail message : messages) { in buildMap()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java177 NdefRecord[] messages = new NdefRecord[] { in createHandoverRequestRecord() local
181 NdefMessage nestedMessage = new NdefMessage(createCollisionRecord(), messages); in createHandoverRequestRecord()

12