/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsCbHeader.java | 135 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { in SmsCbHeader() argument 136 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { in SmsCbHeader() 140 if (pdu.length <= PDU_LENGTH_GSM) { in SmsCbHeader() 145 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; in SmsCbHeader() 146 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[1] & 0xff); in SmsCbHeader() 147 mMessageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff); in SmsCbHeader() 148 if (isEtwsMessage() && pdu.length <= PDU_LENGTH_ETWS) { in SmsCbHeader() 153 boolean emergencyUserAlert = (pdu[4] & 0x1) != 0; in SmsCbHeader() 154 boolean activatePopup = (pdu[5] & 0x80) != 0; in SmsCbHeader() 155 int warningType = (pdu[4] & 0xfe) >>> 1; in SmsCbHeader() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmSmsTest.java | 32 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E"; in testAddressing() local 33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 38 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA" in testAddressing() 40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 45 pdu = "07914151551512F20409E1BADCBE5AF100006060605130308A04D4F29C0E"; in testAddressing() 46 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 52 String pdu = "0891683108200505F011000D91683196032930F000000006C8329BFD0E01"; in testRecipientAddress() local 53 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress() 69 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" in testUdh() local 75 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh() [all …]
|
D | WapPushOverSmsTest.java | 76 byte[] pdu = new byte[]{ in testDispatchWapPdu() 87 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, "123456", 0, messageId); in testDispatchWapPdu() 111 assertEquals(pdu.length, data.length); in testDispatchWapPdu() 112 for (int i = 0; i < pdu.length; i++) { in testDispatchWapPdu() 113 assertEquals(pdu[i], data[i]); in testDispatchWapPdu() 132 byte pdu[] = {1, 6, 0, 97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, in testDispatchWapPduFromBlockedNumber_noIntentsDispatched() 143 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, null, 0, 0L)); in testDispatchWapPduFromBlockedNumber_noIntentsDispatched()
|
D | ImsSmsDispatcherTest.java | 98 byte[] pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testSendSms() 100 mTrackerData.put("pdu", pdu); in testSendSms() 110 nullable(String.class), eq(false), eq(pdu)); in testSendSms() 161 byte[] pdu = byteCaptor.getValue(); in testErrorImsRetry() 163 assertNotNull(pdu); in testErrorImsRetry() 164 assertEquals(0x04, (pdu[0] & 0x04)); in testErrorImsRetry() 177 byte[] pdu = HexDump.hexStringToByteArray("0006000681214365919061800000639190618000006300"); in testReceiveGsmSmsStatusReport() 180 pdu[2] = (byte) messageRef; in testReceiveGsmSmsStatusReport() 187 .onSmsStatusReportReceived(statusReportToken, SmsMessage.FORMAT_3GPP, pdu); in testReceiveGsmSmsStatusReport()
|
D | SimSmsTest.java | 49 byte[] pdu = null; in testBasic() 54 pdu = data.getBytes(); in testBasic() 65 assertNotNull(pdu); in testBasic()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | WapPushOverSms.java | 22 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 51 import com.google.android.mms.pdu.GenericPdu; 52 import com.google.android.mms.pdu.NotificationInd; 53 import com.google.android.mms.pdu.PduParser; 157 private DecodedResult decodeWapPdu(byte[] pdu, InboundSmsHandler handler) { in decodeWapPdu() argument 159 if (DBG) Rlog.d(TAG, "Rx: " + IccUtils.bytesToHexString(pdu)); in decodeWapPdu() 163 int transactionId = pdu[index++] & 0xFF; in decodeWapPdu() 164 int pduType = pdu[index++] & 0xFF; in decodeWapPdu() 174 transactionId = pdu[index++] & 0xff; in decodeWapPdu() 175 pduType = pdu[index++] & 0xff; in decodeWapPdu() [all …]
|
D | SmsDispatchersController.java | 387 public void injectSmsPdu(byte[] pdu, String format, boolean isOverIms, in injectSmsPdu() argument 392 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu() 494 SmsMessageBase.SubmitPduBase pdu = null; in sendRetrySms() local 502 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 505 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 515 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 519 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 525 if (pdu == null) { in sendRetrySms() 533 map.put("smsc", pdu.encodedScAddress); in sendRetrySms() 534 map.put("pdu", pdu.encodedMessage); in sendRetrySms() [all …]
|
D | ImsSmsDispatcher.java | 195 public void onSmsStatusReportReceived(int token, String format, byte[] pdu) 201 android.telephony.SmsMessage.createFromPdu(pdu, format); 206 mSmsDispatchersController.handleSmsStatusReport(format, pdu); 221 public void onSmsReceived(int token, String format, byte[] pdu) { 226 android.telephony.SmsMessage.createFromPdu(pdu, format); 414 byte[] pdu = (byte[]) map.get(MAP_KEY_PDU); in sendSms() 423 if (((0x01 & pdu[0]) == 0x01)) { in sendSms() 424 pdu[0] |= 0x04; // TP-RD in sendSms() 425 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms() 438 pdu); in sendSms()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 162 byte[] pdu) { in sendSms() argument 220 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() argument 227 mListener.onSmsReceived(token, format, pdu); in onSmsReceived() 230 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsReceived() 359 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument 365 mListener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived() 388 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument 394 mListener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived() 397 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsStatusReportReceived()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 142 byte[] pdu = (byte[]) ar.result; in handleStatusReport() 143 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP, pdu); in handleStatusReport() 174 byte pdu[] = (byte[]) map.get("pdu"); in sendSms() 180 if (((0x01 & pdu[0]) == 0x01)) { in sendSms() 181 pdu[0] |= 0x04; // TP-RD in sendSms() 182 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms() 196 IccUtils.bytesToHexString(pdu), reply); in sendSms() 199 IccUtils.bytesToHexString(pdu), reply); in sendSms() 203 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSms()
|
D | UsimDataDownloadHandler.java | 128 byte[] pdu = smsMessage.getPdu(); // includes SC address in handleDataDownload() 130 int scAddressLength = pdu[0] & 0xff; in handleDataDownload() 132 int tpduLength = pdu.length - tpduIndex; in handleDataDownload() 160 System.arraycopy(pdu, 1, envelope, index, scAddressLength); in handleDataDownload() 170 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength); in handleDataDownload()
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
D | DataVerify.java | 68 public synchronized boolean verifyData(byte[] pdu) { in verifyData() argument 83 boolean ret = arrayCompare(pdu, mLastReceivedPdu); in verifyData() 107 public static void SetLastReceivedPdu(byte[] pdu) { in SetLastReceivedPdu() argument 108 mLastReceivedPdu = pdu; in SetLastReceivedPdu()
|
D | WapPushTest.java | 1523 byte[] pdu = createPDU(1); in testProcessMsg1() 1524 int headerLen = pdu.length - in testProcessMsg1() 1564 byte[] pdu = createPDU(1); in testProcessMsg2() 1565 int headerLen = pdu.length - (mGsmHeader.length + in testProcessMsg2() 1606 byte[] pdu = createPDU(1); in testProcessMsg3() 1607 int headerLen = pdu.length - in testProcessMsg3() 1676 byte[] pdu = createPDU(1); in testProcessMsg4() 1677 int headerLen = pdu.length - in testProcessMsg4() 1736 pdu = createPDU(1); in testProcessMsg4() 1765 byte[] pdu = createPDU(2); in testProcessMsg5() [all …]
|
D | ClientTest.java | 118 EditText pdu = findViewById(R.id.pdu); in onCreate() 129 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate() 131 HexDump.hexStringToByteArray(pdu.getText().toString())); in onCreate()
|
/frameworks/base/telephony/common/com/google/android/mms/util/ |
D | PduCacheEntry.java | 22 import com.google.android.mms.pdu.GenericPdu; 30 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument 31 mPdu = pdu; in PduCacheEntry()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaInboundSmsHandler.java | 341 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, String dispAddr, in processCdmaWapPdu() argument 345 int msgType = (0xFF & pdu[index++]); in processCdmaWapPdu() 350 int totalSegments = (0xFF & pdu[index++]); // >= 1 in processCdmaWapPdu() 351 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu() 363 sourcePort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 364 sourcePort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 365 destinationPort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 366 destinationPort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 370 if (checkDuplicatePortOmadmWapPush(pdu, index)) { in processCdmaWapPdu() 382 byte[] userData = new byte[pdu.length - index]; in processCdmaWapPdu() [all …]
|
D | CdmaSMSDispatcher.java | 68 byte[] pdu = ((SmsMessage) o).getPdu(); in handleStatusReport() 69 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP2, pdu); in handleStatusReport() 122 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSms() 143 mCi.sendCdmaSMSExpectMore(pdu, reply); in sendSms() 145 mCi.sendCdmaSms(pdu, reply); in sendSms() 148 mCi.sendImsCdmaSms(pdu, tracker.mImsRetry, tracker.mMessageRef, reply); in sendSms()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 134 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 138 msg.parsePdu(pdu); in createFromPdu() 182 byte[] pdu = new byte[size]; in createFromEfRecord() 183 System.arraycopy(data, 2, pdu, 0, size); in createFromEfRecord() 186 msg.parsePduFromEfRecord(pdu); in createFromEfRecord() 198 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument 458 private void parsePdu(byte[] pdu) { in parsePdu() argument 459 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); in parsePdu() 483 if (length > pdu.length) { in parsePdu() 486 + " > pdu len " + pdu.length); in parsePdu() [all …]
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
D | SmsManager.java | 180 public final boolean copyMessageToSim(byte[] smsc, byte[] pdu, int status) { in copyMessageToSim() argument 181 return mSmsMgrProxy.copyMessageToIcc(smsc, pdu, status); in copyMessageToSim() 210 public final boolean updateMessageOnSim(int messageIndex, int newStatus, byte[] pdu) { in updateMessageOnSim() argument 211 return mSmsMgrProxy.updateMessageOnIcc(messageIndex, newStatus, pdu); in updateMessageOnSim()
|
D | SmsMessage.java | 151 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 156 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu() 158 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu() 170 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument 174 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU() 176 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU()
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | IImsSmsListener.aidl | 25 void onSmsStatusReportReceived(int token, in String format, in byte[] pdu); in onSmsStatusReportReceived() argument 26 void onSmsReceived(int token, in String format, in byte[] pdu); in onSmsReceived() argument
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 201 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 209 return createFromPdu(pdu, format); in createFromPdu() 224 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu() argument 225 return createFromPdu(pdu, format, true); in createFromPdu() 228 private static SmsMessage createFromPdu(byte[] pdu, String format, in createFromPdu() argument 230 if (pdu == null) { in createFromPdu() 238 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu() 240 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu() 250 return createFromPdu(pdu, otherFormat, false); in createFromPdu() 330 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument [all …]
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierMessagingService.java | 163 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, in onFilterSms() argument 191 public void onReceiveTextSms(@NonNull MessagePdu pdu, @NonNull String format, in onReceiveTextSms() argument 193 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() { in onReceiveTextSms() 502 public void filterSms(MessagePdu pdu, String format, int destPort, in filterSms() argument 504 onReceiveTextSms(pdu, format, destPort, subId, in filterSms()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipCommandInterface.java | 242 public void sendSMS (String smscPDU, String pdu, Message result) { in sendSMS() argument 246 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { in sendSMSExpectMore() argument 250 public void sendCdmaSms(byte[] pdu, Message result) { in sendCdmaSms() argument 254 public void sendCdmaSMSExpectMore(byte[] pdu, Message result) { in sendCdmaSMSExpectMore() argument 258 public void sendImsGsmSms (String smscPDU, String pdu, in sendImsGsmSms() argument 263 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, in sendImsCdmaSms() argument 280 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument 284 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCommandInterface.java | 241 public void sendSMS (String smscPDU, String pdu, Message result) { in sendSMS() argument 245 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { in sendSMSExpectMore() argument 249 public void sendCdmaSms(byte[] pdu, Message result) { in sendCdmaSms() argument 253 public void sendCdmaSMSExpectMore(byte[] pdu, Message result) { in sendCdmaSMSExpectMore() argument 257 public void sendImsGsmSms (String smscPDU, String pdu, in sendImsGsmSms() argument 262 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, in sendImsCdmaSms() argument 279 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument 283 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument
|