Searched refs:pdu (Results 1 - 25 of 52) sorted by relevance

123

/frameworks/base/core/java/com/google/android/mms/pdu/
H A DPduContentTypes.java18 package com.google.android.mms.pdu;
H A DAcknowledgeInd.java18 package com.google.android.mms.pdu;
27 * Constructor, used when composing a M-Acknowledge.ind pdu.
H A DDeliveryInd.java18 package com.google.android.mms.pdu;
H A DGenericPdu.java18 package com.google.android.mms.pdu;
24 * The headers of pdu.
H A DNotifyRespInd.java18 package com.google.android.mms.pdu;
27 * Constructor, used when composing a M-NotifyResp.ind pdu.
H A DQuotedPrintable.java18 package com.google.android.mms.pdu;
H A DSendConf.java18 package com.google.android.mms.pdu;
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DSmsCbHeader.java28 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1
33 * UMTS pdu format, as defined in 3gpp TS 23.041, section 9.4.2
38 * GSM pdu format, as defined in 3gpp TS 23.041, section 9.4.1.3
79 public SmsCbHeader(byte[] pdu) throws IllegalArgumentException { argument
80 if (pdu == null || pdu.length < PDU_HEADER_LENGTH) {
84 if (pdu.length <= PDU_LENGTH_ETWS) {
89 messageIdentifier = ((pdu[2] & 0xff) << 8) | (pdu[3] & 0xff);
93 etwsEmergencyUserAlert = (pdu[
[all...]
H A DSmsMessage.java100 public static SmsMessage createFromPdu(byte[] pdu) { argument
103 msg.parsePdu(pdu);
122 * +CMT: [&lt;alpha>],<length><CR><LF><pdu>
199 byte[] pdu = new byte[size];
200 System.arraycopy(data, 1, pdu, 0, size);
201 msg.parsePdu(pdu);
213 public static int getTPLayerLengthForPDU(String pdu) { argument
214 int len = pdu.length() / 2;
215 int smscLen = Integer.parseInt(pdu.substring(0, 2), 16);
486 byte pdu[]; field in class:SmsMessage.PduParser
497 PduParser(byte[] pdu) argument
846 parsePdu(byte[] pdu) argument
[all...]
H A DSimSmsInterfaceManager.java126 * @param pdu the raw PDU to store
131 updateMessageOnIccEf(int index, int status, byte[] pdu) { argument
134 "("+ Arrays.toString(pdu) + ")");
145 byte[] record = makeSmsRecordData(status, pdu);
162 * @param pdu the raw PDU to store
168 public boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc) { argument
170 "pdu=("+ Arrays.toString(pdu) +
178 IccUtils.bytesToHexString(pdu), response);
/frameworks/base/core/java/com/google/android/mms/util/
H A DPduCacheEntry.java20 import com.google.android.mms.pdu.GenericPdu;
27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { argument
28 mPdu = pdu;
/frameworks/base/telephony/java/android/telephony/
H A DSmsCbMessage.java58 * @param pdu PDU bytes
59 * @return An instance of this class, or null if invalid pdu
61 public static SmsCbMessage createFromPdu(byte[] pdu) { argument
63 return new SmsCbMessage(pdu);
65 Log.w(LOG_TAG, "Failed parsing SMS-CB pdu", e);
104 private SmsCbMessage(byte[] pdu) throws IllegalArgumentException { argument
105 mHeader = new SmsCbHeader(pdu);
109 if (pdu.length >= SmsCbHeader.PDU_LENGTH_ETWS) {
110 mPrimaryNotificationTimestamp = getTimestampMillis(pdu);
113 System.arraycopy(pdu, 1
234 parseBody(byte[] pdu) argument
354 unpackBody(byte[] pdu, int encoding, int offset, int length, boolean hasLanguageIndicator) argument
411 getTimestampMillis(byte[] pdu) argument
[all...]
H A DSmsManager.java40 * Manages SMS operations such as sending data, text, and pdu SMS messages.
68 * raw pdu of the status report is in the extended data ("pdu").
132 * to the recipient. The raw pdu of the status report is in the
133 * extended data ("pdu").
194 * raw pdu of the status report is in the extended data ("pdu").
242 * @param pdu the raw PDU to store
249 public boolean copyMessageToIcc(byte[] smsc, byte[] pdu, int status) { argument
255 success = iccISms.copyMessageToIccEf(status, pdu, sms
306 updateMessageOnIcc(int messageIndex, int newStatus, byte[] pdu) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DWapPushOverSms.java55 * @param pdu The WAP PDU, made up of one or more SMS PDUs
60 public int dispatchWapPdu(byte[] pdu) { argument
62 if (Config.LOGD) Log.d(LOG_TAG, "Rx: " + IccUtils.bytesToHexString(pdu));
65 int transactionId = pdu[index++] & 0xFF;
66 int pduType = pdu[index++] & 0xFF;
75 pduDecoder = new WspTypeDecoder(pdu);
177 dispatchWapPdu_PushCO(pdu, transactionId, pduType, headerStartIndex, headerLength);
181 dispatchWapPdu_MMS(pdu, transactionId, pduType, headerStartIndex, headerLength);
188 dispatchWapPdu_default(pdu, transactionId, pduType, mimeType,
194 private void dispatchWapPdu_default(byte[] pdu, in argument
214 dispatchWapPdu_PushCO(byte[] pdu, int transactionId, int pduType, int headerStartIndex, int headerLength) argument
229 dispatchWapPdu_MMS(byte[] pdu, int transactionId, int pduType, int headerStartIndex, int headerLength) argument
[all...]
H A DIccSmsInterfaceManagerProxy.java40 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 DISms.aidl51 * @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 DIccSmsInterfaceManager.java74 * 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").
196 * @param pdu Raw message PDU.
199 protected byte[] makeSmsRecordData(int status, byte[] pdu) { argument
205 System.arraycopy(pdu, 0, data, 1, pdu
[all...]
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DSimSmsTest.java42 byte[] pdu = null;
47 pdu = data.getBytes();
58 assertNotNull(pdu);
H A DGsmSmsTest.java29 String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E";
30 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu));
35 pdu = "07914151551512f2040B916105551511f100036060924180008A0DA"
37 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu));
45 String pdu = "07914140279510F6440A8111110301003BF56080207130138A8C0B05040B8423F"
51 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu));
64 pdu = "07914140279510F6440A8111110301003BF56080207130238A3B0B05040B8423F"
67 sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu));
83 String pdu = "07912160130300F4040B914151245584F600087010807121352B1021220"
85 SmsMessage sms = SmsMessage.createFromPdu(HexDump.hexStringToByteArray(pdu));
[all...]
H A DGsmSmsCbTest.java28 private void doTestGeographicalScopeValue(byte[] pdu, byte b, int expectedGs) { argument
29 pdu[0] = b;
30 SmsCbMessage msg = SmsCbMessage.createFromPdu(pdu);
39 assertNull("createFromPdu(byte[] with null pdu should return null", msg);
43 byte[] pdu = new byte[4];
44 SmsCbMessage msg = SmsCbMessage.createFromPdu(pdu);
46 assertNull("createFromPdu(byte[] with too short pdu should return null", msg);
50 byte[] pdu = {
66 doTestGeographicalScopeValue(pdu, (byte)0x00,
68 doTestGeographicalScopeValue(pdu, (byt
[all...]
/frameworks/base/telephony/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.java155 public static SmsMessage createFromPdu(byte[] pdu) { argument
160 wrappedMessage = com.android.internal.telephony.cdma.SmsMessage.createFromPdu(pdu);
162 wrappedMessage = com.android.internal.telephony.gsm.SmsMessage.createFromPdu(pdu);
171 * +CMT: [&lt;alpha>],<length><CR><LF><pdu>
272 public static int getTPLayerLengthForPDU(String pdu) { argument
276 return com.android.internal.telephony.cdma.SmsMessage.getTPLayerLengthForPDU(pdu);
278 return com.android.internal.telephony.gsm.SmsMessage.getTPLayerLengthForPDU(pdu);
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DRuimSmsInterfaceManager.java109 * @param pdu the raw PDU to store
114 updateMessageOnIccEf(int index, int status, byte[] pdu) { argument
117 "("+ pdu + ")");
128 byte[] record = makeSmsRecordData(status, pdu);
144 * @param pdu the raw PDU to store
150 public boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc) { argument
153 "pdu=("+ Arrays.toString(pdu) + ")");
159 mPhone.mCM.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu),
H A DCdmaSMSDispatcher.java91 fillIn.putExtra("pdu", sms.getPdu());
225 * @param pdu The WAP-WDP PDU segment
230 protected int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address) { argument
239 msgType = pdu[index++];
244 totalSegments = pdu[index++]; // >=1
245 segment = pdu[index++]; // >=0
250 sourcePort = (0xFF & pdu[index++]) << 8;
251 sourcePort |= 0xFF & pdu[index++];
252 destinationPort = (0xFF & pdu[index++]) << 8;
253 destinationPort |= 0xFF & pdu[inde
431 sendSubmitPdu(SmsMessage.SubmitPdu pdu, PendingIntent sentIntent, PendingIntent deliveryIntent) argument
[all...]
H A DSmsMessage.java97 public static SmsMessage createFromPdu(byte[] pdu) { argument
101 msg.parsePdu(pdu);
255 byte[] pdu = new byte[size];
256 System.arraycopy(data, 2, pdu, 0, size);
270 public static int getTPLayerLengthForPDU(String pdu) { argument
478 * Decodes pdu to an empty SMS object.
479 * In the CDMA case the pdu is just an internal byte stream representation
483 private void parsePdu(byte[] pdu) { argument
484 ByteArrayInputStream bais = new ByteArrayInputStream(pdu);
525 mPdu = pdu;
[all...]

Completed in 653 milliseconds

123