Home
last modified time | relevance | path

Searched refs:pdu (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java160 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetParameterOffset() local
165 pdu.skip(1); // Skip the message type in cdmaGetParameterOffset()
167 while (pdu.available() > 0) { in cdmaGetParameterOffset()
168 int currentId = pdu.read(); in cdmaGetParameterOffset()
169 int currentLen = pdu.read(); in cdmaGetParameterOffset()
176 pdu.skip(currentLen); in cdmaGetParameterOffset()
180 pdu.close(); in cdmaGetParameterOffset()
194 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetSubParameterOffset() local
198 pdu.skip(offset); in cdmaGetSubParameterOffset()
201 while (pdu.available() > 0) { in cdmaGetSubParameterOffset()
[all …]
DMmsFileProvider.java28 import com.google.android.mms.pdu.GenericPdu;
29 import com.google.android.mms.pdu.PduComposer;
30 import com.google.android.mms.pdu.PduPersister;
114 GenericPdu pdu = null; in writeDataToPipe() local
120 pdu = pduPersister.load(uri); in writeDataToPipe()
121 byte[] bytes = (new PduComposer(getContext(), pdu)).make(); in writeDataToPipe()
DBluetoothMapbMessageSms.java82 for (SmsPdu pdu : mSmsBodyPdus) { in encode()
84 bodyFragments.add(encodeBinary(pdu.getData(),pdu.getScAddress()).getBytes("UTF-8")); in encode()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java46 import com.google.android.mms.pdu.DeliveryInd;
47 import com.google.android.mms.pdu.GenericPdu;
48 import com.google.android.mms.pdu.NotificationInd;
49 import com.google.android.mms.pdu.PduParser;
50 import com.google.android.mms.pdu.PduPersister;
51 import com.google.android.mms.pdu.ReadOrigInd;
52 import com.google.android.mms.pdu.RetrieveConf;
53 import com.google.android.mms.pdu.SendReq;
534 final GenericPdu pdu = parsePduForAnyCarrier(pduData); in importMms() local
535 if (pdu == null) { in importMms()
[all …]
DSendRequest.java38 import com.google.android.mms.pdu.GenericPdu;
39 import com.google.android.mms.pdu.PduHeaders;
40 import com.google.android.mms.pdu.PduParser;
41 import com.google.android.mms.pdu.PduPersister;
42 import com.google.android.mms.pdu.SendConf;
43 import com.google.android.mms.pdu.SendReq;
112 GenericPdu pdu = (new PduParser(mPduData, supportContentDisposition)).parse(); in persistIfRequired() local
113 if (pdu == null) { in persistIfRequired()
117 if (!(pdu instanceof SendReq)) { in persistIfRequired()
123 pdu, in persistIfRequired()
[all …]
DDownloadRequest.java43 import com.google.android.mms.pdu.GenericPdu;
44 import com.google.android.mms.pdu.PduHeaders;
45 import com.google.android.mms.pdu.PduParser;
46 import com.google.android.mms.pdu.PduPersister;
47 import com.google.android.mms.pdu.RetrieveConf;
119 final GenericPdu pdu = (new PduParser(response, supportMmsContentDisposition)).parse(); in persistIfRequired() local
120 if (pdu == null || !(pdu instanceof RetrieveConf)) { in persistIfRequired()
124 final RetrieveConf retrieveConf = (RetrieveConf) pdu; in persistIfRequired()
146 pdu, in persistIfRequired()
DMmsHttpClient.java101 public byte[] execute(String urlString, byte[] pdu, String method, boolean isProxySet, in execute() argument
106 + ", PDU size=" + (pdu != null ? pdu.length : 0)); in execute()
143 if (pdu == null || pdu.length < 1) { in execute()
159 connection.setFixedLengthStreamingMode(pdu.length); in execute()
163 out.write(pdu); in execute()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java32 import com.android.messaging.mmslib.pdu.AcknowledgeInd;
33 import com.android.messaging.mmslib.pdu.EncodedStringValue;
34 import com.android.messaging.mmslib.pdu.GenericPdu;
35 import com.android.messaging.mmslib.pdu.NotifyRespInd;
36 import com.android.messaging.mmslib.pdu.PduComposer;
37 import com.android.messaging.mmslib.pdu.PduHeaders;
38 import com.android.messaging.mmslib.pdu.PduParser;
39 import com.android.messaging.mmslib.pdu.RetrieveConf;
40 import com.android.messaging.mmslib.pdu.SendConf;
41 import com.android.messaging.mmslib.pdu.SendReq;
[all …]
DMmsUtils.java56 import com.android.messaging.mmslib.pdu.CharacterSets;
57 import com.android.messaging.mmslib.pdu.EncodedStringValue;
58 import com.android.messaging.mmslib.pdu.GenericPdu;
59 import com.android.messaging.mmslib.pdu.NotificationInd;
60 import com.android.messaging.mmslib.pdu.PduBody;
61 import com.android.messaging.mmslib.pdu.PduComposer;
62 import com.android.messaging.mmslib.pdu.PduHeaders;
63 import com.android.messaging.mmslib.pdu.PduParser;
64 import com.android.messaging.mmslib.pdu.PduPart;
65 import com.android.messaging.mmslib.pdu.PduPersister;
[all …]
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/
DDialogSmsDisplayTests.java85 byte[] pdu = new byte[88]; in encodeCellBroadcast()
86 pdu[0] = (byte) ((serialNumber >> 8) & 0xff); in encodeCellBroadcast()
87 pdu[1] = (byte) (serialNumber & 0xff); in encodeCellBroadcast()
88 pdu[2] = (byte) ((messageId >> 8) & 0xff); in encodeCellBroadcast()
89 pdu[3] = (byte) (messageId & 0xff); in encodeCellBroadcast()
90 pdu[4] = (byte) (dcs & 0xff); in encodeCellBroadcast()
91 pdu[5] = 0x11; // single page message in encodeCellBroadcast()
96 System.arraycopy(encodedString, 0, pdu, 6, encodedString.length); in encodeCellBroadcast()
100 System.arraycopy(encodedString, 1, pdu, 6, encodedString.length-1); in encodeCellBroadcast()
102 return pdu; in encodeCellBroadcast()
[all …]
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java392 private static SmsCbMessage createFromPdu(byte[] pdu, int serialNumber, int category) { in createFromPdu() argument
394 pdus[0] = pdu; in createFromPdu()
400 for (byte[] pdu : pdus) { in createFromPdus()
401 if (pdu.length <= 88) { in createFromPdus()
404 pdu[0] = (byte) ((serialNumber >>> 8) & 0xff); in createFromPdus()
405 pdu[1] = (byte) (serialNumber & 0xff); in createFromPdus()
408 pdu[2] = (byte) ((category >>> 8) & 0xff); in createFromPdus()
409 pdu[3] = (byte) (category & 0xff); in createFromPdus()
414 pdu[3] = (byte) ((serialNumber >>> 8) & 0xff); in createFromPdus()
415 pdu[4] = (byte) (serialNumber & 0xff); in createFromPdus()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java28 import android.support.v7.mms.pdu.GenericPdu;
29 import android.support.v7.mms.pdu.PduHeaders;
30 import android.support.v7.mms.pdu.PduParser;
31 import android.support.v7.mms.pdu.SendConf;
226 final GenericPdu pdu = new PduParser( in isWrongApnResponse() local
234 if (pdu != null && pdu instanceof SendConf) { in isWrongApnResponse()
235 final SendConf sendConf = (SendConf) pdu; in isWrongApnResponse()
DMmsHttpClient.java112 public byte[] execute(String urlString, byte[] pdu, String method, boolean isProxySet, in execute() argument
117 + ", PDU size=" + (pdu != null ? pdu.length : 0)); in execute()
153 if (pdu == null || pdu.length < 1) { in execute()
171 connection.setFixedLengthStreamingMode(pdu.length); in execute()
175 out.write(pdu); in execute()
DDownloadRequest.java80 final byte[] pdu) { in writePduToContentUri() argument
81 if (contentUri == null || pdu == null) { in writePduToContentUri()
91 outStream.write(pdu); in writePduToContentUri()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java255 final byte[] pdu = message.getPdu();
256 dos.writeInt(pdu.length);
257 dos.write(pdu, 0, pdu.length);
292 final byte[] pdu = new byte[length];
293 dis.read(pdu, 0, length);
294 messagesTemp[i] = SmsMessage.createFromPdu(pdu);
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java18 package com.android.messaging.mmslib.pdu;
563 GenericPdu pdu = null; in load() local
620 pdu = createPdu(msgType, headers, body); in load()
623 if (pdu != null) { in load()
626 cacheEntry = new PduCacheEntry(pdu, msgBox, threadId); in load()
633 return pdu; in load()
1303 public Uri persist(final GenericPdu pdu, final Uri uri, final int subId, in persist() argument
1341 final PduHeaders header = pdu.getPduHeaders(); in persist()
1402 final int msgType = pdu.getMessageType(); in persist()
1448 if (pdu instanceof MultimediaMessagePdu) { in persist()
[all …]
DPduComposer.java18 package com.android.messaging.mmslib.pdu;
137 public PduComposer(final Context context, final GenericPdu pdu) { in PduComposer() argument
138 mPdu = pdu; in PduComposer()
140 mPduHeader = pdu.getPduHeaders(); in PduComposer()
DPduContentTypes.java18 package com.android.messaging.mmslib.pdu;
DPduBody.java18 package com.android.messaging.mmslib.pdu;
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DPduCacheEntry.java20 import com.android.messaging.mmslib.pdu.GenericPdu;
27 public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) { in PduCacheEntry() argument
28 mPdu = pdu; in PduCacheEntry()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessDownloadedMmsAction.java42 import com.android.messaging.mmslib.pdu.PduHeaders;
43 import com.android.messaging.mmslib.pdu.RetrieveConf;
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduContentTypes.java18 package android.support.v7.mms.pdu;
DInvalidHeaderValueException.java18 package android.support.v7.mms.pdu;
DMmsException.java18 package android.support.v7.mms.pdu;
DAcknowledgeInd.java18 package android.support.v7.mms.pdu;

123