/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CommandsInterface.java | 992 * pdu is SMS in PDU format as an ASCII hex string 995 void sendSMS (String smscPDU, String pdu, Message response); argument 998 * @param pdu is CDMA-SMS in internal pseudo-PDU format 1001 void sendCdmaSms(byte[] pdu, Message response); argument 1027 * @param pdu message PDU, as hex string 1032 void writeSmsToSim(int status, String smsc, String pdu, Message response); argument 1034 void writeSmsToRuim(int status, String pdu, Message response); argument
|
H A D | ISms.aidl | 51 * @param pdu the raw PDU to store 56 in byte[] pdu); 61 * @param pdu the raw PDU to store 67 boolean copyMessageToIccEf(int status, in byte[] pdu, in byte[] smsc); 90 * raw pdu of the status report is in the extended data ("pdu"). 116 * raw pdu of the status report is in the extended data ("pdu"). 140 * to the recipient. The raw pdu of the status report is in the 141 * extended data ("pdu") [all...] |
H A D | IccSmsInterfaceManager.java | 74 * raw pdu of the status report is in the extended data ("pdu"). 111 * raw pdu of the status report is in the extended data ("pdu"). 148 * to the recipient. The raw pdu of the status report is in the 149 * extended data ("pdu"). 204 * @param pdu Raw message PDU. 207 protected byte[] makeSmsRecordData(int status, byte[] pdu) { argument 213 System.arraycopy(pdu, 0, data, 1, pdu [all...] |
H A D | IccSmsInterfaceManagerProxy.java | 40 updateMessageOnIccEf(int index, int status, byte[] pdu) throws android.os.RemoteException { argument 41 return mIccSmsInterfaceManager.updateMessageOnIccEf(index, status, pdu); 44 public boolean copyMessageToIccEf(int status, byte[] pdu, argument 46 return mIccSmsInterfaceManager.copyMessageToIccEf(status, pdu, smsc);
|
H A D | RIL.java | 1189 sendSMS (String smscPDU, String pdu, Message result) { argument 1195 rr.mp.writeString(pdu); 1203 sendCdmaSms(byte[] pdu, Message result) { argument 1207 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); 1281 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 1288 rr.mp.writeString(pdu); 1300 public void writeSmsToRuim(int status, String pdu, Message response) { argument 1307 rr.mp.writeString(pdu);
|
H A D | SMSDispatcher.java | 101 "pdu" 106 "pdu", 581 * @param pdu the message PDU, or the datagram portion of a CDMA WDP datagram segment 589 * @param isCdmaWapPush true if pdu is a CDMA WDP datagram segment and not an SM PDU 595 protected int processMessagePart(byte[] pdu, String address, int referenceNumber, argument 616 if (!Arrays.equals(oldPdu, pdu)) { 617 Log.e(TAG, "Warning: dup message segment PDU of length " + pdu.length 634 values.put("pdu", HexDump.toHexString(pdu)); 667 pdus[sequenceNumber] = pdu; 933 sendRawPdu(byte[] smsc, byte[] pdu, PendingIntent sentIntent, PendingIntent deliveryIntent, String destAddr) argument [all...] |
H A D | WapPushOverSms.java | 130 * @param pdu The WAP PDU, made up of one or more SMS PDUs 135 public int dispatchWapPdu(byte[] pdu) { argument 137 if (false) Log.d(LOG_TAG, "Rx: " + IccUtils.bytesToHexString(pdu)); 140 int transactionId = pdu[index++] & 0xFF; 141 int pduType = pdu[index++] & 0xFF; 150 pduDecoder = new WspTypeDecoder(pdu); 189 System.arraycopy(pdu, headerStartIndex, header, 0, header.length); 194 intentData = pdu; 197 intentData = new byte[pdu.length - dataIndex]; 198 System.arraycopy(pdu, dataInde [all...] |
H A D | WspTypeDecoder.java | 206 public WspTypeDecoder(byte[] pdu) { argument 207 wspData = pdu; 211 * Decode the "Text-string" type for WSP pdu 213 * @param startIndex The starting position of the "Text-string" in this pdu 216 * return value can be retrieved by getValueString() method length of data in pdu can be 234 * Decode the "Token-text" type for WSP pdu 236 * @param startIndex The starting position of the "Token-text" in this pdu 240 * length of data in pdu can be retrieved by getDecodedDataLength() method 254 * Decode the "Short-integer" type for WSP pdu 256 * @param startIndex The starting position of the "Short-integer" in this pdu [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaSMSDispatcher.java | 100 fillIn.putExtra("pdu", sms.getPdu()); 236 * @param pdu The WAP-WDP PDU segment 241 protected int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address) { argument 244 int msgType = (0xFF & pdu[index++]); 249 int totalSegments = (0xFF & pdu[index++]); // >= 1 250 int segment = (0xFF & pdu[index++]); // >= 0 262 sourcePort = (0xFF & pdu[index++]) << 8; 263 sourcePort |= 0xFF & pdu[index++]; 264 destinationPort = (0xFF & pdu[index++]) << 8; 265 destinationPort |= 0xFF & pdu[inde 338 sendSubmitPdu(SmsMessage.SubmitPdu pdu, PendingIntent sentIntent, PendingIntent deliveryIntent, String destAddr) argument [all...] |
H A D | RuimSmsInterfaceManager.java | 108 * @param pdu the raw PDU to store 113 updateMessageOnIccEf(int index, int status, byte[] pdu) { argument 116 "("+ pdu + ")"); 127 byte[] record = makeSmsRecordData(status, pdu); 143 * @param pdu the raw PDU to store 149 public boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc) { argument 152 "pdu=("+ Arrays.toString(pdu) + ")"); 158 mPhone.mCM.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu),
|
H A D | SmsMessage.java | 106 public static SmsMessage createFromPdu(byte[] pdu) { argument 110 msg.parsePdu(pdu); 252 byte[] pdu = new byte[size]; 253 System.arraycopy(data, 2, pdu, 0, size); 256 msg.parsePduFromEfRecord(pdu); 268 public static int getTPLayerLengthForPDU(String pdu) { argument 482 * Decodes pdu to an empty SMS object. 483 * In the CDMA case the pdu is just an internal byte stream representation 487 private void parsePdu(byte[] pdu) { argument 488 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); 537 parsePduFromEfRecord(byte[] pdu) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmSMSDispatcher.java | 143 fillIn.putExtra("pdu", IccUtils.hexStringToBytes(pduString)); 240 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 242 if (pdu != null) { 243 sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent, 254 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 256 if (pdu != null) { 257 sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent, 276 SmsMessage.SubmitPdu pdu [all...] |
H A D | GsmSmsCbMessage.java | 73 for (byte[] pdu : pdus) { 74 Pair<String, String> p = parseBody(header, pdu); 107 * @param pdu the PDU to decode 110 private static Pair<String, String> parseBody(SmsCbHeader header, byte[] pdu) { argument 186 int nrPages = pdu[SmsCbHeader.PDU_HEADER_LENGTH]; 188 if (pdu.length < SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) 190 throw new IllegalArgumentException("Pdu length " + pdu.length + " does not match " 200 int length = pdu[offset + PDU_BODY_PAGE_LENGTH]; 207 Pair<String, String> p = unpackBody(pdu, encoding, offset, length, 216 int length = pdu 236 unpackBody(byte[] pdu, int encoding, int offset, int length, boolean hasLanguageIndicator, String language) argument [all...] |
H A D | SIMRecords.java | 1217 byte[] pdu = new byte[n - 1]; 1218 System.arraycopy(ba, 1, pdu, 0, n - 1); 1219 SmsMessage message = SmsMessage.createFromPdu(pdu); 1243 byte[] pdu = new byte[n - 1]; 1244 System.arraycopy(ba, 1, pdu, 0, n - 1); 1245 SmsMessage message = SmsMessage.createFromPdu(pdu);
|
H A D | SimSmsInterfaceManager.java | 130 * @param pdu the raw PDU to store 135 updateMessageOnIccEf(int index, int status, byte[] pdu) { argument 138 "("+ Arrays.toString(pdu) + ")"); 149 byte[] record = makeSmsRecordData(status, pdu); 166 * @param pdu the raw PDU to store 172 public boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc) { argument 174 "pdu=("+ Arrays.toString(pdu) + 182 IccUtils.bytesToHexString(pdu), response);
|
H A D | SmsCbHeader.java | 42 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1 47 * UMTS pdu format, as defined in 3gpp TS 23.041, section 9.4.2 52 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1.3 93 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { argument 94 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) { 98 if (pdu.length <= PDU_LENGTH_GSM) { 103 geographicalScope = (pdu[0] & 0xc0) >>> 6; 104 serialNumber = ((pdu[0] & 0xff) << 8) | (pdu[ [all...] |
H A D | SmsMessage.java | 102 public static SmsMessage createFromPdu(byte[] pdu) { argument 105 msg.parsePdu(pdu); 124 * +CMT: [<alpha>],<length><CR><LF><pdu> 184 byte[] pdu = new byte[size]; 185 System.arraycopy(data, 1, pdu, 0, size); 186 msg.parsePdu(pdu); 198 public static int getTPLayerLengthForPDU(String pdu) { argument 199 int len = pdu.length() / 2; 200 int smscLen = Integer.parseInt(pdu.substring(0, 2), 16); 500 byte pdu[]; field in class:SmsMessage.PduParser 507 PduParser(byte[] pdu) argument 899 parsePdu(byte[] pdu) argument [all...] |
H A D | UsimDataDownloadHandler.java | 78 byte[] pdu = smsMessage.getPdu(); // includes SC address 80 int scAddressLength = pdu[0] & 0xff; 82 int tpduLength = pdu.length - tpduIndex; 110 System.arraycopy(pdu, 1, envelope, index, scAddressLength); 120 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
H A D | SipCommandInterface.java | 172 public void sendSMS (String smscPDU, String pdu, Message result) { argument 175 public void sendCdmaSms(byte[] pdu, Message result) { argument 184 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 187 public void writeSmsToRuim(int status, String pdu, Message response) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | ModelInterpreter.java | 381 StringBuilder pdu = new StringBuilder(); 383 pdu.append ("00"); //SMSC address - 0 bytes 385 pdu.append ("04"); // Message type indicator 388 pdu.append("918100551521F0"); 391 pdu.append("0000"); 395 pdu.append (c. 400 println("+CMT: ,1\r" + pdu.toString()); 562 String pdu; 565 pdu = lineReader.getNextLineCtrlZ();
|
H A D | SimulatedCommands.java | 939 * pdu is SMS in PDU format as an ASCII hex string 942 public void sendSMS (String smscPDU, String pdu, Message result) {unimplemented(result);} argument 954 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 959 public void writeSmsToRuim(int status, String pdu, Message response) { argument 1450 public void sendCdmaSms(byte[] pdu, Message response){ argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmSmsTest.java | 32 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E"; 33 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 38 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA" 40 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 48 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F" 54 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 67 pdu = "07914140279510F6440A8111110301003BF56080207130238A3B0B05040B8423F" 70 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); 86 String pdu = "07912160130300F4040B914151245584F600087010807121352B1021220" 88 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu)); [all...] |
H A D | SimSmsTest.java | 42 byte[] pdu = null; 47 pdu = data.getBytes(); 58 assertNotNull(pdu);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
H A D | CdmaSmsTest.java | 116 String pdu = "00031040900112488ea794e074d69e1b7392c270326cde9e98"; 117 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); 123 String pdu = "0003100160010610262d5ab500"; 124 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); 130 String pdu = "00031001d00109104539b4d052ebb3d0"; 131 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); 137 String pdu = "00031002100109184539b4d052ebb3d0"; 138 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); 264 String pdu = "0003200010010410168d2002010503060812011101590501c706069706180000000701c108" + 266 BearerData bearerData = BearerData.decode(HexDump.hexStringToByteArray(pdu)); [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
H A D | GsmSmsCbTest.java | 38 private static SmsCbMessage createFromPdu(byte[] pdu) { argument 40 SmsCbHeader header = new SmsCbHeader(pdu); 42 pdus[0] = pdu; 49 private static void doTestGeographicalScopeValue(byte[] pdu, byte b, int expectedGs) { argument 50 pdu[0] = b; 51 SmsCbMessage msg = createFromPdu(pdu); 59 assertNull("createFromPdu(byte[] with null pdu should return null", msg); 63 byte[] pdu = new byte[4]; 64 SmsCbMessage msg = createFromPdu(pdu); 66 assertNull("createFromPdu(byte[] with too short pdu shoul [all...] |