/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 | 41 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E"; in testAddressing() local 42 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 47 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA" in testAddressing() 49 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 54 pdu = "07914151551512F20409E1BADCBE5AF100006060605130308A04D4F29C0E"; in testAddressing() 55 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testAddressing() 61 String pdu = "0891683108200505F011000D91683196032930F000000006C8329BFD0E01"; in testRecipientAddress() local 62 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testRecipientAddress() 78 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" in testUdh() local 84 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh() [all …]
|
D | WapPushOverSmsTest.java | 78 byte[] pdu = new byte[]{ in testDispatchWapPdu() 89 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, "123456", 0, messageId); in testDispatchWapPdu() 113 assertEquals(pdu.length, data.length); in testDispatchWapPdu() 114 for (int i = 0; i < pdu.length; i++) { in testDispatchWapPdu() 115 assertEquals(pdu[i], data[i]); in testDispatchWapPdu() 134 byte pdu[] = {1, 6, 0, 97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, in testDispatchWapPduFromBlockedNumber_noIntentsDispatched() 145 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, null, 0, 0L)); in testDispatchWapPduFromBlockedNumber_noIntentsDispatched() 167 byte[] pdu = {1, 6, 0, 97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, in testDispatchWapPdu_notificationIndInsertedToCache() 177 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler, null, 0, 0L); in testDispatchWapPdu_notificationIndInsertedToCache()
|
D | ImsSmsDispatcherTest.java | 195 byte[] pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu(null, in testSendSms() 197 mTrackerData.put("pdu", pdu); in testSendSms() 207 nullable(String.class), eq(false), eq(pdu)); in testSendSms() 267 byte[] pdu = byteCaptor.getValue(); in testErrorImsRetry() 269 assertNotNull(pdu); in testErrorImsRetry() 270 assertEquals(0x04, (pdu[0] & 0x04)); in testErrorImsRetry() 283 byte[] pdu = HexDump.hexStringToByteArray("0006000681214365919061800000639190618000006300"); in testReceiveGsmSmsStatusReport() 286 pdu[2] = (byte) messageRef; in testReceiveGsmSmsStatusReport() 293 .onSmsStatusReportReceived(statusReportToken, SmsMessage.FORMAT_3GPP, pdu); in testReceiveGsmSmsStatusReport() 402 byte[] pdu = byteCaptor.getValue(); in testErrorImsRetrywithMessageRef() [all …]
|
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 | RadioMessagingProxy.java | 250 public void sendCdmaSms(int serial, byte[] pdu) throws RemoteException { in sendCdmaSms() argument 253 mMessagingProxy.sendCdmaSms(serial, RILUtils.convertToHalCdmaSmsMessageAidl(pdu)); in sendCdmaSms() 256 serial, RILUtils.convertToHalCdmaSmsMessage(pdu)); in sendCdmaSms() 258 mRadioProxy.sendCdmaSms(serial, RILUtils.convertToHalCdmaSmsMessage(pdu)); in sendCdmaSms() 268 public void sendCdmaSmsExpectMore(int serial, byte[] pdu) throws RemoteException { in sendCdmaSmsExpectMore() argument 272 serial, RILUtils.convertToHalCdmaSmsMessageAidl(pdu)); in sendCdmaSmsExpectMore() 275 serial, RILUtils.convertToHalCdmaSmsMessage(pdu)); in sendCdmaSmsExpectMore() 278 serial, RILUtils.convertToHalCdmaSmsMessage(pdu)); in sendCdmaSmsExpectMore() 280 mRadioProxy.sendCdmaSms(serial, RILUtils.convertToHalCdmaSmsMessage(pdu)); in sendCdmaSmsExpectMore() 340 public void sendSms(int serial, String smscPdu, String pdu) throws RemoteException { in sendSms() argument [all …]
|
D | WapPushOverSms.java | 22 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 52 import com.google.android.mms.pdu.GenericPdu; 53 import com.google.android.mms.pdu.NotificationInd; 54 import com.google.android.mms.pdu.PduParser; 158 private DecodedResult decodeWapPdu(byte[] pdu, InboundSmsHandler handler) { in decodeWapPdu() argument 160 if (DBG) Rlog.d(TAG, "Rx: " + IccUtils.bytesToHexString(pdu)); in decodeWapPdu() 164 int transactionId = pdu[index++] & 0xFF; in decodeWapPdu() 165 int pduType = pdu[index++] & 0xFF; in decodeWapPdu() 175 transactionId = pdu[index++] & 0xff; in decodeWapPdu() 176 pduType = pdu[index++] & 0xff; in decodeWapPdu() [all …]
|
D | MessagingIndication.java | 105 public void newSms(int indicationType, byte[] pdu) { in newSms() argument 109 SmsMessageBase smsb = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in newSms() 137 public void newSmsStatusReport(int indicationType, byte[] pdu) { in newSmsStatusReport() argument 143 mRil.mSmsStatusRegistrant.notifyRegistrant(new AsyncResult(null, pdu, null)); in newSmsStatusReport()
|
D | ImsSmsDispatcher.java | 271 public void onSmsStatusReportReceived(int token, String format, byte[] pdu) 277 android.telephony.SmsMessage.createFromPdu(pdu, format); 282 mSmsDispatchersController.handleSmsStatusReport(format, pdu); 297 public void onSmsReceived(int token, String format, byte[] pdu) { 302 android.telephony.SmsMessage.createFromPdu(pdu, format); 629 byte[] pdu = (byte[]) map.get(MAP_KEY_PDU); in sendSms() 638 if (((0x01 & pdu[0]) == 0x01)) { in sendSms() 639 pdu[0] |= 0x04; // TP-RD in sendSms() 640 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms() 653 pdu); in sendSms()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 180 byte[] pdu) { in sendSms() argument 241 @DeliverStatusResult int result, @NonNull byte[] pdu) { in acknowledgeSms() argument 278 public final void onSmsReceived(int token, @SmsMessage.Format String format, byte[] pdu) in onSmsReceived() argument 289 listener.onSmsReceived(token, format, pdu); in onSmsReceived() 292 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsReceived() 461 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument 471 listener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived() 493 byte[] pdu) throws RuntimeException { in onSmsStatusReportReceived() argument 503 listener.onSmsStatusReportReceived(token, format, pdu); in onSmsStatusReportReceived() 506 SmsMessage message = SmsMessage.createFromPdu(pdu, format); in onSmsStatusReportReceived()
|
/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/gsm/ |
D | GsmSMSDispatcher.java | 145 byte[] pdu = (byte[]) ((AsyncResult) o).result; in handleStatusReport() 146 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP, pdu); in handleStatusReport() 181 byte pdu[] = (byte[]) map.get("pdu"); in sendSms() 187 if (((0x01 & pdu[0]) == 0x01)) { in sendSms() 188 pdu[0] |= 0x04; // TP-RD in sendSms() 189 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms() 203 IccUtils.bytesToHexString(pdu), reply); in sendSms() 206 IccUtils.bytesToHexString(pdu), reply); in sendSms() 210 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSms()
|
D | UsimDataDownloadHandler.java | 139 byte[] pdu = smsMessage.getPdu(); // includes SC address in handleDataDownload() 141 int scAddressLength = pdu[0] & 0xff; in handleDataDownload() 143 int tpduLength = pdu.length - tpduIndex; in handleDataDownload() 172 System.arraycopy(pdu, 1, envelope, index, scAddressLength); in handleDataDownload() 182 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength); in handleDataDownload() 360 private void acknowledgeImsSms(int token, int messageRef, boolean success, byte[] pdu) { in acknowledgeImsSms() argument 367 if (pdu != null && pdu.length > 0) { in acknowledgeImsSms() 368 mImsManager.acknowledgeSms(token, messageRef, result, pdu); in acknowledgeImsSms()
|
/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/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaInboundSmsHandler.java | 346 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, String dispAddr, in processCdmaWapPdu() argument 350 int msgType = (0xFF & pdu[index++]); in processCdmaWapPdu() 355 int totalSegments = (0xFF & pdu[index++]); // >= 1 in processCdmaWapPdu() 356 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu() 368 sourcePort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 369 sourcePort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 370 destinationPort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 371 destinationPort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 375 if (checkDuplicatePortOmadmWapPush(pdu, index)) { in processCdmaWapPdu() 387 byte[] userData = new byte[pdu.length - index]; in processCdmaWapPdu() [all …]
|
D | CdmaSMSDispatcher.java | 67 byte[] pdu = ((SmsMessage) o).getPdu(); in handleStatusReport() 68 mSmsDispatchersController.handleSmsStatusReport(SmsConstants.FORMAT_3GPP2, pdu); in handleStatusReport() 137 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSms() 158 mCi.sendCdmaSMSExpectMore(pdu, reply); in sendSms() 160 mCi.sendCdmaSms(pdu, reply); in sendSms() 163 mCi.sendImsCdmaSms(pdu, tracker.mImsRetry, tracker.mMessageRef, reply); in sendSms()
|
/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/imsphone/ |
D | ImsPhoneCommandInterface.java | 214 public void sendSMS (String smscPDU, String pdu, Message result) { in sendSMS() argument 218 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { in sendSMSExpectMore() argument 222 public void sendCdmaSms(byte[] pdu, Message result) { in sendCdmaSms() argument 226 public void sendCdmaSMSExpectMore(byte[] pdu, Message result) { in sendCdmaSMSExpectMore() argument 230 public void sendImsGsmSms (String smscPDU, String pdu, in sendImsGsmSms() argument 235 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, in sendImsCdmaSms() argument 252 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { in writeSmsToSim() argument 256 public void writeSmsToRuim(int status, byte[] pdu, Message response) { in writeSmsToRuim() argument
|