/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPduTest.java | 26 import android.telephony.SmsMessage; 73 int[] ted = SmsMessage.calculateLength((CharSequence) TEST_TEXT, false); in setUp() 77 SmsMessage.getSubmitPdu(null, TEST_DESTINATION_ADDRESS, TEST_TEXT, false) in setUp() 219 new SmsPdu(TEST_DATA, SmsMessage.ENCODING_7BIT, BluetoothMapSmsPdu.SMS_TYPE_GSM, 0); in getEncodingString() 223 new SmsPdu(TEST_DATA, SmsMessage.ENCODING_7BIT, BluetoothMapSmsPdu.SMS_TYPE_GSM, 1); in getEncodingString() 227 new SmsPdu(TEST_DATA, SmsMessage.ENCODING_8BIT, BluetoothMapSmsPdu.SMS_TYPE_GSM, 0); in getEncodingString() 232 TEST_DATA, SmsMessage.ENCODING_16BIT, BluetoothMapSmsPdu.SMS_TYPE_GSM, 0); in getEncodingString() 237 TEST_DATA, SmsMessage.ENCODING_UNKNOWN, BluetoothMapSmsPdu.SMS_TYPE_GSM, 0); in getEncodingString() 242 TEST_DATA, SmsMessage.ENCODING_7BIT, BluetoothMapSmsPdu.SMS_TYPE_CDMA, 0); in getEncodingString() 247 TEST_DATA, SmsMessage.ENCODING_8BIT, BluetoothMapSmsPdu.SMS_TYPE_CDMA, 0); in getEncodingString() [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | SmsCbHeader.java | 25 import android.telephony.SmsMessage; 529 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme() 536 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme() 538 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme() 548 case 0x01, 0x02, 0x03 -> encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme() 549 default -> encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme() 554 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme() 561 encoding = SmsMessage.ENCODING_8BIT; in DataCodingScheme() 565 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme() 570 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme() [all …]
|
D | GsmSmsCbMessage.java | 37 import android.telephony.SmsMessage; 376 case SmsMessage.ENCODING_7BIT: in unpackBody() 387 case SmsMessage.ENCODING_8BIT: in unpackBody() 393 case SmsMessage.ENCODING_16BIT: in unpackBody()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPdu.java | 24 import android.telephony.SmsMessage; 486 case SmsMessage.ENCODING_7BIT: in getEncodingString() 492 case SmsMessage.ENCODING_8BIT: in getEncodingString() 494 case SmsMessage.ENCODING_16BIT: in getEncodingString() 496 case SmsMessage.ENCODING_UNKNOWN: in getEncodingString() 502 case SmsMessage.ENCODING_7BIT: in getEncodingString() 504 case SmsMessage.ENCODING_8BIT: in getEncodingString() 506 case SmsMessage.ENCODING_16BIT: in getEncodingString() 508 case SmsMessage.ENCODING_KSC5601: in getEncodingString() 510 case SmsMessage.ENCODING_UNKNOWN: in getEncodingString() [all …]
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 31 import com.android.internal.telephony.cdma.SmsMessage; 210 private static SmsMessage convertHalCdmaSmsMessage( in convertHalCdmaSmsMessage() 250 data[index] = SmsMessage.convertDtmfToAscii(data[index]); in convertHalCdmaSmsMessage() 298 SmsMessage msg = new SmsMessage(addr, env); in convertHalCdmaSmsMessage() 310 private static SmsMessage createMessageFromParcel(CdmaSmsMessage msg, byte[] bearerData) { in createMessageFromParcel() 314 SmsMessage message = convertHalCdmaSmsMessage(msg); in createMessageFromParcel() 334 private static SmsMessage createCmasSmsMessage(int serviceCategory, int messageId, int priority, in createCmasSmsMessage() 383 private static SmsMessage createBroadcastSmsMessage(int serviceCategory, int messageId, in createBroadcastSmsMessage() 549 SmsMessage msg = createBroadcastSmsMessage(123, 456, BearerData.PRIORITY_NORMAL, in doTestNonEmergencyBroadcast() 583 SmsMessage msg = createCmasSmsMessage( in doTestCmasBroadcast() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | DebugUtils.java | 29 import android.telephony.SmsMessage; 249 public static void dumpSms(final long id, final android.telephony.SmsMessage[] messages, 264 for (final android.telephony.SmsMessage message : messages) { 283 public static SmsMessage[] retreiveSmsFromDumpFile(final String dumpFileName) { 284 SmsMessage[] messages = null; 300 final SmsMessage[] messagesTemp = new SmsMessage[count]; 307 ? SmsMessage.createFromPdu(pdu, format) 308 : SmsMessage.createFromPdu(pdu);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MessageTextStats.java | 19 import android.telephony.SmsMessage; 45 final int[] params = SmsMessage.calculateLength(messageText, false); in updateMessageTextStats() 83 < SmsMessage.MAX_USER_DATA_BYTES) { in updateMessageTextStats()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | DatabaseMessages.java | 89 public static class SmsMessage extends DatabaseMessage implements Parcelable { class in DatabaseMessages 149 private SmsMessage() { in SmsMessage() method in DatabaseMessages.SmsMessage 180 public static SmsMessage get(final Cursor cursor) { in get() 181 final SmsMessage msg = new SmsMessage(); in get() 210 private SmsMessage(final Parcel in) { in SmsMessage() method in DatabaseMessages.SmsMessage 227 public static final Parcelable.Creator<SmsMessage> CREATOR 228 = new Parcelable.Creator<SmsMessage>() { 230 public SmsMessage createFromParcel(final Parcel in) { 231 return new SmsMessage(in); 235 public SmsMessage[] newArray(final int size) { [all …]
|
D | MmsUtils.java | 38 import android.telephony.SmsMessage; 1027 final Context context, final SmsMessage[] msgs, final int error) { in parseReceivedSmsMessage() 1028 final SmsMessage sms = msgs[0]; in parseReceivedSmsMessage() 1055 private static String buildMessageBodyFromPdus(final SmsMessage[] msgs) { in buildMessageBodyFromPdus() 1062 for (final SmsMessage msg : msgs) { in buildMessageBodyFromPdus() 1075 public static Long getMessageDate(final SmsMessage sms, long now) { in getMessageDate() 1156 public static SmsMessage getSmsMessageFromDeliveryReport(final Intent intent) { in getSmsMessageFromDeliveryReport() 1160 ? SmsMessage.createFromPdu(pdu, format) in getSmsMessageFromDeliveryReport() 1161 : SmsMessage.createFromPdu(pdu); in getSmsMessageFromDeliveryReport()
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
D | SmsMessageReceiver.java | 26 import android.telephony.SmsMessage; 43 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in onReceive()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncCursorPair.java | 39 import com.android.messaging.sms.DatabaseMessages.SmsMessage; 150 final int maxMessagesToUpdate, final ArrayList<SmsMessage> smsToAdd, in scan() 450 SmsMessage.getProjection(), in RemoteCursorsIterator() 514 return SmsMessage.get(mSmsCursor); in getSmsCursorNext() 618 private void saveMessageToAdd(final List<SmsMessage> smsToAdd, in saveMessageToAdd() 627 final SmsMessage sms = (SmsMessage) message; in saveMessageToAdd()
|
D | SyncMessageBatch.java | 38 import com.android.messaging.sms.DatabaseMessages.SmsMessage; 61 private final ArrayList<SmsMessage> mSmsToAdd; 67 SyncMessageBatch(final ArrayList<SmsMessage> smsToAdd, in SyncMessageBatch() 84 for (final SmsMessage sms : mSmsToAdd) { in updateLocalDatabase() 129 private void storeSms(final DatabaseWrapper db, final SmsMessage sms) { in storeSms()
|
D | SyncMessagesAction.java | 40 import com.android.messaging.sms.DatabaseMessages.SmsMessage; 230 final ArrayList<SmsMessage> smsToAdd = new ArrayList<SmsMessage>(); in doBackgroundWork() 279 final ArrayList<SmsMessage> smsToAdd, final LongSparseArray<MmsMessage> mmsToAdd, in syncCursorPair() 396 final ArrayList<SmsMessage> smsToAdd = in processBackgroundResponse()
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | TestImsSmsImpl.java | 20 import android.telephony.SmsMessage; 46 return SmsMessage.FORMAT_3GPP; in getSmsFormat()
|
/packages/apps/Messaging/src/com/android/messaging/receiver/ |
D | SmsReceiver.java | 181 final android.telephony.SmsMessage[] messages = getMessagesFromIntent(intent); in deliverSmsIntent() 202 final int errorCode, final android.telephony.SmsMessage[] messages) { in deliverSmsMessages() 220 if (messages[0].getMessageClass() == android.telephony.SmsMessage.MessageClass.CLASS_0 || in deliverSmsMessages() 337 public static android.telephony.SmsMessage[] getMessagesFromIntent(Intent intent) { in getMessagesFromIntent() 338 final android.telephony.SmsMessage[] messages = Sms.Intents.getMessagesFromIntent(intent); in getMessagesFromIntent()
|
D | SendStatusReceiver.java | 24 import android.telephony.SmsMessage; 79 final SmsMessage smsMessage = MmsUtils.getSmsMessageFromDeliveryReport(intent); in onReceive()
|
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
D | DialogSmsDisplayTests.java | 28 import android.telephony.SmsMessage; 125 SmsMessage message = SmsMessage.createFromPdu((byte[]) pdus[i]); in setUp()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsProvider.java | 46 import android.telephony.SmsMessage; 421 private Object[] convertIccToSms(SmsMessage message, int id) { in convertIccToSms() 493 List<SmsMessage> messages; in getSingleMessageFromIcc() 506 SmsMessage message = messages.get(i); in getSingleMessageFromIcc() 529 List<SmsMessage> messages; in getAllMessagesFromIcc() 543 SmsMessage message = messages.get(i); in getAllMessagesFromIcc() 961 SmsMessage.SubmitPdu smsPdu = in insertMessageToIcc() 962 SmsMessage.getSmsPdu(subId, status, scAddress, address, message, date); in insertMessageToIcc()
|
/packages/apps/Messaging/src/com/android/messaging/ui/debug/ |
D | DebugSmsMmsFromDumpFileDialogFragment.java | 28 import android.telephony.SmsMessage; 132 final SmsMessage[] messages = DebugUtils.retreiveSmsFromDumpFile(dumpFileName); in receiveFromDumpFile()
|