/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | InboundSmsTracker.java | 68 * @param pdu the message PDU 74 InboundSmsTracker(byte[] pdu, long timestamp, int destPort, boolean is3gpp2, argument 76 mPdu = pdu; 95 * @param pdu the message PDU 105 public InboundSmsTracker(byte[] pdu, long timestamp, int destPort, boolean is3gpp2, argument 108 mPdu = pdu; 179 values.put("pdu", HexDump.toHexString(mPdu));
|
H A D | WspTypeDecoder.java | 206 public WspTypeDecoder(byte[] pdu) { argument 207 mWspData = 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...] |
H A D | UiccSmsController.java | 58 byte[] pdu) throws android.os.RemoteException { 61 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu); 71 byte[] pdu, byte[] smsc) throws android.os.RemoteException { 74 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc); 311 int subId, byte[] pdu, String format, PendingIntent receivedIntent) { 314 iccSmsIntMgr.injectSmsPdu(pdu, format, receivedIntent); 57 updateMessageOnIccEfForSubscriber(int subId, String callingPackage, int index, int status, byte[] pdu) argument 70 copyMessageToIccEfForSubscriber(int subId, String callingPackage, int status, byte[] pdu, byte[] smsc) argument 310 injectSmsPduForSubscriber( int subId, byte[] pdu, String format, PendingIntent receivedIntent) argument
|
H A D | IccSmsInterfaceManager.java | 189 * @param pdu the raw PDU to store 195 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) { argument 198 "("+ Arrays.toString(pdu) + ")"); 225 byte[] record = makeSmsRecordData(status, pdu); 242 * @param pdu the raw PDU to store 248 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) { argument 251 "pdu=("+ Arrays.toString(pdu) + 265 IccUtils.bytesToHexString(pdu), response); 267 mPhone.mCi.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu), 469 injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) argument 605 makeSmsRecordData(int status, byte[] pdu) argument [all...] |
H A D | SMSDispatcher.java | 750 * raw pdu of the status report is in the extended data ("pdu"). 789 * @param pdu is the byte array of pdu to be injected into android telephony layer 790 * @param format is the format of SMS pdu (3gpp or 3gpp2) 796 protected abstract void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent); argument 831 * to the recipient. The raw pdu of the status report is in the 938 * -pdu the raw PDU to send 952 * raw pdu of the status report is in the extended data ("pdu") 1583 getSmsTrackerMap(String destAddr, String scAddr, String text, SmsMessageBase.SubmitPduBase pdu) argument 1594 getSmsTrackerMap(String destAddr, String scAddr, int destPort, byte[] data, SmsMessageBase.SubmitPduBase pdu) argument [all...] |
H A D | CommandsInterface.java | 1078 * pdu is SMS in PDU format as an ASCII hex string 1081 void sendSMS (String smscPDU, String pdu, Message response); argument 1088 * pdu is SMS in PDU format as an ASCII hex string 1091 void sendSMSExpectMore (String smscPDU, String pdu, Message response); argument 1094 * @param pdu is CDMA-SMS in internal pseudo-PDU format 1097 void sendCdmaSms(byte[] pdu, Message response); argument 1103 * @param pdu is SMS in PDU format as an ASCII hex string 1110 void sendImsGsmSms (String smscPDU, String pdu, int retry, int messageRef, argument 1115 * @param pdu is CDMA-SMS in internal pseudo-PDU format 1122 void sendImsCdmaSms(byte[] pdu, in argument 1153 writeSmsToSim(int status, String smsc, String pdu, Message response) argument 1155 writeSmsToRuim(int status, String pdu, Message response) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaSMSDispatcher.java | 96 fillIn.putExtra("pdu", sms.getPdu()); 110 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 112 if (pdu != null) { 113 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); 144 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 146 if (pdu != null) { 147 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); 174 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 235 byte[] pdu = (byte[]) map.get("pdu"); [all...] |
H A D | SmsMessage.java | 111 public static SmsMessage createFromPdu(byte[] pdu) { argument 115 msg.parsePdu(pdu); 260 byte[] pdu = new byte[size]; 261 System.arraycopy(data, 2, pdu, 0, size); 264 msg.parsePduFromEfRecord(pdu); 276 public static int getTPLayerLengthForPDU(String pdu) { argument 508 * Decodes pdu to an empty SMS object. 509 * In the CDMA case the pdu is just an internal byte stream representation 513 private void parsePdu(byte[] pdu) { argument 514 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); 579 parsePduFromEfRecord(byte[] pdu) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
H A D | GsmSMSDispatcher.java | 136 fillIn.putExtra("pdu", IccUtils.hexStringToBytes(pduString)); 154 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 156 if (pdu != null) { 157 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); 181 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 183 if (pdu != null) { 184 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); 205 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 223 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddress, destinationAddress, 226 if (pdu ! [all...] |
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 mGeographicalScope = (pdu[0] & 0xc0) >>> 6; 104 mSerialNumber = ((pdu[0] & 0xff) << 8) | (pdu[ [all...] |
H A D | SmsMessage.java | 98 public static SmsMessage createFromPdu(byte[] pdu) { argument 101 msg.parsePdu(pdu); 123 * +CMT: [<alpha>],<length><CR><LF><pdu> 183 byte[] pdu = new byte[size]; 184 System.arraycopy(data, 1, pdu, 0, size); 185 msg.parsePdu(pdu); 197 public static int getTPLayerLengthForPDU(String pdu) { argument 198 int len = pdu.length() / 2; 199 int smscLen = Integer.parseInt(pdu.substring(0, 2), 16); 505 PduParser(byte[] pdu) { argument 900 parsePdu(byte[] pdu) argument [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | CharacterSets.java | 18 package com.google.android.mms.pdu;
|
H A D | PduParser.java | 18 package com.google.android.mms.pdu; 57 * The pdu data. 62 * Store pdu headers 67 * Store pdu parts. 96 * @param pduDataStream pdu data to be parsed 105 * Parse the pdu. 107 * @return the pdu structure if parsing successfully. 231 * Parse pdu headers. 233 * @param pduDataStream pdu data input stream 830 * Parse pdu part [all...] |
H A D | PduPersister.java | 18 package com.google.android.mms.pdu; 65 import com.google.android.mms.pdu.EncodedStringValue; 529 GenericPdu pdu = null; 623 pdu = new NotificationInd(headers); 626 pdu = new DeliveryInd(headers); 629 pdu = new ReadOrigInd(headers); 632 pdu = new RetrieveConf(headers, body); 635 pdu = new SendReq(headers, body); 638 pdu = new AcknowledgeInd(headers); 641 pdu 1240 persist(GenericPdu pdu, Uri uri, boolean createThreadId, boolean groupMmsEnabled, HashMap<Uri, InputStream> preOpenedFiles) argument [all...] |
H A D | PduPart.java | 18 package com.google.android.mms.pdu; 26 * The pdu part.
|
H A D | PduHeaders.java | 18 package com.google.android.mms.pdu; 27 * All pdu header fields. 338 * @return the octet value of the pdu header 352 * Set octet value to pdu header by header field. 499 * @return the TextString value of the pdu header 507 * Set TextString value to pdu header by header field. 511 * @return the TextString value of the pdu header 548 * @return the EncodedStringValue value of the pdu header 559 * @return the EncodeStringValue array of the pdu header 573 * Set EncodedStringValue value to pdu heade [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...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | GsmAlphabet.java | 449 * @param pdu the raw data from the pdu 454 public static String gsm7BitPackedToString(byte[] pdu, int offset, argument 456 return gsm7BitPackedToString(pdu, offset, lengthSeptets, 0, 0, 0); 465 * @param pdu the raw data from the pdu 475 public static String gsm7BitPackedToString(byte[] pdu, int offset, argument 509 gsmVal = (0x7f & (pdu[offset + byteOffset] >> shift)); 516 gsmVal |= 0x7f & (pdu[offset + byteOffset + 1] << (8 - shift));
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
H A D | SmsMessage.java | 151 public static SmsMessage createFromPdu(byte[] pdu) { argument 156 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); 158 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); 170 public static int getTPLayerLengthForPDU(String pdu) { argument 174 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu); 176 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu);
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
H A D | WapPushTest.java | 1293 // sample pdu 1519 byte[] pdu = createPDU(1); 1520 int headerLen = pdu.length - 1560 byte[] pdu = createPDU(1); 1561 int headerLen = pdu.length - (mGsmHeader.length + 1602 byte[] pdu = createPDU(1); 1603 int headerLen = pdu.length - 1672 byte[] pdu = createPDU(1); 1673 int headerLen = pdu.length - 1732 pdu 2070 dispatchWapPdu(byte[] pdu, IWapPushManager wapPushMan) argument [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsMessage.java | 164 public static SmsMessage createFromPdu(byte[] pdu) { argument 172 message = createFromPdu(pdu, format); 175 // decoding pdu failed based on activePhone type, must be other format 178 message = createFromPdu(pdu, format); 190 * @param pdu the message PDU from the 195 public static SmsMessage createFromPdu(byte[] pdu, String format) { argument 199 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); 201 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); 213 * +CMT: [<alpha>],<length><CR><LF><pdu> 267 public static int getTPLayerLengthForPDU(String pdu) { argument [all...] |
H A D | SmsManager.java | 52 * Manages SMS operations such as sending data, text, and pdu SMS messages. 286 * raw pdu of the status report is in the extended data ("pdu"). 368 * @param pdu is the byte array of pdu to be injected into android application framework 369 * @param format is the format of SMS pdu (3gpp or 3gpp2) 379 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 383 "Invalid pdu format. format must be either 3gpp or 3gpp2"); 389 getSubscriptionId(), pdu, format, receivedIntent); 449 * to the recipient. The raw pdu o 703 copyMessageToIcc(byte[] smsc, byte[] pdu,int status) argument 767 updateMessageOnIcc(int messageIndex, int newStatus, byte[] pdu) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsPhoneCommandInterface.java | 216 public void sendSMS (String smscPDU, String pdu, Message result) { argument 220 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { argument 224 public void sendCdmaSms(byte[] pdu, Message result) { argument 228 public void sendImsGsmSms (String smscPDU, String pdu, argument 233 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, argument 250 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 254 public void writeSmsToRuim(int status, String pdu, Message response) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
H A D | SipCommandInterface.java | 217 public void sendSMS (String smscPDU, String pdu, Message result) { argument 221 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { argument 225 public void sendCdmaSms(byte[] pdu, Message result) { argument 229 public void sendImsGsmSms (String smscPDU, String pdu, argument 234 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, argument 251 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 255 public void writeSmsToRuim(int status, String pdu, Message response) { argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedCommands.java | 991 * pdu is SMS in PDU format as an ASCII hex string 995 public void sendSMS (String smscPDU, String pdu, Message result) {unimplemented(result);} argument 1002 * pdu is SMS in PDU format as an ASCII hex string 1006 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { argument 1023 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument 1029 public void writeSmsToRuim(int status, String pdu, Message response) { argument 1595 public void sendCdmaSms(byte[] pdu, Message response){ argument 1708 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, argument 1714 public void sendImsGsmSms(String smscPDU, String pdu, argument
|