Searched refs:pdu (Results 1 - 25 of 58) 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>
182 byte[] pdu = new byte[size];
183 System.arraycopy(data, 1, pdu, 0, size);
184 msg.parsePdu(pdu);
196 public static int getTPLayerLengthForPDU(String pdu) { argument
197 int len = pdu.length() / 2;
198 int smscLen = Integer.parseInt(pdu.substring(0, 2), 16);
496 byte pdu[]; field in class:SmsMessage.PduParser
503 PduParser(byte[] pdu) argument
890 parsePdu(byte[] pdu) argument
[all...]
H A DGsmSMSDispatcher.java143 fillIn.putExtra("pdu", IccUtils.hexStringToBytes(pduString));
240 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(
242 if (pdu != null) {
243 sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent);
253 SmsMessage.SubmitPdu pdu = SmsMessage.getSubmitPdu(
255 if (pdu != null) {
256 sendRawPdu(pdu.encodedScAddress, pdu.encodedMessage, sentIntent, deliveryIntent);
274 SmsMessage.SubmitPdu pdu
[all...]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DIDataVerify.aidl26 boolean verifyData(in byte[] pdu);
H A DDataVerify.java66 * 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/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.
69 * raw pdu of the status report is in the extended data ("pdu").
133 * to the recipient. The raw pdu of the status report is in the
134 * extended data ("pdu").
195 * raw pdu of the status report is in the extended data ("pdu").
240 * @param pdu the raw PDU to store
247 public boolean copyMessageToIcc(byte[] smsc, byte[] pdu, int status) { argument
253 success = iccISms.copyMessageToIccEf(status, pdu, sms
304 updateMessageOnIcc(int messageIndex, int newStatus, byte[] pdu) argument
[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.java32 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...]
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...]
/frameworks/base/telephony/java/com/android/internal/telephony/
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...]
H A DWapPushOverSms.java130 * @param pdu The WAP PDU, made up of one or more SMS PDUs
135 public int dispatchWapPdu(byte[] pdu) { argument
137 if (false) Log.d(LOG_TAG, "Rx: " + IccUtils.bytesToHexString(pdu));
140 int transactionId = pdu[index++] & 0xFF;
141 int pduType = pdu[index++] & 0xFF;
150 pduDecoder = new WspTypeDecoder(pdu);
189 System.arraycopy(pdu, headerStartIndex, header, 0, header.length);
194 intentData = pdu;
197 intentData = new byte[pdu.length - dataIndex];
198 System.arraycopy(pdu, dataInde
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DCdmaSMSDispatcher.java90 fillIn.putExtra("pdu", sms.getPdu());
193 * @param pdu The WAP-WDP PDU segment
198 protected int processCdmaWapPdu(byte[] pdu, int referenceNumber, String address) { argument
201 int msgType = (0xFF & pdu[index++]);
206 int totalSegments = (0xFF & pdu[index++]); // >= 1
207 int segment = (0xFF & pdu[index++]); // >= 0
219 sourcePort = (0xFF & pdu[index++]) << 8;
220 sourcePort |= 0xFF & pdu[index++];
221 destinationPort = (0xFF & pdu[index++]) << 8;
222 destinationPort |= 0xFF & pdu[inde
295 sendSubmitPdu(SmsMessage.SubmitPdu pdu, PendingIntent sentIntent, PendingIntent deliveryIntent) argument
[all...]
H A DRuimSmsInterfaceManager.java108 * @param pdu the raw PDU to store
113 updateMessageOnIccEf(int index, int status, byte[] pdu) { argument
116 "("+ pdu + ")");
127 byte[] record = makeSmsRecordData(status, pdu);
143 * @param pdu the raw PDU to store
149 public boolean copyMessageToIccEf(int status, byte[] pdu, byte[] smsc) { argument
152 "pdu=("+ Arrays.toString(pdu) + ")");
158 mPhone.mCM.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu),

Completed in 227 milliseconds

123