/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduContentTypes.java | 18 package com.google.android.mms.pdu;
|
H A D | AcknowledgeInd.java | 18 package com.google.android.mms.pdu; 27 * Constructor, used when composing a M-Acknowledge.ind pdu.
|
H A D | DeliveryInd.java | 18 package com.google.android.mms.pdu;
|
H A D | GenericPdu.java | 18 package com.google.android.mms.pdu; 24 * The headers of pdu.
|
H A D | NotifyRespInd.java | 18 package com.google.android.mms.pdu; 27 * Constructor, used when composing a M-NotifyResp.ind pdu.
|
H A D | QuotedPrintable.java | 18 package com.google.android.mms.pdu;
|
H A D | SendConf.java | 18 package com.google.android.mms.pdu;
|
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
H A D | IDataVerify.aidl | 26 boolean verifyData(in byte[] pdu);
|
H A D | DataVerify.java | 66 * Compare pdu and received pdu 68 public synchronized boolean verifyData(byte[] pdu) { argument 82 Log.v(LOG_TAG, "verify pdu"); 83 boolean ret = arrayCompare(pdu, mLastReceivedPdu); 107 public static void SetLastReceivedPdu(byte[] pdu) { argument 108 mLastReceivedPdu = pdu;
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | PduCacheEntry.java | 20 import com.google.android.mms.pdu.GenericPdu; 27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { argument 28 mPdu = pdu;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
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 | 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 | GsmSMSDispatcher.java | 139 fillIn.putExtra("pdu", IccUtils.hexStringToBytes(pduString)); 157 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 159 if (pdu != null) { 160 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); 173 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 175 if (pdu != null) { 188 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); 199 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 216 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(scAddress, destinationAddress, 219 if (pdu ! [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | WapPushOverSms.java | 20 import com.google.android.mms.pdu.DeliveryInd; 21 import com.google.android.mms.pdu.GenericPdu; 22 import com.google.android.mms.pdu.NotificationInd; 23 import com.google.android.mms.pdu.PduHeaders; 24 import com.google.android.mms.pdu.PduParser; 25 import com.google.android.mms.pdu.PduPersister; 26 import com.google.android.mms.pdu.ReadOrigInd; 54 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_DELIVERY_IND; 55 import static com.google.android.mms.pdu.PduHeaders.MESSAGE_TYPE_NOTIFICATION_IND; 56 import static com.google.android.mms.pdu 114 dispatchWapPdu(byte[] pdu, BroadcastReceiver receiver, InboundSmsHandler handler) argument 396 getDeliveryOrReadReportThreadId(Context context, GenericPdu pdu) argument [all...] |
H A D | UiccSmsController.java | 53 updateMessageOnIccEf(String callingPackage, int index, int status, byte[] pdu) argument 56 index, status, pdu); 61 byte[] pdu) throws android.os.RemoteException { 64 return iccSmsIntMgr.updateMessageOnIccEf(callingPackage, index, status, pdu); 72 public boolean copyMessageToIccEf(String callingPackage, int status, byte[] pdu, byte[] smsc) argument 75 pdu, smsc); 79 byte[] pdu, byte[] smsc) throws android.os.RemoteException { 82 return iccSmsIntMgr.copyMessageToIccEf(callingPackage, status, pdu, smsc); 286 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 287 injectSmsPdu(SubscriptionManager.getDefaultSmsSubId(), pdu, forma 60 updateMessageOnIccEfForSubscriber(long subId, String callingPackage, int index, int status, byte[] pdu) argument 78 copyMessageToIccEfForSubscriber(long subId, String callingPackage, int status, byte[] pdu, byte[] smsc) argument 291 injectSmsPdu(long subId, byte[] pdu, String format, PendingIntent receivedIntent) argument [all...] |
H A D | ImsSMSDispatcher.java | 267 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 273 android.telephony.SmsMessage.createFromPdu(pdu, format); 293 // Invalid pdu format. 294 Rlog.e(TAG, "Invalid pdu format: " + format); 347 SmsMessageBase.SubmitPduBase pdu = null; 355 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( 359 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( 369 pdu = com.android.internal.telephony.cdma.SmsMessage.getSubmitPdu( 374 pdu = com.android.internal.telephony.gsm.SmsMessage.getSubmitPdu( 380 // replace old smsc and pdu wit [all...] |
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
H A D | SmsManager.java | 25 * Manages SMS operations such as sending data, text, and pdu SMS messages. 70 * raw pdu of the status report is in the extended data ("pdu"). 121 * to the recipient. The raw pdu of the status report is in the 122 * extended data ("pdu"). 155 * raw pdu of the status report is in the extended data ("pdu"). 172 * @param pdu the raw PDU to store 180 public final boolean copyMessageToSim(byte[] smsc, byte[] pdu, int status) { argument 181 return mSmsMgrProxy.copyMessageToIcc(smsc, pdu, statu 210 updateMessageOnSim(int messageIndex, int newStatus, byte[] pdu) argument [all...] |
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/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaInboundSmsHandler.java | 268 * @param pdu The WAP-WDP PDU segment 273 private int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address, argument 277 int msgType = (0xFF & pdu[index++]); 282 int totalSegments = (0xFF & pdu[index++]); // >= 1 283 int segment = (0xFF & pdu[index++]); // >= 0 295 sourcePort = (0xFF & pdu[index++]) << 8; 296 sourcePort |= 0xFF & pdu[index++]; 297 destinationPort = (0xFF & pdu[index++]) << 8; 298 destinationPort |= 0xFF & pdu[index++]; 302 if (checkDuplicatePortOmadmWapPush(pdu, inde [all...] |
H A D | CdmaSMSDispatcher.java | 100 fillIn.putExtra("pdu", sms.getPdu()); 114 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 116 HashMap map = getSmsTrackerMap(destAddr, scAddr, destPort, data, pdu); 126 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu( 128 if (pdu != null) { 141 HashMap map = getSmsTrackerMap(destAddr, scAddr, text, pdu); 152 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 210 byte[] pdu = (byte[]) map.get("pdu"); 227 intent.putExtra("pdu", pd [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SimSmsTest.java | 43 byte[] pdu = null; 48 pdu = data.getBytes(); 59 assertNotNull(pdu);
|
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...] |
/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 | ISms.aidl | 59 * @param pdu the raw PDU to store 64 in byte[] pdu); 73 * @param pdu the raw PDU to store 79 int messageIndex, int newStatus, in byte[] pdu); 84 * @param pdu the raw PDU to store 90 boolean copyMessageToIccEf(String callingPkg, int status, in byte[] pdu, in byte[] smsc); 95 * @param pdu the raw PDU to store 103 in byte[] pdu, in byte[] smsc); 126 * raw pdu of the status report is in the extended data ("pdu") [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsMessage.java | 163 public static SmsMessage createFromPdu(byte[] pdu) { argument 171 message = createFromPdu(pdu, format); 174 // decoding pdu failed based on activePhone type, must be other format 177 message = createFromPdu(pdu, format); 188 * @param pdu the message PDU from the SMS_RECEIVED_ACTION intent 192 public static SmsMessage createFromPdu(byte[] pdu, String format) { argument 196 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu); 198 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu); 210 * +CMT: [<alpha>],<length><CR><LF><pdu> 264 public static int getTPLayerLengthForPDU(String pdu) { argument [all...] |