/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsCbTest.java | 41 private SmsCbMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 43 SmsCbHeader header = new SmsCbHeader(pdu); in createFromPdu() 45 pdus[0] = pdu; in createFromPdu() 52 private void doTestGeographicalScopeValue(byte[] pdu, byte b, int expectedGs) { in doTestGeographicalScopeValue() argument 53 pdu[0] = b; in doTestGeographicalScopeValue() 54 SmsCbMessage msg = createFromPdu(pdu); in doTestGeographicalScopeValue() 68 byte[] pdu = new byte[4]; in testCreateTooShortPdu() 69 SmsCbMessage msg = createFromPdu(pdu); in testCreateTooShortPdu() 76 byte[] pdu = { in testGetGeographicalScope() 92 doTestGeographicalScopeValue(pdu, (byte)0x00, in testGetGeographicalScope() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsCbHeader.java | 93 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { in SmsCbHeader() argument 94 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { in SmsCbHeader() 98 if (pdu.length <= PDU_LENGTH_GSM) { in SmsCbHeader() 103 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; in SmsCbHeader() 104 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[1] & 0xff); in SmsCbHeader() 105 mMessageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff); in SmsCbHeader() 106 if (isEtwsMessage() && pdu.length <= PDU_LENGTH_ETWS) { in SmsCbHeader() 111 boolean emergencyUserAlert = (pdu[4] & 0x1) != 0; in SmsCbHeader() 112 boolean activatePopup = (pdu[5] & 0x80) != 0; in SmsCbHeader() 113 int warningType = (pdu[4] & 0xfe) >>> 1; in SmsCbHeader() [all …]
|
D | GsmSmsCbMessage.java | 113 for (byte[] pdu : pdus) { in createSmsCbMessage() 114 Pair<String, String> p = parseBody(header, pdu); in createSmsCbMessage() 137 private static Pair<String, String> parseBody(SmsCbHeader header, byte[] pdu) { in parseBody() argument 213 int nrPages = pdu[SmsCbHeader.PDU_HEADER_LENGTH]; in parseBody() 215 if (pdu.length < SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) in parseBody() 217 throw new IllegalArgumentException("Pdu length " + pdu.length + " does not match " in parseBody() 227 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; in parseBody() 234 Pair<String, String> p = unpackBody(pdu, encoding, offset, length, in parseBody() 243 int length = pdu.length - offset; in parseBody() 245 return unpackBody(pdu, encoding, offset, length, hasLanguageIndicator, language); in parseBody() [all …]
|
D | SmsMessage.java | 98 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 101 msg.parsePdu(pdu); in createFromPdu() 129 public static SmsMessage newFromCMT(byte[] pdu) { in newFromCMT() argument 132 msg.parsePdu(pdu); in newFromCMT() 141 public static SmsMessage newFromCDS(byte[] pdu) { in newFromCDS() argument 144 msg.parsePdu(pdu); in newFromCDS() 183 byte[] pdu = new byte[size]; in createFromEfRecord() 184 System.arraycopy(data, 1, pdu, 0, size); in createFromEfRecord() 185 msg.parsePdu(pdu); in createFromEfRecord() 197 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument [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() 48 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" in testUdh() local 54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh() 67 pdu = "07914140279510F6440A8111110301003BF56080207130238A3B0B05040B8423F" in testUdh() 70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUdh() 86 String pdu = "07912160130300F4040B914151245584F600087010807121352B1021220" in testUcs2() local 88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); in testUcs2() [all …]
|
D | WapPushOverSmsTest.java | 77 byte[] pdu = new byte[]{ in testDispatchWapPdu() 87 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler); in testDispatchWapPdu() 108 assertEquals(pdu.length, data.length); in testDispatchWapPdu() 109 for (int i = 0; i < pdu.length; i++) { in testDispatchWapPdu() 110 assertEquals(pdu[i], data[i]); in testDispatchWapPdu() 129 byte pdu[] = {1, 6, 0, 97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, in testDispatchWapPduFromBlockedNumber_noIntentsDispatched() 140 mWapPushOverSmsUT.dispatchWapPdu(pdu, null, mInboundSmsHandler)); in testDispatchWapPduFromBlockedNumber_noIntentsDispatched()
|
D | SimSmsTest.java | 45 byte[] pdu = null; in testBasic() 50 pdu = data.getBytes(); in testBasic() 61 assertNotNull(pdu); in testBasic()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 120 byte[] pdu = (byte[]) ar.result; in handleStatusReport() 121 SmsMessage sms = SmsMessage.newFromCDS(pdu); in handleStatusReport() 137 fillIn.putExtra("pdu", pdu); in handleStatusReport() 155 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendData() local 157 if (pdu != null) { in sendData() 158 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); in sendData() 183 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendText() local 185 if (pdu != null) { in sendText() 186 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); in sendText() 207 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument [all …]
|
D | UsimDataDownloadHandler.java | 116 byte[] pdu = smsMessage.getPdu(); // includes SC address in handleDataDownload() 118 int scAddressLength = pdu[0] & 0xff; in handleDataDownload() 120 int tpduLength = pdu.length - tpduIndex; in handleDataDownload() 148 System.arraycopy(pdu, 1, envelope, index, scAddressLength); in handleDataDownload() 158 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength); in handleDataDownload()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | WapPushOverSms.java | 19 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_DELIVERY_IND; 20 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 21 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_READ_ORIG_IND; 56 import com.google.android.mms.pdu.DeliveryInd; 57 import com.google.android.mms.pdu.GenericPdu; 58 import com.google.android.mms.pdu.NotificationInd; 59 import com.google.android.mms.pdu.PduHeaders; 60 import com.google.android.mms.pdu.PduParser; 61 import com.google.android.mms.pdu.PduPersister; 62 import com.google.android.mms.pdu.ReadOrigInd; [all …]
|
D | TelephonyComponentFactory.java | 96 public WspTypeDecoder makeWspTypeDecoder(byte[] pdu) { in makeWspTypeDecoder() argument 97 return new WspTypeDecoder(pdu); in makeWspTypeDecoder() 103 public InboundSmsTracker makeInboundSmsTracker(byte[] pdu, long timestamp, int destPort, in makeInboundSmsTracker() argument 106 return new InboundSmsTracker(pdu, timestamp, destPort, is3gpp2, is3gpp2WapPdu, address, in makeInboundSmsTracker() 113 public InboundSmsTracker makeInboundSmsTracker(byte[] pdu, long timestamp, int destPort, in makeInboundSmsTracker() argument 116 return new InboundSmsTracker(pdu, timestamp, destPort, is3gpp2, address, displayAddr, in makeInboundSmsTracker()
|
D | ImsSMSDispatcher.java | 215 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument 221 android.telephony.SmsMessage.createFromPdu(pdu, format); in injectSmsPdu() 300 SmsMessageBase.SubmitPduBase pdu = null; in sendRetrySms() local 308 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 312 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 322 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( in sendRetrySms() 327 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( in sendRetrySms() 334 map.put("smsc", pdu.encodedScAddress); in sendRetrySms() 335 map.put("pdu", pdu.encodedMessage); in sendRetrySms()
|
D | IccSmsInterfaceManager.java | 196 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) { in updateMessageOnIccEf() argument 199 "("+ Arrays.toString(pdu) + ")"); in updateMessageOnIccEf() 226 byte[] record = makeSmsRecordData(status, pdu); in updateMessageOnIccEf() 249 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) { in copyMessageToIccEf() argument 252 "pdu=("+ Arrays.toString(pdu) + in copyMessageToIccEf() 266 IccUtils.bytesToHexString(pdu), response); in copyMessageToIccEf() 268 mPhone.mCi.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu), in copyMessageToIccEf() 468 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument 471 log("pdu: " + pdu + in injectSmsPdu() 475 mDispatcher.injectSmsPdu(pdu, format, receivedIntent); in injectSmsPdu() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaInboundSmsHandler.java | 261 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, String dispAddr, in processCdmaWapPdu() argument 265 int msgType = (0xFF & pdu[index++]); in processCdmaWapPdu() 270 int totalSegments = (0xFF & pdu[index++]); // >= 1 in processCdmaWapPdu() 271 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu() 283 sourcePort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 284 sourcePort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 285 destinationPort = (0xFF & pdu[index++]) << 8; in processCdmaWapPdu() 286 destinationPort |= 0xFF & pdu[index++]; in processCdmaWapPdu() 290 if (checkDuplicatePortOmadmWapPush(pdu, index)) { in processCdmaWapPdu() 302 byte[] userData = new byte[pdu.length - index]; in processCdmaWapPdu() [all …]
|
D | CdmaSMSDispatcher.java | 111 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendData() local 113 if (pdu != null) { in sendData() 114 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); in sendData() 145 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( in sendText() local 147 if (pdu != null) { in sendText() 148 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); in sendText() 175 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu() argument 254 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSmsByPstn() 269 mCi.sendCdmaSms(pdu, reply); in sendSmsByPstn() 271 mCi.sendImsCdmaSms(pdu, tracker.mImsRetry, tracker.mMessageRef, reply); in sendSmsByPstn()
|
/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 | 1519 byte[] pdu = createPDU(1); in testProcessMsg1() 1520 int headerLen = pdu.length - in testProcessMsg1() 1560 byte[] pdu = createPDU(1); in testProcessMsg2() 1561 int headerLen = pdu.length - (mGsmHeader.length + in testProcessMsg2() 1602 byte[] pdu = createPDU(1); in testProcessMsg3() 1603 int headerLen = pdu.length - in testProcessMsg3() 1672 byte[] pdu = createPDU(1); in testProcessMsg4() 1673 int headerLen = pdu.length - in testProcessMsg4() 1732 pdu = createPDU(1); in testProcessMsg4() 1761 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/java/com/android/internal/telephony/cdma/ |
D | SmsMessage.java | 121 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 125 msg.parsePdu(pdu); in createFromPdu() 168 byte[] pdu = new byte[size]; in createFromEfRecord() 169 System.arraycopy(data, 2, pdu, 0, size); in createFromEfRecord() 172 msg.parsePduFromEfRecord(pdu); in createFromEfRecord() 184 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument 421 private void parsePdu(byte[] pdu) { in parsePdu() argument 422 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); in parsePdu() 443 if (length > pdu.length) { in parsePdu() 446 + " > pdu len " + pdu.length); in parsePdu() [all …]
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
D | PduCacheEntry.java | 20 import com.google.android.mms.pdu.GenericPdu; 27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument 28 mPdu = pdu; in PduCacheEntry()
|
/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/ |
D | SmsMessage.java | 167 public static SmsMessage createFromPdu(byte[] pdu) { in createFromPdu() argument 175 message = createFromPdu(pdu, format); in createFromPdu() 181 message = createFromPdu(pdu, format); in createFromPdu() 198 public static SmsMessage createFromPdu(byte[] pdu, String format) { in createFromPdu() argument 202 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); in createFromPdu() 204 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); in createFromPdu() 227 public static SmsMessage newFromCMT(byte[] pdu) { in newFromCMT() argument 230 com.android.internal.telephony.gsm.SmsMessage.newFromCMT(pdu); in newFromCMT() 276 public static int getTPLayerLengthForPDU(String pdu) { in getTPLayerLengthForPDU() argument 278 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); in getTPLayerLengthForPDU() [all …]
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierMessagingService.java | 126 public void onFilterSms(@NonNull MessagePdu pdu, @NonNull String format, int destPort, in onFilterSms() argument 154 public void onReceiveTextSms(@NonNull MessagePdu pdu, @NonNull String format, in onReceiveTextSms() argument 156 onFilterSms(pdu, format, destPort, subId, new ResultCallback<Boolean>() { in onReceiveTextSms() 465 public void filterSms(MessagePdu pdu, String format, int destPort, in filterSms() argument 467 onReceiveTextSms(pdu, format, destPort, subId, in filterSms()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ISms.aidl | 58 int messageIndex, int newStatus, in byte[] pdu); in updateMessageOnIccEfForSubscriber() argument 71 in byte[] pdu, in byte[] smsc); in copyMessageToIccEfForSubscriber() argument 202 int subId, in byte[] pdu, String format, in PendingIntent receivedIntent); in injectSmsPduForSubscriber() argument
|