/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
H A D | ClientTest.java | 118 EditText pdu = (EditText) findViewById(R.id.pdu); 123 // wap.dispatchWapPdu(strToHex(pdu.getText().toString())); 129 HexDump.hexStringToByteArray(pdu.getText().toString())); 131 HexDump.hexStringToByteArray(pdu.getText().toString())); 137 //HexDump.hexStringToByteArray(pdu.getText().toString()), 0, 6, 5, 5);
|
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;
|
H A D | IDataVerify.aidl | 26 boolean verifyData(in byte[] pdu);
|
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/base/services/core/java/com/android/server/ |
H A D | MmsServiceBroker.java | 249 public void updateMmsSendStatus(int messageRef, byte[] pdu, int status) argument 252 getServiceGuarded().updateMmsSendStatus(messageRef, pdu, status);
|
/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));
|
H A D | IMms.aidl | 72 * @param pdu non-empty (contains the SendConf PDU) if the message was sent successfully, 79 void updateMmsSendStatus(int messageRef, in byte[] pdu, in int status);
|
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/provider/ |
H A D | Telephony.java | 1076 * <li><em>"pdu"</em> - (byte[]) The PDU to send.</li> 1130 byte[] pdu = (byte[]) messages[i]; 1131 msgs[i] = SmsMessage.createFromPdu(pdu, format);
|
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsManager.java | 51 * Manages SMS operations such as sending data, text, and pdu SMS messages. 234 * raw pdu of the status report is in the extended data ("pdu"). 264 * @param pdu is the byte array of pdu to be injected into android application framework 265 * @param format is the format of SMS pdu (3gpp or 3gpp2) 274 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { argument 278 "Invalid pdu format. format must be either 3gpp or 3gpp2"); 283 iccISms.injectSmsPdu(pdu, format, receivedIntent); 367 * to the recipient. The raw pdu o 537 copyMessageToIcc(byte[] smsc, byte[] pdu,int status) argument 599 updateMessageOnIcc(int messageIndex, int newStatus, byte[] pdu) argument 1036 updateMmsSendStatus(Context context, int messageRef, byte[] pdu, int status, Uri contentUri) argument [all...] |
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...] |
/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/ |
H A D | CommandsInterface.java | 1049 * pdu is SMS in PDU format as an ASCII hex string 1052 void sendSMS (String smscPDU, String pdu, Message response); argument 1059 * pdu is SMS in PDU format as an ASCII hex string 1062 void sendSMSExpectMore (String smscPDU, String pdu, Message response); argument 1065 * @param pdu is CDMA-SMS in internal pseudo-PDU format 1068 void sendCdmaSms(byte[] pdu, Message response); argument 1074 * @param pdu is SMS in PDU format as an ASCII hex string 1081 void sendImsGsmSms (String smscPDU, String pdu, int retry, int messageRef, argument 1086 * @param pdu is CDMA-SMS in internal pseudo-PDU format 1093 void sendImsCdmaSms(byte[] pdu, in argument 1124 writeSmsToSim(int status, String smsc, String pdu, Message response) argument 1126 writeSmsToRuim(int status, String pdu, Message response) argument [all...] |
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), 417 injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) argument 561 makeSmsRecordData(int status, byte[] pdu) 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...] |
H A D | InboundSmsHandler.java | 93 "pdu" 98 "pdu", 728 for (byte[] pdu : pdus) { 731 SmsMessage msg = SmsMessage.createFromPdu(pdu, SmsConstants.FORMAT_3GPP); 732 pdu = msg.getUserData(); 734 output.write(pdu, 0, pdu.length); 895 byte[] pdu = tracker.getPdu(); 898 loge("Warning: dup message segment PDU of length " + pdu.length 1072 loge("Failed to parse SMS pdu"); [all...] |
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 | RIL.java | 1264 constructGsmSendSmsRilRequest (RILRequest rr, String smscPDU, String pdu) { argument 1267 rr.mParcel.writeString(pdu); 1271 sendSMS (String smscPDU, String pdu, Message result) { argument 1275 constructGsmSendSmsRilRequest(rr, smscPDU, pdu); 1284 sendSMSExpectMore (String smscPDU, String pdu, Message result) { argument 1288 constructGsmSendSmsRilRequest(rr, smscPDU, pdu); 1296 constructCdmaSendSmsRilRequest(RILRequest rr, byte[] pdu) { argument 1300 ByteArrayInputStream bais = new ByteArrayInputStream(pdu); 1336 sendCdmaSms(byte[] pdu, Message result) { argument 1340 constructCdmaSendSmsRilRequest(rr, pdu); 1348 sendImsGsmSms(String smscPDU, String pdu, int retry, int messageRef, Message result) argument 1364 sendImsCdmaSms(byte[] pdu, int retry, int messageRef, Message result) argument 1409 writeSmsToSim(int status, String smsc, String pdu, Message response) argument 1427 writeSmsToRuim(int status, String pdu, Message response) argument [all...] |
H A D | SMSDispatcher.java | 467 * raw pdu of the status report is in the extended data ("pdu"). 504 * @param pdu is the byte array of pdu to be injected into android telephony layer 505 * @param format is the format of SMS pdu (3gpp or 3gpp2) 511 protected abstract void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent); argument 594 * to the recipient. The raw pdu of the status report is in the 682 * -pdu the raw PDU to send 696 * raw pdu of the status report is in the extended data ("pdu") 1285 getSmsTrackerMap(String destAddr, String scAddr, String text, SmsMessageBase.SubmitPduBase pdu) argument 1296 getSmsTrackerMap(String destAddr, String scAddr, int destPort, byte[] data, SmsMessageBase.SubmitPduBase 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 | 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 | 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...] |
/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...] |