Searched refs:pdu (Results 1 - 25 of 65) sorted by last modified time

123

/frameworks/opt/telephony/src/java/android/provider/
H A DTelephony.java1076 * <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 DSmsManager.java51 * 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 DSmsMessage.java163 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: [&lt;alpha>],<length><CR><LF><pdu>
264 public static int getTPLayerLengthForPDU(String pdu) { argument
[all...]
/frameworks/opt/telephony/src/java/android/telephony/gsm/
H A DSmsManager.java25 * 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 DSmsMessage.java151 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 DCommandsInterface.java1049 * 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 DIccSmsInterfaceManager.java189 * @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 DImsSMSDispatcher.java267 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 DInboundSmsHandler.java93 "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 DInboundSmsTracker.java68 * @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 DRIL.java1264 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 DSMSDispatcher.java467 * 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 DUiccSmsController.java53 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 DWapPushOverSms.java20 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 DWspTypeDecoder.java206 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 DCdmaInboundSmsHandler.java268 * @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 DCdmaSMSDispatcher.java100 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...]
H A DSmsMessage.java110 public static SmsMessage createFromPdu(byte[] pdu) { argument
114 msg.parsePdu(pdu);
259 byte[] pdu = new byte[size];
260 System.arraycopy(data, 2, pdu, 0, size);
263 msg.parsePduFromEfRecord(pdu);
275 public static int getTPLayerLengthForPDU(String pdu) { argument
506 * Decodes pdu to an empty SMS object.
507 * In the CDMA case the pdu is just an internal byte stream representation
511 private void parsePdu(byte[] pdu) { argument
512 ByteArrayInputStream bais = new ByteArrayInputStream(pdu);
577 parsePduFromEfRecord(byte[] pdu) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmCellBroadcastHandler.java97 StringBuilder sb = new StringBuilder("SMS CB pdu data: ");
160 for (byte[] pdu : pdus) {
161 if (pdu == null) {
191 loge("Error in decoding SMS CB pdu", e);
H A DGsmSMSDispatcher.java139 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...]
H A DGsmSmsCbMessage.java73 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 DSmsCbHeader.java42 * 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 DSmsMessage.java98 public static SmsMessage createFromPdu(byte[] pdu) { argument
101 msg.parsePdu(pdu);
123 * +CMT: [&lt;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
923 parsePdu(byte[] pdu) argument
[all...]
H A DUsimDataDownloadHandler.java116 byte[] pdu = smsMessage.getPdu(); // includes SC address
118 int scAddressLength = pdu[0] & 0xff;
120 int tpduLength = pdu.length - tpduIndex;
148 System.arraycopy(pdu, 1, envelope, index, scAddressLength);
158 System.arraycopy(pdu, tpduIndex, envelope, index, tpduLength);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneCommandInterface.java215 public void sendSMS (String smscPDU, String pdu, Message result) { argument
219 public void sendSMSExpectMore (String smscPDU, String pdu, Message result) { argument
223 public void sendCdmaSms(byte[] pdu, Message result) { argument
227 public void sendImsGsmSms (String smscPDU, String pdu, argument
232 public void sendImsCdmaSms(byte[] pdu, int retry, int messageRef, argument
249 public void writeSmsToSim(int status, String smsc, String pdu, Message response) { argument
253 public void writeSmsToRuim(int status, String pdu, Message response) { argument

Completed in 274 milliseconds

123